@rulemetric/cli 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base-command.js +1 -1
- package/dist/chunk-355GZ7LR.js +1 -0
- package/dist/{chunk-V5XRGRJC.js → chunk-3737WF6X.js} +1 -1
- package/dist/chunk-3CX6YUEX.js +1 -0
- package/dist/chunk-3RN3LDUC.js +1 -0
- package/dist/{chunk-EJZGGT52.js → chunk-3TSZ77FB.js} +1 -1
- package/dist/chunk-3UKZJAFS.js +7 -0
- package/dist/chunk-3ZHVP3KE.js +1 -0
- package/dist/{chunk-R4SSIFKY.js → chunk-4MXLDBLV.js} +1 -1
- package/dist/{chunk-UT3EQR4C.js → chunk-4NAYH7VA.js} +1 -1
- package/dist/{chunk-SBFTRVZM.js → chunk-4QW5DQNL.js} +1 -1
- package/dist/{chunk-HWZTQXNM.js → chunk-76MON4SR.js} +1 -1
- package/dist/chunk-7EKHB3U7.js +1 -0
- package/dist/{chunk-KDFBKYXK.js → chunk-7FY23IMS.js} +1 -1
- package/dist/{chunk-MQ47NLPC.js → chunk-7H4HJ2RV.js} +1 -1
- package/dist/chunk-7HJJCRYK.js +1 -0
- package/dist/{chunk-AJN2BLMV.js → chunk-ADZ7HHCD.js} +1 -1
- package/dist/{chunk-LWUA3NUZ.js → chunk-BFDXMIXO.js} +1 -1
- package/dist/{chunk-FF5TAMDH.js → chunk-BTKKWYIU.js} +1 -1
- package/dist/{chunk-XVRQ5WUB.js → chunk-CQARFIJB.js} +1 -1
- package/dist/chunk-DS4P5C4F.js +48 -0
- package/dist/{chunk-BMDHPIW6.js → chunk-E2QYH6EF.js} +1 -1
- package/dist/{chunk-4PWGV2OW.js → chunk-E7BOAZ3X.js} +35 -20
- package/dist/chunk-E7XOYGL5.js +20 -0
- package/dist/{chunk-W4ZDAJ6S.js → chunk-FPOPUEA6.js} +1 -1
- package/dist/chunk-GAFMAVFO.js +1 -0
- package/dist/{chunk-RUIX6AZ6.js → chunk-GJKHHZSQ.js} +1 -1
- package/dist/{chunk-DN2T3FXN.js → chunk-GN3ZHQ46.js} +1 -1
- package/dist/{chunk-MPDSQALK.js → chunk-GP46IPK2.js} +1 -1
- package/dist/{chunk-FM4LTGMI.js → chunk-HNAVHRGY.js} +1 -1
- package/dist/chunk-HPN22ZIN.js +1 -0
- package/dist/{chunk-YWALNDT3.js → chunk-I2CXODLD.js} +1 -1
- package/dist/chunk-IEQDLURA.js +1 -0
- package/dist/chunk-IS4JRZK2.js +12 -0
- package/dist/{chunk-WOBFJCMO.js → chunk-IZHJNPER.js} +1 -1
- package/dist/{chunk-FAOSXPRO.js → chunk-JKXU7FAY.js} +1 -1
- package/dist/{chunk-OUXWBHCI.js → chunk-JPW4LP2O.js} +1 -1
- package/dist/{chunk-IPL2DHU4.js → chunk-KOQRNWIW.js} +1 -1
- package/dist/chunk-L6NQNVK2.js +3 -0
- package/dist/{chunk-BL4BN6RU.js → chunk-LB24UKHZ.js} +1 -1
- package/dist/chunk-LUCVMLHV.js +1 -0
- package/dist/chunk-M7QSC64D.js +1 -0
- package/dist/{chunk-YZNP4TW4.js → chunk-NEP5EWHJ.js} +1 -1
- package/dist/chunk-NIEP5G3T.js +13 -0
- package/dist/{chunk-IOV2BEW7.js → chunk-NNOSORNV.js} +1 -1
- package/dist/chunk-NQSB4YVT.js +1 -0
- package/dist/{chunk-SBJNQ5Q6.js → chunk-OASW7DOD.js} +1 -1
- package/dist/{chunk-SV7FDAKW.js → chunk-OJSWNU56.js} +1 -1
- package/dist/{chunk-RS4LSJI2.js → chunk-OZRUGBN5.js} +1 -1
- package/dist/chunk-QEKWPQDQ.js +2 -0
- package/dist/chunk-RBSEE2Z6.js +1 -0
- package/dist/{chunk-CLCRZWAG.js → chunk-RDXWQDNZ.js} +1 -1
- package/dist/{chunk-6QKI756T.js → chunk-RFISMWRW.js} +1 -1
- package/dist/chunk-RHVU6IFW.js +1 -0
- package/dist/chunk-SCBOQFZ4.js +16 -0
- package/dist/chunk-SDBQOHXY.js +1 -0
- package/dist/{chunk-ZXOAI65J.js → chunk-TGIUOJUB.js} +1 -1
- package/dist/chunk-UK5JOTMW.js +1 -0
- package/dist/chunk-UPFH72PF.js +2 -0
- package/dist/{chunk-7FWIIVMC.js → chunk-V3CAUY7M.js} +1 -1
- package/dist/{chunk-G5BXZT6F.js → chunk-VBXL7XO7.js} +1 -1
- package/dist/{chunk-R4W4QDTP.js → chunk-W54I75IW.js} +1 -1
- package/dist/{chunk-NPNSUG3N.js → chunk-X5WOTWT4.js} +1 -1
- package/dist/{chunk-JPUH3V67.js → chunk-XLVOAGSG.js} +3 -3
- package/dist/{chunk-RE7DDQ3O.js → chunk-Y3T5Q5CD.js} +1 -1
- package/dist/{chunk-W44E3DYZ.js → chunk-YE5ARPHO.js} +1 -1
- package/dist/chunk-ZL5LUOBZ.js +1 -0
- package/dist/commands/antigravity/backfill.js +1 -1
- package/dist/commands/auth/create-key.js +1 -1
- package/dist/commands/auth/login.js +1 -1
- package/dist/commands/auth/logout.js +1 -1
- package/dist/commands/auth/revoke-key.js +1 -1
- package/dist/commands/auth/signup.js +1 -1
- package/dist/commands/auth/status.js +1 -1
- package/dist/commands/capture/scope.js +1 -1
- package/dist/commands/catalog/index.js +1 -1
- package/dist/commands/catalog/recommend.js +1 -1
- package/dist/commands/crons/list.js +1 -1
- package/dist/commands/crons/run.js +1 -1
- package/dist/commands/dashboard.js +1 -1
- package/dist/commands/diagnostics.js +1 -1
- package/dist/commands/eval-targets/create.js +1 -1
- package/dist/commands/eval-targets/list.js +1 -1
- package/dist/commands/evals/agent.js +1 -1
- package/dist/commands/evals/auto-run.js +1 -1
- package/dist/commands/evals/benchmark.js +1 -1
- package/dist/commands/evals/compare.js +1 -1
- package/dist/commands/evals/create.js +1 -1
- package/dist/commands/evals/optimize-description.js +1 -1
- package/dist/commands/evals/optimize.js +1 -1
- package/dist/commands/evals/refine-cases.js +5 -6
- package/dist/commands/evals/run.js +1 -1
- package/dist/commands/evals/validate-judge.js +1 -1
- package/dist/commands/experiments/list.js +1 -1
- package/dist/commands/gateway/ensure.js +1 -1
- package/dist/commands/hooks/install.js +1 -1
- package/dist/commands/hooks/run.js +1 -1
- package/dist/commands/hooks/uninstall.js +1 -1
- package/dist/commands/instructions/create.js +1 -1
- package/dist/commands/instructions/dedupe.js +1 -1
- package/dist/commands/instructions/delete.js +1 -1
- package/dist/commands/instructions/fork.js +1 -1
- package/dist/commands/instructions/get.js +1 -1
- package/dist/commands/instructions/list.js +1 -1
- package/dist/commands/instructions/promote.js +1 -1
- package/dist/commands/instructions/pull.js +1 -1
- package/dist/commands/instructions/restore.js +1 -1
- package/dist/commands/instructions/retract.js +1 -1
- package/dist/commands/instructions/upstream.js +1 -1
- package/dist/commands/instructions/versions.js +1 -1
- package/dist/commands/launcher.js +1 -1
- package/dist/commands/local/down.js +1 -1
- package/dist/commands/local/up.js +1 -1
- package/dist/commands/org/current.js +1 -1
- package/dist/commands/org/list.js +1 -1
- package/dist/commands/org/switch.js +1 -1
- package/dist/commands/packs/add-instruction.js +1 -1
- package/dist/commands/packs/apply.js +1 -1
- package/dist/commands/packs/create.js +1 -1
- package/dist/commands/packs/fork.js +1 -1
- package/dist/commands/packs/get.js +1 -1
- package/dist/commands/packs/list.js +1 -1
- package/dist/commands/packs/remove-instruction.js +1 -1
- package/dist/commands/proxy/env.js +1 -1
- package/dist/commands/proxy/logs.js +1 -1
- package/dist/commands/proxy/restart.js +1 -1
- package/dist/commands/proxy/setup.js +1 -1
- package/dist/commands/proxy/start.js +1 -1
- package/dist/commands/proxy/status.js +1 -1
- package/dist/commands/proxy/stop.js +1 -1
- package/dist/commands/research/backfill.js +1 -1
- package/dist/commands/research/tail-transcript.js +1 -1
- package/dist/commands/service/install.js +1 -1
- package/dist/commands/service/status.js +1 -1
- package/dist/commands/service/uninstall.js +1 -1
- package/dist/commands/sessions/analyze.js +1 -1
- package/dist/commands/sessions/delete.js +1 -1
- package/dist/commands/sessions/end.js +1 -1
- package/dist/commands/sessions/import.js +1 -1
- package/dist/commands/sessions/list.js +1 -1
- package/dist/commands/sessions/start.js +1 -1
- package/dist/commands/setup.js +1 -1
- package/dist/commands/skills/export-approved.js +1 -1
- package/dist/commands/skills/install.js +1 -1
- package/dist/commands/skills/list.js +1 -1
- package/dist/commands/skills/publish.js +1 -1
- package/dist/commands/skills/search.js +1 -1
- package/dist/commands/skills/update.js +1 -1
- package/dist/commands/suggestions/accept.js +1 -1
- package/dist/commands/suggestions/auto.js +1 -1
- package/dist/commands/suggestions/dismiss.js +1 -1
- package/dist/commands/suggestions/list.js +1 -1
- package/dist/commands/suggestions/refresh.js +1 -1
- package/dist/commands/suggestions/undo.js +1 -1
- package/dist/dashboard/Dashboard.js +1 -1
- package/dist/dashboard/data.js +1 -1
- package/dist/dashboard/launcher/LauncherOverlay.js +1 -1
- package/dist/dashboard/launcher/api.js +1 -1
- package/dist/dashboard/launcher/useLaunchJobs.js +1 -1
- package/dist/dist-XEWF3R3N.js +1 -0
- package/dist/lib/active-org-refresh.js +1 -1
- package/dist/lib/agent-loop.js +1 -1
- package/dist/lib/antigravity-transcript.js +1 -1
- package/dist/lib/api-client.js +1 -1
- package/dist/lib/architecture/domain-layout.js +1 -0
- package/dist/lib/auto-run.js +1 -1
- package/dist/lib/ensure-api-key.js +1 -1
- package/dist/lib/ensure-fresh-token.js +1 -1
- package/dist/lib/eval-benchmark.js +1 -1
- package/dist/lib/eval-candidate-run.js +1 -1
- package/dist/lib/eval-conversation-handler.js +1 -1
- package/dist/lib/eval-grader.js +1 -1
- package/dist/lib/eval-resume.js +1 -1
- package/dist/lib/eval-run-batch.js +1 -1
- package/dist/lib/evolution-cost.js +1 -1
- package/dist/lib/evolution-enrolment.js +1 -1
- package/dist/lib/insights/generation/grading-transcript.js +1 -0
- package/dist/lib/insights/generation/installed-asks.js +1 -0
- package/dist/lib/insights/generation/prompts.js +1 -0
- package/dist/lib/insights/nomination/nominate.js +1 -0
- package/dist/lib/instruction-proposer.js +1 -1
- package/dist/lib/instructions/acceptance/accept-events.js +1 -0
- package/dist/lib/instructions/acceptance/accept-hook.js +1 -0
- package/dist/lib/instructions/acceptance/accept-types.js +0 -0
- package/dist/lib/instructions/acceptance/claude-md-blocks.js +1 -0
- package/dist/lib/instructions/acceptance/hook-install.js +1 -0
- package/dist/lib/instructions/acceptance/reverse-applications.js +1 -0
- package/dist/lib/instructions/acceptance/suggestion-accept.js +1 -0
- package/dist/lib/instructions/applications/render.js +1 -0
- package/dist/lib/instructions/applications/tagged-block.js +11 -0
- package/dist/lib/jobs/handlers/cron-auto-accept-suggestions.js +1 -0
- package/dist/lib/jobs/handlers/cron-eval-autorun.js +1 -0
- package/dist/lib/jobs/handlers/cron-instruction-evolution.js +1 -0
- package/dist/lib/jobs/handlers/cron-instruction-training.js +1 -0
- package/dist/lib/jobs/handlers/cron-refine-cases.js +1 -0
- package/dist/lib/jobs/handlers/cron-refresh-pricing.js +1 -0
- package/dist/lib/jobs/handlers/cron-refresh-skills.js +1 -0
- package/dist/lib/jobs/handlers/cron-retire-unused-skills.js +1 -0
- package/dist/lib/jobs/handlers/cron-suggest-instructions.js +1 -0
- package/dist/lib/jobs/handlers/distill-memories.js +1 -0
- package/dist/lib/jobs/handlers/process-changelog.js +1 -0
- package/dist/lib/jobs/handlers/process-conversation.js +1 -0
- package/dist/lib/jobs/handlers/process-eval.js +1 -0
- package/dist/lib/jobs/handlers/process-insights.js +1 -0
- package/dist/lib/jobs/handlers/process-judge-review.js +1 -0
- package/dist/lib/jobs/handlers/process-launch.js +1 -0
- package/dist/lib/jobs/handlers/process-memory-ab.js +1 -0
- package/dist/lib/jobs/handlers/process-run-cleanup.js +1 -0
- package/dist/lib/jobs/handlers/process-send-message.js +1 -0
- package/dist/lib/jobs/handlers/process-session-goal.js +1 -0
- package/dist/lib/judge-review-runner.js +1 -1
- package/dist/lib/manual-tasks.js +1 -1
- package/dist/lib/optimize-compare.js +1 -1
- package/dist/lib/projects/workspace/eval-workspace.js +1 -0
- package/dist/lib/projects/workspace/eval-worktree.js +1 -0
- package/dist/lib/projects/workspace/repo-artifacts.js +1 -0
- package/dist/lib/projects/workspace/sweep-eval-worktrees.js +1 -0
- package/dist/lib/projects/workspace/worktree.js +1 -0
- package/dist/lib/refine-cases.js +1 -0
- package/dist/lib/research-client.js +1 -1
- package/dist/lib/retraction.js +1 -1
- package/dist/lib/setup-steps.js +1 -1
- package/dist/lib/skill-paths.js +1 -1
- package/dist/lib/skill-retirement.js +1 -0
- package/dist/lib/target-anchor.js +1 -0
- package/dist/lib/telemetry.js +1 -1
- package/dist/lib/terminal-target-heartbeat.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +8 -6
- package/dist/chunk-35KBN23A.js +0 -1
- package/dist/chunk-7DFNBRLY.js +0 -61
- package/dist/chunk-AC2NUNFC.js +0 -1
- package/dist/chunk-BMN2WZM2.js +0 -1
- package/dist/chunk-CJRYYV76.js +0 -1
- package/dist/chunk-E4U6AOTM.js +0 -46
- package/dist/chunk-FOUGYDLH.js +0 -11
- package/dist/chunk-GL3ZDOKJ.js +0 -1
- package/dist/chunk-LZO6YBUW.js +0 -2
- package/dist/chunk-PK6PSCIP.js +0 -1
- package/dist/chunk-RZTVYUX4.js +0 -11
- package/dist/chunk-XK52UAFB.js +0 -17
- package/dist/dist-FAVALJ5C.js +0 -1
- package/dist/lib/claude-md-blocks.js +0 -1
- package/dist/lib/eval-workspace.js +0 -1
- package/dist/lib/eval-worktree.js +0 -1
- package/dist/lib/handlers/cron-auto-accept-suggestions.js +0 -1
- package/dist/lib/handlers/cron-eval-autorun.js +0 -1
- package/dist/lib/handlers/cron-instruction-evolution.js +0 -1
- package/dist/lib/handlers/cron-instruction-training.js +0 -1
- package/dist/lib/handlers/cron-refresh-pricing.js +0 -1
- package/dist/lib/handlers/cron-refresh-skills.js +0 -1
- package/dist/lib/handlers/cron-suggest-instructions.js +0 -1
- package/dist/lib/handlers/distill-memories.js +0 -1
- package/dist/lib/handlers/process-changelog.js +0 -1
- package/dist/lib/handlers/process-conversation.js +0 -1
- package/dist/lib/handlers/process-eval.js +0 -1
- package/dist/lib/handlers/process-insights.js +0 -1
- package/dist/lib/handlers/process-judge-review.js +0 -1
- package/dist/lib/handlers/process-launch.js +0 -1
- package/dist/lib/handlers/process-memory-ab.js +0 -1
- package/dist/lib/handlers/process-run-cleanup.js +0 -1
- package/dist/lib/handlers/process-send-message.js +0 -1
- package/dist/lib/handlers/process-session-goal.js +0 -1
- package/dist/lib/insights-prompts.js +0 -1
- package/dist/lib/repo-artifacts.js +0 -1
- package/dist/lib/suggestion-accept.js +0 -1
- package/dist/lib/worktree.js +0 -1
- /package/dist/{chunk-UGIUIZ2V.js → chunk-5INUF4A4.js} +0 -0
- /package/dist/{chunk-FK73GD2X.js → chunk-LJRE3LZ2.js} +0 -0
- /package/dist/{chunk-UF6US7VU.js → chunk-PZS55PW2.js} +0 -0
- /package/dist/{chunk-Z72VHGV7.js → chunk-U2NT5OSQ.js} +0 -0
- /package/dist/{chunk-RSKQRVPJ.js → chunk-ZYGBABMZ.js} +0 -0
package/dist/chunk-GL3ZDOKJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as J}from"./chunk-LWUA3NUZ.js";import{a as D}from"./chunk-EJZGGT52.js";import{a as V}from"./chunk-YWALNDT3.js";import{a as P}from"./chunk-RSKQRVPJ.js";import{a as x}from"./chunk-OUXWBHCI.js";import{e as S}from"./chunk-R4W4QDTP.js";import{b as C}from"./chunk-RUIX6AZ6.js";import{a as N}from"./chunk-SBFTRVZM.js";import{a as T}from"./chunk-V5XRGRJC.js";import{a as M}from"./chunk-XK52UAFB.js";import{a as B}from"./chunk-NPNSUG3N.js";import{b as L}from"./chunk-YZNP4TW4.js";import{b as R}from"./chunk-5RBLIVBF.js";import{a as $}from"./chunk-PK6PSCIP.js";import{a as W}from"./chunk-AC2NUNFC.js";import{a as F}from"./chunk-W4ZDAJ6S.js";import{a as O}from"./chunk-XVRQ5WUB.js";import{a as A}from"./chunk-UF6US7VU.js";import{l as H}from"./chunk-BMN2WZM2.js";import{d as y}from"./chunk-NTKO4H2K.js";import{b as E,e as I,f}from"./chunk-MPDSQALK.js";import{a as o}from"./chunk-ZLLER3HP.js";var X={process_eval:T,process_insights:M,process_launch:L,process_send_message:P,process_conversation:N,process_session_goal:x,distill_memories:C,memory_ab:D,process_run_cleanup:V,cron_suggest_instructions:S,cron_refresh_skills:A,cron_refresh_pricing:O,cron_eval_autorun:W,cron_auto_accept_suggestions:$,cron_instruction_training:F,cron_instruction_evolution:H,process_judge_review:B},K=Object.keys(X),z=new Set([]);function Z(e=process.env){return e.DATABASE_URL?K:K.filter(n=>!z.has(n))}o(Z,"availableCapabilities");var j=3e4,ee=3e4,ne=3e4,U=250,G=5e3,re=`thin-agent-${process.pid}`,h=null;function te(e,n,r,l){let a;try{let u=y();a={claude:u.claudeBin!=null,codex:u.codexBin!=null,codexModel:u.codexConfiguredModel}}catch{}let m=o(u=>{f("/api/workers/heartbeat",{workerType:"cli-worker",clientName:re,clientVersion:l,workerVersion:"0.1.0",currentJobId:null,inFlightCount:0,lastError:null,status:u,metadata:{capabilities:e,mode:"thin-agent",llmEngines:a}}).then(c=>{let i=c?.advisory;i&&i.message!==h?(h=i.message,s(r,{event:"worker_advisory",code:i.code,message:i.message})):i||(h=null)}).catch(c=>{s(r,{event:"presence_heartbeat_error",error:c instanceof Error?c.message:String(c)})})},"send");m("alive");let t=setInterval(()=>m("alive"),ne);n.addEventListener("abort",()=>{clearInterval(t),m("shutting_down")},{once:!0})}o(te,"startPresenceHeartbeat");function s(e,n){try{e(JSON.stringify({ts:new Date().toISOString(),...n}))}catch{e(`[agent-loop] log_error event=${n.event}`)}}o(s,"structuredLog");function q(e,n){return n.aborted?Promise.resolve(!1):e<=0?Promise.resolve(!0):new Promise(r=>{let l=setTimeout(()=>{n.removeEventListener("abort",a),r(!0)},e),a=o(()=>{clearTimeout(l),n.removeEventListener("abort",a),r(!1)},"onAbort");n.addEventListener("abort",a,{once:!0})})}o(q,"abortableSleep");async function oe(e,n){let r=`capabilities=${encodeURIComponent(e.join(","))}&waitMs=${n}`,l=await I(`/api/work/next?${r}`);return l==null||typeof l=="string"?null:l}o(oe,"pollForWork");function se(e,n){return{logger:{info:o(r=>n(r),"info"),warn:o(r=>n(r),"warn"),error:o(r=>n(r),"error")},job:{attempts:e}}}o(se,"makeHelpers");async function ae(e,n,r){let l=X[e.kind],a=Date.now();if(s(r,{event:"claim",jobId:e.id,kind:e.kind,attempts:e.attempts}),!l){let t=`unknown kind: ${e.kind}`;s(r,{event:"fail",jobId:e.id,kind:e.kind,terminal:!0,error:t}),await f(`/api/work/${e.id}/fail`,{leaseToken:e.leaseToken,error:t,terminal:!0}).catch(()=>{});return}let m=setInterval(()=>{s(r,{event:"heartbeat",jobId:e.id}),f(`/api/work/${e.id}/heartbeat`,{leaseToken:e.leaseToken}).catch(t=>{s(r,{event:"heartbeat_error",jobId:e.id,error:t instanceof Error?t.message:String(t)})})},n);try{let t=se(e.attempts,r),u=await l(e.payload,t)??{};clearInterval(m),s(r,{event:"complete",jobId:e.id,kind:e.kind,durationMs:Date.now()-a}),await f(`/api/work/${e.id}/complete`,{leaseToken:e.leaseToken,result:u})}catch(t){clearInterval(m);let u=R(t),c=t instanceof Error?t.message:String(t);s(r,{event:"fail",jobId:e.id,kind:e.kind,durationMs:Date.now()-a,terminal:u,error:c}),await f(`/api/work/${e.id}/fail`,{leaseToken:e.leaseToken,error:c,terminal:u}).catch(i=>{s(r,{event:"fail_post_error",jobId:e.id,error:i instanceof Error?i.message:String(i)})})}}o(ae,"runOne");var Q=new Set(["process_eval","process_conversation","process_insights","process_session_goal","distill_memories","memory_ab","cron_suggest_instructions","cron_eval_autorun","cron_instruction_evolution","process_judge_review"]);async function Te(e){let n=e.log??(()=>{}),r=e.pollWaitMs??j,l=e.heartbeatIntervalMs??ee,a=e.capabilities??Z();s(n,{event:"agent_start",capabilities:a,pollWaitMs:r,heartbeatIntervalMs:l}),te(a,e.signal,n,e.version),J({signal:e.signal,log:n}).catch(d=>{s(n,{event:"tt_heartbeat_fatal",error:d instanceof Error?d.message:String(d)})});let m=5*6e4,t=0,u=o(()=>{if(!e.readInstalledVersion||!e.version)return!1;let d=Date.now();if(d-t<m)return!1;t=d;let _=e.readInstalledVersion();return!!(_&&_!==e.version)},"versionDrifted"),c=new AbortController,i=c.signal;e.signal.aborted?c.abort():e.signal.addEventListener("abort",()=>c.abort(),{once:!0});let v=o(async(d,_)=>{let g=U;for(;!i.aborted;){if(u()){s(n,{event:"agent_version_drift",bootVersion:e.version,installedVersion:e.readInstalledVersion?.()??null}),c.abort(),e.onVersionDrift?.();break}let b=null;try{b=await oe([..._],r)}catch(p){let Y=p instanceof E?p.statusCode:void 0;if(s(n,{event:"poll_error",lane:d,status:Y,error:p instanceof Error?p.message:String(p)}),!await q(g,i))break;g=Math.min(g*2,G);continue}if(!b){if(s(n,{event:"poll_204",lane:d}),!await q(g,i))break;g=Math.min(g*2,G);continue}g=U,await ae(b,l,n)}},"runLane"),k=a.filter(d=>Q.has(d)),w=a.filter(d=>!Q.has(d));k.length>0&&w.length>0?(s(n,{event:"agent_lanes",heavy:k.length,fast:w.length}),await Promise.all([v("heavy",k),v("fast",w)])):await v("single",a),s(n,{event:"agent_stop"})}o(Te,"runAgentLoop");export{X as a,K as b,Z as c,oe as d,Te as e};
|
package/dist/chunk-LZO6YBUW.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as l}from"./chunk-ZLLER3HP.js";import*as r from"node:fs";import*as c from"node:path";import k from"gray-matter";var f=".agents/skills",h=".claude/skills",d=64,u=1024;function p(t){return(t??"").replace(/^skills--/,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,d).replace(/-+$/,"")||"skill"}l(p,"skillDirName");function N(t){let i=[];return t||i.push("name is required"),t.length>d&&i.push(`name exceeds ${d} characters`),/[^a-z0-9-]/.test(t)&&i.push("name may only contain lowercase letters, digits and hyphens"),/^-|-$/.test(t)&&i.push("name must not start or end with a hyphen"),t.includes("--")&&i.push("name must not contain consecutive hyphens"),i}l(N,"validateSkillName");function g(t){let i=t.trim();return!i||/^[#>|<]|^```|^~~~/.test(i)||/^!?\[[^\]]*\]\s*(\([^)]*\))?$/.test(i)||!/[A-Za-z]{3}/.test(i)?"":i}l(g,"usableDescription");function m(t){let i=!1;for(let n of t.split(`
|
|
2
|
-
`)){let e=n.trim();if(!e)continue;if(e.startsWith("```")||e.startsWith("~~~")){i=!i;continue}if(i||/^[#>|<-]|^---/.test(e))continue;let s=e.replace(/!\[[^\]]*\]\([^)]*\)/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[*+]\s+/,"").replace(/[*_`]/g,"").trim();if(!(s.length<20)&&s.includes(" ")&&/[A-Za-z]{3}/.test(s))return s}return""}l(m,"firstMeaningfulLine");function y(t){let i=[],n={},e=t.content,s=!1;try{let a=k(t.content);s=t.content.trimStart().startsWith("---")&&Object.keys(a.data).length>0,s&&(n={...a.data},e=a.content)}catch{i.push("existing frontmatter was not valid YAML and was replaced")}typeof n.name=="string"&&n.name!==t.dirName&&i.push(`frontmatter name "${n.name}" renamed to "${t.dirName}" to match its directory`),n.name=t.dirName;let o=g(typeof n.description=="string"?n.description:"");if(o)o.length>u&&(n.description=o.slice(0,u),i.push(`description truncated to the ${u}-character spec limit`));else{let a=g(t.description??"")||m(e);a?(n.description=a.slice(0,u),i.push("description was missing and has been derived; agents match on it, so review it")):(n.description=`Skill: ${t.dirName}`,i.push("no description available \u2014 a placeholder was written, and this skill will rarely trigger until it is written properly"))}return{text:k.stringify(e,n),addedFrontmatter:!s,warnings:i}}l(y,"buildSkillFile");function w(t,i){let n=c.join(t,f,i),e=c.join(t,h,i);return{realDir:n,skillFile:c.join(n,"SKILL.md"),linkPath:e,linkTarget:c.relative(c.dirname(e),n)}}l(w,"skillTargets");function b(t){let i=p(t.name),n=w(t.dir,i),e=y({dirName:i,content:t.content,description:t.description}),s=[...e.warnings];r.mkdirSync(n.realDir,{recursive:!0}),r.writeFileSync(n.skillFile,e.text,"utf8"),r.mkdirSync(c.dirname(n.linkPath),{recursive:!0});let o=P(n.linkPath);if(o){if(o.isSymbolicLink()&&x(n.linkPath)===n.linkTarget)return{dirName:i,skillFile:n.skillFile,linkPath:n.linkPath,linkKind:"symlink",warnings:s};if(!t.force)return s.push(`${n.linkPath} already exists and was not written by this command \u2014 left as is. Re-run with --force to replace it.`),{dirName:i,skillFile:n.skillFile,linkPath:n.linkPath,linkKind:"none",warnings:s};r.rmSync(n.linkPath,{recursive:!0,force:!0})}let a=S(n);return s.push(...a.warnings),{dirName:i,skillFile:n.skillFile,linkPath:n.linkPath,linkKind:a.linkKind,warnings:s}}l(b,"writeSkill");function S(t,i=(n,e)=>r.symlinkSync(n,e,"dir")){try{return i(t.linkTarget,t.linkPath),{linkKind:"symlink",warnings:[]}}catch{return r.cpSync(t.realDir,t.linkPath,{recursive:!0}),{linkKind:"copy",warnings:[`symlink refused by this platform \u2014 wrote a copy to ${t.linkPath}. Re-install after editing the skill, or the two will drift.`]}}}l(S,"linkOrCopy");function P(t){try{return r.lstatSync(t)}catch{return null}}l(P,"lstatOrNull");function x(t){try{return r.readlinkSync(t)}catch{return null}}l(x,"safeReadlink");export{f as a,h as b,p as c,N as d,y as e,w as f,b as g,S as h};
|
package/dist/chunk-PK6PSCIP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as l}from"./chunk-FOUGYDLH.js";import{e as g}from"./chunk-MPDSQALK.js";import{a as u}from"./chunk-ZLLER3HP.js";import{existsSync as b,statSync as h}from"node:fs";async function j(m,f){let n=u(r=>f?.logger?.info?.(r)??console.log(r),"log"),{projectPath:s}=m,o=`[cron_auto_accept_suggestions] ${s}`;if(!s)return{skipped:"no-project-path"};if(!b(s)||!h(s).isDirectory())return n(`${o}: project directory no longer exists on this machine \u2014 skipping`),{skipped:"project-path-missing"};let e=await g(`/api/instruction-suggestions/auto-acceptable?projectPath=${encodeURIComponent(s)}`);if(!e.consent.allowed)return n(`${o}: ${e.consent.reason??"no consent"} (${e.consent.source})`),{skipped:"no-consent",reason:e.consent.reason};for(let r of e.refused)n(`${o}: refused "${r.name}" \u2014 ${r.reason}`);if(e.eligible.length===0)return n(`${o}: nothing to adopt`+(e.budget?` (${e.budget.used}/${e.budget.max} used in ${e.budget.windowDays}d)`:"")),{skipped:"nothing-eligible",refused:e.refused.length,adopted:0};let i=0,a=0,d=0,c=0,p=[];for(let r of e.eligible)try{let t=await l({suggestionId:r.id,dir:s,projectPath:s,actor:"auto"});if(t.action==="added")i+=1,p.push(t.name),n(`${o}: adopted "${t.name}" (score ${r.score.toFixed(2)})`);else if(t.action==="redundant"){d+=1;for(let $ of t.messages)n(`${o}: ${$}`)}else a+=1,n(`${o}: "${t.name}" was already in CLAUDE.md`)}catch(t){c+=1,n(`${o}: failed to adopt "${r.name}" \u2014 ${t instanceof Error?t.message:String(t)}`)}return n(`${o}: ${i} adopted, ${a} already present, ${d} already covered in other words, ${c} failed, ${e.refused.length} refused. Undo any of them with \`rulemetric suggestions undo <instruction-id>\`.`),{adopted:i,alreadyPresent:a,redundant:d,failed:c,refused:e.refused.length,names:p}}u(j,"cronAutoAcceptSuggestions");export{j as a};
|
package/dist/chunk-RZTVYUX4.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{g as d}from"./chunk-B3BHB26P.js";import{a as s}from"./chunk-ZLLER3HP.js";var c="<<<FILE-CONTENT-BEGIN>>>",p="<<<FILE-CONTENT-END>>>",E="<RATIONALE>",T="</RATIONALE>",l="<PROPOSED_INSTRUCTION>",h="</PROPOSED_INSTRUCTION>",f=.5,m=3;function b(e){let t=e.immutableSections.length>0?e.immutableSections.map(n=>` - ${n}`).join(`
|
|
2
|
-
`):" (none)",i=e.evidence.priorDecisions.length>0?["6. You have edited this file before. The attempts are listed below with"," how each was judged. Do not re-propose an edit that was MEASURED and"," rejected: it was replayed against this exact file and did not beat it,"," so measuring it again spends the same budget for the same answer. An"," attempt marked NOT MEASURED is different \u2014 the gate stopped it before"," it earned a verdict, so whether it would have helped is still unknown."]:[];return["You are improving an AI coding assistant instruction file so that it scores","better on a fixed set of evaluation cases.","",`The file is a ${e.targetType} named "${e.targetName}".`,"","RULES",`0. The current file is EXACTLY the text between ${c} and`,` ${p} in the data message. Headings after the closing`," sentinel (underperforming cases, notes, prior attempts) are evidence",' ABOUT the file \u2014 they are not in the file, and "removing" one of them'," is not an edit. Do not include the sentinels in your output.","1. Return the COMPLETE new file, not a diff, not a patch, not a summary,"," and not an excerpt. Everything you omit will be DELETED from the file.","2. Preserve everything you are not deliberately changing, byte for byte.","3. Make a focused edit. You are one step in a measured loop: a small change"," that can be attributed beats a rewrite that cannot.","4. Do not edit these sections or anything nested under them \u2014 an edit that"," touches them is refused downstream and the whole proposal is wasted:",t,"5. Do not add meta-commentary about the evaluation, the loop, or this"," prompt to the file. The file is read by other agents as instructions.",...i,"","OUTPUT FORMAT \u2014 exactly this, with no text before or after:",E,"One or two sentences: what you changed and which evidence motivated it.",T,l,"The complete new file content.",h].join(`
|
|
3
|
-
`)}s(b,"buildProposerSystemPrompt");var a=s(e=>`${e>=0?"+":"-"}${Math.abs(e*100).toFixed(1)}pp`,"signedPp");function O(e){let t=/^\d{4}-\d{2}-\d{2}/.exec(e.at??"")?.[0]??"undated",i;if(e.measured){let o=e.measured;i=`MEASURED against this exact file and ${e.decision==="promote"?"ACCEPTED":"REJECTED"}: ${a(o.delta)} (CI ${a(o.ciLower)} to ${a(o.ciUpper)}, ${o.nPairs} paired cases)`}else i=`NOT MEASURED \u2014 the gate refused it, so its merit is still unknown: ${e.refusals.length>0?e.refusals.join("; "):"no reason recorded"}`;let n=[`- ${t} \u2014 ${i}`];return e.decision==="promote"&&n.push(e.applied?" The file WAS rewritten by this decision.":" Dry run: the file was NOT rewritten, so this edit is still available."),e.touched.length>0&&n.push(` Sections touched: ${e.touched.join(", ")}`),e.rationale.trim()!==""&&n.push(` You said at the time: ${e.rationale.trim()}`),n.join(`
|
|
4
|
-
`)}s(O,"describePriorDecision");function N(e){let t=e.evidence,i=["## CURRENT FILE CONTENT","","The file is EXACTLY the text between the two sentinel lines below \u2014","nothing before the first sentinel or after the second is part of it.","Everything after the closing sentinel is evidence ABOUT the file.","",c,e.currentContent,p,""];if(t.weakest.length>0){i.push("## CASES WHERE THIS FILE CURRENTLY UNDERPERFORMS","");for(let n of t.weakest)i.push(`- ${n.name}: passes ${(n.withPassRate*100).toFixed(0)}% with the file vs ${(n.withoutPassRate*100).toFixed(0)}% without it`);i.push("")}return t.nonDiscriminating.length>0&&i.push("## CASES THAT CARRY NO SIGNAL EITHER WAY","","These score the same with and without the file. Changing the file to chase","them is unlikely to move anything.","",...t.nonDiscriminating.map(n=>`- ${n}`),""),t.priorDecisions.length>0&&i.push("## WHAT YOU ALREADY PROPOSED FOR THIS FILE, AND HOW IT WAS JUDGED","","Newest first. Every attempt listed here was made against the file above,","byte for byte. Attempts against a different version of the file are not","shown, because a verdict earned by different text says nothing about this","one.","",...t.priorDecisions.map(O),""),t.notes.length>0&&i.push("## NOTES","",...t.notes.map(n=>`- ${n}`),""),i.join(`
|
|
5
|
-
`)}s(N,"buildProposerData");function g(e,t,i){let n=e.lastIndexOf(i);if(n<0)return null;let o=e.lastIndexOf(t,n);return o<0?null:e.slice(o+t.length,n)}s(g,"between");function R(e){let t=e.split(`
|
|
6
|
-
`);for(;t.length>0&&t[0].trim()==="";)t.shift();for(;t.length>0&&t[t.length-1].trim()==="";)t.pop();if(t.length<2)return t.join(`
|
|
7
|
-
`);let i=t[0].trim(),n=t[t.length-1].trim(),o=/^(`{3,}|~{3,})[a-zA-Z0-9_-]*$/.test(i),r=/^(`{3,}|~{3,})$/.test(n);return o&&r?t.slice(1,-1).join(`
|
|
8
|
-
`):t.join(`
|
|
9
|
-
`)}s(R,"stripWrappingFence");function P(e,t){if(!e||e.trim()==="")return{ok:!1,reason:"proposer returned nothing"};let i=g(e,l,h);if(i==null)return{ok:!1,reason:`proposer reply had no ${l}\u2026${h} block`};let n=R(i).split(`
|
|
10
|
-
`).filter(w=>{let u=w.trim();return u!==c&&u!==p}).join(`
|
|
11
|
-
`).trim();if(n==="")return{ok:!1,reason:"proposed content was empty"};if(n===t.trim())return{ok:!1,reason:"proposal is identical to the current version"};let o=n.length/Math.max(1,t.trim().length);if(o<f)return{ok:!1,reason:`proposal retains only ${(o*100).toFixed(0)}% of the predecessor's length (floor ${(f*100).toFixed(0)}%) \u2014 treating it as a truncated or summarised reply rather than an edit`};if(o>m)return{ok:!1,reason:`proposal is ${o.toFixed(1)}x the predecessor's length (ceiling ${m}x) \u2014 treating it as runaway generation`};let r=(g(e,E,T)??"").trim();return{ok:!0,proposal:{candidateContent:n,rationale:r===""?"(proposer supplied no rationale)":r}}}s(P,"parseProposalResponse");async function y(e,t=16e3){let i=await d(b(e),N(e),t);return i==null?{ok:!1,reason:"no LLM backend available, or the proposer call failed"}:P(i,e.currentContent)}s(y,"proposeInstructionEdit");export{c as a,p as b,f as c,m as d,b as e,O as f,N as g,P as h,y as i};
|
package/dist/chunk-XK52UAFB.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import{a as M,b as A,c as N,d as j}from"./chunk-4PWGV2OW.js";import{a as S}from"./chunk-5RBLIVBF.js";import{c as z,d as O,f as b}from"./chunk-B3BHB26P.js";import{e as $,f as v,h as f}from"./chunk-MPDSQALK.js";import{a as E}from"./chunk-E4U6AOTM.js";import{a as _}from"./chunk-ZLLER3HP.js";async function Z(c,d){let{mirrorId:r,projectPath:e,projectId:a,config:p}=c,s=_(t=>d.logger.info(t),"log");if(p?.sessionId)return L({mirrorId:r,sessionId:p.sessionId},s);s(`Processing insights job ${r}...`),await f(`/api/insights-jobs/${r}/progress`,{status:"running",progress:{step:"reading_data"}});try{let{repaired:t}=await v("/api/sessions/repair-analyzed-at",{});t>0&&s(` Repaired analyzed_at on ${t} orphan session(s).`)}catch(t){s(` Warning: analyzed_at repair failed: ${t instanceof Error?t.message:String(t)}`)}let o=await H(e,a);if(!o)throw new S("No session data found \u2014 ensure sessions are captured and enriched.");s(` Found ${o.stats.sessions} sessions, generating recommendations...`);let g=20,u=200;if(O()!=="none"){let t=0,i=0;try{for(;t<u;){let y=await $(`/api/sessions?hasAnalysis=false&limit=${g}&offset=${i}`);if(y.length===0)break;s(` Generating facets for ${y.length} un-analyzed sessions (drained ${t} so far)...`);for(let h of y){if(t>=u)break;try{let m=await $(`/api/sessions/${h.id}/events?limit=100`);if(m.length<2){t++,i++;continue}let C=m.filter(k=>k.eventType==="user_message"||k.eventType==="human").map(k=>k.content?.slice(0,200)??"").filter(Boolean).join(`
|
|
2
|
-
---
|
|
3
|
-
`);if(!C){t++,i++;continue}let I=await b(j,C,4096);if(I){let k=m.filter(P=>P.eventType==="user_message"||P.eventType==="human").length;await f(`/api/sessions/${h.id}/enrich`,{analysis:{source:"generated_facets",...I},analyzedEventCount:m.length,analyzedTurnCount:k}),s(` Generated facets for session ${h.id} (${h.tool})`)}else i++;t++}catch(m){s(` Failed to generate facets for session ${h.id}: ${m instanceof Error?m.message:String(m)}`),t++,i++}}if(y.length<g)break}}catch(y){s(` Warning: facet generation failed after ${t} sessions: ${y instanceof Error?y.message:String(y)}`)}}let n=await F(e,s);n&&s(` Generator memory: ${n.split(`
|
|
4
|
-
`).length} lines of prior-advice context`);let l={},w=A.length+1;for(let t=0;t<A.length;t++){let i=A[t];s(` [${t+1}/${w}] Generating ${i.name}...`);try{await f(`/api/insights-jobs/${r}/progress`,{status:"running",progress:{step:i.name,current:t+1,total:w,partial:{...l}}})}catch(m){s(` Warning: progress update failed for ${i.name}: ${m instanceof Error?m.message:String(m)}`)}s(` Running LLM prompt for ${i.name}...`);let y=i.usesGeneratorMemory&&n?`${o.summary}
|
|
5
|
-
${n}`:o.summary,h=await b(i.prompt,y,i.maxTokens);h?(l[i.name]=h,s(` Got result for ${i.name}`)):s(` No result for ${i.name} (LLM returned null)`)}s(` [${w}/${w}] Generating at_a_glance...`),await f(`/api/insights-jobs/${r}/progress`,{status:"running",progress:{step:"at_a_glance",current:w,total:w,partial:{...l}}});let G=[o.summary,l.what_works?`
|
|
6
|
-
## What Works
|
|
7
|
-
${JSON.stringify(l.what_works)}`:"",l.friction_analysis?`
|
|
8
|
-
## Friction
|
|
9
|
-
${JSON.stringify(l.friction_analysis)}`:"",l.suggestions?`
|
|
10
|
-
## Suggestions
|
|
11
|
-
${JSON.stringify(l.suggestions)}`:"",l.on_the_horizon?`
|
|
12
|
-
## On the Horizon
|
|
13
|
-
${JSON.stringify(l.on_the_horizon)}`:""].join(`
|
|
14
|
-
`),R=await b(N,G,8192);R&&(l.at_a_glance=R),s(" Uploading results..."),s(` Done! Recommendations generated for job ${r}`),E(l);let T={recommendations:l};return await f(`/api/insights-jobs/${r}/state`,{result:T}).catch(t=>{s(`result persist failed: ${t instanceof Error?t.message:String(t)}`)}),await J(l,e,s),T}_(Z,"processInsights");async function J(c,d,r){if(d)try{let e=c.suggestions,a=Array.isArray(e?.claude_md_additions)?e.claude_md_additions.filter(n=>typeof n?.addition=="string"&&n.addition.trim().length>=12).map(n=>({addition:String(n.addition).trim(),why:String(n.why??"")})):[],p=Array.isArray(c.recommended_skills)?c.recommended_skills.filter(n=>typeof n?.skillId=="string"&&n.skillId.length>0).map(n=>({skillId:String(n.skillId),reason:String(n.reason??"")})):[],s=Array.isArray(e?.features_to_try)?e.features_to_try.filter(n=>typeof n?.feature=="string"&&n.feature.trim().length>=2).map(n=>({feature:String(n.feature).trim(),one_liner:String(n.one_liner??""),why_for_you:String(n.why_for_you??""),example_code:String(n.example_code??"")})):[],o=[...Array.isArray(e?.usage_patterns)?e.usage_patterns.map(n=>({title:String(n.title??"").trim(),lead:String(n.suggestion??""),detail:String(n.detail??""),copyable_prompt:String(n.copyable_prompt??""),origin:"usage_pattern"})):[],...Array.isArray(c.on_the_horizon?.opportunities)?c.on_the_horizon.opportunities.map(n=>({title:String(n.title??"").trim(),lead:String(n.whats_possible??""),detail:String(n.how_to_try??""),copyable_prompt:String(n.copyable_prompt??""),origin:"opportunity"})):[]].filter(n=>n.title.length>=2);if(a.length===0&&p.length===0&&s.length===0&&o.length===0)return;let g=await v("/api/insights/recommendations/nominate",{projectPath:d,additions:a.slice(0,20),skills:p.slice(0,20),features:s.slice(0,20),advice:o.slice(0,40)}),u=g.additionsRejected??[];r(` ${g.nominated} recommendation(s) nominated into the suggestion feed (${g.additionsCreated} new instruction(s)`+((g.featuresCreated??0)>0?`, ${g.featuresCreated} feature proposal(s)`:"")+((g.adviceCreated??0)>0?`, ${g.adviceCreated} pattern/opportunity`:"")+(g.skillsUnresolved>0?`, ${g.skillsUnresolved} skill slug(s) unresolved`:"")+(u.length>0?`, ${u.length} rejected as unfilled templates`:"")+")");for(let n of u)r(` rejected "${n.name}" \u2014 unfilled placeholder(s): ${n.placeholders.join(", ")}`)}catch(e){r(` nomination skipped: ${e instanceof Error?e.message:String(e)}`)}}_(J,"nominateRecommendations");async function L(c,d){let{mirrorId:r,sessionId:e}=c;d(`Analyzing session ${e} via tool CLI...`),await f(`/api/insights-jobs/${r}/progress`,{status:"running",progress:{step:"fetching_session"}});let a=await $(`/api/sessions/${e}`);if(a.analysis&&a.analysis.source==="session_analysis")return d(` Session ${e} already analyzed \u2014 skipping (idempotency guard)`),{sessionId:e,skipped:!0,reason:"already_analyzed"};let p=await $(`/api/sessions/${e}/events?limit=100`);if(p.length<2)throw new S("Session has too few events to analyze");let s=p.filter(u=>u.eventType==="user_message"||u.eventType==="human").map(u=>u.content?.slice(0,200)??"").filter(Boolean).join(`
|
|
15
|
-
---
|
|
16
|
-
`);if(!s)throw new S("No user messages found in session");await f(`/api/insights-jobs/${r}/progress`,{status:"running",progress:{step:"running_analysis",tool:a.tool}});let o=await z(a.tool,j,s);if(!o)throw new Error(`Analysis failed \u2014 ${a.tool} CLI returned no result`);let g=p.filter(u=>u.eventType==="user_message"||u.eventType==="human").length;return await f(`/api/sessions/${e}/enrich`,{analysis:{source:"session_analysis",tool:a.tool,...o},analyzedEventCount:p.length,analyzedTurnCount:g}),d(` Session ${e} analyzed via ${a.tool}`),{sessionId:e,tool:a.tool,facets:o}}_(L,"processSessionAnalysisInline");async function F(c,d,r=$){try{let e=await r(`/api/insights/recommendations/history?projectPath=${encodeURIComponent(c??"")}`);return!e||!Array.isArray(e.dismissed)||!Array.isArray(e.repeated)?"":M(e)}catch(e){return d(` Warning: generator memory unavailable (${e instanceof Error?e.message:String(e)}) \u2014 generating without it`),""}}_(F,"fetchGeneratorMemory");async function H(c,d){try{let r=new URLSearchParams;d?r.set("projectId",d):c&&r.set("projectPath",c);let e=await $(`/api/insights/compute?${r}`);if(!e||e.total_sessions===0)return null;let a=Object.entries(e.tool_counts??{}).sort((s,o)=>o[1]-s[1]).slice(0,10).map(([s,o])=>`${s}: ${o}`).join(", ");return{summary:[`Sessions: ${e.total_sessions}, Messages: ${e.total_messages}, Hours: ${Math.round(e.total_duration_hours)}`,`Top tools: ${a}`,e.goal_categories&&Object.keys(e.goal_categories).length>0?`Goals: ${JSON.stringify(e.goal_categories)}`:"",e.friction&&Object.keys(e.friction).length>0?`Friction: ${JSON.stringify(e.friction)}`:"",e.outcomes&&Object.keys(e.outcomes).length>0?`Outcomes: ${JSON.stringify(e.outcomes)}`:"",e.projects&&Object.keys(e.projects).length>0?`Projects: ${JSON.stringify(e.projects)}`:""].filter(Boolean).join(`
|
|
17
|
-
`),stats:{sessions:e.total_sessions,totalMessages:e.total_messages,totalHours:e.total_duration_hours,toolCounts:e.tool_counts,goalCounts:e.goal_categories,frictionCounts:e.friction}}}catch{return null}}_(H,"buildDataSummaryFromApi");export{Z as a,F as b};
|
package/dist/dist-FAVALJ5C.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y}from"./chunk-7DFNBRLY.js";import"./chunk-ZLLER3HP.js";export{c as ClaudeCodeAdapter,i as CodexAdapter,f as CopilotAgentAdapter,d as CursorAdapter,g as RuleMetricMcpAdapter,b as SESSION_EVENT_TYPES,a as SESSION_TOOLS,e as VSCodeCopilotAdapter,l as buildAnalysisPrompt,u as buildTmuxAttachCommand,t as buildTmuxHasSessionArgs,r as buildTmuxLaunchArgs,s as buildTmuxSendKeysArgs,k as detectTool,o as discoverAllSessions,h as freshCodexState,j as getAdapter,n as getAllProviders,w as getAvailableLaunchers,v as getLauncher,p as getProvider,m as parseAnalysisResponse,x as sanitizeBranch,q as sanitizeTmuxName,y as worktreePathFor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../chunk-FK73GD2X.js";import"../chunk-ZLLER3HP.js";export{b as BLOCK_END,a as BLOCK_START,c as parseClaudeMd,d as readClaudeMd,e as readInstructionContext};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../chunk-DN2T3FXN.js";import"../chunk-Z72VHGV7.js";import"../chunk-LZO6YBUW.js";import"../chunk-ZLLER3HP.js";export{b as AMBIENT_INSTRUCTION_FILENAMES,a as EVAL_METHODOLOGY,e as createEvalWorkspace,c as findAmbientInstructionFiles,d as skillSlug};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-Z72VHGV7.js";import"../chunk-ZLLER3HP.js";export{a as createEvalWorktree};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-PK6PSCIP.js";import"../../chunk-FOUGYDLH.js";import"../../chunk-FK73GD2X.js";import"../../chunk-LZO6YBUW.js";import"../../chunk-MPDSQALK.js";import"../../chunk-E4U6AOTM.js";import"../../chunk-PZNWH4VQ.js";import"../../chunk-ZLLER3HP.js";export{a as cronAutoAcceptSuggestions};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-AC2NUNFC.js";import"../../chunk-CJRYYV76.js";import"../../chunk-KDFBKYXK.js";import"../../chunk-DN2T3FXN.js";import"../../chunk-Z72VHGV7.js";import"../../chunk-KGURGIZ2.js";import"../../chunk-LZO6YBUW.js";import"../../chunk-JPUH3V67.js";import"../../chunk-CDY7TQFZ.js";import"../../chunk-XRTZU7IZ.js";import"../../chunk-B3BHB26P.js";import"../../chunk-N7ODX6PO.js";import"../../chunk-PJ3WHQ67.js";import"../../chunk-TZA4HAVF.js";import"../../chunk-MPDSQALK.js";import"../../chunk-E4U6AOTM.js";import"../../chunk-PZNWH4VQ.js";import"../../chunk-ZLLER3HP.js";export{a as cronEvalAutorun};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m}from"../../chunk-BMN2WZM2.js";import"../../chunk-RZTVYUX4.js";import"../../chunk-BL4BN6RU.js";import"../../chunk-G7V4ZZZ3.js";import"../../chunk-FF5TAMDH.js";import"../../chunk-AJN2BLMV.js";import"../../chunk-KDFBKYXK.js";import"../../chunk-DN2T3FXN.js";import"../../chunk-Z72VHGV7.js";import"../../chunk-KGURGIZ2.js";import"../../chunk-LZO6YBUW.js";import"../../chunk-JPUH3V67.js";import"../../chunk-CDY7TQFZ.js";import"../../chunk-XRTZU7IZ.js";import"../../chunk-B3BHB26P.js";import"../../chunk-N7ODX6PO.js";import"../../chunk-PJ3WHQ67.js";import"../../chunk-G5BXZT6F.js";import"../../chunk-TZA4HAVF.js";import"../../chunk-MPDSQALK.js";import"../../chunk-E4U6AOTM.js";import"../../chunk-PZNWH4VQ.js";import"../../chunk-ZLLER3HP.js";export{f as DEFAULT_ACCUMULATE_TARGET_PAIRS,b as MAX_PASSES,c as MAX_PASSES_CEILING,h as MAX_PRIOR_DECISIONS,a as PAIR_HEADROOM,l as cronInstructionEvolution,g as findOpenAccumulation,d as passCapFor,e as planPasses,j as readAccumulateConfig,m as readImmutableSections,k as resolveApply,i as summarisePriorDecisions};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-W4ZDAJ6S.js";import"../../chunk-MPDSQALK.js";import"../../chunk-E4U6AOTM.js";import"../../chunk-PZNWH4VQ.js";import"../../chunk-ZLLER3HP.js";export{a as cronInstructionTraining};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-XVRQ5WUB.js";import"../../chunk-B3BHB26P.js";import"../../chunk-N7ODX6PO.js";import"../../chunk-PJ3WHQ67.js";import"../../chunk-MPDSQALK.js";import"../../chunk-E4U6AOTM.js";import"../../chunk-PZNWH4VQ.js";import"../../chunk-ZLLER3HP.js";export{a as cronRefreshPricing};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-UF6US7VU.js";import"../../chunk-ZLLER3HP.js";export{a as cronRefreshSkills};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../../chunk-R4W4QDTP.js";import"../../chunk-HOQPVOMF.js";import"../../chunk-GIRPEMTW.js";import"../../chunk-MODXEGCU.js";import"../../chunk-B3BHB26P.js";import"../../chunk-N7ODX6PO.js";import"../../chunk-PJ3WHQ67.js";import"../../chunk-MPDSQALK.js";import"../../chunk-E4U6AOTM.js";import"../../chunk-PZNWH4VQ.js";import"../../chunk-ZLLER3HP.js";export{d as buildRemovalProposals,b as buildTrimProposals,e as cronSuggestInstructions,a as isScorableProjectPath,c as nominateRemovals};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-RUIX6AZ6.js";import"../../chunk-B3BHB26P.js";import"../../chunk-N7ODX6PO.js";import"../../chunk-PJ3WHQ67.js";import"../../chunk-MPDSQALK.js";import"../../chunk-E4U6AOTM.js";import"../../chunk-PZNWH4VQ.js";import"../../chunk-ZLLER3HP.js";export{b as distillMemories,a as selectNewMemories};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-IPL2DHU4.js";import"../../chunk-35KBN23A.js";import"../../chunk-E4U6AOTM.js";import"../../chunk-ZLLER3HP.js";export{a as processChangelog};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-SBFTRVZM.js";import"../../chunk-RS4LSJI2.js";import"../../chunk-CNOD6HWU.js";import"../../chunk-AFYZYXQ3.js";import"../../chunk-JPUH3V67.js";import"../../chunk-CDY7TQFZ.js";import"../../chunk-XRTZU7IZ.js";import"../../chunk-B3BHB26P.js";import"../../chunk-N7ODX6PO.js";import"../../chunk-PJ3WHQ67.js";import"../../chunk-TZA4HAVF.js";import"../../chunk-MPDSQALK.js";import"../../chunk-E4U6AOTM.js";import"../../chunk-PZNWH4VQ.js";import"../../chunk-ZLLER3HP.js";export{a as processConversation};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-V5XRGRJC.js";import"../../chunk-5RBLIVBF.js";import"../../chunk-XFAFMYIP.js";import"../../chunk-CNOD6HWU.js";import"../../chunk-DN2T3FXN.js";import"../../chunk-Z72VHGV7.js";import"../../chunk-LZO6YBUW.js";import"../../chunk-JPUH3V67.js";import"../../chunk-CDY7TQFZ.js";import"../../chunk-XRTZU7IZ.js";import"../../chunk-B3BHB26P.js";import"../../chunk-N7ODX6PO.js";import"../../chunk-PJ3WHQ67.js";import"../../chunk-TZA4HAVF.js";import"../../chunk-MPDSQALK.js";import"../../chunk-E4U6AOTM.js";import"../../chunk-PZNWH4VQ.js";import"../../chunk-ZLLER3HP.js";export{a as processEval};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-XK52UAFB.js";import"../../chunk-4PWGV2OW.js";import"../../chunk-5RBLIVBF.js";import"../../chunk-B3BHB26P.js";import"../../chunk-N7ODX6PO.js";import"../../chunk-PJ3WHQ67.js";import"../../chunk-MPDSQALK.js";import"../../chunk-E4U6AOTM.js";import"../../chunk-PZNWH4VQ.js";import"../../chunk-ZLLER3HP.js";export{b as fetchGeneratorMemory,a as processInsights};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-NPNSUG3N.js";import"../../chunk-SBJNQ5Q6.js";import"../../chunk-6UEFCMR2.js";import"../../chunk-NTKO4H2K.js";import"../../chunk-JPUH3V67.js";import"../../chunk-CDY7TQFZ.js";import"../../chunk-XRTZU7IZ.js";import"../../chunk-B3BHB26P.js";import"../../chunk-N7ODX6PO.js";import"../../chunk-PJ3WHQ67.js";import"../../chunk-TZA4HAVF.js";import"../../chunk-MPDSQALK.js";import"../../chunk-E4U6AOTM.js";import"../../chunk-PZNWH4VQ.js";import"../../chunk-ZLLER3HP.js";export{a as processJudgeReview};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-YZNP4TW4.js";import"../../chunk-6QKI756T.js";import"../../chunk-5RBLIVBF.js";import"../../chunk-7DFNBRLY.js";import"../../chunk-N7ODX6PO.js";import"../../chunk-MPDSQALK.js";import"../../chunk-E4U6AOTM.js";import"../../chunk-PZNWH4VQ.js";import"../../chunk-ZLLER3HP.js";export{b as processLaunch,a as resolveWorktreeForLaunch};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-EJZGGT52.js";import"../../chunk-JPUH3V67.js";import"../../chunk-CDY7TQFZ.js";import"../../chunk-XRTZU7IZ.js";import"../../chunk-B3BHB26P.js";import"../../chunk-N7ODX6PO.js";import"../../chunk-PJ3WHQ67.js";import"../../chunk-G5BXZT6F.js";import"../../chunk-TZA4HAVF.js";import"../../chunk-MPDSQALK.js";import"../../chunk-E4U6AOTM.js";import"../../chunk-PZNWH4VQ.js";import"../../chunk-ZLLER3HP.js";export{a as processMemoryAb};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-YWALNDT3.js";import"../../chunk-6QKI756T.js";import"../../chunk-5RBLIVBF.js";import"../../chunk-7DFNBRLY.js";import"../../chunk-N7ODX6PO.js";import"../../chunk-MPDSQALK.js";import"../../chunk-E4U6AOTM.js";import"../../chunk-PZNWH4VQ.js";import"../../chunk-ZLLER3HP.js";export{a as processRunCleanup};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-RSKQRVPJ.js";import"../../chunk-5RBLIVBF.js";import"../../chunk-N7ODX6PO.js";import"../../chunk-ZLLER3HP.js";export{a as processSendMessage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-OUXWBHCI.js";import"../../chunk-B3BHB26P.js";import"../../chunk-N7ODX6PO.js";import"../../chunk-PJ3WHQ67.js";import"../../chunk-MPDSQALK.js";import"../../chunk-E4U6AOTM.js";import"../../chunk-PZNWH4VQ.js";import"../../chunk-ZLLER3HP.js";export{a as processSessionGoal};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d}from"../chunk-4PWGV2OW.js";import"../chunk-ZLLER3HP.js";export{c as AT_A_GLANCE_PROMPT,d as FACET_GENERATION_PROMPT,b as RECOMMENDATION_PROMPTS,a as renderGeneratorMemory};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b}from"../chunk-UGIUIZ2V.js";import"../chunk-ZLLER3HP.js";export{b as describeUntrackedRepoArtifacts,a as untrackedRepoArtifacts};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d}from"../chunk-FOUGYDLH.js";import"../chunk-FK73GD2X.js";import"../chunk-LZO6YBUW.js";import"../chunk-MPDSQALK.js";import"../chunk-E4U6AOTM.js";import"../chunk-PZNWH4VQ.js";import"../chunk-ZLLER3HP.js";export{d as acceptSuggestion,a as appendToCLAUDEmd,c as fetchSuggestion,b as removeFromCLAUDEmd};
|
package/dist/lib/worktree.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as b,b as c,c as d}from"../chunk-6QKI756T.js";import{x as a}from"../chunk-7DFNBRLY.js";import"../chunk-N7ODX6PO.js";import"../chunk-ZLLER3HP.js";export{c as ensureWorktree,d as removeWorktree,b as runGit,a as sanitizeBranch};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|