@inkeep/open-knowledge 0.20.1-beta.0 → 0.21.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/THIRD_PARTY_NOTICES.md +80 -40
  2. package/dist/assets/skills/discovery/SKILL.md +1 -1
  3. package/dist/assets/skills/project/SKILL.md +2 -2
  4. package/dist/assets/skills/project/references/anti-patterns.md +1 -1
  5. package/dist/assets/skills/project/references/preview.md +21 -3
  6. package/dist/assets/skills/write-skill/SKILL.md +1 -1
  7. package/dist/{build-DCHzh6iE.mjs → build-CN003PPg.mjs} +2 -2
  8. package/dist/build-Ca40rJCO.mjs +1 -0
  9. package/dist/{chokidar-Bu9Rdqzq.mjs → chokidar-oNPiNLWX.mjs} +3 -3
  10. package/dist/{chunk-BRGMQKJV-CHbk2NqS.mjs → chunk-BRGMQKJV-CZUkYGAZ.mjs} +2 -2
  11. package/dist/{chunk-HWBSOZZR-5PJ_z6D6.mjs → chunk-HWBSOZZR-DQTTl_pa.mjs} +3 -3
  12. package/dist/{chunk-XHM67O4N-C_wCK9HT.mjs → chunk-XHM67O4N-D3pxE_Og.mjs} +2 -2
  13. package/dist/cli.mjs +49 -57
  14. package/dist/constants-x0acspSh.mjs +2 -0
  15. package/dist/{dist-Cr0_LDkC.mjs → dist-B3Nl3Djt.mjs} +10 -10
  16. package/dist/dist-BOoSXzXj.mjs +1 -0
  17. package/dist/{flag-coverage-QT4N2Z44-DJYVWsW6.mjs → flag-coverage-QT4N2Z44-hqAAghSo.mjs} +2 -2
  18. package/dist/{gh-detect-BDIdc7oG.mjs → gh-detect-BDCCLwpS.mjs} +3 -3
  19. package/dist/index.d.mts +27 -5
  20. package/dist/index.mjs +1 -1
  21. package/dist/init-DOCf2MYY.mjs +1 -0
  22. package/dist/init-eaHzzLcd.mjs +317 -0
  23. package/dist/loader-Bx2WWZdB.mjs +1 -0
  24. package/dist/{loader-DkRFzG9j.mjs → loader-DcKU2Suk.mjs} +2 -2
  25. package/dist/{lzma-D4yjI8KW.mjs → lzma-DBkyKSY9.mjs} +2 -2
  26. package/dist/native/index.d.ts +52 -0
  27. package/dist/native/index.js +593 -0
  28. package/dist/native/native-config.linux-x64-gnu.node +0 -0
  29. package/dist/native/package.json +35 -0
  30. package/dist/preview-Bob5z4VP.mjs +1 -0
  31. package/dist/preview-Df40RFQg.mjs +3 -0
  32. package/dist/public/assets/{ActivityModeContent-BeKprPnC.js → ActivityModeContent-BOmORHei.js} +1 -1
  33. package/dist/public/assets/{DocumentContext-Dsy-V9Ut.js → DocumentContext-CfRvyFlb.js} +1 -1
  34. package/dist/public/assets/{ManagedArtifactProperties-BjUj1ege.js → ManagedArtifactProperties-Dgbp1Fs2.js} +1 -1
  35. package/dist/public/assets/{PropertyPanel-WP7faSjK.js → PropertyPanel-B0hwZHMh.js} +1 -1
  36. package/dist/public/assets/SettingsDialogBody-Dv1-9_7P.js +7 -0
  37. package/dist/public/assets/{SourceEditor-BCTvGEN3.js → SourceEditor-BMN-4stf.js} +1 -1
  38. package/dist/public/assets/{config-validation-events-DeNSFunr.js → config-validation-events-mxFyV1Om.js} +1 -1
  39. package/dist/public/assets/{index-D9ORkIyY.js → index-CHWT2CB5.js} +5 -5
  40. package/dist/public/assets/{selection-context-DrXM_FlV.js → selection-context-DzBK_3te.js} +1 -1
  41. package/dist/public/assets/{telemetry-impl-DXv9s3r6.js → telemetry-impl-DZfG0f1d.js} +1 -1
  42. package/dist/public/assets/{typing-burst-detector-C9kWtkXV.js → typing-burst-detector-Cc2KgY3K.js} +1 -1
  43. package/dist/public/index.html +6 -6
  44. package/dist/{repair-launch-json-CpkMEneP.mjs → repair-launch-json-C6ZO5Cqt.mjs} +2 -2
  45. package/dist/{repair-mcp-configs-Da9zV1zG.mjs → repair-mcp-configs-D6D3yZP6.mjs} +2 -2
  46. package/dist/repair-skills-ClESzPry.mjs +1 -0
  47. package/dist/{repair-skills-Bv465NK-.mjs → repair-skills-DrDTStak.mjs} +3 -3
  48. package/dist/server-lock-8Lv6A-Xa-C35kJqNB.mjs +1 -0
  49. package/dist/{server-lock-CN2YHwpP-COM23IWb.mjs → server-lock-CN2YHwpP-aP9IA5H6.mjs} +4 -4
  50. package/dist/{sqlite3-56UMWEY3-B4_LAdBq.mjs → sqlite3-56UMWEY3-DA8bw7DG.mjs} +1 -1
  51. package/dist/src-DYiP4t4O.mjs +3 -0
  52. package/dist/start-B4FrQZ1j.mjs +1 -0
  53. package/dist/{start-Csz506Fz.mjs → start-n0uv2kHZ.mjs} +2 -2
  54. package/dist/{tar-ANUBEFJY-GYQ0YvKO.mjs → tar-ANUBEFJY-DCUS8bvA.mjs} +1 -1
  55. package/dist/{write-project-skill-TvNCLXKO.mjs → write-project-skill-DzjgQ8XK.mjs} +3 -3
  56. package/package.json +5 -2
  57. package/dist/build-CCDQyip-.mjs +0 -1
  58. package/dist/constants-BqbOfSoK.mjs +0 -2
  59. package/dist/dist-Ca3Ag5Ao.mjs +0 -1
  60. package/dist/init-CwADts1i.mjs +0 -1
  61. package/dist/init-DJH9fDpw.mjs +0 -305
  62. package/dist/loader-3W_GUyq_.mjs +0 -1
  63. package/dist/preview-D6V1_jLj.mjs +0 -1
  64. package/dist/preview-xUtZ_Wnl.mjs +0 -3
  65. package/dist/public/assets/SettingsDialogBody-v_uU85KY.js +0 -7
  66. package/dist/repair-skills-D1vWIYJn.mjs +0 -1
  67. package/dist/server-lock-8Lv6A-Xa-iDqi_bbE.mjs +0 -1
  68. package/dist/src-ajPS5oto.mjs +0 -3
  69. package/dist/start-J-h6TGAI.mjs +0 -1
@@ -0,0 +1 @@
1
+ import{Fi as e,Gt as t,Hi as n,In as r,Y as i,a,c as o,d as s,di as c,dn as l,f as u,g as d,gn as f,h as p,i as m,jn as h,l as g,m as _,n as v,o as y,on as b,p as x,r as S,s as C,t as w,u as T}from"./server-lock-CN2YHwpP-aP9IA5H6.mjs";import{$ as E,$i as D,$n as O,$r as k,$t as A,A as j,Ai as M,An as N,Ar as P,At as F,B as I,Bi as L,Bn as R,Br as z,Bt as B,C as V,Ci as H,Cn as U,Cr as W,Ct as G,D as K,Di as q,Dn as J,Dr as Y,Dt as X,E as Z,Ei as Q,En as $,Er as ee,Et as te,F as ne,Fi as re,Fn as ie,Fr as ae,Ft as oe,G as se,Gi as ce,Gn as le,Gr as ue,Gt as de,H as fe,Hi as pe,Hn as me,Hr as he,Ht as ge,I as _e,Ii as ve,In as ye,Ir as be,It as xe,J as Se,Ji as Ce,Jn as we,Jr as Te,Jt as Ee,K as De,Ki as Oe,Kn as ke,Kr as Ae,Kt as je,L as Me,Li as Ne,Ln as Pe,Lr as Fe,Lt as Ie,M as Le,Mi as Re,Mn as ze,Mr as Be,Mt as Ve,N as He,Ni as Ue,Nn as We,Nr as Ge,Nt as Ke,O as qe,Oi as Je,On as Ye,Or as Xe,Ot as Ze,P as Qe,Pi as $e,Pn as et,Pr as tt,Pt as nt,Q as rt,Qi as it,Qn as at,Qr as ot,Qt as st,R as ct,Ri as lt,Rn as ut,Rr as dt,Rt as ft,S as pt,Si as mt,Sn as ht,Sr as gt,St as _t,T as vt,Ti as yt,Tn as bt,Tr as xt,Tt as St,U as Ct,Ui as wt,Un as Tt,Ur as Et,Ut as Dt,V as Ot,Vi as kt,Vn as At,Vr as jt,Vt as Mt,W as Nt,Wi as Pt,Wn as Ft,Wr as It,Wt as Lt,X as Rt,Xi as zt,Xn as Bt,Xr as Vt,Xt as Ht,Y as Ut,Yi as Wt,Yn as Gt,Yr as Kt,Yt as qt,Z as Jt,Zi as Yt,Zn as Xt,Zr as Zt,Zt as Qt,_ as $t,_a as en,_i as tn,_n as nn,_r as rn,_t as an,a as on,aa as sn,ai as cn,an as ln,ar as un,at as dn,b as fn,bi as pn,bn as mn,br as hn,bt as gn,c as _n,ci as vn,cn as yn,cr as bn,ct as xn,d as Sn,di as Cn,dn as wn,dr as Tn,dt as En,ea as Dn,ei as On,en as kn,er as An,et as jn,f as Mn,fi as Nn,fn as Pn,fr as Fn,ft as In,g as Ln,gi as Rn,gn as zn,gr as Bn,gt as Vn,h as Hn,hi as Un,hn as Wn,hr as Gn,ht as Kn,i as qn,ia as Jn,ii as Yn,in as Xn,ir as Zn,it as Qn,j as $n,ji as er,jn as tr,jr as nr,jt as rr,k as ir,ki as ar,kn as or,kr as sr,kt as cr,l as lr,li as ur,ln as dr,lr as fr,lt as pr,m as mr,mi as hr,mn as gr,mr as _r,mt as vr,n as yr,na as br,ni as xr,nn as Sr,nr as Cr,nt as wr,o as Tr,oi as Er,on as Dr,or as Or,ot as kr,p as Ar,pi as jr,pn as Mr,pr as Nr,pt as Pr,q as Fr,qi as Ir,qn as Lr,qr as Rr,qt as zr,r as Br,ra as Vr,ri as Hr,rn as Ur,rr as Wr,rt as Gr,s as Kr,si as qr,sn as Jr,sr as Yr,st as Xr,t as Zr,ta as Qr,ti as $r,tn as ei,tr as ti,tt as ni,u as ri,ui as ii,un as ai,ur as oi,ut as si,v as ci,va as li,vi as ui,vn as di,vr as fi,vt as pi,w as mi,wi as hi,wn as gi,wr as _i,wt as vi,x as yi,xi as bi,xn as xi,xr as Si,xt as Ci,y as wi,yi as Ti,yn as Ei,yr as Di,yt as Oi,z as ki,zi as Ai,zn as ji,zr as Mi,zt as Ni}from"./dist-B3Nl3Djt.mjs";export{Zr as AGENT_ID_MAX_LEN,yr as AGENT_ID_RE,Br as AGENT_WRITE_ORIGIN,qn as AgentFocusBroadcaster,on as AgentPresenceBroadcaster,Tr as AgentSessionCapacityError,Kr as AgentSessionManager,_n as AutoStartDisabledError,lr as BUNDLE_IDS,ri as BUNDLE_SCOPE,Sn as BUNDLE_SKILL_NAME,Mn as BacklinkIndex,Ar as CC1Broadcaster,i as CC1_CONTRACT_VERSION,mr as CONFIG_FILENAME,Hn as CONFLICT_MARKER_RE,Ln as CURSOR_BUNDLE_PATHS_BY_PLATFORM,$t as ConfigSchema,ci as DEFAULT_CHECKPOINT_RETENTION,wi as DEFAULT_EMBEDDINGS_DIMENSIONS,fn as DEFAULT_PACK_ID,yi as EMBEDDINGS_API_KEY_ENV,pt as FILE_SYSTEM_WRITER,V as FILE_WATCHER_ORIGIN,mi as FileEmbeddingsBackend,vt as GIT_PREFLIGHT_FAIL_SPAN_NAME,Z as GIT_UPSTREAM_WRITER,en as GitDirAccessError,K as GitNotAvailableError,qe as GitTooOldError,ir as HOCUSPOCUS_AUTH_REJECTION_REASONS,j as HocuspocusAuthRejection,$n as HocuspocusAuthTokenSchema,Le as INSTALLED_AGENTS_SCHEMES,t as LINEAGE_EPOCH_KEY,He as LIVE_DERIVED_INDEX_DEBOUNCE_MS,Qe as LOG_MD_TEMPLATE,ne as MANAGED_RENAME_ORIGIN,_e as MAX_AGENT_SESSIONS,Me as MCP_CONNECTION_ID_HEADER,b as MCP_SERVER_NAME,ct as MIN_GIT_VERSION,ki as MISSING_OK_CONFIG_MESSAGE,li as MalformedGitPointerError,I as McpLogger,Ot as MissingOkConfigError,fe as OBSERVER_SYNC_ORIGIN,Ct as OK_OKIGNORE_TEMPLATE,l as ORPHAN_MODES,Nt as PANE_TARGET_TTL_MS,f as PROTOCOL_VERSION,se as PinoLogger,w as ProcessLockCollisionError,De as ProjectGitInitError,Fr as ROLLBACK_ORIGIN,Se as ROOT_GITIGNORE_TEMPLATE,v as RUNTIME_VERSION,Ut as SERVICE_WRITER,Rt as SKILL_INSTALL_EVENTS_FILE_REL,h as SKILL_STATE_TARGETS,Jt as STARTER_FOLDERS,rt as STARTER_FOLDER_FRONTMATTER_FILENAME,E as STARTER_PACKS,jn as STARTER_PACK_IDS,ni as STARTER_TEMPLATES,wr as STATE_MANIFEST_FILENAME,S as STATE_SCHEMA_VERSION,r as SYSTEM_DOC_NAME,Gr as SeedPrerequisiteError,Qn as SeedRootDirError,m as ServerLockCollisionError,dn as SingleFileNotAFileError,kr as SingleFileNotFoundError,Xr as SingleFileNotMarkdownError,xn as StateManifestError,pr as TagIndex,si as USER_GLOBAL_BUNDLE_IDS,En as UiLockCollisionError,In as __getShowAllWalkStatsForTesting,Pr as __resetShowAllWalkStatsForTesting,a as acquireProcessLock,y as acquireServerLock,vr as acquireUiLock,Kn as applyAgentMarkdownWrite,Vn as applyExternalChange,an as applySeed,pi as armPaneTarget,Oi as assertCompatibleStateManifest,gn as assertGitAvailable,Ci as assertNeverDiskEvent,_t as attachIdleShutdown,G as bootServer,vi as buildAndOpenSkill,St as buildConfigYmlContent,te as buildExecResult,X as buildSkillZip,Ze as buildStarterFolderFrontmatterYaml,cr as buildWipTree,F as bundleSkillMdPath,rr as classifyEvents,Ve as classifyFsPath,Ke as clearArmedPaneTarget,nt as clearContributors,oe as clearEmbeddingsKeyFromAllBackends,xe as coercePackId,c as colorFromSeed,Ie as commitUpstreamImport,ft as commitWip,Ni as commitWipFromTree,B as compareSemver,Mt as containsConflictMarkers,ge as contentHash,Dt as contributorCount,Lt as countShadowObjects,de as countStaleAgentWipRefs,je as countWipRefs,zr as createApiExtension,Ee as createAssetServeMiddleware,qt as createContentFilter,Ht as createContentFilterAsync,Qt as createEmbeddingsSecretStore,st as createEphemeralProjectDir,A as createExternalChangeHandler,kn as createFileLogger,ei as createLiveDerivedIndexExtension,Sr as createMcpHttpHandler,Ur as createOsProbe,Xn as createPersistenceExtension,ln as createServer,Dr as createServerObserverExtension,Jr as createStreamingErrorWriter,yn as createTestLogger,dr as describeStoredEmbeddingsKey,ai as detectClaudeDesktopPresence,wn as detectGit,Pn as detectProjectShape,Mr as discoverLockDirs,gr as emitPreflightFailureSpan,Wn as encodeDocName,zn as encodeFolderRoute,nn as encodeSkillRoute,di as ensureProjectGit,Ei as errorResponse,mn as evictStaleTrackerEntries,xi as extractOkBinaryPath,ht as extractWikiLinksFromMarkdown,U as fallbackPaths,gi as findEnclosingGitRoot,bt as findEnclosingProjectRoot,$ as flushFileLogger,J as formatAuthRejectionWire,Ye as formatContributors,or as formatContributorsFrom,N as formatPackRationale,tr as gcCheckpointRefs,ze as getCurrentMcpLogger,We as getLocalDir,et as getLogFilePath,ie as getLogger,ye as getLogsDir,Pe as getMeter,ut as getMetrics,ji as getTracer,R as handleCollabSocketError,At as handleSpawnCursor,me as hasGcLogLatch,e as iconFromClientName,Tt as incrementCollabSocketFilteredError,Ft as incrementServerObserverFire,le as initContent,ke as initShadowRepo,Lr as initTelemetry,we as initToleranceTelemetryWriter,Gt as installPrettyZodErrors,Bt as installTestLoggers,Xt as installUserSkill,at as isAllowedApiOrigin,O as isAllowedWorkspaceHostHeader,An as isConfigDoc,ti as isHocuspocusAuthRejectionReason,Cr as isKnownPackId,Wr as isLinkIndexExcludedDoc,Zn as isLoopbackAddress,un as isManagedArtifactDoc,n as isOrphanMode,Or as isPairedWriteOrigin,Yr as isPathWithinDir,C as isProcessAlive,bn as isProjectRoot,fr as isProjectSkillManaged,oi as isReservedForUserTree,Tn as isSelfWrite,Fn as isSystemDoc,Nr as isToleranceTelemetryEnabled,o as isValidLockPid,_r as lastKnownHash,Gn as listRescueCheckpoints,Bn as listStarterPacks,rn as loadPrincipal,g as lockFilePath,fi as loggerFactory,Di as logsCurrentPath,hn as logsPreviousPath,Si as makeLazyEmbeddingsKeyStore,gt as mountMcpAndApi,W as normalizeFsPath,_i as packageVersionMajorMinor,xt as parseAuthRejectionWire,ee as parseGitVersion,Y as parseHocuspocusAuthToken,Xe as parseKeepaliveConnectionId,sr as pathToDocName,P as planSeed,nr as prepareSingleFileOpen,Be as processCommand,Ge as processUsage,tt as readAllTargets,ae as readArmedPaneTarget,be as readBranchFromHead,T as readProcessLock,s as readProcessLockDetailed,Fe as readProjectLocalSemanticConfig,u as readServerLock,dt as readServerPackageVersion,Mi as readSkillInstallStateSnapshot,z as readSkillManagement,jt as readStateManifest,he as readTargetRecordedAt,Et as readTargetVersion,It as readUiLock,ue as reconcile,Ae as recordContributor,Rr as recordSkillInstallEvent,Te as registerAllTools,Kt as registerWrite,x as releaseProcessLock,_ as releaseServerLock,Vt as releaseUiLock,Zt as removeLastKnownHash,ot as resetMetrics,k as resolveBundledSkillDir,On as resolveContentDir,$r as resolveCursorBinaryDefault,xr as resolveCursorSpawnInvocation,Hr as resolveLockDir,Yn as resolvePack,cn as resolvePackageVersion,Er as resolveUiInfo,qr as restoreContributors,vn as restoreLifecycleFromConflictsJson,ur as rewriteMarkdownLinksForDocumentRename,ii as rewriteWikiLinksForDocumentRename,Cn as runAuthReposSubprocess,Nn as runAuthStatusSubprocess,jr as runCloneSubprocess,hr as runDeviceFlowSubprocess,Un as runWithMcpLogger,Rn as safeContentPath,tn as safeSubdir,ui as safetyCheckpoint,Ti as sanitizeClientName,pn as saveInMemoryCheckpoint,bi as saveVersion,mt as seedBasenameIndex,H as serializeError,hi as setActiveSpanAttributes,yt as shadowGit,Q as shutdownTelemetry,q as skillManagementPath,Je as spansCurrentPath,ar as spansPreviousPath,M as spawnDetached,er as splitMarkdownBlocks,Re as startWatcher,Ue as streamingProblemEvent,$e as swapContributors,re as teardownToleranceTelemetryWriter,ve as toBroadcasterKey,Ne as tracedAppendFileSync,lt as tracedLinkSync,Ai as tracedMkdir,L as tracedMkdirSync,kt as tracedRename,pe as tracedRenameSync,wt as tracedRmSync,Pt as tracedRmdirSync,ce as tracedUnlinkSync,Oe as tracedWriteFile,Ir as tracedWriteFileSync,Ce as updateLastKnownHash,p as updateProcessLockPort,d as updateServerLockPort,Wt as updateUiLockPort,zt as validateAgentId,Yt as validateCloneInputs,it as validateSkillZip,D as withSpan,Dn as withSpanSync,Qr as writeRootGitignoreForNewRepo,br as writeSkillManagement,Vr as writeStateManifest,Jn as writeTargetVersion,sn as writeTracker};
@@ -1,2 +1,2 @@
1
- import"./chunk-YNYSPYQ5-gU4-j5DO.mjs";import"./chunk-CWQS3NFK-BkE4vqrf.mjs";import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import"./chunk-5QMZ5MUS-BwpNU33k.mjs";import"./chunk-A5O5YHGN-DApqA6Ow.mjs";import"./chunk-24IMIIXA-DaS5XS55.mjs";import{i as e,n as t}from"./chunk-VOBGTVA6-D6fSjWnx.mjs";import{t as n}from"./chunk-OARHFVLG-dXiYYC4o.mjs";import{n as r}from"./chunk-QJ7O6ZN3-BCF2wp2J.mjs";import{n as i}from"./chunk-ALLTKNUZ-4H3OLfNN.mjs";import{n as ee,r as te}from"./chunk-D6CWQ5DW-CF9bBHyK.mjs";import{n as a}from"./chunk-TXBZCHCQ-BxbbtyNr.mjs";import{n as o}from"./chunk-4GTNDTRF-DLnFbNSw.mjs";import{t as s}from"./chunk-LL3S3NLB-CH16p_-s.mjs";import{n as c}from"./chunk-LWEGUNWT-DhbhFY11.mjs";import{n as l}from"./chunk-Z7JVV2SM-BtFBVQEW.mjs";import{n as u}from"./chunk-NUYSJFDK-BH2DjyxF.mjs";import{t as d}from"./chunk-SDNKECQQ-BsAYzqU5.mjs";import{t as f}from"./chunk-D7MEQ3VN-BM_kIbvf.mjs";import{n as p}from"./chunk-TLSUDHID-CSDR438C.mjs";import{t as m}from"./chunk-4Q4SM6WR-CAvCnPq5.mjs";import{n as h}from"./chunk-RPNGRAAP-yHFoBjjv.mjs";import{n as g}from"./chunk-GCTKCWKD-D3J1Ev9z.mjs";import{n as _,r as v}from"./chunk-NAERJDUW-Cyg2DAzO.mjs";import{n as y}from"./chunk-VJFXDYWH-CWlZv59U.mjs";import{t as b}from"./chunk-YFG2CMIF-DjdwxBNc.mjs";import{n as x}from"./chunk-CR5AFCPT-DN7EAdus.mjs";import"./chunk-J642UCRS-HjD8qpZD.mjs";import{t as S}from"./chunk-LPQPILI2-OoVL_l9j.mjs";import{t as C}from"./chunk-BRGMQKJV-CHbk2NqS.mjs";import"./chunk-SYMJJMQ4-jdmKoBFb.mjs";import"./chunk-7TSDKFEO-CMVuiOdP.mjs";import"./chunk-BBXLRYSX-XWD4jM9A.mjs";import{n as w}from"./chunk-XORM457F-BuPOSqOe.mjs";import"./chunk-F55TLFGB-BZSRX-Vi.mjs";import{t as T}from"./chunk-UNYNJIFU-CZ2Mla0s.mjs";import{r as E}from"./chunk-HWBSOZZR-5PJ_z6D6.mjs";import{n as D}from"./chunk-MDLLFABN-UsHGHHoh.mjs";import{n as O}from"./chunk-MLXIYONF-CV7WHBm-.mjs";import{n as k}from"./chunk-A65PWWJC-GGt9898w.mjs";import{t as A}from"./chunk-MHTUABJP-Dk5ocjFo.mjs";import{n as j}from"./chunk-4HHKTUW3-Ct4ue15f.mjs";import{n as M}from"./chunk-HJQJAYMS-BS_JF11O.mjs";import{n as N}from"./chunk-PP6PSHAB-DQ3LPONR.mjs";import{i as P,n as F,o as I}from"./chunk-LTZRCH7N-BfgCUlp9.mjs";import{t as L}from"./chunk-YTNYSM6T-DpkSVTln.mjs";import{t as R}from"./chunk-Z6LRHWXI-EsbeaQ3V.mjs";import{n as z}from"./chunk-A7A2DBEE-BqvlRSRw.mjs";import{t as B}from"./chunk-APT7OOP2-DnIeUlVe.mjs";import{n as V}from"./chunk-XKQRETAK-BC2HZ_y9.mjs";import{n as H}from"./chunk-5V6VZH6T-ByuVaPWr.mjs";import{n as U,r as W}from"./chunk-R6QSAL5T-RaNW7MSS.mjs";import{n as G}from"./chunk-YCFVLTST-DsF45PbT.mjs";import{t as K}from"./chunk-GOV5EKKI-CDGzZWfT.mjs";import{t as q}from"./chunk-XVDPCNWR-CkzIJQaO.mjs";import{n as J}from"./chunk-NCNPKYJZ-Ct0_l0YT.mjs";import{t as ne}from"./chunk-TOMNU26N-CrDa7MpH.mjs";import{t as Y}from"./chunk-PYSFUGCK-B_Gv8rUn.mjs";import{t as X}from"./chunk-VYOJP4TV-DN1CSkP5.mjs";import{t as Z}from"./chunk-MYE6AGBJ-DwzjGrc0.mjs";import{t as re}from"./chunk-A7ICOL4V-D5TsVU6v.mjs";import{t as ie}from"./chunk-55VFSPNA-RFvY6zq0.mjs";import{n as ae}from"./chunk-WKFATFPP-CoPg2OGf.mjs";import{n as oe}from"./chunk-JVPRLUMK-D6CRdXSO.mjs";import{t as se}from"./chunk-62RKD26F-DebCAz0V.mjs";import{t as ce}from"./chunk-QCDB2VPH-Bays5mAr.mjs";import{t as le}from"./chunk-F23WWYKW-DLeNVzzD.mjs";import{n as ue}from"./chunk-D4J545R4-KlK3EOFl.mjs";import{t as de}from"./chunk-DCAAORBQ-BUMlCZ4-.mjs";import{n as fe}from"./chunk-GXVXFKBA-D0BDCtkE.mjs";import{n as pe}from"./chunk-5QVNJEHU-BV0xuiYW.mjs";import"./chunk-VLGZJRPG-DpYP_EVp.mjs";import{a as me,n as he,o as ge}from"./chunk-YS3AZT3J-CB0wWPLc.mjs";import{n as _e}from"./chunk-NYQYO467-CY88QCuT.mjs";import{n as ve}from"./chunk-OL3S66CO-CWEDi2F_.mjs";import{t as ye}from"./chunk-KMEYNNUA-Qk0eg7gN.mjs";import{t as be}from"./chunk-MIZPJHVH-BD7tHmLL.mjs";import{n as xe}from"./chunk-A4JSPFCI-CQJoYugB.mjs";import{t as Q}from"./chunk-PBXLG62G-CpvczNyQ.mjs";import{t as Se}from"./chunk-A4HU7SVR-Bjuqsbev.mjs";import{t as Ce}from"./chunk-HJWBQKYG-DknkBuxy.mjs";import{t as we}from"./chunk-64BAICW3-BlirlXmE.mjs";import{n as Te}from"./chunk-T56QNPHK-DmDxJbbD.mjs";import{n as Ee}from"./chunk-V7TAPXDL-CKif4_mH.mjs";import{n as De}from"./chunk-MDDMCKUK-ChL1CU4m.mjs";import{t as Oe}from"./chunk-OCS6LSEM-Bcx6uxmm.mjs";import{n as ke}from"./chunk-OCLXQMOG-DOkdFgyf.mjs";var Ae=[g,a,Te,Ee,De,Oe,ke,be,u,xe,Q,o,Se,Ce,we,de,fe,pe,ge,he,me,_e,ve,n,ye,ae,l,d,oe,se,ce,le,ue,y,Y,X,Z,c,re,ie,S,i,m,q,h,_,v,e,t,J,ne,W,U,s,te,ee,G,r,p,f,K,L,R,z,b,B,V,H,x,D,O,k,A,j,M,N,P,F,I,C,w,T,E];function je(){return Ae}var $=new Map;for(let e of je())$.set(e.name,new Set(e.flags.map(e=>e.flag)));function Me(e,t,n){let r=$.get(t);if(!(!r||r.size===0))for(let i of n)r.has(i)&&e.hit(`cmd:flag:${t}:${i}`)}export{Me as emitFlagCoverage};
2
- //# sourceMappingURL=flag-coverage-QT4N2Z44-DJYVWsW6.mjs.map
1
+ import"./chunk-YNYSPYQ5-gU4-j5DO.mjs";import"./chunk-CWQS3NFK-BkE4vqrf.mjs";import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import"./chunk-5QMZ5MUS-BwpNU33k.mjs";import"./chunk-A5O5YHGN-DApqA6Ow.mjs";import"./chunk-24IMIIXA-DaS5XS55.mjs";import{i as e,n as t}from"./chunk-VOBGTVA6-D6fSjWnx.mjs";import{t as n}from"./chunk-OARHFVLG-dXiYYC4o.mjs";import{n as r}from"./chunk-QJ7O6ZN3-BCF2wp2J.mjs";import{n as i}from"./chunk-ALLTKNUZ-4H3OLfNN.mjs";import{n as ee,r as te}from"./chunk-D6CWQ5DW-CF9bBHyK.mjs";import{n as a}from"./chunk-TXBZCHCQ-BxbbtyNr.mjs";import{n as o}from"./chunk-4GTNDTRF-DLnFbNSw.mjs";import{t as s}from"./chunk-LL3S3NLB-CH16p_-s.mjs";import{n as c}from"./chunk-LWEGUNWT-DhbhFY11.mjs";import{n as l}from"./chunk-Z7JVV2SM-BtFBVQEW.mjs";import{n as u}from"./chunk-NUYSJFDK-BH2DjyxF.mjs";import{t as d}from"./chunk-SDNKECQQ-BsAYzqU5.mjs";import{t as f}from"./chunk-D7MEQ3VN-BM_kIbvf.mjs";import{n as p}from"./chunk-TLSUDHID-CSDR438C.mjs";import{t as m}from"./chunk-4Q4SM6WR-CAvCnPq5.mjs";import{n as h}from"./chunk-RPNGRAAP-yHFoBjjv.mjs";import{n as g}from"./chunk-GCTKCWKD-D3J1Ev9z.mjs";import{n as _,r as v}from"./chunk-NAERJDUW-Cyg2DAzO.mjs";import{n as y}from"./chunk-VJFXDYWH-CWlZv59U.mjs";import{t as b}from"./chunk-YFG2CMIF-DjdwxBNc.mjs";import{n as x}from"./chunk-CR5AFCPT-DN7EAdus.mjs";import"./chunk-J642UCRS-HjD8qpZD.mjs";import{t as S}from"./chunk-LPQPILI2-OoVL_l9j.mjs";import{t as C}from"./chunk-BRGMQKJV-CZUkYGAZ.mjs";import"./chunk-SYMJJMQ4-jdmKoBFb.mjs";import"./chunk-7TSDKFEO-CMVuiOdP.mjs";import"./chunk-BBXLRYSX-XWD4jM9A.mjs";import{n as w}from"./chunk-XORM457F-BuPOSqOe.mjs";import"./chunk-F55TLFGB-BZSRX-Vi.mjs";import{t as T}from"./chunk-UNYNJIFU-CZ2Mla0s.mjs";import{r as E}from"./chunk-HWBSOZZR-DQTTl_pa.mjs";import{n as D}from"./chunk-MDLLFABN-UsHGHHoh.mjs";import{n as O}from"./chunk-MLXIYONF-CV7WHBm-.mjs";import{n as k}from"./chunk-A65PWWJC-GGt9898w.mjs";import{t as A}from"./chunk-MHTUABJP-Dk5ocjFo.mjs";import{n as j}from"./chunk-4HHKTUW3-Ct4ue15f.mjs";import{n as M}from"./chunk-HJQJAYMS-BS_JF11O.mjs";import{n as N}from"./chunk-PP6PSHAB-DQ3LPONR.mjs";import{i as P,n as F,o as I}from"./chunk-LTZRCH7N-BfgCUlp9.mjs";import{t as L}from"./chunk-YTNYSM6T-DpkSVTln.mjs";import{t as R}from"./chunk-Z6LRHWXI-EsbeaQ3V.mjs";import{n as z}from"./chunk-A7A2DBEE-BqvlRSRw.mjs";import{t as B}from"./chunk-APT7OOP2-DnIeUlVe.mjs";import{n as V}from"./chunk-XKQRETAK-BC2HZ_y9.mjs";import{n as H}from"./chunk-5V6VZH6T-ByuVaPWr.mjs";import{n as U,r as W}from"./chunk-R6QSAL5T-RaNW7MSS.mjs";import{n as G}from"./chunk-YCFVLTST-DsF45PbT.mjs";import{t as K}from"./chunk-GOV5EKKI-CDGzZWfT.mjs";import{t as q}from"./chunk-XVDPCNWR-CkzIJQaO.mjs";import{n as J}from"./chunk-NCNPKYJZ-Ct0_l0YT.mjs";import{t as ne}from"./chunk-TOMNU26N-CrDa7MpH.mjs";import{t as Y}from"./chunk-PYSFUGCK-B_Gv8rUn.mjs";import{t as X}from"./chunk-VYOJP4TV-DN1CSkP5.mjs";import{t as Z}from"./chunk-MYE6AGBJ-DwzjGrc0.mjs";import{t as re}from"./chunk-A7ICOL4V-D5TsVU6v.mjs";import{t as ie}from"./chunk-55VFSPNA-RFvY6zq0.mjs";import{n as ae}from"./chunk-WKFATFPP-CoPg2OGf.mjs";import{n as oe}from"./chunk-JVPRLUMK-D6CRdXSO.mjs";import{t as se}from"./chunk-62RKD26F-DebCAz0V.mjs";import{t as ce}from"./chunk-QCDB2VPH-Bays5mAr.mjs";import{t as le}from"./chunk-F23WWYKW-DLeNVzzD.mjs";import{n as ue}from"./chunk-D4J545R4-KlK3EOFl.mjs";import{t as de}from"./chunk-DCAAORBQ-BUMlCZ4-.mjs";import{n as fe}from"./chunk-GXVXFKBA-D0BDCtkE.mjs";import{n as pe}from"./chunk-5QVNJEHU-BV0xuiYW.mjs";import"./chunk-VLGZJRPG-DpYP_EVp.mjs";import{a as me,n as he,o as ge}from"./chunk-YS3AZT3J-CB0wWPLc.mjs";import{n as _e}from"./chunk-NYQYO467-CY88QCuT.mjs";import{n as ve}from"./chunk-OL3S66CO-CWEDi2F_.mjs";import{t as ye}from"./chunk-KMEYNNUA-Qk0eg7gN.mjs";import{t as be}from"./chunk-MIZPJHVH-BD7tHmLL.mjs";import{n as xe}from"./chunk-A4JSPFCI-CQJoYugB.mjs";import{t as Q}from"./chunk-PBXLG62G-CpvczNyQ.mjs";import{t as Se}from"./chunk-A4HU7SVR-Bjuqsbev.mjs";import{t as Ce}from"./chunk-HJWBQKYG-DknkBuxy.mjs";import{t as we}from"./chunk-64BAICW3-BlirlXmE.mjs";import{n as Te}from"./chunk-T56QNPHK-DmDxJbbD.mjs";import{n as Ee}from"./chunk-V7TAPXDL-CKif4_mH.mjs";import{n as De}from"./chunk-MDDMCKUK-ChL1CU4m.mjs";import{t as Oe}from"./chunk-OCS6LSEM-Bcx6uxmm.mjs";import{n as ke}from"./chunk-OCLXQMOG-DOkdFgyf.mjs";var Ae=[g,a,Te,Ee,De,Oe,ke,be,u,xe,Q,o,Se,Ce,we,de,fe,pe,ge,he,me,_e,ve,n,ye,ae,l,d,oe,se,ce,le,ue,y,Y,X,Z,c,re,ie,S,i,m,q,h,_,v,e,t,J,ne,W,U,s,te,ee,G,r,p,f,K,L,R,z,b,B,V,H,x,D,O,k,A,j,M,N,P,F,I,C,w,T,E];function je(){return Ae}var $=new Map;for(let e of je())$.set(e.name,new Set(e.flags.map(e=>e.flag)));function Me(e,t,n){let r=$.get(t);if(!(!r||r.size===0))for(let i of n)r.has(i)&&e.hit(`cmd:flag:${t}:${i}`)}export{Me as emitFlagCoverage};
2
+ //# sourceMappingURL=flag-coverage-QT4N2Z44-hqAAghSo.mjs.map
@@ -1,3 +1,3 @@
1
- import{No as e}from"./server-lock-CN2YHwpP-COM23IWb.mjs";import{execFileSync as t}from"node:child_process";import{existsSync as n,mkdirSync as r,readFileSync as i,writeFileSync as a}from"node:fs";import{dirname as o,join as s}from"node:path";import{homedir as c}from"node:os";var l=e();const u=`open-knowledge`;function d(e){try{e()}catch{}}var f=class{backend=`keyring`;constructor(e){this.onKeychainRead=e}async get(e){let{Entry:t}=await import(`@napi-rs/keyring`),n;try{n=new t(u,e).getPassword()}catch(t){return d(()=>this.onKeychainRead?.({kind:`read-error`,host:e,error:t instanceof Error?t.name:`unknown`})),null}if(n==null)return d(()=>this.onKeychainRead?.({kind:`absent`,host:e})),null;try{return JSON.parse(n)}catch{return d(()=>this.onKeychainRead?.({kind:`corrupt-entry`,host:e,error:`corrupt-entry`})),null}}async set(e,t,n,r){let{Entry:i}=await import(`@napi-rs/keyring`),a=new i(u,e),o={login:t,token:n,...r};a.setPassword(JSON.stringify(o))}async clear(e){let{Entry:t}=await import(`@napi-rs/keyring`);try{new t(u,e).deletePassword()}catch{}}},p=class{backend=`file`;authFile;constructor(e){this.authFile=e??s(c(),`.ok`,`auth.yml`)}read(){if(!n(this.authFile))return{};try{return(0,l.parse)(i(this.authFile,`utf-8`))??{}}catch(e){let t=e instanceof Error?e.message:`unknown error`;return process.stderr.write(`[auth] Failed to parse ${this.authFile}: ${t}. Starting with empty credentials.\n`),{}}}write(e){let t=o(this.authFile);n(t)||r(t,{recursive:!0,mode:448}),a(this.authFile,(0,l.stringify)(e),{mode:384})}async get(e){return this.read()[e]??null}async set(e,t,n,r){let i=this.read();i[e]={login:t,token:n,...r},this.write(i)}async clear(e){let t=this.read();delete t[e],this.write(t)}},m=class{backend=`keyring`;constructor(e,t){this.keychain=e,this.file=t}async get(e){let t=await this.keychain.get(e);if(t!=null)return t;let n=await this.file.get(e);if(n==null)return null;try{await this.keychain.set(e,n.login,n.token,{gitProtocol:n.gitProtocol,name:n.name,email:n.email}),await this.file.clear(e),process.stderr.write(`[auth] migrated ${e} credential from ~/.ok/auth.yml to the OS keychain\n`)}catch{}return n}set(e,t,n,r){return this.keychain.set(e,t,n,r)}async clear(e){await this.keychain.clear(e),await this.file.get(e)!=null&&await this.file.clear(e)}};async function h(e,t){try{let{Entry:n}=await import(`@napi-rs/keyring`);return new n(u,`__probe__`),process.stderr.write(`[auth] token storage: OS keychain
2
- `),d(()=>t?.onBackendSelected?.({backend:`keyring`})),new m(new f(t?.onKeychainRead),new p(e))}catch(n){let r=n instanceof Error?`${n.name}: ${n.message}`:String(n);return process.stderr.write(`[auth] token storage: file (~/.ok/auth.yml) — OS keychain unavailable: ${r}\n`),d(()=>t?.onBackendSelected?.({backend:`file`,reason:r})),new p(e)}}function g(e){let t=null;return function(){if(t)return t;let n=2e3;return t=(async()=>{let t=null,r=new Promise(r=>{t=setTimeout(()=>{process.stderr.write(`[auth] token storage: keyring init exceeded ${n}ms; falling back to file (~/.ok/auth.yml)\n`),r(new p(e))},n)});try{return await Promise.race([h(e),r])}catch{return new p(e)}finally{t!==null&&clearTimeout(t)}})(),t}}function _(e){let t=g(e);return{async get(e){let n=await(await t()).get(e);return n===null?null:{token:n.token}}}}function v(e){let t=g(e);return{backend:`file`,async get(e){return(await t()).get(e)},async set(e,n,r,i){return(await t()).set(e,n,r,i)},async clear(e){return(await t()).clear(e)}}}async function y(e,t){let n=[],r=new p(t);await r.get(e)!=null&&(await r.clear(e),n.push(`file`));try{let{Entry:t}=await import(`@napi-rs/keyring`);new t(u,`__probe__`);let r=new f;await r.get(e)!=null&&(await r.clear(e),n.push(`keychain`))}catch{}return{touched:n}}const b=[`/opt/homebrew/bin/gh`,`/usr/local/bin/gh`,`/opt/local/bin/gh`,`/snap/bin/gh`,`/usr/bin/gh`];function x(e,r={}){let i=r._exec??t,a=r._fileExists??n,o=[`auth`,`token`,...e?[`--hostname`,e]:[]],s=[`gh`,...b.filter(a)];for(let e of s)try{let t=i(e,o,{encoding:`utf-8`,stdio:[`ignore`,`pipe`,`pipe`],timeout:5e3}).toString().trim();if(t.length>0)return{available:!0,token:t}}catch{}return{available:!1}}export{v as a,_ as i,y as n,h as r,x as t};
3
- //# sourceMappingURL=gh-detect-BDIdc7oG.mjs.map
1
+ import{No as e}from"./server-lock-CN2YHwpP-aP9IA5H6.mjs";import{execFileSync as t}from"node:child_process";import{dirname as n,join as r}from"node:path";import{existsSync as i,mkdirSync as a,readFileSync as o,writeFileSync as s}from"node:fs";import{homedir as c}from"node:os";var l=e();const u=`open-knowledge`;function d(e){try{e()}catch{}}var f=class{backend=`keyring`;constructor(e){this.onKeychainRead=e}async get(e){let{Entry:t}=await import(`@napi-rs/keyring`),n;try{n=new t(u,e).getPassword()}catch(t){return d(()=>this.onKeychainRead?.({kind:`read-error`,host:e,error:t instanceof Error?t.name:`unknown`})),null}if(n==null)return d(()=>this.onKeychainRead?.({kind:`absent`,host:e})),null;try{return JSON.parse(n)}catch{return d(()=>this.onKeychainRead?.({kind:`corrupt-entry`,host:e,error:`corrupt-entry`})),null}}async set(e,t,n,r){let{Entry:i}=await import(`@napi-rs/keyring`),a=new i(u,e),o={login:t,token:n,...r};a.setPassword(JSON.stringify(o))}async clear(e){let{Entry:t}=await import(`@napi-rs/keyring`);try{new t(u,e).deletePassword()}catch{}}},p=class{backend=`file`;authFile;constructor(e){this.authFile=e??r(c(),`.ok`,`auth.yml`)}read(){if(!i(this.authFile))return{};try{return(0,l.parse)(o(this.authFile,`utf-8`))??{}}catch(e){let t=e instanceof Error?e.message:`unknown error`;return process.stderr.write(`[auth] Failed to parse ${this.authFile}: ${t}. Starting with empty credentials.\n`),{}}}write(e){let t=n(this.authFile);i(t)||a(t,{recursive:!0,mode:448}),s(this.authFile,(0,l.stringify)(e),{mode:384})}async get(e){return this.read()[e]??null}async set(e,t,n,r){let i=this.read();i[e]={login:t,token:n,...r},this.write(i)}async clear(e){let t=this.read();delete t[e],this.write(t)}},m=class{backend=`keyring`;constructor(e,t){this.keychain=e,this.file=t}async get(e){let t=await this.keychain.get(e);if(t!=null)return t;let n=await this.file.get(e);if(n==null)return null;try{await this.keychain.set(e,n.login,n.token,{gitProtocol:n.gitProtocol,name:n.name,email:n.email}),await this.file.clear(e),process.stderr.write(`[auth] migrated ${e} credential from ~/.ok/auth.yml to the OS keychain\n`)}catch{}return n}set(e,t,n,r){return this.keychain.set(e,t,n,r)}async clear(e){await this.keychain.clear(e),await this.file.get(e)!=null&&await this.file.clear(e)}};async function h(e,t){try{let{Entry:n}=await import(`@napi-rs/keyring`);return new n(u,`__probe__`),process.stderr.write(`[auth] token storage: OS keychain
2
+ `),d(()=>t?.onBackendSelected?.({backend:`keyring`})),new m(new f(t?.onKeychainRead),new p(e))}catch(n){let r=n instanceof Error?`${n.name}: ${n.message}`:String(n);return process.stderr.write(`[auth] token storage: file (~/.ok/auth.yml) — OS keychain unavailable: ${r}\n`),d(()=>t?.onBackendSelected?.({backend:`file`,reason:r})),new p(e)}}function g(e){let t=null;return function(){if(t)return t;let n=2e3;return t=(async()=>{let t=null,r=new Promise(r=>{t=setTimeout(()=>{process.stderr.write(`[auth] token storage: keyring init exceeded ${n}ms; falling back to file (~/.ok/auth.yml)\n`),r(new p(e))},n)});try{return await Promise.race([h(e),r])}catch{return new p(e)}finally{t!==null&&clearTimeout(t)}})(),t}}function _(e){let t=g(e);return{async get(e){let n=await(await t()).get(e);return n===null?null:{token:n.token}}}}function v(e){let t=g(e);return{backend:`file`,async get(e){return(await t()).get(e)},async set(e,n,r,i){return(await t()).set(e,n,r,i)},async clear(e){return(await t()).clear(e)}}}async function y(e,t){let n=[],r=new p(t);await r.get(e)!=null&&(await r.clear(e),n.push(`file`));try{let{Entry:t}=await import(`@napi-rs/keyring`);new t(u,`__probe__`);let r=new f;await r.get(e)!=null&&(await r.clear(e),n.push(`keychain`))}catch{}return{touched:n}}const b=[`/opt/homebrew/bin/gh`,`/usr/local/bin/gh`,`/opt/local/bin/gh`,`/snap/bin/gh`,`/usr/bin/gh`];function x(e,n={}){let r=n._exec??t,a=n._fileExists??i,o=[`auth`,`token`,...e?[`--hostname`,e]:[]],s=[`gh`,...b.filter(a)];for(let e of s)try{let t=r(e,o,{encoding:`utf-8`,stdio:[`ignore`,`pipe`,`pipe`],timeout:5e3}).toString().trim();if(t.length>0)return{available:!0,token:t}}catch{}return{available:!1}}export{v as a,_ as i,y as n,h as r,x as t};
3
+ //# sourceMappingURL=gh-detect-BDCCLwpS.mjs.map
package/dist/index.d.mts CHANGED
@@ -125,10 +125,11 @@ declare function formatTrackedRemediation(tracked: readonly string[]): string;
125
125
  interface EditorMcpResult {
126
126
  editorId: EditorId;
127
127
  label: string;
128
- action: 'written' | 'overwritten' | 'skipped-missing' | 'skipped-flag' | 'failed';
128
+ action: 'written' | 'overwritten' | 'skipped-missing' | 'skipped-flag' | 'failed' | 'declined';
129
129
  configPath: string;
130
130
  serverName: string;
131
131
  error?: string;
132
+ declineReason?: McpDeclineReason;
132
133
  configScope?: 'project';
133
134
  }
134
135
  declare const LAUNCH_CONFIG_NAME = "open-knowledge-ui";
@@ -148,6 +149,7 @@ interface UserMcpConfigsOptions {
148
149
  }
149
150
  declare function writeUserMcpConfigs(opts: UserMcpConfigsOptions): Promise<EditorMcpResult[]>;
150
151
  declare function readExistingMcpEntry(target: EditorMcpTarget, cwd: string, home?: string, configPathOverride?: string): Record<string, unknown> | null;
152
+ type McpDeclineReason = 'unparseable' | 'duplicate-container' | 'oversize' | 'no-native-writer';
151
153
  type McpEntryClassification = {
152
154
  kind: 'absent';
153
155
  } | {
@@ -156,12 +158,31 @@ type McpEntryClassification = {
156
158
  kind: 'present';
157
159
  entry: Record<string, unknown>;
158
160
  } | {
159
- kind: 'corrupt';
160
- error: string;
161
+ kind: 'decline';
162
+ reason: McpDeclineReason;
161
163
  };
162
164
  declare function classifyExistingMcpEntry(target: EditorMcpTarget, cwd: string, home?: string, configPathOverride?: string): McpEntryClassification;
163
165
  declare function detectInstalledEditors(cwd: string, home?: string): EditorId[];
164
166
  //#endregion
167
+ //#region src/commands/mcp-decline-event.d.ts
168
+ type McpConfigDeclineScope = 'user' | 'project';
169
+ type McpConfigDeclineSurface = 'desktop-startup' | 'desktop-project-open' | 'desktop-firstlaunch';
170
+ interface McpConfigDeclineInput {
171
+ scope: McpConfigDeclineScope;
172
+ surface: McpConfigDeclineSurface;
173
+ editorId: string;
174
+ reason: McpDeclineReason;
175
+ }
176
+ interface McpConfigDeclineEvent {
177
+ event: 'mcp-config-decline';
178
+ scope: McpConfigDeclineScope;
179
+ surface: McpConfigDeclineSurface;
180
+ editorId: string;
181
+ reason: McpDeclineReason;
182
+ [key: string]: unknown;
183
+ }
184
+ declare function buildMcpConfigDeclineEvent(input: McpConfigDeclineInput): McpConfigDeclineEvent;
185
+ //#endregion
165
186
  //#region src/commands/mcp-migrate-event.d.ts
166
187
  type McpConfigMigrateScope = 'user' | 'project';
167
188
  interface McpConfigMigrateInput {
@@ -304,9 +325,10 @@ type IntegrationId = 'mcp-config' | 'project-skill';
304
325
  interface IntegrationWriteOutcome {
305
326
  readonly integration: IntegrationId;
306
327
  readonly editorId: EditorId;
307
- readonly action: 'written' | 'overwritten' | 'skipped-unsupported' | 'failed';
328
+ readonly action: 'written' | 'overwritten' | 'skipped-unsupported' | 'declined' | 'failed';
308
329
  readonly path?: string;
309
330
  readonly error?: string;
331
+ readonly reason?: McpDeclineReason;
310
332
  }
311
333
  //#endregion
312
334
  //#region src/integrations/resolve-project-root.d.ts
@@ -348,5 +370,5 @@ interface ProjectAiIntegrationsResult {
348
370
  }
349
371
  declare function writeProjectAiIntegrations(projectDir: string, selectedEditorIds: readonly EditorId[], installOptions?: McpInstallOptions): ProjectAiIntegrationsResult;
350
372
  //#endregion
351
- export { ALL_EDITOR_IDS, EDITOR_LABELS, EDITOR_TARGETS, type EditorId, type EditorMcpResult, type EditorMcpTarget, type ExcludeWriteResult, type ExpectedShareRepo, type GhDetectResult, HOSTS_WITH_USER_SKILL_DIR, type IntegrationWriteOutcome, LAUNCH_CONFIG_NAME, LAUNCH_UI_CHAIN_SENTINEL, LAUNCH_UI_CHAIN_V1, type LaunchJsonResult, type LoadConfigResult, type McpConfigMigrateEvent, type McpConfigMigrateScope, type McpEntryClassification, type McpInstallOptions, type ParsedGitHubBlobUrl, type ParsedGitHubShareTarget, type ParsedGitHubTreeUrl, type PreviewResult, type ProjectAiIntegrationsResult, type ResolveProjectRootOptions, type ResolveProjectRootResult, type ShareFolderValidationResult, type SharingMode, type TokenStore, type TrackedRefusal, type UserMcpConfigsOptions, addOkPathsToGitExclude, assertProjectPathSafe, buildManagedServerEntry, buildMcpConfigMigrateEvent, classifyExistingMcpEntry, createTokenStore, detectGh, detectInstalledEditors, formatTrackedRemediation, getExcludedOkPaths, getOkArtifactPaths, isEntryUpToDate, isOwnManagedEntry, loadConfig, makeLazyProbeTokenStore, parseGitHubBlobUrl, parseGitHubShareUrl, parseGitHubTreeUrl, parseGitUrl, previewContent, probeTrackedOkPaths, readExistingMcpEntry, readSharingMode, removeOkPathsFromGitExclude, resolveProjectRoot, runStop, scaffoldLaunchJson, truncatePriorEntry, validateLocalFolderForShare, writeEditorMcpConfig, writeProjectAiIntegrations, writeUserMcpConfigs };
373
+ export { ALL_EDITOR_IDS, EDITOR_LABELS, EDITOR_TARGETS, type EditorId, type EditorMcpResult, type EditorMcpTarget, type ExcludeWriteResult, type ExpectedShareRepo, type GhDetectResult, HOSTS_WITH_USER_SKILL_DIR, type IntegrationWriteOutcome, LAUNCH_CONFIG_NAME, LAUNCH_UI_CHAIN_SENTINEL, LAUNCH_UI_CHAIN_V1, type LaunchJsonResult, type LoadConfigResult, type McpConfigDeclineEvent, type McpConfigDeclineScope, type McpConfigMigrateEvent, type McpConfigMigrateScope, type McpDeclineReason, type McpEntryClassification, type McpInstallOptions, type ParsedGitHubBlobUrl, type ParsedGitHubShareTarget, type ParsedGitHubTreeUrl, type PreviewResult, type ProjectAiIntegrationsResult, type ResolveProjectRootOptions, type ResolveProjectRootResult, type ShareFolderValidationResult, type SharingMode, type TokenStore, type TrackedRefusal, type UserMcpConfigsOptions, addOkPathsToGitExclude, assertProjectPathSafe, buildManagedServerEntry, buildMcpConfigDeclineEvent, buildMcpConfigMigrateEvent, classifyExistingMcpEntry, createTokenStore, detectGh, detectInstalledEditors, formatTrackedRemediation, getExcludedOkPaths, getOkArtifactPaths, isEntryUpToDate, isOwnManagedEntry, loadConfig, makeLazyProbeTokenStore, parseGitHubBlobUrl, parseGitHubShareUrl, parseGitHubTreeUrl, parseGitUrl, previewContent, probeTrackedOkPaths, readExistingMcpEntry, readSharingMode, removeOkPathsFromGitExclude, resolveProjectRoot, runStop, scaffoldLaunchJson, truncatePriorEntry, validateLocalFolderForShare, writeEditorMcpConfig, writeProjectAiIntegrations, writeUserMcpConfigs };
352
374
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{i as e,r as t,t as n}from"./gh-detect-BDIdc7oG.mjs";import{C as r,E as i,S as a,T as o,_ as s,b as c,d as l,g as u,h as d,i as f,o as p,r as m,s as h,t as g,w as _,x as v,y}from"./init-DJH9fDpw.mjs";import{c as b,d as x,l as S,n as C,r as w,t as T,u as E}from"./src-ajPS5oto.mjs";import{a as D,c as O,l as k,o as A,r as j,s as M,t as N,u as P}from"./write-project-skill-TvNCLXKO.mjs";import{n as F}from"./loader-DkRFzG9j.mjs";import{n as I}from"./preview-xUtZ_Wnl.mjs";import{n as L,t as R}from"./mcp-migrate-event-D0NrGjvc.mjs";export{j as ALL_EDITOR_IDS,D as EDITOR_LABELS,A as EDITOR_TARGETS,M as HOSTS_WITH_USER_SKILL_DIR,g as LAUNCH_CONFIG_NAME,m as LAUNCH_UI_CHAIN_SENTINEL,f as LAUNCH_UI_CHAIN_V1,c as addOkPathsToGitExclude,N as assertProjectPathSafe,O as buildManagedServerEntry,R as buildMcpConfigMigrateEvent,p as classifyExistingMcpEntry,t as createTokenStore,n as detectGh,h as detectInstalledEditors,v as formatTrackedRemediation,a as getExcludedOkPaths,r as getOkArtifactPaths,k as isEntryUpToDate,P as isOwnManagedEntry,F as loadConfig,e as makeLazyProbeTokenStore,b as parseGitHubBlobUrl,S as parseGitHubShareUrl,E as parseGitHubTreeUrl,x as parseGitUrl,I as previewContent,_ as probeTrackedOkPaths,l as readExistingMcpEntry,o as readSharingMode,i as removeOkPathsFromGitExclude,y as resolveProjectRoot,w as runStop,d as scaffoldLaunchJson,L as truncatePriorEntry,C as validateLocalFolderForShare,u as writeEditorMcpConfig,T as writeProjectAiIntegrations,s as writeUserMcpConfigs};
1
+ import{i as e,r as t,t as n}from"./gh-detect-BDCCLwpS.mjs";import{C as r,E as i,S as a,T as o,_ as s,b as c,d as l,g as u,h as d,i as f,o as p,r as m,s as h,t as g,w as _,x as v,y}from"./init-eaHzzLcd.mjs";import{d as b,f as x,i as S,l as C,n as w,r as T,t as E,u as D}from"./src-DYiP4t4O.mjs";import{a as O,c as k,l as A,o as j,r as M,s as N,t as P,u as F}from"./write-project-skill-DzjgQ8XK.mjs";import{n as I}from"./loader-DcKU2Suk.mjs";import{n as L}from"./preview-Df40RFQg.mjs";import{n as R,t as z}from"./mcp-migrate-event-D0NrGjvc.mjs";export{M as ALL_EDITOR_IDS,O as EDITOR_LABELS,j as EDITOR_TARGETS,N as HOSTS_WITH_USER_SKILL_DIR,g as LAUNCH_CONFIG_NAME,m as LAUNCH_UI_CHAIN_SENTINEL,f as LAUNCH_UI_CHAIN_V1,c as addOkPathsToGitExclude,P as assertProjectPathSafe,k as buildManagedServerEntry,T as buildMcpConfigDeclineEvent,z as buildMcpConfigMigrateEvent,p as classifyExistingMcpEntry,t as createTokenStore,n as detectGh,h as detectInstalledEditors,v as formatTrackedRemediation,a as getExcludedOkPaths,r as getOkArtifactPaths,A as isEntryUpToDate,F as isOwnManagedEntry,I as loadConfig,e as makeLazyProbeTokenStore,C as parseGitHubBlobUrl,D as parseGitHubShareUrl,b as parseGitHubTreeUrl,x as parseGitUrl,L as previewContent,_ as probeTrackedOkPaths,l as readExistingMcpEntry,o as readSharingMode,i as removeOkPathsFromGitExclude,y as resolveProjectRoot,S as runStop,d as scaffoldLaunchJson,R as truncatePriorEntry,w as validateLocalFolderForShare,u as writeEditorMcpConfig,E as writeProjectAiIntegrations,s as writeUserMcpConfigs};
@@ -0,0 +1 @@
1
+ import{m as e}from"./init-eaHzzLcd.mjs";export{e as runInit};