chainlesschain 0.166.149 → 0.166.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -5
- package/package.json +2 -2
- package/src/assets/linux-subreaper/linux-arm64/manifest.json +1 -1
- package/src/assets/linux-subreaper/linux-x64/manifest.json +1 -1
- package/src/assets/web-panel/.build-hash +1 -1
- package/src/assets/web-panel/assets/{AIOps-BjBY1txq.js → AIOps-CraNGNgc.js} +1 -1
- package/src/assets/web-panel/assets/{ActionButton-CS2ov4iK.js → ActionButton-C0jn6sgg.js} +1 -1
- package/src/assets/web-panel/assets/{Analytics-C9LS7ahG.js → Analytics-DVrR_wjl.js} +1 -1
- package/src/assets/web-panel/assets/{AppLayout-4_s9gBVg.js → AppLayout-CeKP8mgC.js} +1 -1
- package/src/assets/web-panel/assets/{Artifacts-CwS17ayg.js → Artifacts-OHCS9wLN.js} +1 -1
- package/src/assets/web-panel/assets/{Audit-D3QMRsd-.js → Audit-C77b6pDl.js} +1 -1
- package/src/assets/web-panel/assets/{BackgroundAgents-Bxau9H9Q.js → BackgroundAgents-CefiwCgM.js} +1 -1
- package/src/assets/web-panel/assets/{Backup--YSJyAuP.js → Backup-B-5KmWNA.js} +1 -1
- package/src/assets/web-panel/assets/{BaseInput-DZolkmdu.js → BaseInput-C3bJ1Qlc.js} +1 -1
- package/src/assets/web-panel/assets/{Chat-DA-7fNKq.js → Chat-DBahPz9B.js} +1 -1
- package/src/assets/web-panel/assets/{ChatBubbleRenderer-DniEWT5j.js → ChatBubbleRenderer-J4BVVrXZ.js} +1 -1
- package/src/assets/web-panel/assets/{Checkbox-B4hgbnOB.js → Checkbox-w856fzfY.js} +1 -1
- package/src/assets/web-panel/assets/{Codegen-BQ3HSq9S.js → Codegen-XKmsL_C3.js} +1 -1
- package/src/assets/web-panel/assets/{Col-DJwxq_Wu.js → Col-B37-gr7d.js} +1 -1
- package/src/assets/web-panel/assets/{Community-DZYVM_iz.js → Community-DdahlN0f.js} +1 -1
- package/src/assets/web-panel/assets/{Compact-1Yq5o53N.js → Compact-oKnoE-9_.js} +1 -1
- package/src/assets/web-panel/assets/{Compliance-52Per8mR.js → Compliance-CnCRlOB_.js} +1 -1
- package/src/assets/web-panel/assets/{Cowork-BaCNxzo7.js → Cowork-D3Vr5R3E.js} +1 -1
- package/src/assets/web-panel/assets/{Cron-DADTMPPr.js → Cron-X46CdLRQ.js} +1 -1
- package/src/assets/web-panel/assets/{Crosschain-CS3rx96X.js → Crosschain-CV3_6jVw.js} +1 -1
- package/src/assets/web-panel/assets/{DID-B8eatIvd.js → DID-Kr6H4WKr.js} +1 -1
- package/src/assets/web-panel/assets/{Dashboard-0vsurC1X.js → Dashboard-Bj4usrhx.js} +1 -1
- package/src/assets/web-panel/assets/{Dropdown-BULy3ccq.js → Dropdown-V3DPV21D.js} +1 -1
- package/src/assets/web-panel/assets/{EmailListRenderer-CcwgCUpu.js → EmailListRenderer-8MCX0Y4b.js} +1 -1
- package/src/assets/web-panel/assets/{EvolutionSettings-DLs_6II3.js → EvolutionSettings-SUoykpjc.js} +1 -1
- package/src/assets/web-panel/assets/{FamilyGuardDashboard-DpUpWwQP.js → FamilyGuardDashboard-C0iE0T9x.js} +1 -1
- package/src/assets/web-panel/assets/{Federation-6hx8MMYA.js → Federation-CSU3kpK2.js} +1 -1
- package/src/assets/web-panel/assets/{FormItemContext-CsdE-ZR5.js → FormItemContext-Bcv2XJNw.js} +1 -1
- package/src/assets/web-panel/assets/{GenericCardRenderer-DzXneQPV.js → GenericCardRenderer-PdEqwQZd.js} +1 -1
- package/src/assets/web-panel/assets/{Git-D_ThKL1Q.js → Git-CVZ0MSRN.js} +1 -1
- package/src/assets/web-panel/assets/{Governance-BFBSlr-9.js → Governance-CF64-eGc.js} +1 -1
- package/src/assets/web-panel/assets/{Inference-BAI0b1Jl.js → Inference-DJ1J40Th.js} +1 -1
- package/src/assets/web-panel/assets/{KnowledgeGraph-CpO6Bdtr.js → KnowledgeGraph-Cf3ULXmf.js} +1 -1
- package/src/assets/web-panel/assets/{Logs-BcRaS_HC.js → Logs-DM_RbXG_.js} +1 -1
- package/src/assets/web-panel/assets/{MarkdownRenderer-CmZaA7Ct.js → MarkdownRenderer-B2wey_j8.js} +1 -1
- package/src/assets/web-panel/assets/{Marketplace-BpHBn0Nw.js → Marketplace-tqdANxLa.js} +1 -1
- package/src/assets/web-panel/assets/{McpTools-auVxEYSE.js → McpTools-BiSYAtKB.js} +1 -1
- package/src/assets/web-panel/assets/{Memory-DpCyb656.js → Memory-hOvA-Tqp.js} +1 -1
- package/src/assets/web-panel/assets/{MobileBridge-CEIGi769.js → MobileBridge-CIpwBK6G.js} +1 -1
- package/src/assets/web-panel/assets/{MobileProjects-pphH0a8n.js → MobileProjects-DMpV98oD.js} +1 -1
- package/src/assets/web-panel/assets/{Mtc-CMJXBEp1.js → Mtc-CVoJZMuY.js} +1 -1
- package/src/assets/web-panel/assets/{MtcAudit-BI25yvzM.js → MtcAudit-Dz9YsrvV.js} +1 -1
- package/src/assets/web-panel/assets/{Multisig-BhMDExsQ.js → Multisig-CamW3sTK.js} +1 -1
- package/src/assets/web-panel/assets/{NLProgramming-CatOR9Ez.js → NLProgramming-DlZo8q6W.js} +1 -1
- package/src/assets/web-panel/assets/{Notes-BHG6SBpu.js → Notes-DZJSYibx.js} +1 -1
- package/src/assets/web-panel/assets/{NotificationSettings-BB-m0AbL.js → NotificationSettings-BSlIIGOM.js} +1 -1
- package/src/assets/web-panel/assets/{OrderTableRenderer-W-WReAih.js → OrderTableRenderer-Bo9vImgU.js} +1 -1
- package/src/assets/web-panel/assets/{Organization-BkQCgon_.js → Organization-B1sBf0Kk.js} +1 -1
- package/src/assets/web-panel/assets/{Overflow-kCTwPrIc.js → Overflow-CD8GUNOV.js} +1 -1
- package/src/assets/web-panel/assets/{P2P-CvOF8whc.js → P2P-CeaIuSa9.js} +1 -1
- package/src/assets/web-panel/assets/{PdhVaultBrowser-DYkTzn6u.js → PdhVaultBrowser-DCOkcRse.js} +2 -2
- package/src/assets/web-panel/assets/{Permissions-F-UzeWVt.js → Permissions-DQCZnN_y.js} +1 -1
- package/src/assets/web-panel/assets/{PersonalDataHub-BURpZBb6.js → PersonalDataHub-D_9PtVvT.js} +1 -1
- package/src/assets/web-panel/assets/{Pipeline-lZYx_7qc.js → Pipeline-BawUxj0i.js} +1 -1
- package/src/assets/web-panel/assets/{Privacy-DdfYgt1_.js → Privacy-CPyw19Ai.js} +1 -1
- package/src/assets/web-panel/assets/{ProjectInit-DbMBCojn.js → ProjectInit-GDtYLbL6.js} +1 -1
- package/src/assets/web-panel/assets/{ProjectSettings-DPGbzkyi.js → ProjectSettings-DhmGKXVL.js} +1 -1
- package/src/assets/web-panel/assets/{Projects-B9-t2ofM.js → Projects-O2spSrud.js} +1 -1
- package/src/assets/web-panel/assets/Providers-CNKCrJbY.css +1 -0
- package/src/assets/web-panel/assets/Providers-lEDu4Qdj.js +1 -0
- package/src/assets/web-panel/assets/{QrScannerModal-BIth1Lij.js → QrScannerModal-Dcqm-i6j.js} +1 -1
- package/src/assets/web-panel/assets/{QuickAsk-C928WbdK.js → QuickAsk-C6uPAeAE.js} +1 -1
- package/src/assets/web-panel/assets/{Recommend-CzDNsNPZ.js → Recommend-ClVlhga7.js} +1 -1
- package/src/assets/web-panel/assets/{RemoteSession-CedjOslI.js → RemoteSession-2raJDKUb.js} +1 -1
- package/src/assets/web-panel/assets/{Reputation-B8ggKVtj.js → Reputation-BYWC8k3t.js} +1 -1
- package/src/assets/web-panel/assets/{Row-Cx167nF6.js → Row-Bv7Y68ai.js} +1 -1
- package/src/assets/web-panel/assets/{RssFeed-Cj8hwiLP.js → RssFeed-Ba54MKvz.js} +1 -1
- package/src/assets/web-panel/assets/{Search-Dsyrkogu.js → Search-B9EkRkZK.js} +1 -1
- package/src/assets/web-panel/assets/{Security-DfOcWFt-.js → Security-DuXQGU4o.js} +1 -1
- package/src/assets/web-panel/assets/{Services-CSyv-JgS.js → Services-DJnCtY8x.js} +1 -1
- package/src/assets/web-panel/assets/{Skeleton-B0chhFP5.js → Skeleton-BVDdtf_S.js} +1 -1
- package/src/assets/web-panel/assets/{Skills-B_jrR_AF.js → Skills-DGkYCesm.js} +1 -1
- package/src/assets/web-panel/assets/{Sla-krP10aUI.js → Sla-CHND6lwC.js} +1 -1
- package/src/assets/web-panel/assets/{SpeechSettings-Cm_Cjvf2.js → SpeechSettings-Bg0Bgy9c.js} +1 -1
- package/src/assets/web-panel/assets/{SyncSettings-Cmb-KoqG.js → SyncSettings-DwtcZ2Ml.js} +1 -1
- package/src/assets/web-panel/assets/{Tasks-DUOiwTxY.js → Tasks-BoHc0cP2.js} +1 -1
- package/src/assets/web-panel/assets/{Templates-DcEPspsP.js → Templates-DAMs4m8X.js} +1 -1
- package/src/assets/web-panel/assets/{Tenant-Dw93LtrE.js → Tenant-DkVQbOzT.js} +1 -1
- package/src/assets/web-panel/assets/{Terminal-B04i0AIG.js → Terminal-BTOLM8Yu.js} +1 -1
- package/src/assets/web-panel/assets/{TimelineRenderer-C-aAORNK.js → TimelineRenderer-BO5ZyxUU.js} +1 -1
- package/src/assets/web-panel/assets/{Tokens-W1RBfDKb.js → Tokens-D0LjCtSA.js} +1 -1
- package/src/assets/web-panel/assets/{Trigger-BuuH9sMn.js → Trigger-DgGXg9VB.js} +1 -1
- package/src/assets/web-panel/assets/{Trust-Bma-Vz-f.js → Trust-BAEQrND-.js} +1 -1
- package/src/assets/web-panel/assets/{UkeySign-CqWw3_ha.js → UkeySign-TtBclFRw.js} +1 -1
- package/src/assets/web-panel/assets/{VideoEditing-6NYmQRUe.js → VideoEditing-ByxvpIpS.js} +1 -1
- package/src/assets/web-panel/assets/{Wallet-CTUuBxsr.js → Wallet-CTa7jqur.js} +1 -1
- package/src/assets/web-panel/assets/{WebAuthn-D8mN5UQU.js → WebAuthn-oHbCSjrD.js} +1 -1
- package/src/assets/web-panel/assets/{WorkflowEditor-DOB46XMH.js → WorkflowEditor-DQKQAdUS.js} +1 -1
- package/src/assets/web-panel/assets/{chat-BPNlNLwi.js → chat-BcCU2FuK.js} +1 -1
- package/src/assets/web-panel/assets/{colors-D-LNng0Q.js → colors-BcXAFjHT.js} +1 -1
- package/src/assets/web-panel/assets/{compact-item-Vkl3KOAb.js → compact-item-GhZzQppm.js} +1 -1
- package/src/assets/web-panel/assets/{createContext-CFsJ9Bmp.js → createContext-Bc6nwTUy.js} +1 -1
- package/src/assets/web-panel/assets/{hasIn-C1v7eiIB.js → hasIn-DRH8Xt0Y.js} +1 -1
- package/src/assets/web-panel/assets/{index-BGyhWFpc.js → index-60aCmptm.js} +1 -1
- package/src/assets/web-panel/assets/{index-BefXafSw.js → index-B7hScRVB.js} +1 -1
- package/src/assets/web-panel/assets/{index-Dq9SDl82.js → index-BDIN9KWp.js} +1 -1
- package/src/assets/web-panel/assets/{index-BQr5mmyc.js → index-BEQha9Ur.js} +1 -1
- package/src/assets/web-panel/assets/{index-Cjxxw-1P.js → index-BFFyqn3k.js} +1 -1
- package/src/assets/web-panel/assets/{index-MGJzHAw_.js → index-BOquBdmK.js} +1 -1
- package/src/assets/web-panel/assets/{index-DbmhJVc3.js → index-BQ6b5kJR.js} +1 -1
- package/src/assets/web-panel/assets/{index-DFErisPY.js → index-BaUmYzDB.js} +1 -1
- package/src/assets/web-panel/assets/{index-9JeeBF92.js → index-Bb5XCEKT.js} +1 -1
- package/src/assets/web-panel/assets/{index-ChGe005u.js → index-BdOccG1D.js} +1 -1
- package/src/assets/web-panel/assets/{index-BObyCZ2w.js → index-Bebe5WYu.js} +1 -1
- package/src/assets/web-panel/assets/index-BlS3EjXM.js +1 -0
- package/src/assets/web-panel/assets/{index-CaJvbmCw.js → index-BsRmNZCk.js} +1 -1
- package/src/assets/web-panel/assets/{index-CD8egQCF.js → index-CB1Thk9t.js} +1 -1
- package/src/assets/web-panel/assets/{index-CmkppTkH.js → index-CSHz8UnK.js} +1 -1
- package/src/assets/web-panel/assets/{index-a_H30VZX.js → index-Cexk6Y1r.js} +1 -1
- package/src/assets/web-panel/assets/{index-hBzgHVea.js → index-CtC-B6Zy.js} +1 -1
- package/src/assets/web-panel/assets/{index-DZ16Oxcu.js → index-D08s-CJ_.js} +1 -1
- package/src/assets/web-panel/assets/{index-PiL6D-FC.js → index-D6B_ELy6.js} +1 -1
- package/src/assets/web-panel/assets/{index-BoZnaD3Q.js → index-D6pWvvp-.js} +1 -1
- package/src/assets/web-panel/assets/{index-BMcTUbpz.js → index-D9QfJDQg.js} +1 -1
- package/src/assets/web-panel/assets/{index-BiPmMm38.js → index-DCCEt-pU.js} +1 -1
- package/src/assets/web-panel/assets/{index-BMsRfvkp.js → index-DCgr2bDL.js} +1 -1
- package/src/assets/web-panel/assets/{index-BgvrlrtJ.js → index-DNi_t23H.js} +1 -1
- package/src/assets/web-panel/assets/{index-DgYmI2pD.js → index-DOBzu5UO.js} +1 -1
- package/src/assets/web-panel/assets/{index-0oRhV07J.js → index-DOtNt1m7.js} +1 -1
- package/src/assets/web-panel/assets/{index-DmUZGqe2.js → index-DQnXn3vs.js} +1 -1
- package/src/assets/web-panel/assets/{index-DuIfomtv.js → index-DXip1xUj.js} +1 -1
- package/src/assets/web-panel/assets/{index-PCe8NA3J.js → index-DoRIPzwv.js} +1 -1
- package/src/assets/web-panel/assets/index-DwIMwROa.js +1 -0
- package/src/assets/web-panel/assets/{index-Dd0OgZmt.js → index-Dzh9Ud2R.js} +3 -3
- package/src/assets/web-panel/assets/{index-BH5PxoVq.js → index-DzhMohzV.js} +1 -1
- package/src/assets/web-panel/assets/{index-CfVl0Oqt.js → index-IW9dUJK_.js} +1 -1
- package/src/assets/web-panel/assets/{index-BPwv3l6X.js → index-WrMfehhj.js} +1 -1
- package/src/assets/web-panel/assets/{index-uDSUo2y2.js → index-gvsatTPZ.js} +1 -1
- package/src/assets/web-panel/assets/{index-BVHaJNpn.js → index-lEDZUWRO.js} +1 -1
- package/src/assets/web-panel/assets/{index-5oK4ICcR.js → index-mqlLcSgP.js} +1 -1
- package/src/assets/web-panel/assets/{index-BxJC59QT.js → index-owU4npmQ.js} +1 -1
- package/src/assets/web-panel/assets/{index-DVfUt2bK.js → index-wnmY4P7_.js} +1 -1
- package/src/assets/web-panel/assets/{initDefaultProps-CCYgHcTH.js → initDefaultProps-DfHPrIA5.js} +1 -1
- package/src/assets/web-panel/assets/{motion-4Yr4ZkjE.js → motion-CCzrK3c5.js} +1 -1
- package/src/assets/web-panel/assets/{move-ZP90E-ji.js → move-B2uu6I9f.js} +1 -1
- package/src/assets/web-panel/assets/{mtc-parser-s0N3WyRA.js → mtc-parser-DtFu2-C_.js} +1 -1
- package/src/assets/web-panel/assets/{omit-BZ6gx9Kf.js → omit-BFjLuAHb.js} +1 -1
- package/src/assets/web-panel/assets/parsers-DftYMnlk.js +3 -0
- package/src/assets/web-panel/assets/{pickAttrs-DxUtFOOQ.js → pickAttrs-DfsjYq45.js} +1 -1
- package/src/assets/web-panel/assets/{placementArrow-Btzjn1hK.js → placementArrow-CDdYIVXw.js} +1 -1
- package/src/assets/web-panel/assets/{responsiveObserve-DYcoe1XJ.js → responsiveObserve-CfrplFjn.js} +1 -1
- package/src/assets/web-panel/assets/{slide-BiBewdr4.js → slide-DHNX5Xwt.js} +1 -1
- package/src/assets/web-panel/assets/{statusUtils-D9vt0dkG.js → statusUtils-BI-C3SSk.js} +1 -1
- package/src/assets/web-panel/assets/{styleChecker-BXsm_vG0.js → styleChecker-C5Y3Oyy2.js} +1 -1
- package/src/assets/web-panel/assets/{useFlexGapSupport-CIG8zET4.js → useFlexGapSupport-atF45w0U.js} +1 -1
- package/src/assets/web-panel/assets/{useFs-ChFPF8GI.js → useFs-C4M8-xm9.js} +1 -1
- package/src/assets/web-panel/assets/{usePersonalDataHub-D4CzWJhY.js → usePersonalDataHub-jjZdnfs_.js} +1 -1
- package/src/assets/web-panel/assets/{vnode-6V5tphk5.js → vnode-BRTSCmU3.js} +1 -1
- package/src/assets/web-panel/assets/{zoom-B2H_VwfU.js → zoom-BaS5ZYRC.js} +1 -1
- package/src/assets/web-panel/index.html +1 -1
- package/src/command-help-index.json +1 -1
- package/src/commands/llm.js +45 -0
- package/src/commands/setup.js +100 -47
- package/src/data/changelog.json +91 -0
- package/src/gateways/ws/message-dispatcher.js +68 -0
- package/src/lib/config-manager.js +23 -5
- package/src/lib/config-schema.js +10 -5
- package/src/lib/evolution/evolution-artifact-ports.js +304 -0
- package/src/lib/evolution/evolution-file-retained-segment-backend.js +291 -0
- package/src/lib/evolution/evolution-file-witness.js +111 -6
- package/src/lib/evolution/evolution-immutable-ledger-segment-store.js +112 -0
- package/src/lib/evolution/evolution-ledger-file-backend.js +18 -1
- package/src/lib/evolution/evolution-ledger-manifest-chain.js +65 -1
- package/src/lib/evolution/evolution-ledger-manifest-witness-adapter.js +41 -2
- package/src/lib/evolution/evolution-ledger-v2-journal.js +126 -0
- package/src/lib/evolution/evolution-ledger-v2-manifest-backend.js +261 -2
- package/src/lib/evolution/evolution-ledger.js +215 -27
- package/src/lib/evolution/evolution-witness-contracts.js +5 -0
- package/src/lib/evolution/evolution-witness-segments.js +2 -0
- package/src/lib/evolution/rrsi-observed-text-index.js +216 -12
- package/src/lib/evolution/rrsi-tenant-index-anchor-history.js +30 -0
- package/src/lib/lk-account-api.cjs +245 -0
- package/src/lib/lk-account.js +20 -0
- package/src/lib/lk-model-catalog.json +1840 -0
- package/src/lib/llm-channel-presets.js +111 -0
- package/src/lib/llm-connection-config.js +110 -19
- package/src/lib/llm-connection-resolution.js +3 -1
- package/src/lib/llm-onboarding-catalog.json +16 -16
- package/src/lib/read-file-loop-guard.js +36 -12
- package/src/assets/web-panel/assets/Providers-CpAXh_6c.css +0 -1
- package/src/assets/web-panel/assets/Providers-q9dSBLsP.js +0 -1
- package/src/assets/web-panel/assets/index-CLafGdQC.js +0 -1
- package/src/assets/web-panel/assets/index-DYHw3Xoi.js +0 -1
- package/src/assets/web-panel/assets/parsers-YNLm7sQ0.js +0 -4
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
function p(a){const e=a.split(`
|
|
2
|
+
`),n=[];let i="built-in";for(const l of e){const t=l.trim();if(!t||t.startsWith("─")||t.startsWith("="))continue;const r=t.match(/^([a-z][a-z0-9-]+)\s+\(\d+\)$/);if(r){i=r[1];continue}const s=t.match(/^[●•]\s+([a-z][a-z0-9-]+)\s+(.+)$/);if(s){let c=s[2].trim();const m=c.match(/\s+\[(bundled|project|managed|workspace|marketplace)\]$/);m&&(c=c.slice(0,-m[0].length).trim());const u=i.includes("agent")?"agent":i.includes("llm")?"llm-query":i==="cli-direct"||i.includes("cli")?"cli-direct":"built-in";n.push({name:s[1],description:c,category:i,executionMode:u});continue}const o=t.match(/^([a-z][a-z0-9-]+)\s+[-–]\s+(.+)/)||t.match(/^([a-z][a-z0-9-]+)\s{2,}(.+)/);o&&n.push({name:o[1],description:o[2],category:i,executionMode:i.includes("agent")?"agent":i.includes("llm")?"llm-query":i.includes("cli")?"cli-direct":"built-in"})}return n}const d=[{name:"anthropic",label:"Anthropic (Claude)",icon:"🤖"},{name:"openai",label:"OpenAI (GPT)",icon:"🧠"},{name:"ollama",label:"Ollama (本地)",icon:"🦙"},{name:"deepseek",label:"DeepSeek",icon:"🔍"},{name:"gemini",label:"Google Gemini",icon:"✨"},{name:"volcengine",label:"火山引擎 (豆包)",icon:"🌋"},{name:"dashscope",label:"通义千问 (DashScope)",icon:"🌊"},{name:"kimi",label:"Kimi (月之暗面)",icon:"🌙"},{name:"minimax",label:"MiniMax (海螺AI)",icon:"🐚"},{name:"mistral",label:"Mistral AI",icon:"💨"}];function h(a){const e=[];for(const n of d)e.push({...n,configured:a.toLowerCase().includes(n.name),active:a.match(new RegExp(`\\*\\s*${n.name}`,"i"))!==null,status:"unknown"});if(!e.find(n=>n.active)){const n=a.match(/active[:\s]+(\w+)/i);if(n){const i=e.find(l=>l.name===n[1].toLowerCase());i&&(i.active=!0)}}return e}function f(a){return a.split(`
|
|
3
|
+
`).map(e=>e.trim()).filter(e=>e&&!e.startsWith("#")&&!e.startsWith("─")&&e.includes(":")).map(e=>({name:e,size:""})).slice(0,20)}export{h as a,f as b,p};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as i}from"./index-
|
|
1
|
+
import{h as i}from"./index-Dzh9Ud2R.js";const l=`accept acceptcharset accesskey action allowfullscreen allowtransparency
|
|
2
2
|
alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
|
|
3
3
|
charset checked classid classname colspan cols content contenteditable contextmenu
|
|
4
4
|
controls coords crossorigin data datetime default defer dir disabled download draggable
|
package/src/assets/web-panel/assets/{placementArrow-Btzjn1hK.js → placementArrow-CDdYIVXw.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as i}from"./index-
|
|
1
|
+
import{h as i}from"./index-Dzh9Ud2R.js";const L=(e,o,t,n,p)=>{const r=e/2,a=0,s=r,m=t*1/Math.sqrt(2),h=r-t*(1-1/Math.sqrt(2)),b=r-o*(1/Math.sqrt(2)),u=t*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),g=2*r-b,w=u,d=2*r-m,c=h,A=2*r-a,x=s,v=r*Math.sqrt(2)+t*(Math.sqrt(2)-2),$=t*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:v,height:v,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${o}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:p,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:n,clipPath:{_multi_value_:!0,value:[`polygon(${$}px 100%, 50% ${$}px, ${2*r-$}px 100%, ${$}px 100%)`,`path('M ${a} ${s} A ${t} ${t} 0 0 0 ${m} ${h} L ${b} ${u} A ${o} ${o} 0 0 1 ${g} ${w} L ${d} ${c} A ${t} ${t} 0 0 0 ${A} ${x} Z')`]},content:'""'}}},f={adjustX:1,adjustY:1},l=[0,0],j={left:{points:["cr","cl"],overflow:f,offset:[-4,0],targetOffset:l},right:{points:["cl","cr"],overflow:f,offset:[4,0],targetOffset:l},top:{points:["bc","tc"],overflow:f,offset:[0,-4],targetOffset:l},bottom:{points:["tc","bc"],overflow:f,offset:[0,4],targetOffset:l},topLeft:{points:["bl","tl"],overflow:f,offset:[0,-4],targetOffset:l},leftTop:{points:["tr","tl"],overflow:f,offset:[-4,0],targetOffset:l},topRight:{points:["br","tr"],overflow:f,offset:[0,-4],targetOffset:l},rightTop:{points:["tl","tr"],overflow:f,offset:[4,0],targetOffset:l},bottomRight:{points:["tr","br"],overflow:f,offset:[0,4],targetOffset:l},rightBottom:{points:["bl","br"],overflow:f,offset:[4,0],targetOffset:l},bottomLeft:{points:["tl","bl"],overflow:f,offset:[0,4],targetOffset:l},leftBottom:{points:["br","bl"],overflow:f,offset:[-4,0],targetOffset:l}},M={adjustX:1,adjustY:1},O={adjustX:0,adjustY:0},T=[0,0];function k(e){return typeof e=="boolean"?e?M:O:i(i({},O),e)}function Y(e){const{arrowWidth:o=4,horizontalArrowShift:t=16,verticalArrowShift:n=8,autoAdjustOverflow:p,arrowPointAtCenter:r}=e,a={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(t+o),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(n+o)]},topRight:{points:["br","tc"],offset:[t+o,-4]},rightTop:{points:["tl","cr"],offset:[4,-(n+o)]},bottomRight:{points:["tr","bc"],offset:[t+o,4]},rightBottom:{points:["bl","cr"],offset:[4,n+o]},bottomLeft:{points:["tl","bc"],offset:[-(t+o),4]},leftBottom:{points:["br","cl"],offset:[-4,n+o]}};return Object.keys(a).forEach(s=>{a[s]=r?i(i({},a[s]),{overflow:k(p),targetOffset:T}):i(i({},j[s]),{overflow:k(p)}),a[s].ignoreShake=!0}),a}function _(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return e.map(t=>`${o}${t}`).join(",")}const X=8;function B(e){const o=X,{sizePopupArrow:t,contentRadius:n,borderRadiusOuter:p,limitVerticalRadius:r}=e,a=t/2-Math.ceil(p*(Math.sqrt(2)-1)),s=(n>12?n+2:12)-a,m=r?o-a:s;return{dropdownArrowOffset:s,dropdownArrowOffsetVertical:m}}function q(e,o){const{componentCls:t,sizePopupArrow:n,marginXXS:p,borderRadiusXS:r,borderRadiusOuter:a,boxShadowPopoverArrow:s}=e,{colorBg:m,showArrowCls:h,contentRadius:b=e.borderRadiusLG,limitVerticalRadius:u}=o,{dropdownArrowOffsetVertical:g,dropdownArrowOffset:w}=B({sizePopupArrow:n,contentRadius:b,borderRadiusOuter:a,limitVerticalRadius:u}),d=n/2+p;return{[t]:{[`${t}-arrow`]:[i(i({position:"absolute",zIndex:1,display:"block"},L(n,r,a,m,s)),{"&:before":{background:m}})],[[`&-placement-top ${t}-arrow`,`&-placement-topLeft ${t}-arrow`,`&-placement-topRight ${t}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${t}-arrow`]:{left:{_skip_check_:!0,value:w}},[`&-placement-topRight ${t}-arrow`]:{right:{_skip_check_:!0,value:w}},[[`&-placement-bottom ${t}-arrow`,`&-placement-bottomLeft ${t}-arrow`,`&-placement-bottomRight ${t}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${t}-arrow`]:{left:{_skip_check_:!0,value:w}},[`&-placement-bottomRight ${t}-arrow`]:{right:{_skip_check_:!0,value:w}},[[`&-placement-left ${t}-arrow`,`&-placement-leftTop ${t}-arrow`,`&-placement-leftBottom ${t}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${t}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${t}-arrow`]:{top:g},[`&-placement-leftBottom ${t}-arrow`]:{bottom:g},[[`&-placement-right ${t}-arrow`,`&-placement-rightTop ${t}-arrow`,`&-placement-rightBottom ${t}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${t}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${t}-arrow`]:{top:g},[`&-placement-rightBottom ${t}-arrow`]:{bottom:g},[_(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(c=>c+=":not(&-arrow-hidden)"),h)]:{paddingBottom:d},[_(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(c=>c+=":not(&-arrow-hidden)"),h)]:{paddingTop:d},[_(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(c=>c+=":not(&-arrow-hidden)"),h)]:{paddingRight:{_skip_check_:!0,value:d}},[_(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(c=>c+=":not(&-arrow-hidden)"),h)]:{paddingLeft:{_skip_check_:!0,value:d}}}}}export{X as M,Y as a,B as b,q as g,j as p,L as r};
|
package/src/assets/web-panel/assets/{responsiveObserve-DYcoe1XJ.js → responsiveObserve-CfrplFjn.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{J as o,h}from"./index-
|
|
1
|
+
import{J as o,h}from"./index-Dzh9Ud2R.js";import{f as x}from"./vendor-BXcBOG8b.js";const b=["xxxl","xxl","xl","lg","md","sm","xs"],p=r=>({xs:`(max-width: ${r.screenXSMax}px)`,sm:`(min-width: ${r.screenSM}px)`,md:`(min-width: ${r.screenMD}px)`,lg:`(min-width: ${r.screenLG}px)`,xl:`(min-width: ${r.screenXL}px)`,xxl:`(min-width: ${r.screenXXL}px)`,xxxl:`{min-width: ${r.screenXXXL}px}`});function w(){const[,r]=o();return x(()=>{const n=p(r.value),i=new Map;let a=-1,c={};return{matchHandlers:{},dispatch(e){return c=e,i.forEach(t=>t(c)),i.size>=1},subscribe(e){return i.size||this.register(),a+=1,i.set(a,e),e(c),a},unsubscribe(e){i.delete(e),i.size||this.unregister()},unregister(){Object.keys(n).forEach(e=>{const t=n[e],s=this.matchHandlers[t];s?.mql.removeListener(s?.listener)}),i.clear()},register(){Object.keys(n).forEach(e=>{const t=n[e],s=l=>{let{matches:m}=l;this.dispatch(h(h({},c),{[e]:m}))},d=window.matchMedia(t);d.addListener(s),this.matchHandlers[t]={mql:d,listener:s},s(d)})},responsiveMap:n}})}export{b as r,w as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{K as n}from"./index-
|
|
1
|
+
import{K as n}from"./index-Dzh9Ud2R.js";import{i as e}from"./motion-CCzrK3c5.js";const m=new n("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),f=new n("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),c=new n("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),l=new n("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),y=new n("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),p=new n("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),O=new n("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),d=new n("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),g={"slide-up":{inKeyframes:m,outKeyframes:f},"slide-down":{inKeyframes:c,outKeyframes:l},"slide-left":{inKeyframes:y,outKeyframes:p},"slide-right":{inKeyframes:O,outKeyframes:d}},K=(t,r)=>{const{antCls:a}=t,i=`${a}-${r}`,{inKeyframes:s,outKeyframes:o}=g[r];return[e(i,s,o,t.motionDurationMid),{[`
|
|
2
2
|
${i}-enter,
|
|
3
3
|
${i}-appear
|
|
4
4
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:t.motionEaseOutQuint},[`${i}-leave`]:{animationTimingFunction:t.motionEaseInQuint}}]};export{f as a,c as b,m as c,K as i,l as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./index-
|
|
1
|
+
import{i as e}from"./index-Dzh9Ud2R.js";function r(a,s,t){return e({[`${a}-status-success`]:s==="success",[`${a}-status-warning`]:s==="warning",[`${a}-status-error`]:s==="error",[`${a}-status-validating`]:s==="validating",[`${a}-has-feedback`]:t})}const c=(a,s)=>s||a;export{c as a,r as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as d}from"./index-
|
|
1
|
+
import{B as d}from"./index-Dzh9Ud2R.js";const i=()=>d()&&window.document.documentElement,c=e=>{if(d()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(r=>r in n.style)}return!1},u=(e,t)=>{if(!c(e))return!1;const n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function s(e,t){return!Array.isArray(e)&&t!==void 0?u(e,t):c(e)}let o;const p=()=>{if(!i())return!1;if(o!==void 0)return o;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),o=e.scrollHeight===1,document.body.removeChild(e),o};export{i as c,p as d,s as i};
|
package/src/assets/web-panel/assets/{useFlexGapSupport-CIG8zET4.js → useFlexGapSupport-atF45w0U.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as o}from"./styleChecker-
|
|
1
|
+
import{d as o}from"./styleChecker-C5Y3Oyy2.js";import{o as t,s}from"./vendor-BXcBOG8b.js";const r=(()=>{const e=s(!1);return t(()=>{e.value=o()}),e});export{r as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as d}from"./index-
|
|
1
|
+
import{u as d}from"./index-Dzh9Ud2R.js";import{u as c}from"./useShellMode-CgR0wCYM.js";function u({accept:l=""}={}){return new Promise(a=>{if(typeof document>"u"){a({canceled:!0,path:null,content:null});return}const n=document.createElement("input");n.type="file",l&&(n.accept=l),n.style.display="none",document.body.appendChild(n);let o=!1;const i=()=>{n.parentNode&&n.parentNode.removeChild(n)},r=()=>{if(o)return;o=!0;const e=n.files&&n.files[0];if(!e){i(),a({canceled:!0,path:null,content:null});return}const t=new FileReader;t.onload=()=>{i(),a({canceled:!1,path:e.name,size:e.size,content:typeof t.result=="string"?t.result:""})},t.onerror=()=>{i(),a({canceled:!1,path:e.name,size:e.size,content:null,reason:"read_failed"})},t.readAsText(e)};n.addEventListener("change",r),n.click()})}function f(l,{defaultPath:a="download.txt"}={}){if(typeof document>"u")return{canceled:!0,path:null};const n=new Blob([l],{type:"text/plain"}),o=URL.createObjectURL(n),i=document.createElement("a");return i.href=o,i.download=a,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(o),{canceled:!1,path:a}}function p(l){if(!Array.isArray(l))return"";const a=[];for(const n of l)if(Array.isArray(n.extensions))for(const o of n.extensions)a.push(`.${o.replace(/^\./,"")}`);return a.join(",")}function m(){const l=d();async function a(r={}){if(c().isEmbedded){const e=await l.sendRaw({type:"fs.openDialog",title:r.title,filters:r.filters},6e4);if(e&&e.ok===!1)throw new Error(e.error||"fs.openDialog failed");const t=e?.result??e;return{canceled:!!t.canceled,path:t.path??null,content:t.content??null,size:t.size,reason:t.reason}}return u({accept:p(r.filters)})}async function n(r,e={}){if(typeof r!="string")throw new Error("content must be a string");if(c().isEmbedded){const t=await l.sendRaw({type:"fs.saveDialog",title:e.title,defaultPath:e.defaultPath,filters:e.filters,content:r},6e4);if(t&&t.ok===!1)throw new Error(t.error||"fs.saveDialog failed");const s=t?.result??t;return{canceled:!!s.canceled,path:s.path??null}}return f(r,{defaultPath:e.defaultPath})}async function o(r,e={}){const t=JSON.stringify(r,null,2),s={...e,defaultPath:e.defaultPath||"data.json",filters:e.filters||[{name:"JSON",extensions:["json"]}]};return n(t,s)}async function i(r={}){if(!c().isEmbedded)return{canceled:!0,path:null,initialized:!1,unsupported:!0};const e=await l.sendRaw({type:"fs.openDirectory",title:r.title},6e4);if(e&&e.ok===!1)throw new Error(e.error||"fs.openDirectory failed");const t=e?.result??e;return{canceled:!!t.canceled,path:t.path??null,initialized:!!t.initialized}}return{pickFileText:a,saveText:n,saveJson:o,pickDirectory:i}}export{m as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as v}from"./index-
|
|
1
|
+
import{u as v}from"./index-Dzh9Ud2R.js";import{u as _}from"./useShellMode-CgR0wCYM.js";function d(r){if(!r)return r;if(r.error)throw new Error(r.error);return r.result!==void 0?r.result:r}async function p(r,s={},e=!0){try{if(e!==!0||!r||typeof r.sendRaw!="function")return{status:"unavailable",path:null};const a=await r.sendRaw({type:"fs.openDirectory",title:s.title},6e4);if(a&&(a.ok===!1||a.error))return{status:"unavailable",path:null};const t=a&&a.result!==void 0?a.result:a;return t&&(t.ok===!1||t.error||t.unsupported===!0)?{status:"unavailable",path:null}:t&&t.canceled===!0?{status:"cancelled",path:null}:t&&typeof t.path=="string"&&t.path.length>0?{status:"selected",path:t.path}:{status:"unavailable",path:null}}catch{return{status:"unavailable",path:null}}}function b(r,s,e,a,t){return typeof r.onMessage!="function"||typeof r.sendRaw!="function"?r.sendRaw({type:s,...e},t).then(d):new Promise((n,u)=>{const l=typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`,w=`${s}.event`,m=`${s}.end`;let c=!1,h=()=>{};const o=(i,f)=>{if(!c){c=!0,clearTimeout(g);try{h()}catch{}i(f)}},g=setTimeout(()=>{o(u,new Error(`stream timeout (${t}ms): ${s}`))},t),y=r.onMessage(i=>{if(!(c||!i)&&!(i.id!==l&&i.requestId!==l)){if(i.type===w){if(typeof a=="function")try{a(i.event||i)}catch{}return}if(i.type===m){o(n,d(i));return}i.type==="error"&&o(u,new Error(i.message||"stream error"))}});h=typeof y=="function"?y:()=>{},Promise.resolve(r.sendRaw({id:l,type:s,...e},t)).catch(()=>{})})}function k(){const r=v(),s=_(),e=(a,t={},n=3e4)=>r.sendRaw({type:a,...t},n).then(d);return{async health(){return await e("personal-data-hub.health",{},8e3)},async stats(){return await e("personal-data-hub.stats",{},8e3)},async listAdapters(){return await e("personal-data-hub.list-adapters",{},5e3)},async pickFile(a={}){try{const t=await r.sendRaw({type:"fs.openDialog",title:a.title,filters:a.filters},6e4),n=t&&t.result!==void 0?t.result:t,u=n&&typeof n.path=="string"?n.path:n&&typeof n.filePath=="string"?n.filePath:null;return n&&n.canceled!==!0&&u?u:null}catch{return null}},async pickDirectoryResult(a={}){return await p(r,a,s.isEmbedded)},async pickDirectory(a={}){const t=await p(r,a,s.isEmbedded);return t.status==="selected"?t.path:null},async adapterReadiness(a){return await e("personal-data-hub.adapter-readiness",Number.isInteger(a)?{timeoutMs:a}:{},15e3)},async syncAdapter(a,t={}){return await e("personal-data-hub.sync-adapter",{name:a,options:t},6e5)},async syncAll(a={}){return await e("personal-data-hub.sync-all",{options:a},6e5)},async registerMock({name:a="mock",count:t=20,seed:n=1}={}){return await e("personal-data-hub.register-mock",{name:a,count:t,seed:n})},async unregister(a){return await e("personal-data-hub.unregister",{name:a})},async ask(a,t={}){return await e("personal-data-hub.ask",{question:a,options:t},18e4)},async queryEvents(a={}){return await e("personal-data-hub.query-events",a,1e4)},async recentAudit(a={}){return await e("personal-data-hub.recent-audit",a,1e4)},async searchEvents(a={}){return await e("personal-data-hub.search-events",a,15e3)},async facetCounts(a={}){return await e("personal-data-hub.facet-counts",a,1e4)},async testEmailAuth(a){return await e("personal-data-hub.test-email-auth",{account:a},3e4)},async registerEmail(a,t={}){return await e("personal-data-hub.register-email",{account:a,opts:t},15e3)},async unregisterEmail(a){return await e("personal-data-hub.unregister-email",{email:a},5e3)},async listEmailAccounts(){return await e("personal-data-hub.list-email-accounts",{},5e3)},async activateEmail(a){return await e("personal-data-hub.activate-email",{email:a},5e3)},async eventDetail(a){return await e("personal-data-hub.event-detail",{eventId:a},5e3)},async syncAdapterStream(a,t={},n){return await b(r,"personal-data-hub.sync-adapter-stream",{name:a,options:t},n,6e5)},async syncAllStream(a={},t){return await b(r,"personal-data-hub.sync-all-stream",{options:a},t,9e5)},async registerAlipay(a,t={}){return await e("personal-data-hub.register-alipay",{account:a,opts:t},15e3)},async unregisterAlipay(a){return await e("personal-data-hub.unregister-alipay",{email:a},5e3)},async listAlipayAccounts(){return await e("personal-data-hub.list-alipay-accounts",{},5e3)},async activateAlipay(a){return await e("personal-data-hub.activate-alipay",{email:a},5e3)},async importAlipayBill({zipPath:a,csvPath:t,zipPassword:n}={}){return await e("personal-data-hub.import-alipay-bill",{zipPath:a,csvPath:t,zipPassword:n},3e5)},async reviewQueueList(a=50){return await e("personal-data-hub.review-queue-list",{limit:a},5e3)},async reviewDecision(a,t){return await e("personal-data-hub.review-decision",{reviewId:a,decision:t},5e3)},async manualMerge(a,t){return await e("personal-data-hub.manual-merge",{aId:a,bId:t},5e3)},async manualUnmerge(a){return await e("personal-data-hub.manual-unmerge",{personId:a},5e3)},async resolverDrain(a=50){return await e("personal-data-hub.resolver-drain",{limit:a},18e4)},async resolverStats(){return await e("personal-data-hub.resolver-stats",{},5e3)},async skillsList(){return await e("personal-data-hub.skills-list",{},5e3)},async runSkill(a,t={}){return await e("personal-data-hub.run-skill",{name:a,options:t},12e4)},async openAichatLogin(a,t={}){return await e("personal-data-hub.aichat-open-login",{vendor:a,opts:t},1e4)},async probeAichatCookies(a,t){return await e("personal-data-hub.aichat-probe-cookies",{vendor:a,cookieHeader:t},1e4)},async registerAichatVendor(a,t,n={}){return await e("personal-data-hub.aichat-register-vendor",{vendor:a,cookies:t,opts:n},3e4)},async rotateAichatLogin(a){return await e("personal-data-hub.aichat-rotate-login",{vendor:a},1e4)},async listAichatAccounts(){return await e("personal-data-hub.list-aichat-accounts",{},5e3)},async unregisterAichat(a){return await e("personal-data-hub.unregister-aichat",{vendor:a},5e3)},async aichatHealthCheckOnce(){return await e("personal-data-hub.aichat-health-check-once",{},3e4)},async probeWechatEnv(){return await e("personal-data-hub.wechat-env-probe",{},15e3)},async registerWechat({account:a,dbPath:t,wechatDataPath:n,fridaOpts:u,keyProviderOverride:l}={}){return await e("personal-data-hub.register-wechat",{account:a,dbPath:t,wechatDataPath:n,fridaOpts:u,keyProviderOverride:l},45e3)},async listWechatAccounts(){return await e("personal-data-hub.list-wechat-accounts",{},5e3)},async activateWechat(a,t={}){return await e("personal-data-hub.activate-wechat",{uin:a,fridaOpts:t.fridaOpts,keyProviderOverride:t.keyProviderOverride},45e3)},async unregisterWechat(a){return await e("personal-data-hub.unregister-wechat",{uin:a},5e3)},async bilibiliAdbSync(a={}){return await e("personal-data-hub.bilibili-adb-sync",{limits:a.limits,stagingDir:a.stagingDir,displayName:a.displayName},12e4)},async bilibiliAdbDoctor(){return await e("personal-data-hub.bilibili-adb-doctor",{},15e3)},async weiboAdbSync(a={}){return await e("personal-data-hub.weibo-adb-sync",{limits:a.limits,stagingDir:a.stagingDir,displayName:a.displayName},6e4)},async xhsAdbSync(a={}){return await e("personal-data-hub.xhs-adb-sync",{limits:a.limits,stagingDir:a.stagingDir,displayName:a.displayName},6e4)},async toutiaoAdbSync(a={}){return await e("personal-data-hub.toutiao-adb-sync",{limits:a.limits,stagingDir:a.stagingDir,displayName:a.displayName},9e4)},async kuaishouAdbSync(a={}){return await e("personal-data-hub.kuaishou-adb-sync",{limits:a.limits,stagingDir:a.stagingDir,displayName:a.displayName},12e4)},async bridgeDoctor(){return await e("personal-data-hub.bridge-doctor",{},6e4)},async douyinAdbSync(a={}){return await e("personal-data-hub.douyin-adb-sync",{uid:a.uid,limits:a.limits,stagingDir:a.stagingDir,displayName:a.displayName},6e4)}}}export{k as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{N as i,h as a,w as l}from"./index-
|
|
1
|
+
import{N as i,h as a,w as l}from"./index-Dzh9Ud2R.js";import{a6 as o,k as d,C as g,F as f,A as p}from"./vendor-BXcBOG8b.js";function c(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,u=e;if(Array.isArray(e)&&(u=i(e)[0]),!u)return null;const n=o(u,r,s);return n.props=t?a(a({},n.props),r):n.props,l(typeof n.props.class!="object"),n}function V(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e.map(s=>c(s,r,t))}function v(e,r,t){p(o(e,a({},r)),t)}const m=e=>(e||[]).some(r=>d(r)?!(r.type===g||r.type===f&&!m(r.children)):!0)?e:null;function h(e,r,t,s){var u;const n=(u=e[r])===null||u===void 0?void 0:u.call(e,t);return m(n)?n:s?.()}export{h as a,V as b,c,v as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{K as o}from"./index-
|
|
1
|
+
import{K as o}from"./index-Dzh9Ud2R.js";import{i as f}from"./motion-CCzrK3c5.js";const c=new o("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),y=new o("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),a=new o("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),s=new o("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),g=new o("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),O=new o("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),l=new o("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),u=new o("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),p=new o("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),z=new o("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),K=new o("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),w=new o("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),I={zoom:{inKeyframes:c,outKeyframes:y},"zoom-big":{inKeyframes:a,outKeyframes:s},"zoom-big-fast":{inKeyframes:a,outKeyframes:s},"zoom-left":{inKeyframes:l,outKeyframes:u},"zoom-right":{inKeyframes:p,outKeyframes:z},"zoom-up":{inKeyframes:g,outKeyframes:O},"zoom-down":{inKeyframes:K,outKeyframes:w}},h=(n,r)=>{const{antCls:m}=n,t=`${m}-${r}`,{inKeyframes:i,outKeyframes:e}=I[r];return[f(t,i,e,r==="zoom-big-fast"?n.motionDurationFast:n.motionDurationMid),{[`
|
|
2
2
|
${t}-enter,
|
|
3
3
|
${t}-appear
|
|
4
4
|
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:n.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${t}-leave`]:{animationTimingFunction:n.motionEaseInOutCirc}}]};export{h as i,c as z};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// Injected by web-ui-server.js at serve time
|
|
9
9
|
window.__CC_CONFIG__ = __CC_CONFIG_PLACEHOLDER__;
|
|
10
10
|
</script>
|
|
11
|
-
<script type="module" crossorigin src="./assets/index-
|
|
11
|
+
<script type="module" crossorigin src="./assets/index-Dzh9Ud2R.js"></script>
|
|
12
12
|
<link rel="modulepreload" crossorigin href="./assets/vendor-BXcBOG8b.js">
|
|
13
13
|
<link rel="modulepreload" crossorigin href="./assets/icons-DlxlFL4g.js">
|
|
14
14
|
<link rel="stylesheet" crossorigin href="./assets/index-CfX1DEtk.css">
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"itbudget": "Usage: chainlesschain itbudget [options] [command]\n\nIteration Budget V2 governance\n\nOptions:\n -h, --help display help for command\n\nCommands:\n enums-v2\n config-v2\n set-max-active-v2 <n>\n set-max-pending-v2 <n>\n set-idle-ms-v2 <n>\n set-stuck-ms-v2 <n>\n register-profile-v2 [options] <id> <owner>\n activate-profile-v2 <id>\n pause-profile-v2 <id>\n exhaust-profile-v2 <id>\n touch-profile-v2 <id>\n get-profile-v2 <id>\n list-profiles-v2\n create-run-v2 [options] <id> <profileId>\n start-run-v2 <id>\n complete-run-v2 <id>\n fail-run-v2 <id> [reason]\n cancel-run-v2 <id> [reason]\n get-run-v2 <id>\n list-runs-v2\n auto-pause-idle-v2\n auto-fail-stuck-v2\n gov-stats-v2\n reset-state-v2\n help [command] display help for command\n",
|
|
83
83
|
"kg": "Usage: chainlesschain kg [options] [command]\n\nKnowledge graph — entities, relations, multi-hop reasoning, stats\n\nOptions:\n -h, --help display help for command\n\nCommands:\n entity-types [options] List recommended entity types\n add [options] <name> <type> Add an entity\n list [options] List entities\n show [options] <entity-id> Show entity details\n remove <entity-id> Remove entity (cascades to relations)\n add-relation [options] <source-id> <target-id> <relation-type> Add a directed relation between two entities\n relations [options] List relations\n reason [options] <start-id> BFS multi-hop reasoning from a start entity\n stats [options] Graph statistics — counts, type distribution, density\n export [output-file] Export entire graph as JSON (stdout if no file)\n import [options] <input-file> Import graph from JSON file ({entities[], relations[]})\n entity-statuses-v2 [options] List V2 entity maturity statuses\n relation-statuses-v2 [options] List V2 relation statuses\n default-max-active-entities-per-owner Show default V2 per-owner active-entity cap\n max-active-entities-per-owner Show current V2 per-owner active-entity cap\n set-max-active-entities-per-owner <n> Set V2 per-owner active-entity cap\n default-max-relations-per-entity Show default V2 per-entity active-relation cap\n max-relations-per-entity Show current V2 per-entity active-relation cap\n set-max-relations-per-entity <n> Set V2 per-entity active-relation cap\n default-entity-stale-ms Show default V2 entity staleness threshold (ms)\n entity-stale-ms Show current V2 entity staleness threshold (ms)\n set-entity-stale-ms <ms> Set V2 entity staleness threshold (ms)\n default-relation-stale-ms Show default V2 relation staleness threshold (ms)\n relation-stale-ms Show current V2 relation staleness threshold (ms)\n set-relation-stale-ms <ms> Set V2 relation staleness threshold (ms)\n active-entity-count [options] Active V2 entity count (scoped by owner)\n active-relation-count [options] Active V2 relation count (scoped by source entity)\n register-entity-v2 [options] <entity-id> Register a V2 entity\n entity-v2 [options] <entity-id> Show V2 entity lifecycle state\n set-entity-status-v2 [options] <entity-id> <status> Transition a V2 entity status\n deprecate-entity [options] <entity-id> Deprecate a V2 entity (grace period)\n archive-entity-v2 [options] <entity-id> Archive a V2 entity\n remove-entity-v2 [options] <entity-id> Remove a V2 entity (terminal)\n revive-entity [options] <entity-id> Restore a V2 entity to active\n touch-entity-activity <entity-id> Bump lastActivityAt on a V2 entity\n register-relation-v2 [options] <relation-id> Register a V2 relation\n relation-v2 [options] <relation-id> Show V2 relation lifecycle state\n set-relation-status-v2 [options] <relation-id> <status> Transition a V2 relation status\n deprecate-relation [options] <relation-id> Deprecate a V2 relation\n remove-relation-v2 [options] <relation-id> Remove a V2 relation (terminal)\n revive-relation [options] <relation-id> Restore a V2 relation to active\n auto-archive-stale-entities [options] Bulk-flip stale V2 entities → archived\n auto-remove-stale-relations [options] Bulk-flip stale V2 relations → removed\n stats-v2 [options] V2 knowledge graph stats (all-enum-key zero-init)\n help [command] display help for command\n",
|
|
84
84
|
"learning": "Usage: chainlesschain learning [options] [command]\n\nLearning records — trajectories, reflection, and governed candidate attempts\n\nOptions:\n -h, --help display help for command\n\nCommands:\n stats [options] Show learning loop statistics\n trajectories [options] List recent trajectories\n export [options] Export all learning trajectories as JSON (module 101\n §8.3 backup)\n import [options] Import learning trajectories from a JSON array file\n (idempotent upsert by id; §8.3)\n reflect [options] Run a reflection cycle and generate report\n synthesize [options] Attempt a governed Skill candidate from eligible\n trajectories\n cleanup [options] Delete old trajectories beyond retention period\n help [command] display help for command\n",
|
|
85
|
-
"llm": "Usage: chainlesschain llm [options] [command]\n\nLLM provider management\n\nOptions:\n -h, --help display help for command\n\nCommands:\n capabilities [options] Inspect a static model capability\n profile without network or runtime\n verification\n configure [options] Atomically save an LLM connection from\n stdin JSON (secrets never enter argv)\n models [options] List available models from the current\n provider\n test [options] Test LLM provider connectivity\n (defaults to configured provider)\n providers [options] List all available LLM providers\n add-provider [options] <name> Add a custom LLM provider\n switch [options] <name> Switch the active LLM provider\n provider-maturities-v2 List V2 provider maturity states\n request-lifecycles-v2 List V2 request lifecycle states\n stats-v2 V2 llm-providers stats\n get-max-active-profiles-v2 Get max active profiles per owner (V2)\n set-max-active-profiles-v2 <n> Set max active profiles per owner (V2)\n get-max-pending-requests-v2 Get max pending requests per profile\n (V2)\n set-max-pending-requests-v2 <n> Set max pending requests per profile\n (V2)\n get-profile-idle-ms-v2 Get profile idle threshold (V2)\n set-profile-idle-ms-v2 <ms> Set profile idle threshold (V2)\n get-request-stuck-ms-v2 Get request stuck threshold (V2)\n set-request-stuck-ms-v2 <ms> Set request stuck threshold (V2)\n active-profile-count-v2 <ownerId> Active profile count for owner (V2)\n pending-request-count-v2 <profileId> Pending request count for profile (V2)\n register-profile-v2 [options] <id> Register a V2 profile\n get-profile-v2 <id> Get a V2 profile\n list-profiles-v2 [options] List V2 profiles\n set-profile-status-v2 <id> <next> Set V2 profile status\n activate-profile-v2 <id> Activate a V2 profile\n suspend-profile-v2 <id> Suspend a V2 profile\n retire-profile-v2 <id> Retire a V2 profile\n touch-profile-v2 <id> Touch a V2 profile\n create-request-v2 [options] <id> Create a V2 request\n get-request-v2 <id> Get a V2 request\n list-requests-v2 [options] List V2 requests\n set-request-status-v2 <id> <next> Set V2 request status\n start-request-v2 <id> Start a V2 request\n complete-request-v2 <id> Complete a V2 request\n fail-request-v2 <id> Fail a V2 request\n cancel-request-v2 <id> Cancel a V2 request\n auto-suspend-idle-profiles-v2 Auto-suspend idle V2 profiles\n auto-fail-stuck-requests-v2 Auto-fail stuck V2 requests\n help [command] display help for command\n",
|
|
85
|
+
"llm": "Usage: chainlesschain llm [options] [command]\n\nLLM provider management\n\nOptions:\n -h, --help display help for command\n\nCommands:\n connections [options] Read saved connection metadata without\n credentials\n account [options] Query fresh LK prices, account balance,\n Key quota and actual API charges\n capabilities [options] Inspect a static model capability\n profile without network or runtime\n verification\n configure [options] Atomically save an LLM connection from\n stdin JSON (secrets never enter argv)\n models [options] List available models from the current\n provider\n test [options] Test LLM provider connectivity\n (defaults to configured provider)\n providers [options] List all available LLM providers\n add-provider [options] <name> Add a custom LLM provider\n switch [options] <name> Switch the active LLM provider\n provider-maturities-v2 List V2 provider maturity states\n request-lifecycles-v2 List V2 request lifecycle states\n stats-v2 V2 llm-providers stats\n get-max-active-profiles-v2 Get max active profiles per owner (V2)\n set-max-active-profiles-v2 <n> Set max active profiles per owner (V2)\n get-max-pending-requests-v2 Get max pending requests per profile\n (V2)\n set-max-pending-requests-v2 <n> Set max pending requests per profile\n (V2)\n get-profile-idle-ms-v2 Get profile idle threshold (V2)\n set-profile-idle-ms-v2 <ms> Set profile idle threshold (V2)\n get-request-stuck-ms-v2 Get request stuck threshold (V2)\n set-request-stuck-ms-v2 <ms> Set request stuck threshold (V2)\n active-profile-count-v2 <ownerId> Active profile count for owner (V2)\n pending-request-count-v2 <profileId> Pending request count for profile (V2)\n register-profile-v2 [options] <id> Register a V2 profile\n get-profile-v2 <id> Get a V2 profile\n list-profiles-v2 [options] List V2 profiles\n set-profile-status-v2 <id> <next> Set V2 profile status\n activate-profile-v2 <id> Activate a V2 profile\n suspend-profile-v2 <id> Suspend a V2 profile\n retire-profile-v2 <id> Retire a V2 profile\n touch-profile-v2 <id> Touch a V2 profile\n create-request-v2 [options] <id> Create a V2 request\n get-request-v2 <id> Get a V2 request\n list-requests-v2 [options] List V2 requests\n set-request-status-v2 <id> <next> Set V2 request status\n start-request-v2 <id> Start a V2 request\n complete-request-v2 <id> Complete a V2 request\n fail-request-v2 <id> Fail a V2 request\n cancel-request-v2 <id> Cancel a V2 request\n auto-suspend-idle-profiles-v2 Auto-suspend idle V2 profiles\n auto-fail-stuck-requests-v2 Auto-fail stuck V2 requests\n help [command] display help for command\n",
|
|
86
86
|
"logs": "Usage: chainlesschain logs [options] <id>\n\nPrint recent output from a background agent\n\nOptions:\n -n, --lines <n> Number of lines (default: \"100\")\n -h, --help display help for command\n",
|
|
87
87
|
"loop": "Usage: chainlesschain loop [options] [parts...]\n\nRepeatedly run an agent prompt or `-- <command>` on a fixed interval\n\nOptions:\n --every <dur> Interval between iterations (e.g. 30s, 5m, 1.5h;\n bare number = seconds) (default: \"5m\")\n -n, --max-iterations <n> Stop after N iterations\n --until-exit-zero Stop once an iteration exits with code 0 (e.g.\n tests pass)\n --until <regex> Stop once an iteration's output matches this JS\n regex\n --dynamic Let each iteration self-pace via [[loop:next\n <dur>]] / [[loop:stop]] directives (prompt mode\n augments the prompt)\n --save [id] Persist this loop to a resumable session\n (auto-generates an id if omitted)\n --resume <id> Continue a previously --save'd loop session\n --json Print a JSON summary when the loop ends\n -h, --help display help for command\n",
|
|
88
88
|
"lowcode": "Usage: chainlesschain lowcode [options] [command]\n\nLow-code application platform\n\nOptions:\n -h, --help display help for command\n\nCommands:\n create [options] <name> Create a new low-code application\n list [options] List all low-code applications\n preview <app-id> Preview application info\n publish <app-id> Publish an application\n components [options] List available built-in components\n datasource [options] <app-id> <name> <type> Add a data source to an application\n versions [options] <app-id> Show version history for an application\n rollback <app-id> <version> Rollback application to a previous version\n export [options] <app-id> Export application definition\n categories [options] List component categories (V2)\n datasource-types [options] List supported data source types (V2)\n statuses [options] List canonical app statuses (V2)\n components-v2 [options] List built-in components with category filter (V2)\n datasource-v2 [options] <app-id> <name> <type> Register a validated data source (V2)\n test-connection [options] <datasource-id> Heuristic connection check for a data source (V2)\n set-status <app-id> <status> Update app status with validated transition (V2)\n archive <app-id> Archive an application (V2)\n status-history [options] <app-id> Show status transition history for an app (V2)\n clone [options] <source-id> Clone an application (V2)\n export-json [options] <app-id> Export an app as canonical JSON (V2)\n import-json <file> Import an app from a canonical JSON file (V2)\n stats-v2 [options] Low-code platform statistics (V2)\n deploy [options] <app-id> Deploy application as static HTML bundle\n enums-v2 Show V2 enums (app maturity + build lifecycle)\n config-v2 Show V2 config thresholds\n set-max-active-apps-v2 <n> Set max active apps per owner\n set-max-pending-builds-v2 <n> Set max pending builds per app\n set-app-idle-ms-v2 <n> Set app idle threshold (ms)\n set-build-stuck-ms-v2 <n> Set build stuck threshold (ms)\n register-app-v2 [options] <id> <owner> Register V2 app\n activate-app-v2 <id> Activate app\n pause-app-v2 <id> Pause app\n archive-app-v2 <id> Archive app (terminal)\n touch-app-v2 <id> Touch app lastTouchedAt\n get-app-v2 <id> Get V2 app\n list-apps-v2 List V2 apps\n create-build-v2 [options] <id> <appId> Create V2 app build (queued)\n start-build-v2 <id> Start build\n succeed-build-v2 <id> Succeed build\n fail-build-v2 <id> [reason] Fail build\n cancel-build-v2 <id> [reason] Cancel build\n get-build-v2 <id> Get V2 build\n list-builds-v2 List V2 builds\n auto-pause-idle-v2 Auto-pause idle active apps\n auto-fail-stuck-v2 Auto-fail stuck building builds\n gov-stats-v2 V2 governance aggregate stats\n help [command] display help for command\n",
|
package/src/commands/llm.js
CHANGED
|
@@ -46,6 +46,7 @@ import {
|
|
|
46
46
|
import { normalizeOllamaBaseUrl } from "../lib/ollama-base-url.js";
|
|
47
47
|
import {
|
|
48
48
|
readLlmConnectionInput,
|
|
49
|
+
readLlmConnection,
|
|
49
50
|
saveLlmConnection,
|
|
50
51
|
} from "../lib/llm-connection-config.js";
|
|
51
52
|
import {
|
|
@@ -54,6 +55,7 @@ import {
|
|
|
54
55
|
} from "../lib/llm-connection-probe.js";
|
|
55
56
|
import { resolveModelCapabilityProfile } from "../lib/model-capabilities.js";
|
|
56
57
|
import { resolveLlmConnection } from "../lib/llm-connection-resolution.js";
|
|
58
|
+
import { queryLkAccount, formatLkAccount } from "../lib/lk-account.js";
|
|
57
59
|
|
|
58
60
|
/**
|
|
59
61
|
* Resolve the effective `cc llm test` target from CLI flags + persisted config.
|
|
@@ -157,6 +159,49 @@ export function formatLlmCapabilities(profile) {
|
|
|
157
159
|
|
|
158
160
|
export function registerLlmCommand(program) {
|
|
159
161
|
const llm = program.command("llm").description("LLM provider management");
|
|
162
|
+
llm
|
|
163
|
+
.command("connections")
|
|
164
|
+
.description("Read saved connection metadata without credentials")
|
|
165
|
+
.option("--json", "Output structured metadata")
|
|
166
|
+
.action(() => {
|
|
167
|
+
try {
|
|
168
|
+
console.log(JSON.stringify(readLlmConnection()));
|
|
169
|
+
} catch {
|
|
170
|
+
logger.error("Could not read saved LLM connections");
|
|
171
|
+
process.exitCode = 1;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
llm
|
|
176
|
+
.command("account")
|
|
177
|
+
.description(
|
|
178
|
+
"Query fresh LK prices, account balance, Key quota and actual API charges",
|
|
179
|
+
)
|
|
180
|
+
.option("--days <days>", "Usage window, 1–30 days", "1")
|
|
181
|
+
.option("--scope <scope>", "Usage scope: key or user (all API keys)", "key")
|
|
182
|
+
.option(
|
|
183
|
+
"--model <model>",
|
|
184
|
+
"Model for dynamic pricing (default: saved model)",
|
|
185
|
+
)
|
|
186
|
+
.option("--limit <limit>", "Billing records per page, 1–200", "20")
|
|
187
|
+
.option("--offset <offset>", "Billing record offset", "0")
|
|
188
|
+
.option("--json", "Output structured account data without credentials")
|
|
189
|
+
.action(async (options) => {
|
|
190
|
+
try {
|
|
191
|
+
const result = await queryLkAccount(options);
|
|
192
|
+
console.log(
|
|
193
|
+
options.json
|
|
194
|
+
? JSON.stringify(result, null, 2)
|
|
195
|
+
: formatLkAccount(result),
|
|
196
|
+
);
|
|
197
|
+
if (Object.keys(result.errors).length === 4) process.exitCode = 1;
|
|
198
|
+
} catch {
|
|
199
|
+
logger.error(
|
|
200
|
+
"Could not query LK account. Save an LK connection with its own API key; check days, scope and pagination.",
|
|
201
|
+
);
|
|
202
|
+
process.exitCode = 1;
|
|
203
|
+
}
|
|
204
|
+
});
|
|
160
205
|
|
|
161
206
|
llm
|
|
162
207
|
.command("capabilities")
|
package/src/commands/setup.js
CHANGED
|
@@ -8,11 +8,7 @@ import {
|
|
|
8
8
|
VERSION,
|
|
9
9
|
} from "../constants.js";
|
|
10
10
|
import { ensureHomeDir, getConfigPath } from "../lib/paths.js";
|
|
11
|
-
import {
|
|
12
|
-
loadConfig,
|
|
13
|
-
setSecretConfigValue,
|
|
14
|
-
updateConfigAtomically,
|
|
15
|
-
} from "../lib/config-manager.js";
|
|
11
|
+
import { loadConfig } from "../lib/config-manager.js";
|
|
16
12
|
import {
|
|
17
13
|
isDockerAvailable,
|
|
18
14
|
isDockerComposeAvailable,
|
|
@@ -27,7 +23,16 @@ import {
|
|
|
27
23
|
askPassword,
|
|
28
24
|
} from "../lib/prompts.js";
|
|
29
25
|
import logger from "../lib/logger.js";
|
|
30
|
-
import {
|
|
26
|
+
import {
|
|
27
|
+
saveLlmConnection,
|
|
28
|
+
llmConnectionIdentity,
|
|
29
|
+
readLlmConnection,
|
|
30
|
+
} from "../lib/llm-connection-config.js";
|
|
31
|
+
import {
|
|
32
|
+
LK_CHANNEL,
|
|
33
|
+
LK_MODELS,
|
|
34
|
+
resolveLkConnection,
|
|
35
|
+
} from "../lib/llm-channel-presets.js";
|
|
31
36
|
import {
|
|
32
37
|
assessEvolutionDeploymentReadiness,
|
|
33
38
|
getEvolutionDeploymentStatus,
|
|
@@ -141,24 +146,62 @@ async function runSetup(options) {
|
|
|
141
146
|
name: info.name,
|
|
142
147
|
value: key,
|
|
143
148
|
}));
|
|
144
|
-
|
|
149
|
+
providerChoices.push({ name: "LK API (聚合平台 / 主备渠道)", value: "lk" });
|
|
150
|
+
const savedConnections = readLlmConnection().savedConnections;
|
|
151
|
+
savedConnections.forEach((row, index) =>
|
|
152
|
+
providerChoices.push({
|
|
153
|
+
name: `已保存:${row.channel === "lk" ? "LK API" : row.provider} · ${row.baseUrl} · ${row.model}`,
|
|
154
|
+
value: `saved:${index}`,
|
|
155
|
+
}),
|
|
156
|
+
);
|
|
157
|
+
let provider = await askSelect("Select LLM provider:", providerChoices);
|
|
158
|
+
let channelConnection;
|
|
159
|
+
if (provider.startsWith("saved:")) {
|
|
160
|
+
channelConnection = savedConnections[Number(provider.slice(6))];
|
|
161
|
+
provider = channelConnection.provider;
|
|
162
|
+
}
|
|
163
|
+
if (provider === "lk") {
|
|
164
|
+
const protocol = await askSelect(
|
|
165
|
+
"Select LK protocol (FB-5.2 requires Anthropic):",
|
|
166
|
+
["anthropic", "openai", "gemini"].map((id) => ({
|
|
167
|
+
name: LK_CHANNEL.protocols[id].label,
|
|
168
|
+
value: id,
|
|
169
|
+
})),
|
|
170
|
+
);
|
|
171
|
+
const address = await askSelect(
|
|
172
|
+
"Select LK address (same service; switch manually if unreachable):",
|
|
173
|
+
Object.entries(LK_CHANNEL.addresses).map(([id, url]) => ({
|
|
174
|
+
name: `${id}: ${url}`,
|
|
175
|
+
value: id,
|
|
176
|
+
})),
|
|
177
|
+
);
|
|
178
|
+
const selectedModel = await askSelect("Select LK model:", [
|
|
179
|
+
...LK_MODELS.filter(
|
|
180
|
+
(entry) =>
|
|
181
|
+
entry.type === "chat" && entry.compatibleProtocols.includes(protocol),
|
|
182
|
+
).map((entry) => ({
|
|
183
|
+
name: `${entry.label} (${entry.id})`,
|
|
184
|
+
value: entry.id,
|
|
185
|
+
})),
|
|
186
|
+
{ name: "Other model (enter exact ID)", value: "__custom__" },
|
|
187
|
+
]);
|
|
188
|
+
const model =
|
|
189
|
+
selectedModel === "__custom__"
|
|
190
|
+
? await askInput("Enter LK model name:")
|
|
191
|
+
: selectedModel;
|
|
192
|
+
if (!model?.trim()) throw new Error("An LK model name is required");
|
|
193
|
+
channelConnection = resolveLkConnection(protocol, address, { model });
|
|
194
|
+
provider = channelConnection.provider;
|
|
195
|
+
}
|
|
145
196
|
const providerInfo = LLM_PROVIDERS[provider];
|
|
146
197
|
|
|
147
198
|
let apiKey = null;
|
|
148
199
|
let { baseUrl, model } = resolveSetupLlmDefaults(provider, existingLlm);
|
|
149
200
|
|
|
150
|
-
if (
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
assertRequiredProviderCredential(providerInfo, apiKey);
|
|
155
|
-
} else if (provider === "custom") {
|
|
156
|
-
apiKey = await askPassword(
|
|
157
|
-
"Enter the platform API key (optional; leave blank if not required):",
|
|
158
|
-
);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
if (provider === "custom" || providerInfo.isProxy) {
|
|
201
|
+
if (channelConnection) {
|
|
202
|
+
baseUrl = channelConnection.baseUrl;
|
|
203
|
+
model = channelConnection.model;
|
|
204
|
+
} else if (provider === "custom" || providerInfo.isProxy) {
|
|
162
205
|
baseUrl = await askInput("Enter API base URL:", baseUrl || "");
|
|
163
206
|
model = await askInput("Enter model name:", model || "");
|
|
164
207
|
} else {
|
|
@@ -171,6 +214,33 @@ async function runSetup(options) {
|
|
|
171
214
|
}
|
|
172
215
|
}
|
|
173
216
|
|
|
217
|
+
const saved = readLlmConnection().savedConnections.find(
|
|
218
|
+
(row) =>
|
|
219
|
+
row.hasKey &&
|
|
220
|
+
llmConnectionIdentity(row) ===
|
|
221
|
+
llmConnectionIdentity({ provider, baseUrl }),
|
|
222
|
+
);
|
|
223
|
+
if (
|
|
224
|
+
channelConnection ||
|
|
225
|
+
providerInfo.requiresApiKey ||
|
|
226
|
+
provider === "custom"
|
|
227
|
+
) {
|
|
228
|
+
apiKey = await askPassword(
|
|
229
|
+
saved
|
|
230
|
+
? "API key already saved for this channel (leave blank to restore):"
|
|
231
|
+
: `Enter ${channelConnection ? LK_CHANNEL.name : providerInfo.name} API key:`,
|
|
232
|
+
);
|
|
233
|
+
if (!saved)
|
|
234
|
+
assertRequiredProviderCredential(
|
|
235
|
+
{
|
|
236
|
+
requiresApiKey: Boolean(
|
|
237
|
+
channelConnection || providerInfo.requiresApiKey,
|
|
238
|
+
),
|
|
239
|
+
},
|
|
240
|
+
apiKey,
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
|
|
174
244
|
// Step 6: Download binary
|
|
175
245
|
if (!options.skipDownload) {
|
|
176
246
|
logger.newline();
|
|
@@ -192,38 +262,21 @@ async function runSetup(options) {
|
|
|
192
262
|
|
|
193
263
|
// Step 7: Save config
|
|
194
264
|
const applySetupValues = (config) => {
|
|
195
|
-
const previous = config.llm || {};
|
|
196
|
-
const sameTarget =
|
|
197
|
-
previous.provider === provider &&
|
|
198
|
-
normalizeLlmEndpoint(
|
|
199
|
-
provider,
|
|
200
|
-
previous.baseUrl || providerInfo.defaultBaseUrl,
|
|
201
|
-
) === normalizeLlmEndpoint(provider, baseUrl);
|
|
202
|
-
if (provider === "custom" && !apiKey && !sameTarget) {
|
|
203
|
-
delete previous.apiKey;
|
|
204
|
-
delete previous.apiKeyHelper;
|
|
205
|
-
}
|
|
206
|
-
config.llm = previous;
|
|
207
265
|
config.setupCompleted = true;
|
|
208
266
|
config.completedAt = new Date().toISOString();
|
|
209
267
|
config.edition = edition;
|
|
210
|
-
config.llm.provider = provider;
|
|
211
|
-
config.llm.baseUrl = baseUrl;
|
|
212
|
-
config.llm.model = model;
|
|
213
268
|
};
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
updateConfigAtomically(applySetupValues);
|
|
226
|
-
}
|
|
269
|
+
saveLlmConnection(
|
|
270
|
+
{
|
|
271
|
+
provider,
|
|
272
|
+
baseUrl,
|
|
273
|
+
model,
|
|
274
|
+
apiKey: apiKey || "",
|
|
275
|
+
visionModel: saved?.visionModel || "",
|
|
276
|
+
allowHttp: true,
|
|
277
|
+
},
|
|
278
|
+
{ configMutator: applySetupValues },
|
|
279
|
+
);
|
|
227
280
|
logger.success("Configuration saved");
|
|
228
281
|
|
|
229
282
|
// Saving a provider setting does not itself authorize a content-bearing
|
package/src/data/changelog.json
CHANGED
|
@@ -1,6 +1,97 @@
|
|
|
1
1
|
{
|
|
2
2
|
"source": "CHANGELOG.md",
|
|
3
3
|
"releases": [
|
|
4
|
+
{
|
|
5
|
+
"productVersion": null,
|
|
6
|
+
"cliVersion": "0.166.156",
|
|
7
|
+
"cliVersions": ["0.166.156"],
|
|
8
|
+
"date": "2026-11-18",
|
|
9
|
+
"title": "",
|
|
10
|
+
"sections": [
|
|
11
|
+
{
|
|
12
|
+
"heading": "Fixed - cc CLI 0.166.156: LK release delivery from longfa (candidate, 2026-11-18)",
|
|
13
|
+
"body": "- Carry the corrected LK model catalog, same-family alias migration and live account query fixes from candidate 0.166.155. Candidate 0.166.155 was stopped before npm publication.\n- Use CPU ONNX installation across all release jobs. Bind the CLI package and new exact-source provenance to `longfa/chainlesschain`; retain original signed repositories and exact package-tree checks for reused child releases.\n- Pair VS Code 0.37.192 / JetBrains 0.4.207 with CLI 0.166.156 after complete exact-source CLI CI and Strict Sandbox matrices, Actions OIDC publication and public registry readback. IDE host and public channel verification follow the CLI."
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"productVersion": null,
|
|
19
|
+
"cliVersion": "0.166.155",
|
|
20
|
+
"cliVersions": ["0.166.155"],
|
|
21
|
+
"date": "2026-11-18",
|
|
22
|
+
"title": "",
|
|
23
|
+
"sections": [
|
|
24
|
+
{
|
|
25
|
+
"heading": "Fixed - cc CLI 0.166.155: current LK model IDs and account queries (candidate, 2026-11-18)",
|
|
26
|
+
"body": "- Synchronize 202 model identities from the documented Skills API, including 86 protocol-filtered chat models. Default OpenAI-compatible setup to `gpt-6.1-sol` on `api.vv666.ai`; retain `api.lk666.ai` as the backup.\n- Migrate retired LK aliases to their corresponding model families for chat and pricing queries. Preserve unknown aliases and credential isolation. Refresh balance, usage, pricing and billing using the saved LK Key.\n- Pair CLI `0.166.155` with VS Code `0.37.192` and JetBrains `0.4.207`; require the published CLI before either IDE upload. Older uploaded versions and tags are retained.\n- A minimal `gpt-6.1-sol` Chat Completions probe and read-only account adapter query succeeded. The entire catalog has not been generation-tested. Publication requires this commit's complete CLI CI and Strict Sandbox matrices, Actions OIDC and public registry readback."
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"productVersion": null,
|
|
32
|
+
"cliVersion": "0.166.154",
|
|
33
|
+
"cliVersions": ["0.166.154"],
|
|
34
|
+
"date": "2026-11-16",
|
|
35
|
+
"title": "",
|
|
36
|
+
"sections": [
|
|
37
|
+
{
|
|
38
|
+
"heading": "Fixed - cc CLI 0.166.154: bound repeated background output recovery (candidate, 2026-11-16)",
|
|
39
|
+
"body": "- Count repeated large `stdout` and `stderr` returned by `run_code`, `run_shell` and `check_shell` in the same bounded recovery guard as normalized output. Background polling can no longer bypass the six-batch no-progress backstop by returning the same evidence under a different field.\n- Add regression coverage for repeated `check_shell` stdout. Require complete exact-source CLI CI and Strict Sandbox matrices, Actions OIDC publication and public package/provenance readback before treating this candidate as public.\n- Pair the next IDE releases with CLI `0.166.154` only after the CLI is publicly verified."
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"productVersion": null,
|
|
45
|
+
"cliVersion": "0.166.153",
|
|
46
|
+
"cliVersions": ["0.166.153"],
|
|
47
|
+
"date": "2026-11-16",
|
|
48
|
+
"title": "",
|
|
49
|
+
"sections": [
|
|
50
|
+
{
|
|
51
|
+
"heading": "Fixed - cc CLI 0.166.153: synchronize generated LK IDE catalogs (candidate, 2026-11-16)",
|
|
52
|
+
"body": "- Regenerate the CLI-owned LK channel catalog across the Web panel, VS Code and JetBrains outputs so the exact source digest, endpoint metadata and model compatibility arrays stay synchronized.\n- Keep the 0.166.152 immutable candidate unchanged after its exact-source release gate exposed stale generated catalogs. Publish 0.166.153 only after complete three-platform CLI CI and Strict Sandbox gates, Actions OIDC publication and public provenance readback."
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"productVersion": null,
|
|
58
|
+
"cliVersion": "0.166.152",
|
|
59
|
+
"cliVersions": ["0.166.152"],
|
|
60
|
+
"date": "2026-11-15",
|
|
61
|
+
"title": "",
|
|
62
|
+
"sections": [
|
|
63
|
+
{
|
|
64
|
+
"heading": "Fixed - cc CLI 0.166.152: preserve wrapped POSIX witness refusal evidence (candidate, 2026-11-15)",
|
|
65
|
+
"body": "- Preserve immutable candidate 0.166.151 and its tag after the exact-source Ubuntu unit matrix found a POSIX-only test assertion mismatch. The 0.166.151 publication was cancelled before npm publishing; verified public CLI remains 0.166.150.\n- Assert the existing witness reader's outer error code/message and the original permission-refusal cause together, while checking that mode 0640 is unchanged and neither chmod nor signing occurs. Production permission checks, read bounds and recovery behavior are unchanged.\n- Carry forward the bounded self-evolution storage audits from candidate 0.166.151. Require complete exact-source three-OS CLI CI and Strict Sandbox again before OIDC publication and public readback; do not reuse the older candidate's successful jobs as release evidence."
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"productVersion": null,
|
|
71
|
+
"cliVersion": "0.166.151",
|
|
72
|
+
"cliVersions": ["0.166.150", "0.166.151"],
|
|
73
|
+
"date": "2026-11-15",
|
|
74
|
+
"title": "",
|
|
75
|
+
"sections": [
|
|
76
|
+
{
|
|
77
|
+
"heading": "Added - cc CLI 0.166.151: bounded self-evolution storage audits (candidate, 2026-11-15)",
|
|
78
|
+
"body": "- Add a bounded local retained-segment file backend and carry original directory ownership and authenticated manifest references through observed-text and signed-anchor history. Persistent signatures, CAS and index formats remain unchanged.\n- Audit every local retention file and the default ArtifactStore's complete index/files correspondence. Reject unknown, missing, duplicate, damaged or unauthorized entries without cleaning or repairing storage; preserve explicit scan budgets and final physical identity rechecks.\n- Add original source-WAL and v2-manifest readers that do not recover, initialize, repair permissions or sign absent witnesses. Compare complete event payloads across a stable source/v2/source window; hold unsynchronized WAL, crash debris and missing witnesses for explicit recovery.\n- Local Windows regression: 26 files, 653 passed, 11 platform-specific skips and zero failures. Require exact-source Linux/Windows/macOS CLI CI and Strict Sandbox before Actions OIDC publication, then public byte/provenance and registry-only dependency readback.\n- Child npm packages are unchanged. Existing Open VSX 0.37.189 and JetBrains 0.4.204 retain their published CLI 0.166.150 recommendation; no IDE or native-client release is included. Complete physical runtime graphs, independent installation/pins, real A/B/C acceptance and automatic promotion remain incomplete; HOLD remains."
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"productVersion": null,
|
|
84
|
+
"cliVersion": "0.166.150",
|
|
85
|
+
"cliVersions": ["0.166.150"],
|
|
86
|
+
"date": "2026-11-15",
|
|
87
|
+
"title": "",
|
|
88
|
+
"sections": [
|
|
89
|
+
{
|
|
90
|
+
"heading": "Added - cc CLI 0.166.150: LK channel, dynamic billing and saved credentials (candidate, 2026-11-15)",
|
|
91
|
+
"body": "- Add the LK aggregator with documented primary/backup addresses, exact model aliases and protocol-aware selection. The shared catalog contains 83 chat models plus 114 media entries; media task execution is not included. Preserve saved aliases and keep credentials scoped to the selected endpoint. Three tiny live protocol probes and authenticated pricing queries succeeded; this does not certify the whole model catalog.\n- Add fresh authenticated LK prices, account balance, Key quota and actual API charges; keep platform credits separate from local Token estimates. Preserve endpoint-scoped credentials across Volcengine and all other channels, with a shared LK key across hosts/protocols. Support CLI, Web, IDE configuration and desktop encrypted history.\n- Add LK selection to the `cc ui` Web panel with protocol-filtered models, primary/backup addresses and saved aliases. Persist endpoint and credential atomically through authenticated structured messages, return only a non-secret snapshot, and confirm saves by readback.\n- Pair with VS Code/Open VSX 0.37.189 and JetBrains 0.4.204; child npm packages remain unchanged. Require complete exact-source CLI CI and Strict Sandbox matrices, then OIDC publication and public package readback before IDE publication."
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
4
95
|
{
|
|
5
96
|
"productVersion": null,
|
|
6
97
|
"cliVersion": "0.166.149",
|