Lines 1-21javascript
1import {join,dirname,basename}from'path';import {fileURLToPath,pathToFileURL}from'url';import {appendFileSync,existsSync,readFileSync,mkdirSync,statSync,renameSync,writeFileSync,unlinkSync,rmdirSync}from'fs';import Do from'env-paths';import {tmpdir,homedir}from'os';import {spawn}from'child_process';var it=Object.defineProperty;var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var Z=(e,t)=>{for(var o in t)it(e,o,{get:t[o],enumerable:true});};var r=T(()=>{});function C(e,t,o={}){let{encoding:n="utf8"}=o,i=dirname(e);mkdirSync(i,{recursive:true});let a=`${e}.tmp.${process.pid}.${Date.now().toString(36)}${Math.r ...
2`;try{let s=se();yt(dirname(s)),ht(s),appendFileSync(s,a,{encoding:"utf8"});}catch{try{let s=join(tmpdir(),"ringly-fallback.log");appendFileSync(s,a,{encoding:"utf8"});}catch{}}}function bt(e){try{return JSON.stringify(e)}catch{return String(e)}}var c={debug:(e,t)=>R("debug",e,t),info:(e,t)=>R("info",e,t),warn:(e,t)=>R("warn",e,t),error:(e,t)=>R("error",e,t),getLogFile:()=>se(),isDebugEnabled:le};r();var I=["model","task","dirname","context","lastCommand","git","lines","rateLimits"];var x="Claude.Code.CLI";function St(e){return `statusline_segment_${e}`}var Tt="ringly";function wt(){return joi ...
HighChild Process
Package source references child process execution.
dist/hook.jsView on unpkg · L1 3`)),{delivered:false,blocked:false,reason:"platform_not_implemented"}}r();var me=false;async function fe(e){return c.warn("macOS toast not implemented yet; planned for a future release"),me||(me=true,process.stderr.write(`[Ringly] macOS toast notifications are not implemented yet. Track progress at https://github.com/nickdevcode/Ringly/issues
HighSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/hook.jsView on unpkg · L1 HighCommand Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/hook.jsView on unpkg · L1 4`)),{delivered:false,blocked:false,reason:"platform_not_implemented"}}r();var Lt="ringly.png";var U;function ge(){return U!==void 0||(U=Ut(Lt)),U??void 0}function Ut(e){for(let t of Dt(e))try{if(existsSync(t))return t}catch{}return null}function Dt(e){let t=[],o=process.env.CLAUDE_PLUGIN_ROOT;o&&o.trim().length>0&&t.push(join(o,"assets",e));try{let n=dirname(fileURLToPath(import.meta.url));for(let i of [join(n,".."),join(n,"..","..","..")])t.push(join(i,"plugin","assets",e));}catch{}return t}r();r();function D(e){if(!e)return "";let t="";for(let o=0;o<e.length;o++){let n=e.charAt(o),i=e.charCo ...
5$ErrorActionPreference = 'SilentlyContinue'
6try { [Console]::InputEncoding = New-Object System.Text.UTF8Encoding($false) } catch { }
7try { [Console]::OutputEncoding = New-Object System.Text.UTF8Encoding($false) } catch { }
10 [void][Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType=WindowsRuntime]
11 [void][Windows.UI.Notifications.ToastNotification, Windows.UI.Notifications, ContentType=WindowsRuntime]
12 [void][Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType=WindowsRuntime]
14 $xml = New-Object Windows.Data.Xml.Dom.XmlDocument
18 $notifier = [Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier($appId)
21 try { $settingInt = [int]$notifier.Setting.value__ } catch { }
Long lines were clipped for display.