@promptctl/cc-candybar 1.169.1 → 1.169.2
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/index.mjs +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{createRequire as e}from"node:module";import t from"node:process";import{URL as n,URLSearchParams as r,fileURLToPath as i}from"node:url";import{json as a}from"node:stream/consumers";import o,{basename as s,dirname as c,isAbsolute as l,join as u,sep as d}from"node:path";import f,{closeSync as p,constants as m,existsSync as h,fstatSync as g,linkSync as _,openSync as v,readFileSync as y,readSync as b,rmSync as ee,statSync as x,writeFileSync as S}from"node:fs";import te,{createHash as C,createHmac as ne,randomBytes as re,randomUUID as ie,timingSafeEqual as ae}from"node:crypto";import w,{homedir as oe}from"node:os";import{spawn as se,spawnSync as T}from"node:child_process";import{inspect as ce,parseArgs as le,types as ue}from"node:util";import de from"node:net";import fe from"node:v8";import{open as pe,readFile as me,readdir as he,stat as ge}from"node:fs/promises";import{clearInterval as _e,setImmediate as ve,setInterval as ye}from"node:timers";import{get as be}from"node:https";import{setTimeout as xe}from"node:timers/promises";import{WriteStream as Se}from"node:tty";import{createInterface as Ce}from"node:readline";var we=Object.create,Te=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,De=Object.getOwnPropertyNames,Oe=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty,Ae=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),je=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=De(t),a=0,o=i.length,s;a<o;a++)s=i[a],!ke.call(e,s)&&s!==n&&Te(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Ee(t,s))||r.enumerable});return e},Me=(e,t,n)=>(n=e==null?{}:we(Oe(e)),je(t||!e||!e.__esModule?Te(n,`default`,{value:e,enumerable:!0}):n,e));const Ne=()=>!!process.env.CC_CANDYBAR_DEBUG;function Pe(e){return Ne()?`[DEBUG] ${e()}\n`:``}function E(e,...t){Ne()&&console.error(`[DEBUG] ${e}`,...t)}function Fe(e){let t=null;return([n,r])=>{r!==t&&(t=r,e(n,r))}}const Ie=(e,t)=>E(t),Le=/^[A-Za-z0-9_./,:@%+-][A-Za-z0-9_./,:@%+=-]*$/;function Re(e){return`'${e.replaceAll(`'`,`'\\''`)}'`}function ze(e){return Le.test(e)?e:Re(e)}function Be(e){return`${e.dir===void 0?``:`cd ${ze(e.dir)} && `}${e.env.map(([e,t])=>`${e}=${ze(t)} `).join(``)}${[e.program,...e.args].map(ze).join(` `)}`}const Ve=`cc-extra`;function He(e){return o.join(o.dirname(e),Ve,`src`,`bun-attach.js`)}function Ue(e){return o.join(o.dirname(e),`bun-graph.js`)}const We=`attach-preload.cjs`;function Ge(e){return o.join(o.dirname(e),We)}function Ke(e,t){return Be({...t,env:[...t.env,[`BUN_OPTIONS`,`--preload ${e.replace(/[\\\s]/g,`\\$&`)}`]]})}const qe=e=>!e.startsWith(`.`)&&!e.endsWith(`~`);function Je(e,t){return t.isSymbolicLink()?Buffer.from(f.readlinkSync(e)):f.readFileSync(e)}function Ye(e,t,n=qe){return f.readdirSync(t).filter(n).sort().flatMap(n=>{let r=o.join(t,n),i=f.lstatSync(r,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?Ye(e,r):[[o.relative(e,r).split(o.sep).join(`/`),Je(r,i)]]})}function Xe(e){let t=te.createHash(`sha256`);for(let[n,r]of e)t.update(n).update(`\0`).update(r).update(`\0`);return t.digest(`hex`)}function Ze(e){return Xe(Ye(e,e))}const Qe=[`Cargo.toml`,`Cargo.lock`,`src`];function $e(e){return Xe(Ye(e,e,e=>Qe.includes(e)))}const et=e=>e.slice(0,7),tt=`1.169.1`;function nt(e){let t=o.dirname(o.dirname(e));return f.existsSync(o.join(t,`src`))?t:null}function rt(){let e=it();if(e===null)throw Error("this bundle carries no source digest (build via `pnpm build`, which stamps it)");return{version:tt,digest:e}}function it(){return`773b198113960dae71a863b83cd4de9d4111caa8d0f5889c11b33cac2f687f4c`}function at(e){let t=JSON.parse(f.readFileSync(o.join(e,`package.json`),`utf8`)),n=typeof t==`object`&&t?t.version:void 0;if(typeof n!=`string`)throw Error(`${o.join(e,`package.json`)} has no version string`);return n}function ot(e,t){try{let n=nt(i(e));if(n===null)return{kind:`not-source-checkout`};let r=t(),a=Ze(o.join(n,`src`));return a===r.digest?{kind:`current`,root:n,stamp:r}:{kind:`stale`,root:n,source:{version:at(n),digest:a},running:r}}catch(e){return{kind:`unchecked`,reason:e.message}}}function st(e,t){return ue.isNativeError(e)?e.code===`ENOENT`&&t!==void 0&&!h(t)?`working directory does not exist: ${t}`:e.message:String(e)}const ct={"click.pbcopy":1e3,"click.open":1e3,"doctor.tmux":1e3,"doctor.font":1e3,"doctor.process":1e3,"claude-input.type":1e3},lt=new Map;function ut(e){let t=ct[e];if(t===void 0)return{allowed:!0};let n=lt.get(e);if(n===void 0)return{allowed:!0};let r=Date.now()-n;return r>=t?{allowed:!0}:{allowed:!1,minIntervalMs:t,sinceLastMs:r}}function dt(e){lt.set(e,Date.now())}function ft(e){return e.env??process.env}function pt(e,t,n){return{ok:!1,reason:`rate-limited`,stdout:``,stderr:``,exitCode:null,signal:null,error:`rate-limited: ${e} min interval ${t}ms, last start ${n}ms ago`}}let D=null;function mt(e){D=e}let ht=()=>Ct().forEach(e=>process.emitWarning(e.message));function gt(e){ht=e}const _t=`\$1 == "+" { live[\$2] = 1; next } \$1 == "-" { delete live[\$2]; next } END { for (g in live) groups = groups " -" g; if (groups != "") system("kill -TERM" groups " 2>/dev/null; sleep ${250/1e3}; kill -KILL" groups " 2>/dev/null") }`,vt=new Set;let yt=null,bt=null;function xt(e){e!==bt&&(bt=e,ht(e))}function St(e,t){yt?.process===e&&(yt=null,xt(t))}function Ct(){return bt===null?[]:[{kind:`lifeline`,message:`programs launched now would outlive their launcher if it died: its launch lifeline ${bt}, and the next launch starts another`}]}function wt(){D?.onStart(`lifeline`);let e=Date.now(),t;try{t=se(`awk`,[_t],{stdio:[`pipe`,`ignore`,`ignore`],detached:!0})}catch(t){return D?.onEnd(`lifeline`,Date.now()-e),xt(`did not start: ${st(t,void 0)}`),null}D?.onEnd(`lifeline`,Date.now()-e);let n=t.stdin;t.once(`spawn`,()=>{yt?.process===t&&xt(null)}),t.once(`error`,e=>St(t,`failed: ${e.message}`)),t.once(`exit`,(e,n)=>St(t,`exited ${n??e}`)),n.on(`error`,e=>St(t,`pipe failed: ${e.message}`)),t.unref(),n.unref();for(let e of vt)n.write(`+ ${e}\n`);return{process:t,pipe:n}}function Tt(e){vt.add(e),yt??=wt(),yt?.pipe.write(`+ ${e}\n`)}function Et(e){vt.delete(e),yt?.pipe.write(`- ${e}\n`)}function Dt(e,t){try{process.kill(-e,t)}catch(e){if(e.code!==`ESRCH`)throw e}}async function Ot(e){if(e.signal?.aborted)return{ok:!1,reason:`aborted`,stdout:``,stderr:``,exitCode:null,signal:null};let t=ut(e.category);if(!t.allowed)return pt(e.category,t.minIntervalMs,t.sinceLastMs);dt(e.category);let n=Date.now();return D?.onStart(e.category),new Promise(t=>{let r;try{r=se(e.bin,e.args??[],{cwd:e.cwd,env:ft(e),stdio:[`pipe`,`pipe`,`pipe`],detached:!0})}catch(r){D?.onEnd(e.category,Date.now()-n),t({ok:!1,reason:`spawn-error`,stdout:``,stderr:``,exitCode:null,signal:null,error:st(r,e.cwd)});return}let i=r.pid;i!==void 0&&Tt(i);let a=``,o=``,s=!1,c=null,l=null,u=null,d=()=>h(`aborted`),f=t=>{s||(s=!0,c&&clearTimeout(c),l&&clearTimeout(l),e.signal?.removeEventListener(`abort`,d),i!==void 0&&Et(i),D?.onEnd(e.category,Date.now()-n),t())},p=e=>f(()=>t(e)),m=(e,t)=>{try{Dt(e,t)}catch(e){p({ok:!1,reason:`signal-refused`,stdout:a,stderr:o,exitCode:null,signal:null,error:e instanceof Error?e.message:String(e)})}},h=t=>{u=t,c&&clearTimeout(c),e.signal?.removeEventListener(`abort`,d);let n=r.pid;n!==void 0&&(l=setTimeout(()=>m(n,`SIGKILL`),250),m(n,`SIGTERM`))};r.stdout?.on(`data`,e=>{a+=e.toString(`utf8`)}),r.stderr?.on(`data`,e=>{o+=e.toString(`utf8`)}),r.on(`error`,t=>{p({ok:!1,reason:`spawn-error`,stdout:a,stderr:o,exitCode:null,signal:null,error:st(t,e.cwd)})}),r.on(`close`,(e,t)=>{if(u!==null){p({ok:!1,reason:u,stdout:a,stderr:o,exitCode:e,signal:t});return}if(e===0){p({ok:!0,stdout:a,stderr:o,exitCode:e});return}p({ok:!1,reason:t?`signal`:`non-zero`,stdout:a,stderr:o,exitCode:e,signal:t})}),e.timeoutMs&&e.timeoutMs>0&&(c=setTimeout(()=>h(`timeout`),e.timeoutMs)),e.signal?.addEventListener(`abort`,d,{once:!0}),e.stdinInput!==void 0&&r.stdin?r.stdin.end(e.stdinInput):r.stdin&&r.stdin.end()})}function kt(e){let t=ut(e.category);if(!t.allowed)return pt(e.category,t.minIntervalMs,t.sinceLastMs);dt(e.category);let n=Date.now();D?.onStart(e.category);let r=[`pipe`,`pipe`,`pipe`];try{let t=T(e.bin,e.args??[],{cwd:e.cwd,env:ft(e),input:e.stdinInput,timeout:e.timeoutMs&&e.timeoutMs>0?e.timeoutMs:void 0,stdio:r,encoding:`utf8`});D?.onEnd(e.category,Date.now()-n);let i=typeof t.stdout==`string`?t.stdout:``,a=typeof t.stderr==`string`?t.stderr:``;if(t.error)return{ok:!1,reason:t.error.code===`ETIMEDOUT`?`timeout`:`spawn-error`,stdout:i,stderr:a,exitCode:null,signal:t.signal??null,error:st(t.error,e.cwd)};if(t.status===0)return{ok:!0,stdout:i,stderr:a,exitCode:t.status};let o=e.timeoutMs!==void 0&&e.timeoutMs>0;return{ok:!1,reason:t.signal?o&&t.signal===`SIGTERM`?`timeout`:`signal`:`non-zero`,stdout:i,stderr:a,exitCode:t.status,signal:t.signal??null}}catch(t){return D?.onEnd(e.category,Date.now()-n),{ok:!1,reason:`spawn-error`,stdout:``,stderr:``,exitCode:null,signal:null,error:st(t,e.cwd)}}}function At(e){let t=ut(e.category);if(!t.allowed)return pt(e.category,t.minIntervalMs,t.sinceLastMs);dt(e.category);let n=Date.now();D?.onStart(e.category);let r=jt(e);return D?.onEnd(e.category,Date.now()-n),r}function jt(e){let t;try{t=se(e.bin,e.args??[],{cwd:e.cwd,env:ft(e),detached:!0,stdio:`ignore`})}catch(t){return{ok:!1,reason:`spawn-error`,stdout:``,stderr:``,exitCode:null,signal:null,error:st(t,e.cwd)}}return t.once(`error`,()=>{}),t.pid===void 0?{ok:!1,reason:`spawn-error`,stdout:``,stderr:``,exitCode:null,signal:null,error:`spawn(${e.bin}): no pid (binary not found or unexecutable)`}:(t.unref(),{ok:!0,stdout:``,stderr:``,exitCode:null})}const Mt=e=>e.kind===`exit`?`exit ${e.code}`:`timeout`;function Nt(e,t){dt(e.category);let n=Date.now();D?.onStart(e.category);let r;try{r=se(`/bin/sh`,[`-c`,`out=$1 err=$2 status=$3; shift 3; read go || exit 0; "$@" >"$out" 2>"$err" </dev/null; echo "exit $?" >"$status.$$" && ln "$status.$$" "$status"; rm -f "$status.$$"`,`sh`,t.stdout,t.stderr,t.status,e.bin,...e.args??[]],{cwd:e.cwd,env:ft(e),detached:!0,stdio:[`pipe`,`ignore`,`ignore`]})}catch(t){return D?.onEnd(e.category,Date.now()-n),{ok:!1,error:st(t,e.cwd)}}D?.onEnd(e.category,Date.now()-n),r.once(`error`,()=>{});let i=r.pid,a=r.stdin;return a.on(`error`,()=>{}),i===void 0?(a.destroy(),{ok:!1,error:`spawn(/bin/sh): no pid (shell not found or unexecutable)`}):(r.unref(),a.unref(),{ok:!0,pid:i,release:()=>a.end(`go
|
|
2
|
+
import{createRequire as e}from"node:module";import t from"node:process";import{URL as n,URLSearchParams as r,fileURLToPath as i}from"node:url";import{json as a}from"node:stream/consumers";import o,{basename as s,dirname as c,isAbsolute as l,join as u,sep as d}from"node:path";import f,{closeSync as p,constants as m,existsSync as h,fstatSync as g,linkSync as _,openSync as v,readFileSync as y,readSync as b,rmSync as ee,statSync as x,writeFileSync as S}from"node:fs";import te,{createHash as C,createHmac as ne,randomBytes as re,randomUUID as ie,timingSafeEqual as ae}from"node:crypto";import w,{homedir as oe}from"node:os";import{spawn as se,spawnSync as T}from"node:child_process";import{inspect as ce,parseArgs as le,types as ue}from"node:util";import de from"node:net";import fe from"node:v8";import{open as pe,readFile as me,readdir as he,stat as ge}from"node:fs/promises";import{clearInterval as _e,setImmediate as ve,setInterval as ye}from"node:timers";import{get as be}from"node:https";import{setTimeout as xe}from"node:timers/promises";import{WriteStream as Se}from"node:tty";import{createInterface as Ce}from"node:readline";var we=Object.create,Te=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,De=Object.getOwnPropertyNames,Oe=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty,Ae=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),je=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=De(t),a=0,o=i.length,s;a<o;a++)s=i[a],!ke.call(e,s)&&s!==n&&Te(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Ee(t,s))||r.enumerable});return e},Me=(e,t,n)=>(n=e==null?{}:we(Oe(e)),je(t||!e||!e.__esModule?Te(n,`default`,{value:e,enumerable:!0}):n,e));const Ne=()=>!!process.env.CC_CANDYBAR_DEBUG;function Pe(e){return Ne()?`[DEBUG] ${e()}\n`:``}function E(e,...t){Ne()&&console.error(`[DEBUG] ${e}`,...t)}function Fe(e){let t=null;return([n,r])=>{r!==t&&(t=r,e(n,r))}}const Ie=(e,t)=>E(t),Le=/^[A-Za-z0-9_./,:@%+-][A-Za-z0-9_./,:@%+=-]*$/;function Re(e){return`'${e.replaceAll(`'`,`'\\''`)}'`}function ze(e){return Le.test(e)?e:Re(e)}function Be(e){return`${e.dir===void 0?``:`cd ${ze(e.dir)} && `}${e.env.map(([e,t])=>`${e}=${ze(t)} `).join(``)}${[e.program,...e.args].map(ze).join(` `)}`}const Ve=`cc-extra`;function He(e){return o.join(o.dirname(e),Ve,`src`,`bun-attach.js`)}function Ue(e){return o.join(o.dirname(e),`bun-graph.js`)}const We=`attach-preload.cjs`;function Ge(e){return o.join(o.dirname(e),We)}function Ke(e,t){return Be({...t,env:[...t.env,[`BUN_OPTIONS`,`--preload ${e.replace(/[\\\s]/g,`\\$&`)}`]]})}const qe=e=>!e.startsWith(`.`)&&!e.endsWith(`~`);function Je(e,t){return t.isSymbolicLink()?Buffer.from(f.readlinkSync(e)):f.readFileSync(e)}function Ye(e,t,n=qe){return f.readdirSync(t).filter(n).sort().flatMap(n=>{let r=o.join(t,n),i=f.lstatSync(r,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?Ye(e,r):[[o.relative(e,r).split(o.sep).join(`/`),Je(r,i)]]})}function Xe(e){let t=te.createHash(`sha256`);for(let[n,r]of e)t.update(n).update(`\0`).update(r).update(`\0`);return t.digest(`hex`)}function Ze(e){return Xe(Ye(e,e))}const Qe=[`Cargo.toml`,`Cargo.lock`,`src`];function $e(e){return Xe(Ye(e,e,e=>Qe.includes(e)))}const et=e=>e.slice(0,7),tt=`1.169.2`;function nt(e){let t=o.dirname(o.dirname(e));return f.existsSync(o.join(t,`src`))?t:null}function rt(){let e=it();if(e===null)throw Error("this bundle carries no source digest (build via `pnpm build`, which stamps it)");return{version:tt,digest:e}}function it(){return`773b198113960dae71a863b83cd4de9d4111caa8d0f5889c11b33cac2f687f4c`}function at(e){let t=JSON.parse(f.readFileSync(o.join(e,`package.json`),`utf8`)),n=typeof t==`object`&&t?t.version:void 0;if(typeof n!=`string`)throw Error(`${o.join(e,`package.json`)} has no version string`);return n}function ot(e,t){try{let n=nt(i(e));if(n===null)return{kind:`not-source-checkout`};let r=t(),a=Ze(o.join(n,`src`));return a===r.digest?{kind:`current`,root:n,stamp:r}:{kind:`stale`,root:n,source:{version:at(n),digest:a},running:r}}catch(e){return{kind:`unchecked`,reason:e.message}}}function st(e,t){return ue.isNativeError(e)?e.code===`ENOENT`&&t!==void 0&&!h(t)?`working directory does not exist: ${t}`:e.message:String(e)}const ct={"click.pbcopy":1e3,"click.open":1e3,"doctor.tmux":1e3,"doctor.font":1e3,"doctor.process":1e3,"claude-input.type":1e3},lt=new Map;function ut(e){let t=ct[e];if(t===void 0)return{allowed:!0};let n=lt.get(e);if(n===void 0)return{allowed:!0};let r=Date.now()-n;return r>=t?{allowed:!0}:{allowed:!1,minIntervalMs:t,sinceLastMs:r}}function dt(e){lt.set(e,Date.now())}function ft(e){return e.env??process.env}function pt(e,t,n){return{ok:!1,reason:`rate-limited`,stdout:``,stderr:``,exitCode:null,signal:null,error:`rate-limited: ${e} min interval ${t}ms, last start ${n}ms ago`}}let D=null;function mt(e){D=e}let ht=()=>Ct().forEach(e=>process.emitWarning(e.message));function gt(e){ht=e}const _t=`\$1 == "+" { live[\$2] = 1; next } \$1 == "-" { delete live[\$2]; next } END { for (g in live) groups = groups " -" g; if (groups != "") system("kill -TERM" groups " 2>/dev/null; sleep ${250/1e3}; kill -KILL" groups " 2>/dev/null") }`,vt=new Set;let yt=null,bt=null;function xt(e){e!==bt&&(bt=e,ht(e))}function St(e,t){yt?.process===e&&(yt=null,xt(t))}function Ct(){return bt===null?[]:[{kind:`lifeline`,message:`programs launched now would outlive their launcher if it died: its launch lifeline ${bt}, and the next launch starts another`}]}function wt(){D?.onStart(`lifeline`);let e=Date.now(),t;try{t=se(`awk`,[_t],{stdio:[`pipe`,`ignore`,`ignore`],detached:!0})}catch(t){return D?.onEnd(`lifeline`,Date.now()-e),xt(`did not start: ${st(t,void 0)}`),null}D?.onEnd(`lifeline`,Date.now()-e);let n=t.stdin;t.once(`spawn`,()=>{yt?.process===t&&xt(null)}),t.once(`error`,e=>St(t,`failed: ${e.message}`)),t.once(`exit`,(e,n)=>St(t,`exited ${n??e}`)),n.on(`error`,e=>St(t,`pipe failed: ${e.message}`)),t.unref(),n.unref();for(let e of vt)n.write(`+ ${e}\n`);return{process:t,pipe:n}}function Tt(e){vt.add(e),yt??=wt(),yt?.pipe.write(`+ ${e}\n`)}function Et(e){vt.delete(e),yt?.pipe.write(`- ${e}\n`)}function Dt(e,t){try{process.kill(-e,t)}catch(e){if(e.code!==`ESRCH`)throw e}}async function Ot(e){if(e.signal?.aborted)return{ok:!1,reason:`aborted`,stdout:``,stderr:``,exitCode:null,signal:null};let t=ut(e.category);if(!t.allowed)return pt(e.category,t.minIntervalMs,t.sinceLastMs);dt(e.category);let n=Date.now();return D?.onStart(e.category),new Promise(t=>{let r;try{r=se(e.bin,e.args??[],{cwd:e.cwd,env:ft(e),stdio:[`pipe`,`pipe`,`pipe`],detached:!0})}catch(r){D?.onEnd(e.category,Date.now()-n),t({ok:!1,reason:`spawn-error`,stdout:``,stderr:``,exitCode:null,signal:null,error:st(r,e.cwd)});return}let i=r.pid;i!==void 0&&Tt(i);let a=``,o=``,s=!1,c=null,l=null,u=null,d=()=>h(`aborted`),f=t=>{s||(s=!0,c&&clearTimeout(c),l&&clearTimeout(l),e.signal?.removeEventListener(`abort`,d),i!==void 0&&Et(i),D?.onEnd(e.category,Date.now()-n),t())},p=e=>f(()=>t(e)),m=(e,t)=>{try{Dt(e,t)}catch(e){p({ok:!1,reason:`signal-refused`,stdout:a,stderr:o,exitCode:null,signal:null,error:e instanceof Error?e.message:String(e)})}},h=t=>{u=t,c&&clearTimeout(c),e.signal?.removeEventListener(`abort`,d);let n=r.pid;n!==void 0&&(l=setTimeout(()=>m(n,`SIGKILL`),250),m(n,`SIGTERM`))};r.stdout?.on(`data`,e=>{a+=e.toString(`utf8`)}),r.stderr?.on(`data`,e=>{o+=e.toString(`utf8`)}),r.on(`error`,t=>{p({ok:!1,reason:`spawn-error`,stdout:a,stderr:o,exitCode:null,signal:null,error:st(t,e.cwd)})}),r.on(`close`,(e,t)=>{if(u!==null){p({ok:!1,reason:u,stdout:a,stderr:o,exitCode:e,signal:t});return}if(e===0){p({ok:!0,stdout:a,stderr:o,exitCode:e});return}p({ok:!1,reason:t?`signal`:`non-zero`,stdout:a,stderr:o,exitCode:e,signal:t})}),e.timeoutMs&&e.timeoutMs>0&&(c=setTimeout(()=>h(`timeout`),e.timeoutMs)),e.signal?.addEventListener(`abort`,d,{once:!0}),e.stdinInput!==void 0&&r.stdin?r.stdin.end(e.stdinInput):r.stdin&&r.stdin.end()})}function kt(e){let t=ut(e.category);if(!t.allowed)return pt(e.category,t.minIntervalMs,t.sinceLastMs);dt(e.category);let n=Date.now();D?.onStart(e.category);let r=[`pipe`,`pipe`,`pipe`];try{let t=T(e.bin,e.args??[],{cwd:e.cwd,env:ft(e),input:e.stdinInput,timeout:e.timeoutMs&&e.timeoutMs>0?e.timeoutMs:void 0,stdio:r,encoding:`utf8`});D?.onEnd(e.category,Date.now()-n);let i=typeof t.stdout==`string`?t.stdout:``,a=typeof t.stderr==`string`?t.stderr:``;if(t.error)return{ok:!1,reason:t.error.code===`ETIMEDOUT`?`timeout`:`spawn-error`,stdout:i,stderr:a,exitCode:null,signal:t.signal??null,error:st(t.error,e.cwd)};if(t.status===0)return{ok:!0,stdout:i,stderr:a,exitCode:t.status};let o=e.timeoutMs!==void 0&&e.timeoutMs>0;return{ok:!1,reason:t.signal?o&&t.signal===`SIGTERM`?`timeout`:`signal`:`non-zero`,stdout:i,stderr:a,exitCode:t.status,signal:t.signal??null}}catch(t){return D?.onEnd(e.category,Date.now()-n),{ok:!1,reason:`spawn-error`,stdout:``,stderr:``,exitCode:null,signal:null,error:st(t,e.cwd)}}}function At(e){let t=ut(e.category);if(!t.allowed)return pt(e.category,t.minIntervalMs,t.sinceLastMs);dt(e.category);let n=Date.now();D?.onStart(e.category);let r=jt(e);return D?.onEnd(e.category,Date.now()-n),r}function jt(e){let t;try{t=se(e.bin,e.args??[],{cwd:e.cwd,env:ft(e),detached:!0,stdio:`ignore`})}catch(t){return{ok:!1,reason:`spawn-error`,stdout:``,stderr:``,exitCode:null,signal:null,error:st(t,e.cwd)}}return t.once(`error`,()=>{}),t.pid===void 0?{ok:!1,reason:`spawn-error`,stdout:``,stderr:``,exitCode:null,signal:null,error:`spawn(${e.bin}): no pid (binary not found or unexecutable)`}:(t.unref(),{ok:!0,stdout:``,stderr:``,exitCode:null})}const Mt=e=>e.kind===`exit`?`exit ${e.code}`:`timeout`;function Nt(e,t){dt(e.category);let n=Date.now();D?.onStart(e.category);let r;try{r=se(`/bin/sh`,[`-c`,`out=$1 err=$2 status=$3; shift 3; read go || exit 0; "$@" >"$out" 2>"$err" </dev/null; echo "exit $?" >"$status.$$" && ln "$status.$$" "$status"; rm -f "$status.$$"`,`sh`,t.stdout,t.stderr,t.status,e.bin,...e.args??[]],{cwd:e.cwd,env:ft(e),detached:!0,stdio:[`pipe`,`ignore`,`ignore`]})}catch(t){return D?.onEnd(e.category,Date.now()-n),{ok:!1,error:st(t,e.cwd)}}D?.onEnd(e.category,Date.now()-n),r.once(`error`,()=>{});let i=r.pid,a=r.stdin;return a.on(`error`,()=>{}),i===void 0?(a.destroy(),{ok:!1,error:`spawn(/bin/sh): no pid (shell not found or unexecutable)`}):(r.unref(),a.unref(),{ok:!0,pid:i,release:()=>a.end(`go
|
|
3
3
|
`),withdraw:()=>a.end()})}function Pt(e){let t;try{t=y(e,`utf8`).trim()}catch(e){if(e.code===`ENOENT`)return null;throw e}let n=/^exit (\d+)$/.exec(t);if(n)return{kind:`exit`,code:Number(n[1])};if(t===`timeout`)return{kind:`timeout`};throw Error(`${e}: not a job verdict: ${JSON.stringify(t)}`)}function Ft(e){try{return process.kill(-e,0),!0}catch(e){let t=e.code;if(t===`ESRCH`||t===`EPERM`)return!1;throw e}}function It(e,t,n){let r=`${t}.${process.pid}`;try{S(r,`${Mt(n)}\n`)}catch(e){if(e.code===`ENOENT`)return!1;throw e}let i=!0;try{_(r,t)}catch(e){if(e.code!==`EEXIST`)throw e;i=!1}finally{ee(r,{force:!0})}return Dt(e,`SIGTERM`),setTimeout(()=>Dt(e,`SIGKILL`),250).unref(),i}function Lt(e,t,n){let r=Rt(e);f.mkdirSync(o.dirname(r),{recursive:!0});let i=`${r}.tmp`,a=n??f.statSync(r,{throwIfNoEntry:!1})?.mode;try{f.writeFileSync(i,t,a===void 0?{}:{mode:a}),f.renameSync(i,r)}catch(e){throw f.rmSync(i,{force:!0}),e}}function Rt(e){return zt(e).at(-1)}function zt(e){let{hops:t,stopped:n}=Bt(e);if(n!==null)throw n;return t}function Bt(e){let t=[e];try{for(let e=0;e<Ht;e++){let e=Vt(t[t.length-1]);if(e===null)return{hops:t,stopped:null};t.push(e)}return{hops:t,stopped:Error(`${e}: more than ${Ht} symbolic links`)}}catch(e){return{hops:t,stopped:e}}}function Vt(e){try{return f.lstatSync(e).isSymbolicLink()?o.resolve(f.realpathSync(o.dirname(e)),f.readlinkSync(e)):null}catch(e){let{code:t}=e;if(t===`ENOENT`||t===`ENOTDIR`)return null;throw e}}const Ht=40;function Ut(e,t){let n=e[t];return n&&n.length>0?n:void 0}function Wt(e=process.env){let t=Ut(e,`XDG_STATE_HOME`)??o.join(w.homedir(),`.local`,`state`);return o.join(t,`cc-candybar`)}function Gt(){let e=Ut(process.env,`XDG_CACHE_HOME`)??o.join(w.homedir(),`.cache`);return o.join(e,`cc-candybar`)}function Kt(){return Wt()}function O(){return process.env.CC_CANDYBAR_SOCKET||qt()}function qt(){let e=w.userInfo().uid;return o.join(`/tmp`,`cc-candybar-${e}`,`socket`)}function Jt(e){f.mkdirSync(e,{recursive:!0,mode:448});let t=f.lstatSync(e);if(t.isSymbolicLink())throw Error(`directory is a symlink: ${e}`);if(!t.isDirectory())throw Error(`not a directory: ${e}`);let n=w.userInfo().uid;if(typeof n==`number`&&t.uid!==n)throw Error(`directory is not owned by uid ${n}: ${e} (owner uid=${t.uid})`);if(t.mode&63)throw Error(`directory has unsafe permissions: ${e} (mode=${(t.mode&511).toString(8)}, expected 0700)`)}function Yt(e){Jt(o.dirname(e));for(let t of[e,Xt(e)])try{if(f.lstatSync(t).isSymbolicLink())throw Error(`path is a symlink: ${t}`)}catch(e){if(e.code!==`ENOENT`)throw e}}function Xt(e){return`${e}.lease`}function Zt(){return Xt(O())}function Qt(e=process.env){return o.join(Wt(e),`session-state.json`)}function k(){return o.join(Wt(),`settings-history.json`)}function $t(){let e=process.env.CC_CANDYBAR_DAEMON_REGISTRY_DIR;if(e)return e;let t=w.userInfo().uid;return o.join(`/tmp`,`cc-candybar-${t}`,`daemons`)}function en(){return o.join(Wt(),`spawn.lock`)}function tn(){return o.join(Wt(),`spawn.cooldown`)}function nn(){return o.join(Wt(),`spawn.backoff`)}function rn(){return o.join(Wt(),`watch-probe`)}function an(e=process.env){return o.join(Wt(e),`daemon.log`)}const on=[`TERM_PROGRAM`,`TERM_PROGRAM_VERSION`,`TERM`,`ITERM_PROFILE`,`XDG_CONFIG_HOME`];function sn(e){return Object.fromEntries(on.flatMap(t=>{let n=e[t]??``;return n===``?[]:[[t,n]]}))}const cn=[`native`,`node`,`frames`];function ln(e,t){return{kind:e,bundle:t,source:null}}const un=Object.keys({termCols:!0,termRows:!0,ssh:!0,tmux:!0,configEnv:!0,claudeConfigDir:!0,terminalEnv:!0,client:!0});function dn(e){let t=bn(e.termCols),n=bn(e.termRows),r=xn(e.ssh),i=vn(e.tmux),a=_n(e.configEnv),o=_n(e.claudeConfigDir),s=gn(e.terminalEnv),c=On(e.client);return{...t!==void 0&&{termCols:t},...n!==void 0&&{termRows:n},...r!==void 0&&{ssh:r},...i!==void 0&&{tmux:i},...a!==void 0&&{configEnv:a},...o!==void 0&&{claudeConfigDir:o},...s!==void 0&&{terminalEnv:s},...c!==void 0&&{client:c}}}function fn(e,t){return un.filter(n=>e[n]!==void 0&&t[n]===void 0).map(t=>({hint:t,sent:e[t]}))}function pn(e){return e.length===0?null:`Client hints refused: ${e.map(({hint:e,sent:t})=>`${e}=${JSON.stringify(t)}`).join(`, `)} — is the statusline client older than the daemon? Reinstall it (\`cc-candybar install\`, or \`just install-rust\` in a checkout).`}const mn={unknown:e=>`Unknown flags: ${e}`,"no-value":e=>`${e} names no file — the bar renders with no ${e}`,positional:e=>`Unexpected arguments: ${e}`};function hn(e){let t=Object.keys(mn).flatMap(t=>{let n=e.filter(e=>e.why===t).map(e=>e.arg);return n.length===0?[]:[mn[t](n.join(`, `))]});return t.length===0?null:t.join(`
|
|
4
4
|
`)}function gn(e){if(typeof e!=`object`||!e||Array.isArray(e))return;let t=e,n=on.filter(e=>t[e]!==void 0);return n.every(e=>typeof t[e]==`string`&&t[e]!==``)?Object.fromEntries(n.map(e=>[e,t[e]])):void 0}function _n(e){return typeof e==`string`&&o.isAbsolute(e)?e:void 0}function vn(e){if(e===null)return null;if(typeof e!=`object`)return;let{socket:t,pane:n,truecolor:r}=e;if(!(typeof t!=`string`||t===``)&&!(typeof n!=`string`||n===``)&&!(r!==null&&(typeof r!=`string`||r===``)))return{socket:t,pane:n,truecolor:r}}const yn=1e4;function bn(e){if(typeof e!=`number`||!Number.isFinite(e))return;let t=Math.floor(e);if(!(t<=0))return t>yn?yn:t}function xn(e){return typeof e==`boolean`?e:void 0}function Sn(e){return typeof e==`string`&&e!==``&&e.length<=64?e:null}var Cn=class extends Error{constructor(e){super(e),this.name=`ProtocolError`}};function wn(e){return Tn(JSON.stringify(e))}function Tn(e){let t=Buffer.from(e,`utf8`),n=Buffer.alloc(4);return n.writeUInt32BE(t.length,0),Buffer.concat([n,t])}function En(e,t){let n=Buffer.alloc(0);return function(r){for(n=Buffer.concat([n,r]);n.length>=4;){let r=n.readUInt32BE(0);if(r>16777216){t(new Cn(`frame too large: ${r}`));return}if(n.length<4+r)return;let i=n.subarray(4,4+r);n=n.subarray(4+r);try{e(JSON.parse(i.toString(`utf8`)))}catch(e){let n=new Cn(e instanceof Error?e.message:String(e));e instanceof Error&&(n.cause=e),t(n);return}}}}function Dn(e,t,n){return new Promise((r,i)=>{let a=!1,o=t=>{if(!a){a=!0,clearTimeout(s),e.removeAllListeners();try{t()}catch{}}},s=setTimeout(()=>{o(()=>{e.destroy(),i(Error(`TIMEOUT`))})},n-Date.now()),c=En(e=>o(()=>r(e)),e=>o(()=>i(e)));e.on(`data`,c),e.on(`error`,e=>o(()=>i(e))),e.on(`close`,()=>o(()=>i(Error(`socket closed before response`)))),e.write(wn(t))})}function On(e){if(typeof e!=`object`||!e||Array.isArray(e))return;let{kind:t,bundle:n,source:r}=e,i=_n(n);return cn.includes(t)&&i!==void 0&&(r===null||typeof r==`string`&&r!==``)?{kind:t,bundle:i,source:r}:void 0}async function A(e,t,n){let r=null;try{r=await Nn(O(),t.connectMs);let i=Date.now()+t.budgetMs,a=e(i),o=await Dn(r,{v:3,...a},i);return jn(a.kind,o,n)}catch(e){return Mn(e)}finally{r&&r.destroy()}}function kn(e,t){return typeof e==`string`?e:t}function An(e){return typeof e==`number`&&Number.isInteger(e)&&e>=0?e:0}function jn(e,t,n){let r=t;if(r.ok===!0){let r=n(t);return r===void 0?{kind:`permanent`,cause:`malformed_response`,message:`ok response without payload for "${e}" request`}:{kind:`ok`,value:r}}let i=kn(r.error,`(no error message)`);switch(r.code){case`VERSION_MISMATCH`:return{kind:`permanent`,cause:`version_mismatch`,clientV:3,daemonV:An(r.daemonV)};case`TIMEOUT`:return{kind:`transient`,cause:`timeout`,message:i};case`BAD_REQUEST`:return{kind:`permanent`,cause:`bad_request`,message:i};case`RENDER_FAILED`:return{kind:`permanent`,cause:`render_failed`,message:i};case`SWITCHED_OFF`:return{kind:`permanent`,cause:`switched_off`,message:i};default:return{kind:`permanent`,cause:`malformed_response`,message:`unknown error code: ${String(r.code)}`}}}function Mn(e){if(e instanceof Cn||e instanceof SyntaxError)return{kind:`permanent`,cause:`malformed_response`,message:e instanceof Error?e.message:String(e)};let t=e instanceof Error?e.message:String(e);return t===`CONNECT_TIMEOUT`||t===`TIMEOUT`?{kind:`transient`,cause:`timeout`,message:t}:t.includes(`ECONNREFUSED`)||t.includes(`ENOENT`)||t.includes(`ENOTSOCK`)?{kind:`transient`,cause:`unreachable`,message:t}:{kind:`transient`,cause:`io_error`,message:t}}function Nn(e,t){return new Promise((n,r)=>{let i=de.createConnection({path:e}),a=setTimeout(()=>{i.destroy(),r(Error(`CONNECT_TIMEOUT`))},t);i.once(`connect`,()=>{clearTimeout(a),n(i)}),i.once(`error`,e=>{clearTimeout(a),r(e)})})}function Pn(e){if(e.kind===`transient`)return`daemon unavailable (${e.cause}: ${e.message})\nHint: daemon may not be running. Run \`cc-candybar\` once to spawn it.`;switch(e.cause){case`version_mismatch`:{let t=e.daemonV===0?`unknown`:`v${e.daemonV}`;return`daemon protocol mismatch (client v${e.clientV} ≠ daemon ${t})`}case`bad_request`:case`render_failed`:case`switched_off`:case`malformed_response`:return`daemon error (${e.cause}): ${e.message}`}}const Fn={connectMs:50,budgetMs:150},In={connectMs:50,budgetMs:200};function Ln(e){let t=e.output;return typeof t==`string`?t:void 0}function Rn(e){return jn(`render`,e,Ln)}function zn(e,t,n,r){return A(i=>({kind:`render`,hookData:e,args:t,cwd:n,deadline:i,...r}),Fn,Ln)}function Bn(e,t){return A(()=>({kind:`pane-session`,socket:e,pane:t}),In,e=>`paneSession`in e?e.paneSession:void 0)}function Vn(e,t){return A(()=>({kind:`click`,verb:e,value:t,clientVersion:tt}),In,Ln)}let Hn=null;function Un(){if(Hn!==null){try{f.closeSync(Hn.fd)}catch{}Hn=null}}async function Wn(e){let t=await f.promises.stat(e).catch(()=>null);if(Hn!==null&&Hn.path===e&&t!==null&&Hn.id===Gn(t))return{held:Hn,size:t.size};Un(),await f.promises.mkdir(o.dirname(e),{recursive:!0});let n=await new Promise((t,n)=>f.open(e,`a`,(e,r)=>e===null?t(r):n(e))),r=await new Promise((e,t)=>f.fstat(n,(n,r)=>n===null?e(r):t(n)));return Hn={path:e,fd:n,id:Gn(r)},{held:Hn,size:r.size}}function Gn(e){return`${e.dev}:${e.ino}`}function Kn(e,t){return new Promise((n,r)=>f.write(e,t,(e,t)=>e===null?n(t):r(e)))}async function qn(e){for(let t=2;t>=1;t--)await f.promises.rename(`${e}.${t}`,`${e}.${t+1}`).catch(()=>{});await f.promises.rename(e,`${e}.1`).catch(()=>{})}let Jn=[],Yn=0,Xn=0,Zn=0,Qn=null,$n=!1;const er=[];let tr=!1,nr=!1;function rr(e,t){return`${new Date().toISOString()} [${e}] ${t}\n`}function j(e,t){let n=rr(e,t);if(nr||(nr=!0,process.on(`exit`,()=>{tr=!0,ur(!0,cr)})),Jn.push(n),Yn+=Buffer.byteLength(n),Yn>4194304){let e=0;for(;Yn>4194304/2&&e<Jn.length-1;){let t=Buffer.byteLength(Jn[e]);Yn-=t,Zn+=t,e++}Jn.splice(0,e),Xn+=e}tr?ur(!0,cr):$n||ar()}function ir(){ur(!1,lr)}async function ar(){$n=!0;try{for(;Jn.length>0;){let e=or();Qn={bytes:Buffer.from(e),state:{kind:`taken`}};try{await sr(an(),Qn)}catch(t){Un(),Qn.state.kind!==`landed`&&fr(e,t)}finally{Qn=null}}}finally{$n=!1;for(let e of er.splice(0))e()}}function or(){let e=(Xn===0?``:rr(`warn`,`log: ${Xn} earlier line(s) dropped (${Zn} bytes): more than 4194304 bytes were waiting for the disk`))+Jn.join(``);return Jn=[],Yn=0,Xn=0,Zn=0,e}async function sr(e,t){let{held:n,size:r}=await Wn(e);if(t.state.kind===`landed`)return;let{bytes:i}=t,a=r+i.length;t.state={kind:`issued`,fd:n.fd,endsAt:a};for(let e=0;e<i.length;){let t=await Kn(n.fd,i.subarray(e));if(t===0)throw Error(`the disk took 0 bytes of a write`);e+=t}if(t.state={kind:`landed`},a>=5242880){Un();let e=await f.promises.stat(n.path).catch(()=>null);e!==null&&Gn(e)===n.id&&await qn(n.path)}}const cr=1e3,lr=2e3;function ur(e,t){let n=Qn,r=Buffer.alloc(0);n!==null&&n.state.kind===`taken`&&(r=n.bytes,n.state={kind:`landed`});let i=null;if(n!==null&&n.state.kind===`issued`){let{fd:a,endsAt:o}=n.state;try{let s=dr(a,o,t);s<o&&e?(r=n.bytes.subarray(Math.max(0,s-(o-n.bytes.length))),n.state={kind:`landed`}):s<o&&(i={fd:a,endsAt:o})}catch(t){e&&(r=n.bytes,n.state={kind:`landed`}),fr(n.bytes.toString(),t)}}if(r.length===0&&Jn.length===0)return;let a=Buffer.concat([r,Buffer.from(or())]);try{let e=an();f.mkdirSync(o.dirname(e),{recursive:!0}),f.appendFileSync(e,a),i!==null&&n!==null&&Gn(f.fstatSync(i.fd))===Gn(f.statSync(e))&&(n.state={kind:`issued`,fd:i.fd,endsAt:i.endsAt+a.length})}catch(e){fr(a.toString(),e)}}function dr(e,t,n){let r=performance.now()+n,i=new Int32Array(new SharedArrayBuffer(4));for(;;){let{size:n}=f.fstatSync(e);if(n>=t||performance.now()>=r)return n;Atomics.wait(i,0,0,1)}}function fr(e,t){try{process.stderr.write(`${e}cc-candybar: daemon.log unwritable: ${t.message}\n`)}catch{}}const pr=5e3;function mr(e){let t=[];for(let n of e){let e=n.read();if(e.kind===`text`)return`# memory report from: ${n.name}\n${e.text}`;t.push(`# ${n.name}: unavailable — ${e.reason}`)}return[`# memory report: no probe answered`,...t.length>0?t:[`# no probe is known for this platform`]].join(`
|
|
5
5
|
`)}const hr=`/usr/bin/footprint`;function gr(e,t){return e===`darwin`?[br(hr,[`-p`,String(t)]),br(`/usr/bin/vmmap`,[`--summary`,String(t)])]:e===`linux`?[xr(`/proc/self/smaps_rollup`),xr(`/proc/self/status`)]:[]}function _r(e,t){return e===`darwin`?vr(t,e=>Ot({bin:hr,args:e,timeoutMs:pr,category:`limits.charge`})):async e=>({kind:`charged`,measure:`rss`,bytes:e})}function vr(e,t){return async n=>{let r=await t([`-p`,String(e),`--noCategories`,`-f`,`bytes`]);if(!r.ok)return{kind:`stand-in`,bytes:n,unread:`footprint ${r.reason}${r.error===void 0?``:`: ${r.error}`}${Sr(r.stderr)}`};let i=yr(r.stdout);return i===null?{kind:`stand-in`,bytes:n,unread:`footprint printed no phys_footprint line`}:{kind:`charged`,measure:`phys_footprint`,bytes:i}}}function yr(e){let t=/^\s*phys_footprint:\s+(\d+) B\s*$/m.exec(e);return t===null?null:Number(t[1])}function br(e,t){return{name:`${e} ${t.join(` `)}`,read:()=>{let n=kt({bin:e,args:[...t],timeoutMs:pr,category:`limits.memory-report`});return n.ok?n.stdout.trim().length>0?{kind:`text`,text:n.stdout}:{kind:`unavailable`,reason:`exited 0 but printed nothing`}:{kind:`unavailable`,reason:`${n.reason}${n.error===void 0?``:`: ${n.error}`}${Sr(n.stderr)}`}}}}function xr(e){return{name:e,read:()=>{try{let t=f.readFileSync(e,`utf8`);return t.trim().length>0?{kind:`text`,text:t}:{kind:`unavailable`,reason:`empty file`}}catch(e){return{kind:`unavailable`,reason:e.message}}}}}function Sr(e){let t=e.split(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptctl/cc-candybar",
|
|
3
|
-
"version": "1.169.
|
|
3
|
+
"version": "1.169.2",
|
|
4
4
|
"description": "Statusline renderer for Claude Code — a JSON5-configurable DSL with daemon-cached data sources, byte-clean palette-aware composition, and OSC8 click verbs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -102,9 +102,9 @@
|
|
|
102
102
|
"typescript": "^5.0.0"
|
|
103
103
|
},
|
|
104
104
|
"optionalDependencies": {
|
|
105
|
-
"@promptctl/cc-candybar-darwin-arm64": "1.169.
|
|
106
|
-
"@promptctl/cc-candybar-darwin-x64": "1.169.
|
|
107
|
-
"@promptctl/cc-candybar-linux-arm64": "1.169.
|
|
108
|
-
"@promptctl/cc-candybar-linux-x64": "1.169.
|
|
105
|
+
"@promptctl/cc-candybar-darwin-arm64": "1.169.2",
|
|
106
|
+
"@promptctl/cc-candybar-darwin-x64": "1.169.2",
|
|
107
|
+
"@promptctl/cc-candybar-linux-arm64": "1.169.2",
|
|
108
|
+
"@promptctl/cc-candybar-linux-x64": "1.169.2"
|
|
109
109
|
}
|
|
110
110
|
}
|