@compass-ai/nova 1.0.30 → 1.0.32
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/dist/cli.js +370 -370
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var hvr=Object.create;var $fe=Object.defineProperty;var gvr=Object.getOwnPropertyDescriptor;var yvr=Object.getOwnPropertyNames;var Ivr=Object.getPrototypeOf,bvr=Object.prototype.hasOwnProperty;var hs=(i=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(i,{get:(r,n)=>(typeof require<"u"?require:r)[n]}):i)(function(i){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+i+'" is not supported')});var ar=(i,r)=>()=>(i&&(r=i(i=0)),r);var ut=(i,r)=>()=>(r||i((r={exports:{}}).exports,r),r.exports),nN=(i,r)=>{for(var n in r)$fe(i,n,{get:r[n],enumerable:!0})},Nyt=(i,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of yvr(r))!bvr.call(i,l)&&l!==n&&$fe(i,l,{get:()=>r[l],enumerable:!(o=gvr(r,l))||o.enumerable});return i};var To=(i,r,n)=>(n=i!=null?hvr(Ivr(i)):{},Nyt(r||!i||!i.__esModule?$fe(n,"default",{value:i,enumerable:!0}):n,i)),vvr=i=>Nyt($fe({},"__esModule",{value:!0}),i);function kyt(i){if(typeof i!="object"||i===null)return!1;let r=i;return typeof r.dataCollection=="boolean"&&typeof r.telemetry=="boolean"&&typeof r.analytics=="boolean"&&typeof r.errorReporting=="boolean"}function Nvr(i){if(typeof i!="object"||i===null)return!1;let r=i;return typeof r.id=="string"&&typeof r.version=="string"&&typeof r.grantedAt=="string"&&typeof r.expiresAt=="string"&&kyt(r.consent)}function kvr(){return{dataCollection:Kfe.dataCollection.defaultValue,telemetry:Kfe.telemetry.defaultValue,analytics:Kfe.analytics.defaultValue,errorReporting:Kfe.errorReporting.defaultValue}}function Fvr(){return{dataCollection:!0,telemetry:!0,analytics:!0,errorReporting:!0}}function Rvr(){return{dataCollection:!0,telemetry:!1,analytics:!1,errorReporting:!1}}var ZVe,Kfe,DVe=ar(()=>{"use strict";ZVe="1.0.0",Kfe={dataCollection:{title:"Data Collection",description:"Allow Compass to store conversation history and session data locally for improved functionality.",required:!0,defaultValue:!0},telemetry:{title:"Anonymous Telemetry",description:"Help improve Compass by sending anonymous usage statistics.",required:!1,defaultValue:!1},analytics:{title:"Analytics",description:"Allow collection of feature usage patterns to improve the product.",required:!1,defaultValue:!1},errorReporting:{title:"Error Reporting",description:"Automatically send error reports to help fix bugs.",required:!1,defaultValue:!0}}});var AY,SY=ar(()=>{"use strict";AY=(l=>(l.MANUAL="manual",l.AUTO="auto",l.STRICT="strict",l.SMART="smart",l))(AY||{})});var vq,PVe,eme,xq=ar(()=>{"use strict";vq=(h=>(h.DIRECT="direct",h.CLARIFICATION="clarification",h.TODO_LIST="todo_list",h.PLAN="plan",h.PLAN_ADOPT="plan_adopt",h.NO_ACTION="no_action",h))(vq||{}),PVe=(v=>(v.PENDING="pending",v.IN_PROGRESS="in_progress",v.PAUSED="paused",v.COMPLETED="completed",v.FAILED="failed",v.SKIPPED="skipped",v.ROLLED_BACK="rolled_back",v))(PVe||{}),eme=(P=>(P.IDLE="idle",P.CONTEXT_GATHERING="context_gathering",P.COMPLEXITY_ASSESSMENT="complexity_assessment",P.CLARIFICATION="clarification",P.PLAN_GENERATION="plan_generation",P.PLAN_REVIEW="plan_review",P.EXECUTION="execution",P.VERIFICATION="verification",P.COMPLETED="completed",P.FAILED="failed",P))(eme||{})});function YVe(i){return typeof i=="string"&&["default","acceptEditsAsk","bypassPermissions","plan","ignore","acceptEdits","dontAsk"].includes(i)}function Mvr(i){return typeof i=="string"&&["project","cli","user","builtin"].includes(i)}function OVe(i){if(typeof i!="object"||i===null)return!1;let r=i;return!(typeof r.name!="string"||r.name.length===0||typeof r.description!="string"||r.description.length===0||r.tools!==void 0&&typeof r.tools!="string"||r.disallowedTools!==void 0&&typeof r.disallowedTools!="string"||r.model!==void 0&&typeof r.model!="string"||r.permissionMode!==void 0&&!YVe(r.permissionMode)||r.skills!==void 0&&typeof r.skills!="string"||r.standalone!==void 0&&typeof r.standalone!="boolean"||r.mcpServers!==void 0&&typeof r.mcpServers!="string")}function Yvr(i){if(typeof i!="object"||i===null)return!1;let r=i;return!(typeof r.description!="string"||typeof r.prompt!="string"||r.tools!==void 0&&!Array.isArray(r.tools)||r.disallowedTools!==void 0&&!Array.isArray(r.disallowedTools)||r.model!==void 0&&typeof r.model!="string"||r.permissionMode!==void 0&&!YVe(r.permissionMode)||r.skills!==void 0&&!Array.isArray(r.skills)||r.standalone!==void 0&&typeof r.standalone!="boolean"||r.mcpServers!==void 0&&!Array.isArray(r.mcpServers))}function Ovr(i,r,n,o="builtin"){return{id:`${o}-${i}`,name:i,description:r,systemPrompt:n,source:o,permissionMode:"default",isActive:!0,rawFrontmatter:{name:i,description:r}}}function GY(i){if(!(!i||i.trim()===""))return i.split(",").map(r=>r.trim()).filter(r=>r.length>0)}function Hvr(i){if(!(!i||i.length===0))return i.join(", ")}function MVe(i){return tme.indexOf(i)}function Jvr(i,r){return MVe(i.source)-MVe(r.source)}var tme,HVe=ar(()=>{"use strict";tme=["builtin","user","cli","project"]});var Jyt={};nN(Jyt,{CLAUDE_MODELS:()=>Sw,MODEL_ALIASES:()=>wq,calculateModelCost:()=>Dyt,compareModels:()=>Pyt,getAvailableAliases:()=>Ryt,getAvailableModelIds:()=>Fyt,getAvailableModels:()=>EY,getCheapestModel:()=>Yyt,getDefaultModel:()=>Vyt,getDefaultModelId:()=>Zyt,getModelConfig:()=>Aw,getModelDescription:()=>rme,getModelTier:()=>Hyt,getModelsByCapability:()=>Myt,getMostCapableModel:()=>Oyt,isValidModel:()=>Wyt,resolveModelId:()=>Gw});function Gw(i){let r=i.toLowerCase();if(wq[r])return wq[r];for(let n of Object.keys(Sw))if(n.toLowerCase()===r)return n;return i}function Aw(i){let r=Gw(i);return Sw[r]}function EY(){return Object.values(Sw)}function Fyt(){return Object.keys(Sw)}function Ryt(){return Object.keys(wq)}function Wyt(i){return Gw(i)in Sw}function Vyt(){return Sw["claude-sonnet-4-5-20250929"]}function Zyt(){return"claude-sonnet-4-5-20250929"}function Dyt(i,r,n){let o=Aw(i);if(!o)return null;let l=r/1e6*o.pricing.inputPricePerMillion,f=n/1e6*o.pricing.outputPricePerMillion;return l+f}function Pyt(i,r,n){let o=Aw(i),l=Aw(r);if(!o||!l)return 0;switch(n){case"price":return o.pricing.inputPricePerMillion-l.pricing.inputPricePerMillion;case"context":return l.contextWindow-o.contextWindow;case"speed":return l.pricing.inputPricePerMillion-o.pricing.inputPricePerMillion;default:return 0}}function Myt(i){return EY().filter(r=>r.capabilities[i])}function Yyt(){return EY().reduce((r,n)=>n.pricing.inputPricePerMillion<r.pricing.inputPricePerMillion?n:r)}function Oyt(){return Sw["claude-opus-4-5-20251101"]}function Hyt(i){let r=Gw(i);if(r.includes("haiku"))return"economy";if(r.includes("sonnet"))return"balanced";if(r.includes("opus"))return"premium"}function rme(i){let r=Gw(i);if(r.includes("opus"))return"Most capable model - best for complex reasoning, analysis, and extended thinking";if(r.includes("sonnet"))return"Balanced performance and cost - ideal for most coding tasks";if(r.includes("haiku"))return"Fastest and most economical - great for quick responses and simple tasks"}var Sw,wq,TW=ar(()=>{"use strict";Sw={"claude-sonnet-4-5-20250929":{id:"claude-sonnet-4-5-20250929",name:"Claude Sonnet 4.5",contextWindow:2e5,maxOutputTokens:8192,pricing:{inputPricePerMillion:3,outputPricePerMillion:15},capabilities:{vision:!0,toolUse:!0,streaming:!0,extendedThinking:!1}},"claude-opus-4-5-20251101":{id:"claude-opus-4-5-20251101",name:"Claude Opus 4.5",contextWindow:2e5,maxOutputTokens:8192,pricing:{inputPricePerMillion:15,outputPricePerMillion:75},capabilities:{vision:!0,toolUse:!0,streaming:!0,extendedThinking:!0}},"claude-haiku-4-5-20251001":{id:"claude-haiku-4-5-20251001",name:"Claude Haiku 4.5",contextWindow:2e5,maxOutputTokens:8192,pricing:{inputPricePerMillion:.25,outputPricePerMillion:1.25},capabilities:{vision:!0,toolUse:!0,streaming:!0,extendedThinking:!1}}},wq={sonnet:"claude-sonnet-4-5-20250929",opus:"claude-opus-4-5-20251101",haiku:"claude-haiku-4-5-20251001",fast:"claude-haiku-4-5-20251001",quick:"claude-haiku-4-5-20251001",smart:"claude-sonnet-4-5-20250929",balanced:"claude-sonnet-4-5-20250929",powerful:"claude-opus-4-5-20251101",best:"claude-opus-4-5-20251101",s:"claude-sonnet-4-5-20250929",o:"claude-opus-4-5-20251101",h:"claude-haiku-4-5-20251001"}});var Aq,Sq,CY,nme,JVe,Gq,LVe,XVe,Uvr,TY,QVe,jvr,UVe,jVe,iN,BVe,zVe,Bvr,zvr,qvr,qVe,$Ve,KVe,ime,$vr,Kvr,sme,e7e,Eq,exr,txr,rxr,nxr,l4,NY,t7e,ixr,sxr,axr,oxr,cxr,wE,u4,lxr,uxr,pxr,dxr,fxr,r7e,n7e,mxr,Um=ar(()=>{"use strict";Aq=".compass",Sq=".compass",CY="config.json",nme="session.json",JVe="consent.json",Gq="credentials.enc",LVe="logs",XVe="backups",Uvr="cache",TY="saved-sessions",QVe="index",jvr="context",UVe="commands",jVe="agents",iN=16384,BVe=5e4,zVe=5e4,Bvr=80,zvr=10,qvr=30,qVe=30,$Ve=365,KVe=6e4,ime=3e4,$vr=50,Kvr=1048576,sme=100,e7e=8e3,Eq=4e3,exr=6e3,txr=90,rxr=1e5,nxr=524288e3,l4="claude-sonnet-4-5-20250929",NY=.6,t7e="haiku",ixr="banner",sxr=4,axr=1e3,oxr=16e3,cxr=.1,wE={anthropic:{model:l4,maxTokens:16384,temperature:.6},project:{rootDir:process.cwd(),ignorePatterns:["node_modules/**",".git/**","dist/**","build/**","out/**","coverage/**",".next/**",".nuxt/**",".output/**","*.log",".env*","*.lock","package-lock.json","yarn.lock","pnpm-lock.yaml",".DS_Store","Thumbs.db","*.min.js","*.min.css","*.map",".compass/**"],includePatterns:["**/*"],maxFileSize:1048576,indexOnStartup:!0},safety:{requireApproval:!0,autoApprovePatterns:[],blockedPatterns:[".env*","*.key","*.pem","*.p12","*.pfx","secrets/**","**/secrets/**","**/*.secret","**/credentials*","**/password*"],maxFilesPerOperation:50,backupBeforeModify:!0,shellCommandTimeout:3e4,allowedShellCommands:["npm","npx","yarn","pnpm","git","node","tsc","eslint","prettier","jest","vitest","mocha","cargo","rustc","go","python","python3","pip","pip3","poetry","make","cmake","gradle","mvn","docker","kubectl","terraform","aws","gcloud","az","cat","ls","pwd","echo","head","tail","grep","find","wc","sort","uniq","diff","tree"],blockedShellCommands:["rm -rf /","rm -rf /*","rm -rf ~","rm -rf ~/*","sudo rm -rf",":(){:|:&};:","mkfs","dd if=/dev/zero","dd if=/dev/random","> /dev/sda","chmod -R 777 /","chown -R","wget | sh","curl | sh","wget | bash","curl | bash"]},ui:{theme:"auto",showTokenUsage:!0,showTimestamps:!1,compactMode:!1,animationsEnabled:!0,colorOutput:!0},session:{autoSave:!0,autoSaveInterval:6e4,maxHistoryLength:100,autoCompactThreshold:5e4,sessionExpiryDays:30},update:{checkOnStartup:!0,checkInterval:24,showNotifications:!0,notificationStyle:ixr,includePrerelease:!1},agentic:{maxIterations:200,costWarningThreshold:5,costHardCap:0,autoCompactAtPercent:80,stuckDetectionEnabled:!0,stuckDetectionThreshold:3,maxIterationsPerTask:50}},u4={API_KEY:"ANTHROPIC_API_KEY",COMPASS_API_KEY:"COMPASS_API_KEY",MODEL:"COMPASS_MODEL",CONFIG_PATH:"COMPASS_CONFIG",DEBUG:"COMPASS_DEBUG",NO_COLOR:"NO_COLOR",FORCE_COLOR:"FORCE_COLOR",HOME:"HOME",USERPROFILE:"USERPROFILE"},lxr="1.0.30",uxr="Compass CLI",pxr="Agentic CLI by Compass Agentic Platform",dxr="1.0.0",fxr={".ts":"typescript",".tsx":"typescript",".js":"javascript",".jsx":"javascript",".mjs":"javascript",".cjs":"javascript",".py":"python",".rb":"ruby",".go":"go",".rs":"rust",".java":"java",".kt":"kotlin",".scala":"scala",".cs":"csharp",".fs":"fsharp",".cpp":"cpp",".cc":"cpp",".cxx":"cpp",".c":"c",".h":"c",".hpp":"cpp",".swift":"swift",".php":"php",".pl":"perl",".pm":"perl",".sh":"bash",".bash":"bash",".zsh":"zsh",".fish":"fish",".ps1":"powershell",".sql":"sql",".r":"r",".R":"r",".lua":"lua",".vim":"vim",".el":"elisp",".clj":"clojure",".cljs":"clojure",".ex":"elixir",".exs":"elixir",".erl":"erlang",".hrl":"erlang",".hs":"haskell",".ml":"ocaml",".mli":"ocaml",".nim":"nim",".zig":"zig",".v":"v",".d":"d",".dart":"dart",".groovy":"groovy",".gradle":"groovy",".json":"json",".yaml":"yaml",".yml":"yaml",".toml":"toml",".xml":"xml",".html":"html",".htm":"html",".css":"css",".scss":"scss",".sass":"sass",".less":"less",".md":"markdown",".mdx":"markdown",".rst":"restructuredtext",".tex":"latex",".dockerfile":"dockerfile",".tf":"terraform",".hcl":"hcl",".proto":"protobuf",".graphql":"graphql",".gql":"graphql",".vue":"vue",".svelte":"svelte",".astro":"astro"},r7e=["package-lock.json","yarn.lock","pnpm-lock.yaml","composer.lock","Gemfile.lock","poetry.lock","Cargo.lock","go.sum","*.map","*.js.map","*.css.map","*.min.js","*.min.css","*.bundle.js","*.chunk.js","*.sql","*.csv","**/__snapshots__/**","**/fixtures/**/*.json","*.d.ts.map"],n7e=["node_modules",".git","dist","build","out","coverage",".next",".nuxt",".output",".cache",".parcel-cache","vendor","__pycache__",".pytest_cache","target","bin","obj"],mxr=[".png",".jpg",".jpeg",".gif",".bmp",".ico",".webp",".svg",".pdf",".doc",".docx",".xls",".xlsx",".ppt",".pptx",".zip",".tar",".gz",".rar",".7z",".exe",".dll",".so",".dylib",".bin",".dat",".db",".sqlite",".sqlite3",".woff",".woff2",".ttf",".otf",".eot",".mp3",".mp4",".wav",".avi",".mov",".mkv",".webm",".flv",".class",".jar",".war",".ear",".pyc",".pyo",".o",".obj",".a",".lib"]});var Uyt=ut((lpn,i7e)=>{"use strict";var Lyt=hs("path"),Xyt=hs("module"),_xr=hs("fs"),Qyt=(i,r,n)=>{if(typeof i!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof i}\``);if(typeof r!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof r}\``);try{i=_xr.realpathSync(i)}catch(f){if(f.code==="ENOENT")i=Lyt.resolve(i);else{if(n)return null;throw f}}let o=Lyt.join(i,"noop.js"),l=()=>Xyt._resolveFilename(r,{id:o,filename:o,paths:Xyt._nodeModulePaths(i)});if(n)try{return l()}catch{return null}return l()};i7e.exports=(i,r)=>Qyt(i,r);i7e.exports.silent=(i,r)=>Qyt(i,r,!0)});var Byt=ut((upn,s7e)=>{"use strict";var jyt=()=>{let i=Error.prepareStackTrace;Error.prepareStackTrace=(n,o)=>o;let r=new Error().stack.slice(1);return Error.prepareStackTrace=i,r};s7e.exports=jyt;s7e.exports.default=jyt});var qyt=ut((ppn,zyt)=>{"use strict";var hxr=Byt();zyt.exports=i=>{let r=hxr();if(!i)return r[2].getFileName();let n=!1;r.shift();for(let o of r){let l=o.getFileName();if(typeof l=="string"){if(l===i){n=!0;continue}if(l!=="module.js"&&n&&l!==i)return l}}}});var Kyt=ut((dpn,$yt)=>{"use strict";var gxr=hs("path"),yxr=Uyt(),Ixr=qyt();$yt.exports=i=>{if(typeof i!="string")throw new TypeError("Expected a string");let r=Ixr(__filename),n=r?gxr.dirname(r):__dirname,o=yxr(n,i),l=hs.cache[o];if(l&&l.parent){let h=l.parent.children.length;for(;h--;)l.parent.children[h].id===o&&l.parent.children.splice(h,1)}delete hs.cache[o];let f=hs.cache[r];return f===void 0||f.require===void 0?hs(o):f.require(o)}});var tIt=ut((mpn,eIt)=>{"use strict";eIt.exports=function(r){return r?r instanceof Array||Array.isArray(r)||r.length>=0&&r.splice instanceof Function:!1}});var nIt=ut((_pn,rIt)=>{"use strict";var bxr=hs("util"),vxr=tIt(),a7e=function(r,n){(!r||r.constructor!==String)&&(n=r||{},r=Error.name);var o=function l(f){if(!this)return new l(f);f=f instanceof Error?f.message:f||this.message,Error.call(this,f),Error.captureStackTrace(this,o),this.name=r,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var P=f.split(/\r?\n/g);for(var Q in n)if(n.hasOwnProperty(Q)){var M=n[Q];"message"in M&&(P=M.message(this[Q],P)||P,vxr(P)||(P=[P]))}return P.join(`
|
|
1
|
+
var hvr=Object.create;var $fe=Object.defineProperty;var gvr=Object.getOwnPropertyDescriptor;var yvr=Object.getOwnPropertyNames;var Ivr=Object.getPrototypeOf,bvr=Object.prototype.hasOwnProperty;var hs=(i=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(i,{get:(r,n)=>(typeof require<"u"?require:r)[n]}):i)(function(i){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+i+'" is not supported')});var ar=(i,r)=>()=>(i&&(r=i(i=0)),r);var ut=(i,r)=>()=>(r||i((r={exports:{}}).exports,r),r.exports),nN=(i,r)=>{for(var n in r)$fe(i,n,{get:r[n],enumerable:!0})},Nyt=(i,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of yvr(r))!bvr.call(i,l)&&l!==n&&$fe(i,l,{get:()=>r[l],enumerable:!(o=gvr(r,l))||o.enumerable});return i};var To=(i,r,n)=>(n=i!=null?hvr(Ivr(i)):{},Nyt(r||!i||!i.__esModule?$fe(n,"default",{value:i,enumerable:!0}):n,i)),vvr=i=>Nyt($fe({},"__esModule",{value:!0}),i);function kyt(i){if(typeof i!="object"||i===null)return!1;let r=i;return typeof r.dataCollection=="boolean"&&typeof r.telemetry=="boolean"&&typeof r.analytics=="boolean"&&typeof r.errorReporting=="boolean"}function Nvr(i){if(typeof i!="object"||i===null)return!1;let r=i;return typeof r.id=="string"&&typeof r.version=="string"&&typeof r.grantedAt=="string"&&typeof r.expiresAt=="string"&&kyt(r.consent)}function kvr(){return{dataCollection:Kfe.dataCollection.defaultValue,telemetry:Kfe.telemetry.defaultValue,analytics:Kfe.analytics.defaultValue,errorReporting:Kfe.errorReporting.defaultValue}}function Fvr(){return{dataCollection:!0,telemetry:!0,analytics:!0,errorReporting:!0}}function Rvr(){return{dataCollection:!0,telemetry:!1,analytics:!1,errorReporting:!1}}var ZVe,Kfe,DVe=ar(()=>{"use strict";ZVe="1.0.0",Kfe={dataCollection:{title:"Data Collection",description:"Allow Compass to store conversation history and session data locally for improved functionality.",required:!0,defaultValue:!0},telemetry:{title:"Anonymous Telemetry",description:"Help improve Compass by sending anonymous usage statistics.",required:!1,defaultValue:!1},analytics:{title:"Analytics",description:"Allow collection of feature usage patterns to improve the product.",required:!1,defaultValue:!1},errorReporting:{title:"Error Reporting",description:"Automatically send error reports to help fix bugs.",required:!1,defaultValue:!0}}});var AY,SY=ar(()=>{"use strict";AY=(l=>(l.MANUAL="manual",l.AUTO="auto",l.STRICT="strict",l.SMART="smart",l))(AY||{})});var vq,PVe,eme,xq=ar(()=>{"use strict";vq=(h=>(h.DIRECT="direct",h.CLARIFICATION="clarification",h.TODO_LIST="todo_list",h.PLAN="plan",h.PLAN_ADOPT="plan_adopt",h.NO_ACTION="no_action",h))(vq||{}),PVe=(v=>(v.PENDING="pending",v.IN_PROGRESS="in_progress",v.PAUSED="paused",v.COMPLETED="completed",v.FAILED="failed",v.SKIPPED="skipped",v.ROLLED_BACK="rolled_back",v))(PVe||{}),eme=(P=>(P.IDLE="idle",P.CONTEXT_GATHERING="context_gathering",P.COMPLEXITY_ASSESSMENT="complexity_assessment",P.CLARIFICATION="clarification",P.PLAN_GENERATION="plan_generation",P.PLAN_REVIEW="plan_review",P.EXECUTION="execution",P.VERIFICATION="verification",P.COMPLETED="completed",P.FAILED="failed",P))(eme||{})});function YVe(i){return typeof i=="string"&&["default","acceptEditsAsk","bypassPermissions","plan","ignore","acceptEdits","dontAsk"].includes(i)}function Mvr(i){return typeof i=="string"&&["project","cli","user","builtin"].includes(i)}function OVe(i){if(typeof i!="object"||i===null)return!1;let r=i;return!(typeof r.name!="string"||r.name.length===0||typeof r.description!="string"||r.description.length===0||r.tools!==void 0&&typeof r.tools!="string"||r.disallowedTools!==void 0&&typeof r.disallowedTools!="string"||r.model!==void 0&&typeof r.model!="string"||r.permissionMode!==void 0&&!YVe(r.permissionMode)||r.skills!==void 0&&typeof r.skills!="string"||r.standalone!==void 0&&typeof r.standalone!="boolean"||r.mcpServers!==void 0&&typeof r.mcpServers!="string")}function Yvr(i){if(typeof i!="object"||i===null)return!1;let r=i;return!(typeof r.description!="string"||typeof r.prompt!="string"||r.tools!==void 0&&!Array.isArray(r.tools)||r.disallowedTools!==void 0&&!Array.isArray(r.disallowedTools)||r.model!==void 0&&typeof r.model!="string"||r.permissionMode!==void 0&&!YVe(r.permissionMode)||r.skills!==void 0&&!Array.isArray(r.skills)||r.standalone!==void 0&&typeof r.standalone!="boolean"||r.mcpServers!==void 0&&!Array.isArray(r.mcpServers))}function Ovr(i,r,n,o="builtin"){return{id:`${o}-${i}`,name:i,description:r,systemPrompt:n,source:o,permissionMode:"default",isActive:!0,rawFrontmatter:{name:i,description:r}}}function GY(i){if(!(!i||i.trim()===""))return i.split(",").map(r=>r.trim()).filter(r=>r.length>0)}function Hvr(i){if(!(!i||i.length===0))return i.join(", ")}function MVe(i){return tme.indexOf(i)}function Jvr(i,r){return MVe(i.source)-MVe(r.source)}var tme,HVe=ar(()=>{"use strict";tme=["builtin","user","cli","project"]});var Jyt={};nN(Jyt,{CLAUDE_MODELS:()=>Sw,MODEL_ALIASES:()=>wq,calculateModelCost:()=>Dyt,compareModels:()=>Pyt,getAvailableAliases:()=>Ryt,getAvailableModelIds:()=>Fyt,getAvailableModels:()=>EY,getCheapestModel:()=>Yyt,getDefaultModel:()=>Vyt,getDefaultModelId:()=>Zyt,getModelConfig:()=>Aw,getModelDescription:()=>rme,getModelTier:()=>Hyt,getModelsByCapability:()=>Myt,getMostCapableModel:()=>Oyt,isValidModel:()=>Wyt,resolveModelId:()=>Gw});function Gw(i){let r=i.toLowerCase();if(wq[r])return wq[r];for(let n of Object.keys(Sw))if(n.toLowerCase()===r)return n;return i}function Aw(i){let r=Gw(i);return Sw[r]}function EY(){return Object.values(Sw)}function Fyt(){return Object.keys(Sw)}function Ryt(){return Object.keys(wq)}function Wyt(i){return Gw(i)in Sw}function Vyt(){return Sw["claude-sonnet-4-5-20250929"]}function Zyt(){return"claude-sonnet-4-5-20250929"}function Dyt(i,r,n){let o=Aw(i);if(!o)return null;let l=r/1e6*o.pricing.inputPricePerMillion,f=n/1e6*o.pricing.outputPricePerMillion;return l+f}function Pyt(i,r,n){let o=Aw(i),l=Aw(r);if(!o||!l)return 0;switch(n){case"price":return o.pricing.inputPricePerMillion-l.pricing.inputPricePerMillion;case"context":return l.contextWindow-o.contextWindow;case"speed":return l.pricing.inputPricePerMillion-o.pricing.inputPricePerMillion;default:return 0}}function Myt(i){return EY().filter(r=>r.capabilities[i])}function Yyt(){return EY().reduce((r,n)=>n.pricing.inputPricePerMillion<r.pricing.inputPricePerMillion?n:r)}function Oyt(){return Sw["claude-opus-4-5-20251101"]}function Hyt(i){let r=Gw(i);if(r.includes("haiku"))return"economy";if(r.includes("sonnet"))return"balanced";if(r.includes("opus"))return"premium"}function rme(i){let r=Gw(i);if(r.includes("opus"))return"Most capable model - best for complex reasoning, analysis, and extended thinking";if(r.includes("sonnet"))return"Balanced performance and cost - ideal for most coding tasks";if(r.includes("haiku"))return"Fastest and most economical - great for quick responses and simple tasks"}var Sw,wq,TW=ar(()=>{"use strict";Sw={"claude-sonnet-4-5-20250929":{id:"claude-sonnet-4-5-20250929",name:"Claude Sonnet 4.5",contextWindow:2e5,maxOutputTokens:8192,pricing:{inputPricePerMillion:3,outputPricePerMillion:15},capabilities:{vision:!0,toolUse:!0,streaming:!0,extendedThinking:!1}},"claude-opus-4-5-20251101":{id:"claude-opus-4-5-20251101",name:"Claude Opus 4.5",contextWindow:2e5,maxOutputTokens:8192,pricing:{inputPricePerMillion:15,outputPricePerMillion:75},capabilities:{vision:!0,toolUse:!0,streaming:!0,extendedThinking:!0}},"claude-haiku-4-5-20251001":{id:"claude-haiku-4-5-20251001",name:"Claude Haiku 4.5",contextWindow:2e5,maxOutputTokens:8192,pricing:{inputPricePerMillion:.25,outputPricePerMillion:1.25},capabilities:{vision:!0,toolUse:!0,streaming:!0,extendedThinking:!1}}},wq={sonnet:"claude-sonnet-4-5-20250929",opus:"claude-opus-4-5-20251101",haiku:"claude-haiku-4-5-20251001",fast:"claude-haiku-4-5-20251001",quick:"claude-haiku-4-5-20251001",smart:"claude-sonnet-4-5-20250929",balanced:"claude-sonnet-4-5-20250929",powerful:"claude-opus-4-5-20251101",best:"claude-opus-4-5-20251101",s:"claude-sonnet-4-5-20250929",o:"claude-opus-4-5-20251101",h:"claude-haiku-4-5-20251001"}});var Aq,Sq,CY,nme,JVe,Gq,LVe,XVe,Uvr,TY,QVe,jvr,UVe,jVe,iN,BVe,zVe,Bvr,zvr,qvr,qVe,$Ve,KVe,ime,$vr,Kvr,sme,e7e,Eq,exr,txr,rxr,nxr,l4,NY,t7e,ixr,sxr,axr,oxr,cxr,wE,u4,lxr,uxr,pxr,dxr,fxr,r7e,n7e,mxr,Um=ar(()=>{"use strict";Aq=".compass",Sq=".compass",CY="config.json",nme="session.json",JVe="consent.json",Gq="credentials.enc",LVe="logs",XVe="backups",Uvr="cache",TY="saved-sessions",QVe="index",jvr="context",UVe="commands",jVe="agents",iN=16384,BVe=5e4,zVe=5e4,Bvr=80,zvr=10,qvr=30,qVe=30,$Ve=365,KVe=6e4,ime=3e4,$vr=50,Kvr=1048576,sme=100,e7e=8e3,Eq=4e3,exr=6e3,txr=90,rxr=1e5,nxr=524288e3,l4="claude-sonnet-4-5-20250929",NY=.6,t7e="haiku",ixr="banner",sxr=4,axr=1e3,oxr=16e3,cxr=.1,wE={anthropic:{model:l4,maxTokens:16384,temperature:.6},project:{rootDir:process.cwd(),ignorePatterns:["node_modules/**",".git/**","dist/**","build/**","out/**","coverage/**",".next/**",".nuxt/**",".output/**","*.log",".env*","*.lock","package-lock.json","yarn.lock","pnpm-lock.yaml",".DS_Store","Thumbs.db","*.min.js","*.min.css","*.map",".compass/**"],includePatterns:["**/*"],maxFileSize:1048576,indexOnStartup:!0},safety:{requireApproval:!0,autoApprovePatterns:[],blockedPatterns:[".env*","*.key","*.pem","*.p12","*.pfx","secrets/**","**/secrets/**","**/*.secret","**/credentials*","**/password*"],maxFilesPerOperation:50,backupBeforeModify:!0,shellCommandTimeout:3e4,allowedShellCommands:["npm","npx","yarn","pnpm","git","node","tsc","eslint","prettier","jest","vitest","mocha","cargo","rustc","go","python","python3","pip","pip3","poetry","make","cmake","gradle","mvn","docker","kubectl","terraform","aws","gcloud","az","cat","ls","pwd","echo","head","tail","grep","find","wc","sort","uniq","diff","tree"],blockedShellCommands:["rm -rf /","rm -rf /*","rm -rf ~","rm -rf ~/*","sudo rm -rf",":(){:|:&};:","mkfs","dd if=/dev/zero","dd if=/dev/random","> /dev/sda","chmod -R 777 /","chown -R","wget | sh","curl | sh","wget | bash","curl | bash"]},ui:{theme:"auto",showTokenUsage:!0,showTimestamps:!1,compactMode:!1,animationsEnabled:!0,colorOutput:!0},session:{autoSave:!0,autoSaveInterval:6e4,maxHistoryLength:100,autoCompactThreshold:5e4,sessionExpiryDays:30},update:{checkOnStartup:!0,checkInterval:24,showNotifications:!0,notificationStyle:ixr,includePrerelease:!1},agentic:{maxIterations:200,costWarningThreshold:5,costHardCap:0,autoCompactAtPercent:80,stuckDetectionEnabled:!0,stuckDetectionThreshold:3,maxIterationsPerTask:50}},u4={API_KEY:"ANTHROPIC_API_KEY",COMPASS_API_KEY:"COMPASS_API_KEY",MODEL:"COMPASS_MODEL",CONFIG_PATH:"COMPASS_CONFIG",DEBUG:"COMPASS_DEBUG",NO_COLOR:"NO_COLOR",FORCE_COLOR:"FORCE_COLOR",HOME:"HOME",USERPROFILE:"USERPROFILE"},lxr="1.0.32",uxr="Compass CLI",pxr="Agentic CLI by Compass Agentic Platform",dxr="1.0.0",fxr={".ts":"typescript",".tsx":"typescript",".js":"javascript",".jsx":"javascript",".mjs":"javascript",".cjs":"javascript",".py":"python",".rb":"ruby",".go":"go",".rs":"rust",".java":"java",".kt":"kotlin",".scala":"scala",".cs":"csharp",".fs":"fsharp",".cpp":"cpp",".cc":"cpp",".cxx":"cpp",".c":"c",".h":"c",".hpp":"cpp",".swift":"swift",".php":"php",".pl":"perl",".pm":"perl",".sh":"bash",".bash":"bash",".zsh":"zsh",".fish":"fish",".ps1":"powershell",".sql":"sql",".r":"r",".R":"r",".lua":"lua",".vim":"vim",".el":"elisp",".clj":"clojure",".cljs":"clojure",".ex":"elixir",".exs":"elixir",".erl":"erlang",".hrl":"erlang",".hs":"haskell",".ml":"ocaml",".mli":"ocaml",".nim":"nim",".zig":"zig",".v":"v",".d":"d",".dart":"dart",".groovy":"groovy",".gradle":"groovy",".json":"json",".yaml":"yaml",".yml":"yaml",".toml":"toml",".xml":"xml",".html":"html",".htm":"html",".css":"css",".scss":"scss",".sass":"sass",".less":"less",".md":"markdown",".mdx":"markdown",".rst":"restructuredtext",".tex":"latex",".dockerfile":"dockerfile",".tf":"terraform",".hcl":"hcl",".proto":"protobuf",".graphql":"graphql",".gql":"graphql",".vue":"vue",".svelte":"svelte",".astro":"astro"},r7e=["package-lock.json","yarn.lock","pnpm-lock.yaml","composer.lock","Gemfile.lock","poetry.lock","Cargo.lock","go.sum","*.map","*.js.map","*.css.map","*.min.js","*.min.css","*.bundle.js","*.chunk.js","*.sql","*.csv","**/__snapshots__/**","**/fixtures/**/*.json","*.d.ts.map"],n7e=["node_modules",".git","dist","build","out","coverage",".next",".nuxt",".output",".cache",".parcel-cache","vendor","__pycache__",".pytest_cache","target","bin","obj"],mxr=[".png",".jpg",".jpeg",".gif",".bmp",".ico",".webp",".svg",".pdf",".doc",".docx",".xls",".xlsx",".ppt",".pptx",".zip",".tar",".gz",".rar",".7z",".exe",".dll",".so",".dylib",".bin",".dat",".db",".sqlite",".sqlite3",".woff",".woff2",".ttf",".otf",".eot",".mp3",".mp4",".wav",".avi",".mov",".mkv",".webm",".flv",".class",".jar",".war",".ear",".pyc",".pyo",".o",".obj",".a",".lib"]});var Uyt=ut((lpn,i7e)=>{"use strict";var Lyt=hs("path"),Xyt=hs("module"),_xr=hs("fs"),Qyt=(i,r,n)=>{if(typeof i!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof i}\``);if(typeof r!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof r}\``);try{i=_xr.realpathSync(i)}catch(f){if(f.code==="ENOENT")i=Lyt.resolve(i);else{if(n)return null;throw f}}let o=Lyt.join(i,"noop.js"),l=()=>Xyt._resolveFilename(r,{id:o,filename:o,paths:Xyt._nodeModulePaths(i)});if(n)try{return l()}catch{return null}return l()};i7e.exports=(i,r)=>Qyt(i,r);i7e.exports.silent=(i,r)=>Qyt(i,r,!0)});var Byt=ut((upn,s7e)=>{"use strict";var jyt=()=>{let i=Error.prepareStackTrace;Error.prepareStackTrace=(n,o)=>o;let r=new Error().stack.slice(1);return Error.prepareStackTrace=i,r};s7e.exports=jyt;s7e.exports.default=jyt});var qyt=ut((ppn,zyt)=>{"use strict";var hxr=Byt();zyt.exports=i=>{let r=hxr();if(!i)return r[2].getFileName();let n=!1;r.shift();for(let o of r){let l=o.getFileName();if(typeof l=="string"){if(l===i){n=!0;continue}if(l!=="module.js"&&n&&l!==i)return l}}}});var Kyt=ut((dpn,$yt)=>{"use strict";var gxr=hs("path"),yxr=Uyt(),Ixr=qyt();$yt.exports=i=>{if(typeof i!="string")throw new TypeError("Expected a string");let r=Ixr(__filename),n=r?gxr.dirname(r):__dirname,o=yxr(n,i),l=hs.cache[o];if(l&&l.parent){let h=l.parent.children.length;for(;h--;)l.parent.children[h].id===o&&l.parent.children.splice(h,1)}delete hs.cache[o];let f=hs.cache[r];return f===void 0||f.require===void 0?hs(o):f.require(o)}});var tIt=ut((mpn,eIt)=>{"use strict";eIt.exports=function(r){return r?r instanceof Array||Array.isArray(r)||r.length>=0&&r.splice instanceof Function:!1}});var nIt=ut((_pn,rIt)=>{"use strict";var bxr=hs("util"),vxr=tIt(),a7e=function(r,n){(!r||r.constructor!==String)&&(n=r||{},r=Error.name);var o=function l(f){if(!this)return new l(f);f=f instanceof Error?f.message:f||this.message,Error.call(this,f),Error.captureStackTrace(this,o),this.name=r,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var P=f.split(/\r?\n/g);for(var Q in n)if(n.hasOwnProperty(Q)){var M=n[Q];"message"in M&&(P=M.message(this[Q],P)||P,vxr(P)||(P=[P]))}return P.join(`
|
|
2
2
|
`)},set:function(P){f=P}});var h=null,v=Object.getOwnPropertyDescriptor(this,"stack"),E=v.get,R=v.value;delete v.value,delete v.writable,v.set=function(P){h=P},v.get=function(){var P=(h||(E?E.call(this):R)).split(/\r?\n+/g);h||(P[0]=this.name+": "+this.message);var Q=1;for(var M in n)if(n.hasOwnProperty(M)){var ie=n[M];if("line"in ie){var le=ie.line(this[M]);le&&P.splice(Q++,0," "+le)}"stack"in ie&&ie.stack(this[M],P)}return P.join(`
|
|
3
3
|
`)},Object.defineProperty(this,"stack",v)};return Object.setPrototypeOf?(Object.setPrototypeOf(o.prototype,Error.prototype),Object.setPrototypeOf(o,Error)):bxr.inherits(o,Error),o};a7e.append=function(i,r){return{message:function(n,o){return n=n||r,n&&(o[0]+=" "+i.replace("%s",n.toString())),o}}};a7e.line=function(i,r){return{line:function(n){return n=n||r,n?i.replace("%s",n.toString()):null}}};rIt.exports=a7e});var aIt=ut((hpn,sIt)=>{"use strict";var xxr=i=>{let r=i.charCodeAt(0).toString(16).toUpperCase();return"0x"+(r.length%2?"0":"")+r},wxr=(i,r,n)=>{if(!r)return{message:i.message+" while parsing empty string",position:0};let o=i.message.match(/^Unexpected token (.) .*position\s+(\d+)/i),l=o?+o[2]:i.message.match(/^Unexpected end of JSON.*/i)?r.length-1:null,f=o?i.message.replace(/^Unexpected token ./,`Unexpected token ${JSON.stringify(o[1])} (${xxr(o[1])})`):i.message;if(l!=null){let h=l<=n?0:l-n,v=l+n>=r.length?r.length:l+n,E=(h===0?"":"...")+r.slice(h,v)+(v===r.length?"":"...");return{message:f+` while parsing ${r===E?"":"near "}${JSON.stringify(E)}`,position:l}}else return{message:f+` while parsing '${r.slice(0,n*2)}'`,position:0}},ame=class extends SyntaxError{constructor(r,n,o,l){o=o||20;let f=wxr(r,n,o);super(f.message),Object.assign(this,f),this.code="EJSONPARSE",this.systemError=r,Error.captureStackTrace(this,l||this.constructor)}get name(){return this.constructor.name}set name(r){}get[Symbol.toStringTag](){return this.constructor.name}},Axr=Symbol.for("indent"),Sxr=Symbol.for("newline"),Gxr=/^\s*[{\[]((?:\r?\n)+)([\s\t]*)/,Exr=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,ome=(i,r,n)=>{let o=iIt(i);n=n||20;try{let[,l=`
|
|
4
4
|
`,f=" "]=o.match(Exr)||o.match(Gxr)||[,"",""],h=JSON.parse(o,r);return h&&typeof h=="object"&&(h[Sxr]=l,h[Axr]=f),h}catch(l){if(typeof i!="string"&&!Buffer.isBuffer(i)){let f=Array.isArray(i)&&i.length===0;throw Object.assign(new TypeError(`Cannot parse ${f?"an empty array":String(i)}`),{code:"EJSONPARSE",systemError:l})}throw new ame(l,o,n,ome)}},iIt=i=>String(i).replace(/^\uFEFF/,"");sIt.exports=ome;ome.JSONParseError=ame;ome.noExceptions=(i,r)=>{try{return JSON.parse(iIt(i),r)}catch{}}});var lIt=ut(Cq=>{"use strict";Cq.__esModule=!0;Cq.LinesAndColumns=void 0;var cme=`
|
|
@@ -2709,7 +2709,7 @@ ${r}`),o.push({role:"user",content:v}),o}estimateTaskTokens(r,n,o){let l=Xd(r);f
|
|
|
2709
2709
|
`)}Z3();var pBe=[{name:"Sessions",description:"Commands for managing your conversation session",commands:[{name:"/save",description:"Save current session to disk",usage:"/save [name]",examples:["/save","/save my-feature-work"],hidden:!0},{name:"/load",description:"Load a previously saved session",usage:"/load [name]",examples:["/load","/load my-feature-work"],hidden:!0},{name:"/clear",description:"Clear conversation history",usage:"/clear"},{name:"/compact",description:"Summarize conversation to reduce token usage",usage:"/compact"},{name:"/export",description:"Export conversation to file",usage:"/export [format]",examples:["/export md","/export json","/export html"],hidden:!0},{name:"/reset",description:"Reset session to clean state",usage:"/reset"},{name:"/exit",description:"Exit Compass",usage:"/exit",aliases:["/quit","/q"]}]},{name:"Model & Tokens",description:"Commands for model selection and token tracking",commands:[{name:"/model",description:"Switch between models",usage:"/model [name]",examples:["/model","/model sonnet","/model opus","/model haiku"]},{name:"/tokens",description:"Display token usage statistics",usage:"/tokens"},{name:"/context",description:"Show context window usage",usage:"/context"}]},{name:"File Operations",description:"Commands for file management and indexing",commands:[{name:"/files",description:"List indexed project files",usage:"/files [pattern]",examples:["/files","/files *.ts","/files src/"]},{name:"/index",description:"Reindex project files",usage:"/index"},{name:"/undo",description:"Undo last file operation",usage:"/undo"}]},{name:"Approval & Safety",description:"Commands for approval mode management",commands:[{name:"/approve",description:"Toggle approval mode",usage:"/approve [mode]",examples:["/approve","/approve auto","/approve manual"]}]},{name:"Help & Config",description:"Commands for help and configuration",commands:[{name:"/help",description:"Show this help menu",usage:"/help [topic]",examples:["/help","/help model","/help files"]},{name:"/config",description:"Display current configuration",usage:"/config"}]},{name:"Updates",description:"Commands for checking and installing updates",commands:[{name:"/update",description:"Check for and install updates",usage:"/update [check|install|history|version]",examples:["/update","/update check","/update install","/update history"],aliases:["/upgrade","/up"]}]}],Zun=[{name:"Setup & Configuration",description:"Commands for initial setup and configuration",commands:[{name:"setup",description:"Run first-time setup wizard",usage:"compass setup"},{name:"init",description:"Initialize Compass in current project",usage:"compass init"},{name:"config",description:"View or modify configuration",usage:"compass config [key] [value]",examples:["compass config","compass config model sonnet"]}]},{name:"Data Management",description:"Commands for managing stored data",commands:[{name:"tokens",description:"View token usage history",usage:"compass tokens [--export]"},{name:"consent",description:"Manage consent settings",usage:"compass consent [status|review|revoke]"},{name:"data",description:"Manage stored data",usage:"compass data [list|export|delete]"},{name:"cache",description:"Clear cached data",usage:"compass cache clear"},{name:"reset",description:"Reset to factory settings",usage:"compass reset [--force]"}]},{name:"Updates",description:"Commands for checking and installing updates",commands:[{name:"update",description:"Check for and install updates",usage:"compass update [check|install|history]",examples:["compass update","compass update check","compass update install","compass update history"]}]}];function uJt(i){let r=i.commands.filter(o=>!o.hidden);if(r.length===0)return"";let n=["",Vn.bold.cyan(`\u2501\u2501\u2501 ${i.name} \u2501\u2501\u2501`),Vn.gray(i.description),""];for(let o of r){if(n.push(` ${Vn.yellow(o.name)}`),n.push(` ${Vn.white(o.description)}`),o.usage&&n.push(` ${Vn.gray("Usage:")} ${Vn.dim(o.usage)}`),o.aliases&&o.aliases.length>0&&n.push(` ${Vn.gray("Aliases:")} ${Vn.dim(o.aliases.join(", "))}`),o.examples&&o.examples.length>0){n.push(` ${Vn.gray("Examples:")}`);for(let l of o.examples)n.push(` ${Vn.dim(l)}`)}n.push("")}return n.join(`
|
|
2710
2710
|
`)}function Dun(){try{let{getCustomCommands:i}=(lJt(),vvr(cJt)),r=i();return!r||r.length===0?null:{name:"Custom Commands",description:"User-defined commands from .compass/commands/ or ~/.compass/commands/",commands:r.map(o=>{let l=o.namespace?`${o.scope}:${o.namespace}`:o.scope;return{name:`/${o.name}`,description:`${o.description} (${l})`,usage:o.frontmatter["argument-hint"]?`/${o.name} ${o.frontmatter["argument-hint"]}`:`/${o.name}`}})}}catch{return null}}function Pun(){let i=[...pBe],r=Dun();r&&i.push(r);let n=i.map(uJt);return["",Vn.bold.white("Compass CLI - Interactive Commands"),Vn.gray("Use these commands during an interactive session"),...n,Vn.dim("\u2500".repeat(50)),Vn.gray("Tip: Type any natural language request to interact with Compass"),""].join(`
|
|
2711
2711
|
`)}function Mun(i){let r=i.startsWith("/")?i:`/${i}`,o=pBe.flatMap(f=>f.commands).find(f=>f.name===r||f.name===i||f.aliases?.includes(i)||f.aliases?.includes(r));if(!o)return null;let l=["",Vn.bold.cyan(o.name),Vn.white(o.description),""];if(o.usage&&(l.push(Vn.gray("Usage:")),l.push(` ${o.usage}`),l.push("")),o.aliases&&o.aliases.length>0&&(l.push(Vn.gray("Aliases:")),l.push(` ${o.aliases.join(", ")}`),l.push("")),o.examples&&o.examples.length>0){l.push(Vn.gray("Examples:"));for(let f of o.examples)l.push(` ${Vn.dim("$")} ${f}`);l.push("")}return l.join(`
|
|
2712
|
-
`)}VV();var KDn="1.0.
|
|
2712
|
+
`)}VV();var KDn="1.0.32",ePn="compass-cli",tPn="AI-powered development assistance using Anthropic's Claude models";export{tme as AGENT_SOURCE_PRIORITY,tPn as APP_DESCRIPTION,uxr as APP_DISPLAY_NAME,ePn as APP_NAME,pxr as APP_TAGLINE,lxr as APP_VERSION,KHt as ASCII_BANNER,zVe as AUTO_COMPACT_TRIGGER,KVe as AUTO_SAVE_INTERVAL_MS,pee as ActionLogger,f8t as ActionStatus,Uw as ActionType,Whe as AnthropicClient,c_e as ApprovalManager,AY as ApprovalMode,XVe as BACKUPS_DIR,qVe as BACKUP_RETENTION_DAYS,mxr as BINARY_EXTENSIONS,u_e as BackupManager,Uvr as CACHE_DIR,Sw as CLAUDE_MODELS,Zun as CLI_COMMANDS,bun as COMPASS_ICON,CY as CONFIG_FILE_NAME,$Ve as CONSENT_EXPIRY_DAYS,JVe as CONSENT_FILE_NAME,dxr as CONSENT_VERSION,jvr as CONTEXT_DIR,txr as CONTEXT_WINDOW_SAFETY_MARGIN,Bvr as CONTEXT_WINDOW_WARNING_PERCENT,Gq as CREDENTIALS_FILE_NAME,bee as ComplexityClassifier,Qme as ConfigManager,$me as ConsentManager,r_e as CredentialStore,wE as DEFAULT_CONFIG,zvr as DEFAULT_COST_WARNING_THRESHOLD,iN as DEFAULT_MAX_TOKENS,l4 as DEFAULT_MODEL,Lvr as DEFAULT_RATING_CONFIG,NY as DEFAULT_TEMPERATURE,Wvr as DEFAULT_UPDATE_CONFIG,u4 as ENV_VARS,yee as EnhancedContextGatherer,zme as EventEmitter,vq as ExecutionMode,WWt as ExecutionStrategy,Aq as GLOBAL_COMPASS_DIR,uK as GitService,Tve as HistoryManager,QVe as INDEX_DIR,Cte as InteractiveClarifier,FWt as IssueCategory,kWt as IssueSeverity,fxr as LANGUAGE_EXTENSIONS,LVe as LOGS_DIR,Aee as LogInterpreter,nxr as MAX_CACHE_SIZE_BYTES,Eq as MAX_COMMAND_OUTPUT_TOKENS,$vr as MAX_FILES_PER_OPERATION,e7e as MAX_FILE_READ_TOKENS,Kvr as MAX_FILE_SIZE_BYTES,sme as MAX_HISTORY_LENGTH,rxr as MAX_INDEXED_FILES,sxr as MAX_RETRY_ATTEMPTS,exr as MAX_SEARCH_RESULT_TOKENS,wq as MODEL_ALIASES,Sq as PROJECT_COMPASS_DIR,Tte as PlanGenerator,axr as RETRY_BASE_DELAY_MS,cxr as RETRY_JITTER_FACTOR,oxr as RETRY_MAX_DELAY_MS,TY as SAVED_SESSIONS_DIR,qvr as SESSION_EXPIRY_DAYS,nme as SESSION_FILE_NAME,ime as SHELL_COMMAND_TIMEOUT_MS,pBe as SLASH_COMMANDS,i_e as SessionManager,O0e as ShellExecutor,l8t as StepStatus,uee as StepTracker,u8t as StepType,BVe as TOKEN_WARNING_THRESHOLD,n7e as TOOL_READ_BLOCKLIST_DIRS,r7e as TOOL_READ_BLOCKLIST_PATTERNS,PVe as TaskExecutionStatus,p8t as TaskStatus,o_e as TokenTracker,dee as ToolRegistry,KDn as VERSION,Nte as Verifier,$Je as WORKFLOW_PROMPTS,See as WorkflowManager,kte as WorkflowOrchestrator,eme as WorkflowPhase,RWt as WorkflowState,gun as applyCompletion,CDr as applyPatch,GDr as areIdentical,NYr as calculateContextUsagePercent,Dyt as calculateModelCost,EYr as calculateRemainingTokens,A6r as colorByStatus,wDr as colorizeDiff,Jvr as compareAgentPriority,Pyt as compareModels,TE as copy,PYr as createActionLogger,fOr as createComplexityClassifier,Ovr as createDefaultAgentDefinition,kvr as createDefaultConsent,Xvr as createDefaultRatingState,iOr as createEnhancedContextGatherer,Fvr as createFullConsent,Zkr as createGitService,jln as createInteractiveClarifier,KOr as createLogInterpreter,Rvr as createMinimalConsent,zln as createPlanGenerator,DYr as createStepTracker,MYr as createToolRegistry,$ln as createVerifier,tHr as createWorkflowManager,eun as createWorkflowOrchestrator,hDe as decrypt,_De as encrypt,Bl as ensureDir,SYr as estimateConversationTokens,GYr as estimateSystemPromptTokens,Xd as estimateTokens,iun as executeSlashCommand,iBe as extractCodeBlocks,nBe as extractMentions,Mun as formatCommandHelp,y6r as formatCost,m6r as formatDate,_6r as formatDuration,g6r as formatFileSize,Pun as formatFullHelp,uJt as formatHelpCategory,w6r as formatList,xwt as formatPercent,x6r as formatProgressBar,h6r as formatRelativeTime,_n as formatTimestamp,I6r as formatTokenCount,TYr as formatTokenDisplay,aC as generateDiff,ADr as generateDiffSummary,k6r as generateSecureRandom,SDr as generateWordDiff,uk as getActionLogger,MVe as getAgentSourcePriority,Xb as getAnthropicClient,lh as getApprovalManager,Ryt as getAvailableAliases,Fyt as getAvailableModelIds,EY as getAvailableModels,vN as getBackupManager,V5r as getBasename,EDr as getChangedLineCount,Yyt as getCheapestModel,EH as getCodebaseIndexer,lun as getCompletions,vee as getComplexityClassifier,s$ as getConfigManager,pDe as getConsentManager,dk as getContextBuilder,kYr as getContextUsageColor,ZYr as getConversationCompactor,JW as getCredentialStore,Vyt as getDefaultModel,Zyt as getDefaultModelId,DV as getEnhancedContextGatherer,ka as getEventEmitter,W5r as getExtension,oC as getFileService,Wu as getGlobalCompassDir,sun as getHistoryManager,eBe as getInteractiveClarifier,cXe as getLogInterpreter,Aw as getModelConfig,rme as getModelDescription,Hyt as getModelTier,Myt as getModelsByCapability,Oyt as getMostCapableModel,wve as getPlanGenerator,_m as getProjectCompassDir,F5r as getRelativePath,Yh as getSessionManager,zb as getShellExecutor,cBe as getSlashCommandRegistry,lk as getStepTracker,Iun as getTaskProcessor,bN as getTokenTracker,t5 as getToolRegistry,rBe as getVerifier,eHr as getWorkflowManager,Kln as getWorkflowOrchestrator,gDe as hash,F6r as hmac,Hv as interpolateTemplate,i$ as isDirectory,Jme as isFile,UY as isPathWithin,OVe as isValidAgentFrontmatter,YVe as isValidAgentPermissionMode,Mvr as isValidAgentSource,wvr as isValidAnthropicConfig,Yvr as isValidCLIAgentConfig,xvr as isValidCompassConfig,Tvr as isValidConfigFile,kyt as isValidConsent,Nvr as isValidConsentRecord,Wyt as isValidModel,Pvr as isValidNotificationStyle,Avr as isValidProjectConfig,Qvr as isValidRatingState,Svr as isValidSafetyConfig,Evr as isValidSessionConfig,nun as isValidSlashCommand,Gvr as isValidUIConfig,Vvr as isValidUpdateCheckResult,Zvr as isValidUpdateConfig,Cvr as isValidUpdateSettingsConfig,Dvr as isValidUpdateType,ve as logger,jq as matchesPattern,R5r as normalizeSeparators,v6r as padString,UHt as parseArgs,run as parseInput,GY as parseToolsList,Ya as pathExists,tO as readDir,sXe as registerBuiltInTools,oBe as registerSlashCommand,CI as remove,xun as renderBanner,wun as renderMiniBanner,Aun as renderWelcome,N5r as resolveGlobalPath,Gw as resolveModelId,k5r as resolveProjectPath,Ld as safeReadFile,df as safeReadJson,Fv as safeWriteFile,Ph as safeWriteJson,YW as sanitizePath,R6r as secureCompare,Hvr as serializeToolsList,Mb as stat,mN as toForwardSlashes,b6r as truncate,CYr as wouldExceedContext};
|
|
2713
2713
|
/*! Bundled license information:
|
|
2714
2714
|
|
|
2715
2715
|
typescript/lib/typescript.js:
|