@compass-ai/nova 1.0.34 → 1.0.35

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 (3) hide show
  1. package/dist/cli.js +563 -532
  2. package/dist/index.js +30 -2
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- var bvr=Object.create;var eme=Object.defineProperty;var vvr=Object.getOwnPropertyDescriptor;var xvr=Object.getOwnPropertyNames;var wvr=Object.getPrototypeOf,Avr=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),sN=(i,r)=>{for(var n in r)eme(i,n,{get:r[n],enumerable:!0})},Wyt=(i,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of xvr(r))!Avr.call(i,l)&&l!==n&&eme(i,l,{get:()=>r[l],enumerable:!(o=vvr(r,l))||o.enumerable});return i};var To=(i,r,n)=>(n=i!=null?bvr(wvr(i)):{},Wyt(r||!i||!i.__esModule?eme(n,"default",{value:i,enumerable:!0}):n,i)),Svr=i=>Wyt(eme({},"__esModule",{value:!0}),i);function Vyt(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 Wvr(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"&&Vyt(r.consent)}function Vvr(){return{dataCollection:tme.dataCollection.defaultValue,telemetry:tme.telemetry.defaultValue,analytics:tme.analytics.defaultValue,errorReporting:tme.errorReporting.defaultValue}}function Zvr(){return{dataCollection:!0,telemetry:!0,analytics:!0,errorReporting:!0}}function Pvr(){return{dataCollection:!0,telemetry:!1,analytics:!1,errorReporting:!1}}var MVe,tme,YVe=ar(()=>{"use strict";MVe="1.0.0",tme={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 EY,CY=ar(()=>{"use strict";EY=(l=>(l.MANUAL="manual",l.AUTO="auto",l.STRICT="strict",l.SMART="smart",l))(EY||{})});var Aq,OVe,rme,Sq=ar(()=>{"use strict";Aq=(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))(Aq||{}),OVe=(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))(OVe||{}),rme=(D=>(D.IDLE="idle",D.CONTEXT_GATHERING="context_gathering",D.COMPLEXITY_ASSESSMENT="complexity_assessment",D.CLARIFICATION="clarification",D.PLAN_GENERATION="plan_generation",D.PLAN_REVIEW="plan_review",D.EXECUTION="execution",D.VERIFICATION="verification",D.COMPLETED="completed",D.FAILED="failed",D))(rme||{})});function JVe(i){return typeof i=="string"&&["default","acceptEditsAsk","bypassPermissions","plan","ignore","acceptEdits","dontAsk"].includes(i)}function Jvr(i){return typeof i=="string"&&["project","cli","user","builtin"].includes(i)}function LVe(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&&!JVe(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 Lvr(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&&!JVe(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 Xvr(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 TY(i){if(!(!i||i.trim()===""))return i.split(",").map(r=>r.trim()).filter(r=>r.length>0)}function Qvr(i){if(!(!i||i.length===0))return i.join(", ")}function HVe(i){return nme.indexOf(i)}function Uvr(i,r){return HVe(i.source)-HVe(r.source)}var nme,XVe=ar(()=>{"use strict";nme=["builtin","user","cli","project"]});var Uyt={};sN(Uyt,{CLAUDE_MODELS:()=>Ew,MODEL_ALIASES:()=>Gq,calculateModelCost:()=>Oyt,compareModels:()=>Hyt,getAvailableAliases:()=>Pyt,getAvailableModelIds:()=>Zyt,getAvailableModels:()=>NY,getCheapestModel:()=>Lyt,getDefaultModel:()=>Myt,getDefaultModelId:()=>Yyt,getModelConfig:()=>Gw,getModelDescription:()=>ime,getModelTier:()=>Qyt,getModelsByCapability:()=>Jyt,getMostCapableModel:()=>Xyt,isValidModel:()=>Dyt,resolveModelId:()=>Cw});function Cw(i){let r=i.toLowerCase();if(Gq[r])return Gq[r];for(let n of Object.keys(Ew))if(n.toLowerCase()===r)return n;return i}function Gw(i){let r=Cw(i);return Ew[r]}function NY(){return Object.values(Ew)}function Zyt(){return Object.keys(Ew)}function Pyt(){return Object.keys(Gq)}function Dyt(i){return Cw(i)in Ew}function Myt(){return Ew["claude-sonnet-4-5-20250929"]}function Yyt(){return"claude-sonnet-4-5-20250929"}function Oyt(i,r,n){let o=Gw(i);if(!o)return null;let l=r/1e6*o.pricing.inputPricePerMillion,f=n/1e6*o.pricing.outputPricePerMillion;return l+f}function Hyt(i,r,n){let o=Gw(i),l=Gw(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 Jyt(i){return NY().filter(r=>r.capabilities[i])}function Lyt(){return NY().reduce((r,n)=>n.pricing.inputPricePerMillion<r.pricing.inputPricePerMillion?n:r)}function Xyt(){return Ew["claude-opus-4-5-20251101"]}function Qyt(i){let r=Cw(i);if(r.includes("haiku"))return"economy";if(r.includes("sonnet"))return"balanced";if(r.includes("opus"))return"premium"}function ime(i){let r=Cw(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 Ew,Gq,kW=ar(()=>{"use strict";Ew={"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}}},Gq={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 Eq,Cq,kY,sme,QVe,Tq,UVe,jVe,qvr,FY,BVe,$vr,zVe,qVe,aN,$Ve,KVe,Kvr,exr,txr,e7e,t7e,r7e,ame,rxr,nxr,ome,n7e,Nq,ixr,sxr,axr,oxr,u4,RY,i7e,cxr,lxr,uxr,pxr,dxr,SE,p4,fxr,mxr,_xr,hxr,gxr,s7e,a7e,yxr,zm=ar(()=>{"use strict";Eq=".compass",Cq=".compass",kY="config.json",sme="session.json",QVe="consent.json",Tq="credentials.enc",UVe="logs",jVe="backups",qvr="cache",FY="saved-sessions",BVe="index",$vr="context",zVe="commands",qVe="agents",aN=16384,$Ve=5e4,KVe=5e4,Kvr=80,exr=10,txr=30,e7e=30,t7e=365,r7e=6e4,ame=3e4,rxr=50,nxr=1048576,ome=100,n7e=8e3,Nq=4e3,ixr=6e3,sxr=90,axr=1e5,oxr=524288e3,u4="claude-sonnet-4-5-20250929",RY=.6,i7e="haiku",cxr="banner",lxr=4,uxr=1e3,pxr=16e3,dxr=.1,SE={anthropic:{model:u4,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:4,showNotifications:!0,notificationStyle:cxr,includePrerelease:!1},agentic:{maxIterations:200,costWarningThreshold:5,costHardCap:0,autoCompactAtPercent:80,stuckDetectionEnabled:!0,stuckDetectionThreshold:3,maxIterationsPerTask:50}},p4={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"},fxr="1.0.34",mxr="Compass CLI",_xr="Agentic CLI by Compass Agentic Platform",hxr="1.0.0",gxr={".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"},s7e=["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"],a7e=["node_modules",".git","dist","build","out","coverage",".next",".nuxt",".output",".cache",".parcel-cache","vendor","__pycache__",".pytest_cache","target","bin","obj"],yxr=[".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 qyt=ut((hpn,o7e)=>{"use strict";var jyt=hs("path"),Byt=hs("module"),Ixr=hs("fs"),zyt=(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=Ixr.realpathSync(i)}catch(f){if(f.code==="ENOENT")i=jyt.resolve(i);else{if(n)return null;throw f}}let o=jyt.join(i,"noop.js"),l=()=>Byt._resolveFilename(r,{id:o,filename:o,paths:Byt._nodeModulePaths(i)});if(n)try{return l()}catch{return null}return l()};o7e.exports=(i,r)=>zyt(i,r);o7e.exports.silent=(i,r)=>zyt(i,r,!0)});var Kyt=ut((gpn,c7e)=>{"use strict";var $yt=()=>{let i=Error.prepareStackTrace;Error.prepareStackTrace=(n,o)=>o;let r=new Error().stack.slice(1);return Error.prepareStackTrace=i,r};c7e.exports=$yt;c7e.exports.default=$yt});var tIt=ut((ypn,eIt)=>{"use strict";var bxr=Kyt();eIt.exports=i=>{let r=bxr();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 nIt=ut((Ipn,rIt)=>{"use strict";var vxr=hs("path"),xxr=qyt(),wxr=tIt();rIt.exports=i=>{if(typeof i!="string")throw new TypeError("Expected a string");let r=wxr(__filename),n=r?vxr.dirname(r):__dirname,o=xxr(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 sIt=ut((vpn,iIt)=>{"use strict";iIt.exports=function(r){return r?r instanceof Array||Array.isArray(r)||r.length>=0&&r.splice instanceof Function:!1}});var oIt=ut((xpn,aIt)=>{"use strict";var Axr=hs("util"),Sxr=sIt(),l7e=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 D=f.split(/\r?\n/g);for(var Q in n)if(n.hasOwnProperty(Q)){var M=n[Q];"message"in M&&(D=M.message(this[Q],D)||D,Sxr(D)||(D=[D]))}return D.join(`
1
+ var bvr=Object.create;var eme=Object.defineProperty;var vvr=Object.getOwnPropertyDescriptor;var xvr=Object.getOwnPropertyNames;var wvr=Object.getPrototypeOf,Avr=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),sN=(i,r)=>{for(var n in r)eme(i,n,{get:r[n],enumerable:!0})},Wyt=(i,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of xvr(r))!Avr.call(i,l)&&l!==n&&eme(i,l,{get:()=>r[l],enumerable:!(o=vvr(r,l))||o.enumerable});return i};var To=(i,r,n)=>(n=i!=null?bvr(wvr(i)):{},Wyt(r||!i||!i.__esModule?eme(n,"default",{value:i,enumerable:!0}):n,i)),Svr=i=>Wyt(eme({},"__esModule",{value:!0}),i);function Vyt(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 Wvr(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"&&Vyt(r.consent)}function Vvr(){return{dataCollection:tme.dataCollection.defaultValue,telemetry:tme.telemetry.defaultValue,analytics:tme.analytics.defaultValue,errorReporting:tme.errorReporting.defaultValue}}function Zvr(){return{dataCollection:!0,telemetry:!0,analytics:!0,errorReporting:!0}}function Pvr(){return{dataCollection:!0,telemetry:!1,analytics:!1,errorReporting:!1}}var MVe,tme,YVe=ar(()=>{"use strict";MVe="1.0.0",tme={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 EY,CY=ar(()=>{"use strict";EY=(l=>(l.MANUAL="manual",l.AUTO="auto",l.STRICT="strict",l.SMART="smart",l))(EY||{})});var Aq,OVe,rme,Sq=ar(()=>{"use strict";Aq=(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))(Aq||{}),OVe=(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))(OVe||{}),rme=(D=>(D.IDLE="idle",D.CONTEXT_GATHERING="context_gathering",D.COMPLEXITY_ASSESSMENT="complexity_assessment",D.CLARIFICATION="clarification",D.PLAN_GENERATION="plan_generation",D.PLAN_REVIEW="plan_review",D.EXECUTION="execution",D.VERIFICATION="verification",D.COMPLETED="completed",D.FAILED="failed",D))(rme||{})});function JVe(i){return typeof i=="string"&&["default","acceptEditsAsk","bypassPermissions","plan","ignore","acceptEdits","dontAsk"].includes(i)}function Jvr(i){return typeof i=="string"&&["project","cli","user","builtin"].includes(i)}function LVe(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&&!JVe(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 Lvr(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&&!JVe(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 Xvr(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 TY(i){if(!(!i||i.trim()===""))return i.split(",").map(r=>r.trim()).filter(r=>r.length>0)}function Qvr(i){if(!(!i||i.length===0))return i.join(", ")}function HVe(i){return nme.indexOf(i)}function Uvr(i,r){return HVe(i.source)-HVe(r.source)}var nme,XVe=ar(()=>{"use strict";nme=["builtin","user","cli","project"]});var Uyt={};sN(Uyt,{CLAUDE_MODELS:()=>Ew,MODEL_ALIASES:()=>Gq,calculateModelCost:()=>Oyt,compareModels:()=>Hyt,getAvailableAliases:()=>Pyt,getAvailableModelIds:()=>Zyt,getAvailableModels:()=>NY,getCheapestModel:()=>Lyt,getDefaultModel:()=>Myt,getDefaultModelId:()=>Yyt,getModelConfig:()=>Gw,getModelDescription:()=>ime,getModelTier:()=>Qyt,getModelsByCapability:()=>Jyt,getMostCapableModel:()=>Xyt,isValidModel:()=>Dyt,resolveModelId:()=>Cw});function Cw(i){let r=i.toLowerCase();if(Gq[r])return Gq[r];for(let n of Object.keys(Ew))if(n.toLowerCase()===r)return n;return i}function Gw(i){let r=Cw(i);return Ew[r]}function NY(){return Object.values(Ew)}function Zyt(){return Object.keys(Ew)}function Pyt(){return Object.keys(Gq)}function Dyt(i){return Cw(i)in Ew}function Myt(){return Ew["claude-sonnet-4-5-20250929"]}function Yyt(){return"claude-sonnet-4-5-20250929"}function Oyt(i,r,n){let o=Gw(i);if(!o)return null;let l=r/1e6*o.pricing.inputPricePerMillion,f=n/1e6*o.pricing.outputPricePerMillion;return l+f}function Hyt(i,r,n){let o=Gw(i),l=Gw(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 Jyt(i){return NY().filter(r=>r.capabilities[i])}function Lyt(){return NY().reduce((r,n)=>n.pricing.inputPricePerMillion<r.pricing.inputPricePerMillion?n:r)}function Xyt(){return Ew["claude-opus-4-5-20251101"]}function Qyt(i){let r=Cw(i);if(r.includes("haiku"))return"economy";if(r.includes("sonnet"))return"balanced";if(r.includes("opus"))return"premium"}function ime(i){let r=Cw(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 Ew,Gq,kW=ar(()=>{"use strict";Ew={"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}}},Gq={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 Eq,Cq,kY,sme,QVe,Tq,UVe,jVe,qvr,FY,BVe,$vr,zVe,qVe,aN,$Ve,KVe,Kvr,exr,txr,e7e,t7e,r7e,ame,rxr,nxr,ome,n7e,Nq,ixr,sxr,axr,oxr,u4,RY,i7e,cxr,lxr,uxr,pxr,dxr,SE,p4,fxr,mxr,_xr,hxr,gxr,s7e,a7e,yxr,zm=ar(()=>{"use strict";Eq=".compass",Cq=".compass",kY="config.json",sme="session.json",QVe="consent.json",Tq="credentials.enc",UVe="logs",jVe="backups",qvr="cache",FY="saved-sessions",BVe="index",$vr="context",zVe="commands",qVe="agents",aN=16384,$Ve=5e4,KVe=5e4,Kvr=80,exr=10,txr=30,e7e=30,t7e=365,r7e=6e4,ame=3e4,rxr=50,nxr=1048576,ome=100,n7e=8e3,Nq=4e3,ixr=6e3,sxr=90,axr=1e5,oxr=524288e3,u4="claude-sonnet-4-5-20250929",RY=.6,i7e="haiku",cxr="banner",lxr=4,uxr=1e3,pxr=16e3,dxr=.1,SE={anthropic:{model:u4,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:4,showNotifications:!0,notificationStyle:cxr,includePrerelease:!1},agentic:{maxIterations:200,costWarningThreshold:5,costHardCap:0,autoCompactAtPercent:80,stuckDetectionEnabled:!0,stuckDetectionThreshold:3,maxIterationsPerTask:50}},p4={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"},fxr="1.0.35",mxr="Compass CLI",_xr="Agentic CLI by Compass Agentic Platform",hxr="1.0.0",gxr={".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"},s7e=["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"],a7e=["node_modules",".git","dist","build","out","coverage",".next",".nuxt",".output",".cache",".parcel-cache","vendor","__pycache__",".pytest_cache","target","bin","obj"],yxr=[".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 qyt=ut((hpn,o7e)=>{"use strict";var jyt=hs("path"),Byt=hs("module"),Ixr=hs("fs"),zyt=(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=Ixr.realpathSync(i)}catch(f){if(f.code==="ENOENT")i=jyt.resolve(i);else{if(n)return null;throw f}}let o=jyt.join(i,"noop.js"),l=()=>Byt._resolveFilename(r,{id:o,filename:o,paths:Byt._nodeModulePaths(i)});if(n)try{return l()}catch{return null}return l()};o7e.exports=(i,r)=>zyt(i,r);o7e.exports.silent=(i,r)=>zyt(i,r,!0)});var Kyt=ut((gpn,c7e)=>{"use strict";var $yt=()=>{let i=Error.prepareStackTrace;Error.prepareStackTrace=(n,o)=>o;let r=new Error().stack.slice(1);return Error.prepareStackTrace=i,r};c7e.exports=$yt;c7e.exports.default=$yt});var tIt=ut((ypn,eIt)=>{"use strict";var bxr=Kyt();eIt.exports=i=>{let r=bxr();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 nIt=ut((Ipn,rIt)=>{"use strict";var vxr=hs("path"),xxr=qyt(),wxr=tIt();rIt.exports=i=>{if(typeof i!="string")throw new TypeError("Expected a string");let r=wxr(__filename),n=r?vxr.dirname(r):__dirname,o=xxr(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 sIt=ut((vpn,iIt)=>{"use strict";iIt.exports=function(r){return r?r instanceof Array||Array.isArray(r)||r.length>=0&&r.splice instanceof Function:!1}});var oIt=ut((xpn,aIt)=>{"use strict";var Axr=hs("util"),Sxr=sIt(),l7e=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 D=f.split(/\r?\n/g);for(var Q in n)if(n.hasOwnProperty(Q)){var M=n[Q];"message"in M&&(D=M.message(this[Q],D)||D,Sxr(D)||(D=[D]))}return D.join(`
2
2
  `)},set:function(D){f=D}});var h=null,v=Object.getOwnPropertyDescriptor(this,"stack"),E=v.get,R=v.value;delete v.value,delete v.writable,v.set=function(D){h=D},v.get=function(){var D=(h||(E?E.call(this):R)).split(/\r?\n+/g);h||(D[0]=this.name+": "+this.message);var Q=1;for(var M in n)if(n.hasOwnProperty(M)){var ne=n[M];if("line"in ne){var le=ne.line(this[M]);le&&D.splice(Q++,0," "+le)}"stack"in ne&&ne.stack(this[M],D)}return D.join(`
3
3
  `)},Object.defineProperty(this,"stack",v)};return Object.setPrototypeOf?(Object.setPrototypeOf(o.prototype,Error.prototype),Object.setPrototypeOf(o,Error)):Axr.inherits(o,Error),o};l7e.append=function(i,r){return{message:function(n,o){return n=n||r,n&&(o[0]+=" "+i.replace("%s",n.toString())),o}}};l7e.line=function(i,r){return{line:function(n){return n=n||r,n?i.replace("%s",n.toString()):null}}};aIt.exports=l7e});var uIt=ut((wpn,lIt)=>{"use strict";var Gxr=i=>{let r=i.charCodeAt(0).toString(16).toUpperCase();return"0x"+(r.length%2?"0":"")+r},Exr=(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])} (${Gxr(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}},cme=class extends SyntaxError{constructor(r,n,o,l){o=o||20;let f=Exr(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}},Cxr=Symbol.for("indent"),Txr=Symbol.for("newline"),Nxr=/^\s*[{\[]((?:\r?\n)+)([\s\t]*)/,kxr=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,lme=(i,r,n)=>{let o=cIt(i);n=n||20;try{let[,l=`
4
4
  `,f=" "]=o.match(kxr)||o.match(Nxr)||[,"",""],h=JSON.parse(o,r);return h&&typeof h=="object"&&(h[Txr]=l,h[Cxr]=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 cme(l,o,n,lme)}},cIt=i=>String(i).replace(/^\uFEFF/,"");lIt.exports=lme;lme.JSONParseError=cme;lme.noExceptions=(i,r)=>{try{return JSON.parse(cIt(i),r)}catch{}}});var fIt=ut(kq=>{"use strict";kq.__esModule=!0;kq.LinesAndColumns=void 0;var ume=`
@@ -1701,6 +1701,34 @@ the testing approach.
1701
1701
  automatically added by the system, and bear no direct relation to the specific tool results or user messages in which they appear.
1702
1702
 
1703
1703
 
1704
+ # Progressive Context Building (Deep Analysis Mode)
1705
+
1706
+ For tasks involving understanding, debugging, architectural analysis, or unfamiliar code paths, adopt a methodical approach:
1707
+
1708
+ **When to activate:**
1709
+ - Debugging issues or tracing execution flow
1710
+ - Understanding how components interact
1711
+ - Analyzing architectural patterns or design decisions
1712
+ - Exploring unfamiliar areas of the codebase
1713
+ - Investigating "why" questions about existing code
1714
+
1715
+ **Behavioral guidelines:**
1716
+ - Read files fully before moving to the next - avoid line-limited partial reads during exploration
1717
+ - Build understanding incrementally: read \u2192 understand \u2192 identify next lead \u2192 follow
1718
+ - Explain connections and insights as you discover them
1719
+ - Avoid parallel file reads when tracing a single logical thread
1720
+ - Articulate what you're looking for before searching, and what you learned after
1721
+ - Prefer depth over breadth: follow one trail to completion before branching
1722
+
1723
+ **Example flow:**
1724
+ 1. "Looking for the entry point of X..."
1725
+ 2. [Read file fully]
1726
+ 3. "Found that X calls Y in service.ts:45. Following that dependency..."
1727
+ 4. [Read the next file]
1728
+ 5. "Now I see the full picture: X \u2192 Y \u2192 Z. The issue is..."
1729
+
1730
+ This mode prioritizes understanding over speed. For simple lookups or known locations, the standard efficient approach applies.
1731
+
1704
1732
  # Tool usage policy
1705
1733
  - When doing file search, prefer to use the "spawn_task" in order to reduce context usage.
1706
1734
  - You should proactively use the "spawn_task" tool with specialized agents when the task at hand matches the agent's description.
@@ -2716,7 +2744,7 @@ ${r}`),o.push({role:"user",content:v}),o}estimateTaskTokens(r,n,o){let l=Ud(r);f
2716
2744
  `)}P3();var _Be=[{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"]}]}],Jun=[{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 _Jt(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(`
2717
2745
  `)}function Lun(){try{let{getCustomCommands:i}=(mJt(),Svr(fJt)),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 Xun(){let i=[..._Be],r=Lun();r&&i.push(r);let n=i.map(_Jt);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(`
2718
2746
  `)}function Qun(i){let r=i.startsWith("/")?i:`/${i}`,o=_Be.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(`
2719
- `)}PV();var oDn="1.0.34",cDn="compass-cli",lDn="AI-powered development assistance using Anthropic's Claude models";export{nme as AGENT_SOURCE_PRIORITY,lDn as APP_DESCRIPTION,mxr as APP_DISPLAY_NAME,cDn as APP_NAME,_xr as APP_TAGLINE,fxr as APP_VERSION,iJt as ASCII_BANNER,KVe as AUTO_COMPACT_TRIGGER,r7e as AUTO_SAVE_INTERVAL_MS,mee as ActionLogger,g8t as ActionStatus,Bw as ActionType,Zhe as AnthropicClient,u_e as ApprovalManager,EY as ApprovalMode,jVe as BACKUPS_DIR,e7e as BACKUP_RETENTION_DAYS,yxr as BINARY_EXTENSIONS,d_e as BackupManager,qvr as CACHE_DIR,Ew as CLAUDE_MODELS,Jun as CLI_COMMANDS,Eun as COMPASS_ICON,kY as CONFIG_FILE_NAME,t7e as CONSENT_EXPIRY_DAYS,QVe as CONSENT_FILE_NAME,hxr as CONSENT_VERSION,$vr as CONTEXT_DIR,sxr as CONTEXT_WINDOW_SAFETY_MARGIN,Kvr as CONTEXT_WINDOW_WARNING_PERCENT,Tq as CREDENTIALS_FILE_NAME,wee as ComplexityClassifier,jme as ConfigManager,e_e as ConsentManager,i_e as CredentialStore,SE as DEFAULT_CONFIG,exr as DEFAULT_COST_WARNING_THRESHOLD,aN as DEFAULT_MAX_TOKENS,u4 as DEFAULT_MODEL,jvr as DEFAULT_RATING_CONFIG,RY as DEFAULT_TEMPERATURE,Dvr as DEFAULT_UPDATE_CONFIG,p4 as ENV_VARS,vee as EnhancedContextGatherer,$me as EventEmitter,Aq as ExecutionMode,MWt as ExecutionStrategy,Eq as GLOBAL_COMPASS_DIR,kK as GitService,Fve as HistoryManager,BVe as INDEX_DIR,kte as InteractiveClarifier,PWt as IssueCategory,ZWt as IssueSeverity,gxr as LANGUAGE_EXTENSIONS,UVe as LOGS_DIR,Eee as LogInterpreter,oxr as MAX_CACHE_SIZE_BYTES,Nq as MAX_COMMAND_OUTPUT_TOKENS,rxr as MAX_FILES_PER_OPERATION,n7e as MAX_FILE_READ_TOKENS,nxr as MAX_FILE_SIZE_BYTES,ome as MAX_HISTORY_LENGTH,axr as MAX_INDEXED_FILES,lxr as MAX_RETRY_ATTEMPTS,ixr as MAX_SEARCH_RESULT_TOKENS,Gq as MODEL_ALIASES,Cq as PROJECT_COMPASS_DIR,Fte as PlanGenerator,uxr as RETRY_BASE_DELAY_MS,dxr as RETRY_JITTER_FACTOR,pxr as RETRY_MAX_DELAY_MS,FY as SAVED_SESSIONS_DIR,txr as SESSION_EXPIRY_DAYS,sme as SESSION_FILE_NAME,ame as SHELL_COMMAND_TIMEOUT_MS,_Be as SLASH_COMMANDS,a_e as SessionManager,l1e as ShellExecutor,f8t as StepStatus,fee as StepTracker,m8t as StepType,$Ve as TOKEN_WARNING_THRESHOLD,a7e as TOOL_READ_BLOCKLIST_DIRS,s7e as TOOL_READ_BLOCKLIST_PATTERNS,OVe as TaskExecutionStatus,_8t as TaskStatus,l_e as TokenTracker,_ee as ToolRegistry,oDn as VERSION,Rte as Verifier,rLe as WORKFLOW_PROMPTS,Cee as WorkflowManager,Wte as WorkflowOrchestrator,rme as WorkflowPhase,DWt as WorkflowState,Aun as applyCompletion,tMr as applyPatch,KDr as areIdentical,VYr as calculateContextUsagePercent,Oyt as calculateModelCost,FYr as calculateRemainingTokens,C6r as colorByStatus,zDr as colorizeDiff,Uvr as compareAgentPriority,Hyt as compareModels,kE as copy,JYr as createActionLogger,yOr as createComplexityClassifier,Xvr as createDefaultAgentDefinition,Vvr as createDefaultConsent,Bvr as createDefaultRatingState,lOr as createEnhancedContextGatherer,Zvr as createFullConsent,lRr as createGitService,tun as createInteractiveClarifier,aHr as createLogInterpreter,Pvr as createMinimalConsent,nun as createPlanGenerator,HYr as createStepTracker,LYr as createToolRegistry,sun as createVerifier,cHr as createWorkflowManager,oun as createWorkflowOrchestrator,IPe as decrypt,yPe as encrypt,zl as ensureDir,NYr as estimateConversationTokens,kYr as estimateSystemPromptTokens,Ud as estimateTokens,pun as executeSlashCommand,cBe as extractCodeBlocks,oBe as extractMentions,Qun as formatCommandHelp,x6r as formatCost,y6r as formatDate,I6r as formatDuration,v6r as formatFileSize,Xun as formatFullHelp,_Jt as formatHelpCategory,E6r as formatList,Gwt as formatPercent,G6r as formatProgressBar,b6r as formatRelativeTime,_n as formatTimestamp,w6r as formatTokenCount,WYr as formatTokenDisplay,pC as generateDiff,qDr as generateDiffSummary,V6r as generateSecureRandom,$Dr as generateWordDiff,pk as getActionLogger,HVe as getAgentSourcePriority,jb as getAnthropicClient,ph as getApprovalManager,Pyt as getAvailableAliases,Zyt as getAvailableModelIds,NY as getAvailableModels,wN as getBackupManager,M5r as getBasename,eMr as getChangedLineCount,Lyt as getCheapestModel,kH as getCodebaseIndexer,hun as getCompletions,Aee as getComplexityClassifier,c$ as getConfigManager,mPe as getConsentManager,fk as getContextBuilder,ZYr as getContextUsageColor,OYr as getConversationCompactor,XW as getCredentialStore,Myt as getDefaultModel,Yyt as getDefaultModelId,MV as getEnhancedContextGatherer,ka as getEventEmitter,D5r as getExtension,dC as getFileService,Vu as getGlobalCompassDir,dun as getHistoryManager,iBe as getInteractiveClarifier,dXe as getLogInterpreter,Gw as getModelConfig,ime as getModelDescription,Qyt as getModelTier,Jyt as getModelsByCapability,Xyt as getMostCapableModel,Gve as getPlanGenerator,gm as getProjectCompassDir,Z5r as getRelativePath,Hh as getSessionManager,Kb as getShellExecutor,dBe as getSlashCommandRegistry,uk as getStepTracker,Gun as getTaskProcessor,xN as getTokenTracker,r5 as getToolRegistry,aBe as getVerifier,oHr as getWorkflowManager,aun as getWorkflowOrchestrator,bPe as hash,Z6r as hmac,Lv as interpolateTemplate,o$ as isDirectory,Xme as isFile,zY as isPathWithin,LVe as isValidAgentFrontmatter,JVe as isValidAgentPermissionMode,Jvr as isValidAgentSource,Evr as isValidAnthropicConfig,Lvr as isValidCLIAgentConfig,Gvr as isValidCompassConfig,Rvr as isValidConfigFile,Vyt as isValidConsent,Wvr as isValidConsentRecord,Dyt as isValidModel,Hvr as isValidNotificationStyle,Cvr as isValidProjectConfig,zvr as isValidRatingState,Tvr as isValidSafetyConfig,kvr as isValidSessionConfig,uun as isValidSlashCommand,Nvr as isValidUIConfig,Mvr as isValidUpdateCheckResult,Yvr as isValidUpdateConfig,Fvr as isValidUpdateSettingsConfig,Ovr as isValidUpdateType,ve as logger,qq as matchesPattern,P5r as normalizeSeparators,S6r as padString,$Ht as parseArgs,lun as parseInput,TY as parseToolsList,Ya as pathExists,iO as readDir,lXe as registerBuiltInTools,pBe as registerSlashCommand,kI as remove,Tun as renderBanner,Nun as renderMiniBanner,kun as renderWelcome,W5r as resolveGlobalPath,Cw as resolveModelId,V5r as resolveProjectPath,fd as safeReadFile,mf as safeReadJson,Wv as safeWriteFile,Yh as safeWriteJson,HW as sanitizePath,P6r as secureCompare,Qvr as serializeToolsList,Hb as stat,hN as toForwardSlashes,A6r as truncate,RYr as wouldExceedContext};
2747
+ `)}PV();var oDn="1.0.35",cDn="compass-cli",lDn="AI-powered development assistance using Anthropic's Claude models";export{nme as AGENT_SOURCE_PRIORITY,lDn as APP_DESCRIPTION,mxr as APP_DISPLAY_NAME,cDn as APP_NAME,_xr as APP_TAGLINE,fxr as APP_VERSION,iJt as ASCII_BANNER,KVe as AUTO_COMPACT_TRIGGER,r7e as AUTO_SAVE_INTERVAL_MS,mee as ActionLogger,g8t as ActionStatus,Bw as ActionType,Zhe as AnthropicClient,u_e as ApprovalManager,EY as ApprovalMode,jVe as BACKUPS_DIR,e7e as BACKUP_RETENTION_DAYS,yxr as BINARY_EXTENSIONS,d_e as BackupManager,qvr as CACHE_DIR,Ew as CLAUDE_MODELS,Jun as CLI_COMMANDS,Eun as COMPASS_ICON,kY as CONFIG_FILE_NAME,t7e as CONSENT_EXPIRY_DAYS,QVe as CONSENT_FILE_NAME,hxr as CONSENT_VERSION,$vr as CONTEXT_DIR,sxr as CONTEXT_WINDOW_SAFETY_MARGIN,Kvr as CONTEXT_WINDOW_WARNING_PERCENT,Tq as CREDENTIALS_FILE_NAME,wee as ComplexityClassifier,jme as ConfigManager,e_e as ConsentManager,i_e as CredentialStore,SE as DEFAULT_CONFIG,exr as DEFAULT_COST_WARNING_THRESHOLD,aN as DEFAULT_MAX_TOKENS,u4 as DEFAULT_MODEL,jvr as DEFAULT_RATING_CONFIG,RY as DEFAULT_TEMPERATURE,Dvr as DEFAULT_UPDATE_CONFIG,p4 as ENV_VARS,vee as EnhancedContextGatherer,$me as EventEmitter,Aq as ExecutionMode,MWt as ExecutionStrategy,Eq as GLOBAL_COMPASS_DIR,kK as GitService,Fve as HistoryManager,BVe as INDEX_DIR,kte as InteractiveClarifier,PWt as IssueCategory,ZWt as IssueSeverity,gxr as LANGUAGE_EXTENSIONS,UVe as LOGS_DIR,Eee as LogInterpreter,oxr as MAX_CACHE_SIZE_BYTES,Nq as MAX_COMMAND_OUTPUT_TOKENS,rxr as MAX_FILES_PER_OPERATION,n7e as MAX_FILE_READ_TOKENS,nxr as MAX_FILE_SIZE_BYTES,ome as MAX_HISTORY_LENGTH,axr as MAX_INDEXED_FILES,lxr as MAX_RETRY_ATTEMPTS,ixr as MAX_SEARCH_RESULT_TOKENS,Gq as MODEL_ALIASES,Cq as PROJECT_COMPASS_DIR,Fte as PlanGenerator,uxr as RETRY_BASE_DELAY_MS,dxr as RETRY_JITTER_FACTOR,pxr as RETRY_MAX_DELAY_MS,FY as SAVED_SESSIONS_DIR,txr as SESSION_EXPIRY_DAYS,sme as SESSION_FILE_NAME,ame as SHELL_COMMAND_TIMEOUT_MS,_Be as SLASH_COMMANDS,a_e as SessionManager,l1e as ShellExecutor,f8t as StepStatus,fee as StepTracker,m8t as StepType,$Ve as TOKEN_WARNING_THRESHOLD,a7e as TOOL_READ_BLOCKLIST_DIRS,s7e as TOOL_READ_BLOCKLIST_PATTERNS,OVe as TaskExecutionStatus,_8t as TaskStatus,l_e as TokenTracker,_ee as ToolRegistry,oDn as VERSION,Rte as Verifier,rLe as WORKFLOW_PROMPTS,Cee as WorkflowManager,Wte as WorkflowOrchestrator,rme as WorkflowPhase,DWt as WorkflowState,Aun as applyCompletion,tMr as applyPatch,KDr as areIdentical,VYr as calculateContextUsagePercent,Oyt as calculateModelCost,FYr as calculateRemainingTokens,C6r as colorByStatus,zDr as colorizeDiff,Uvr as compareAgentPriority,Hyt as compareModels,kE as copy,JYr as createActionLogger,yOr as createComplexityClassifier,Xvr as createDefaultAgentDefinition,Vvr as createDefaultConsent,Bvr as createDefaultRatingState,lOr as createEnhancedContextGatherer,Zvr as createFullConsent,lRr as createGitService,tun as createInteractiveClarifier,aHr as createLogInterpreter,Pvr as createMinimalConsent,nun as createPlanGenerator,HYr as createStepTracker,LYr as createToolRegistry,sun as createVerifier,cHr as createWorkflowManager,oun as createWorkflowOrchestrator,IPe as decrypt,yPe as encrypt,zl as ensureDir,NYr as estimateConversationTokens,kYr as estimateSystemPromptTokens,Ud as estimateTokens,pun as executeSlashCommand,cBe as extractCodeBlocks,oBe as extractMentions,Qun as formatCommandHelp,x6r as formatCost,y6r as formatDate,I6r as formatDuration,v6r as formatFileSize,Xun as formatFullHelp,_Jt as formatHelpCategory,E6r as formatList,Gwt as formatPercent,G6r as formatProgressBar,b6r as formatRelativeTime,_n as formatTimestamp,w6r as formatTokenCount,WYr as formatTokenDisplay,pC as generateDiff,qDr as generateDiffSummary,V6r as generateSecureRandom,$Dr as generateWordDiff,pk as getActionLogger,HVe as getAgentSourcePriority,jb as getAnthropicClient,ph as getApprovalManager,Pyt as getAvailableAliases,Zyt as getAvailableModelIds,NY as getAvailableModels,wN as getBackupManager,M5r as getBasename,eMr as getChangedLineCount,Lyt as getCheapestModel,kH as getCodebaseIndexer,hun as getCompletions,Aee as getComplexityClassifier,c$ as getConfigManager,mPe as getConsentManager,fk as getContextBuilder,ZYr as getContextUsageColor,OYr as getConversationCompactor,XW as getCredentialStore,Myt as getDefaultModel,Yyt as getDefaultModelId,MV as getEnhancedContextGatherer,ka as getEventEmitter,D5r as getExtension,dC as getFileService,Vu as getGlobalCompassDir,dun as getHistoryManager,iBe as getInteractiveClarifier,dXe as getLogInterpreter,Gw as getModelConfig,ime as getModelDescription,Qyt as getModelTier,Jyt as getModelsByCapability,Xyt as getMostCapableModel,Gve as getPlanGenerator,gm as getProjectCompassDir,Z5r as getRelativePath,Hh as getSessionManager,Kb as getShellExecutor,dBe as getSlashCommandRegistry,uk as getStepTracker,Gun as getTaskProcessor,xN as getTokenTracker,r5 as getToolRegistry,aBe as getVerifier,oHr as getWorkflowManager,aun as getWorkflowOrchestrator,bPe as hash,Z6r as hmac,Lv as interpolateTemplate,o$ as isDirectory,Xme as isFile,zY as isPathWithin,LVe as isValidAgentFrontmatter,JVe as isValidAgentPermissionMode,Jvr as isValidAgentSource,Evr as isValidAnthropicConfig,Lvr as isValidCLIAgentConfig,Gvr as isValidCompassConfig,Rvr as isValidConfigFile,Vyt as isValidConsent,Wvr as isValidConsentRecord,Dyt as isValidModel,Hvr as isValidNotificationStyle,Cvr as isValidProjectConfig,zvr as isValidRatingState,Tvr as isValidSafetyConfig,kvr as isValidSessionConfig,uun as isValidSlashCommand,Nvr as isValidUIConfig,Mvr as isValidUpdateCheckResult,Yvr as isValidUpdateConfig,Fvr as isValidUpdateSettingsConfig,Ovr as isValidUpdateType,ve as logger,qq as matchesPattern,P5r as normalizeSeparators,S6r as padString,$Ht as parseArgs,lun as parseInput,TY as parseToolsList,Ya as pathExists,iO as readDir,lXe as registerBuiltInTools,pBe as registerSlashCommand,kI as remove,Tun as renderBanner,Nun as renderMiniBanner,kun as renderWelcome,W5r as resolveGlobalPath,Cw as resolveModelId,V5r as resolveProjectPath,fd as safeReadFile,mf as safeReadJson,Wv as safeWriteFile,Yh as safeWriteJson,HW as sanitizePath,P6r as secureCompare,Qvr as serializeToolsList,Hb as stat,hN as toForwardSlashes,A6r as truncate,RYr as wouldExceedContext};
2720
2748
  /*! Bundled license information:
2721
2749
 
2722
2750
  typescript/lib/typescript.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-ai/nova",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "description": "AI-powered development assistant that brings advanced language models directly to your terminal",
5
5
  "bin": {
6
6
  "nova": "dist/cli.js",