@kili-ai/dev-install 0.2.64

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.
@@ -0,0 +1,286 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+
4
+ // src/core/client.ts
5
+ var import_node_crypto = require("crypto");
6
+
7
+ // src/core/constants.ts
8
+ var NPM_ORG = "kili-ai";
9
+ var NPM_PACKAGE = "ide";
10
+ var PACKAGE_NAME = `@${NPM_ORG}/${NPM_PACKAGE}`;
11
+ var AUTH_TIMEOUT_MS = 5 * 60 * 1e3;
12
+
13
+ // src/core/debug.ts
14
+ var import_node_fs = require("fs");
15
+ var import_node_path2 = require("path");
16
+
17
+ // src/core/paths.ts
18
+ var import_node_os = require("os");
19
+ var import_node_path = require("path");
20
+ function kiliHome() {
21
+ return (0, import_node_path.join)((0, import_node_os.homedir)(), ".kili");
22
+ }
23
+ function terminalHeartbeatPath() {
24
+ return (0, import_node_path.join)(kiliHome(), "terminal-heartbeat.json");
25
+ }
26
+
27
+ // src/core/store.ts
28
+ var import_node_fs2 = require("fs");
29
+ var import_node_path3 = require("path");
30
+
31
+ // node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/scanner.js
32
+ var CharacterCodes;
33
+ (function(CharacterCodes2) {
34
+ CharacterCodes2[CharacterCodes2["lineFeed"] = 10] = "lineFeed";
35
+ CharacterCodes2[CharacterCodes2["carriageReturn"] = 13] = "carriageReturn";
36
+ CharacterCodes2[CharacterCodes2["space"] = 32] = "space";
37
+ CharacterCodes2[CharacterCodes2["_0"] = 48] = "_0";
38
+ CharacterCodes2[CharacterCodes2["_1"] = 49] = "_1";
39
+ CharacterCodes2[CharacterCodes2["_2"] = 50] = "_2";
40
+ CharacterCodes2[CharacterCodes2["_3"] = 51] = "_3";
41
+ CharacterCodes2[CharacterCodes2["_4"] = 52] = "_4";
42
+ CharacterCodes2[CharacterCodes2["_5"] = 53] = "_5";
43
+ CharacterCodes2[CharacterCodes2["_6"] = 54] = "_6";
44
+ CharacterCodes2[CharacterCodes2["_7"] = 55] = "_7";
45
+ CharacterCodes2[CharacterCodes2["_8"] = 56] = "_8";
46
+ CharacterCodes2[CharacterCodes2["_9"] = 57] = "_9";
47
+ CharacterCodes2[CharacterCodes2["a"] = 97] = "a";
48
+ CharacterCodes2[CharacterCodes2["b"] = 98] = "b";
49
+ CharacterCodes2[CharacterCodes2["c"] = 99] = "c";
50
+ CharacterCodes2[CharacterCodes2["d"] = 100] = "d";
51
+ CharacterCodes2[CharacterCodes2["e"] = 101] = "e";
52
+ CharacterCodes2[CharacterCodes2["f"] = 102] = "f";
53
+ CharacterCodes2[CharacterCodes2["g"] = 103] = "g";
54
+ CharacterCodes2[CharacterCodes2["h"] = 104] = "h";
55
+ CharacterCodes2[CharacterCodes2["i"] = 105] = "i";
56
+ CharacterCodes2[CharacterCodes2["j"] = 106] = "j";
57
+ CharacterCodes2[CharacterCodes2["k"] = 107] = "k";
58
+ CharacterCodes2[CharacterCodes2["l"] = 108] = "l";
59
+ CharacterCodes2[CharacterCodes2["m"] = 109] = "m";
60
+ CharacterCodes2[CharacterCodes2["n"] = 110] = "n";
61
+ CharacterCodes2[CharacterCodes2["o"] = 111] = "o";
62
+ CharacterCodes2[CharacterCodes2["p"] = 112] = "p";
63
+ CharacterCodes2[CharacterCodes2["q"] = 113] = "q";
64
+ CharacterCodes2[CharacterCodes2["r"] = 114] = "r";
65
+ CharacterCodes2[CharacterCodes2["s"] = 115] = "s";
66
+ CharacterCodes2[CharacterCodes2["t"] = 116] = "t";
67
+ CharacterCodes2[CharacterCodes2["u"] = 117] = "u";
68
+ CharacterCodes2[CharacterCodes2["v"] = 118] = "v";
69
+ CharacterCodes2[CharacterCodes2["w"] = 119] = "w";
70
+ CharacterCodes2[CharacterCodes2["x"] = 120] = "x";
71
+ CharacterCodes2[CharacterCodes2["y"] = 121] = "y";
72
+ CharacterCodes2[CharacterCodes2["z"] = 122] = "z";
73
+ CharacterCodes2[CharacterCodes2["A"] = 65] = "A";
74
+ CharacterCodes2[CharacterCodes2["B"] = 66] = "B";
75
+ CharacterCodes2[CharacterCodes2["C"] = 67] = "C";
76
+ CharacterCodes2[CharacterCodes2["D"] = 68] = "D";
77
+ CharacterCodes2[CharacterCodes2["E"] = 69] = "E";
78
+ CharacterCodes2[CharacterCodes2["F"] = 70] = "F";
79
+ CharacterCodes2[CharacterCodes2["G"] = 71] = "G";
80
+ CharacterCodes2[CharacterCodes2["H"] = 72] = "H";
81
+ CharacterCodes2[CharacterCodes2["I"] = 73] = "I";
82
+ CharacterCodes2[CharacterCodes2["J"] = 74] = "J";
83
+ CharacterCodes2[CharacterCodes2["K"] = 75] = "K";
84
+ CharacterCodes2[CharacterCodes2["L"] = 76] = "L";
85
+ CharacterCodes2[CharacterCodes2["M"] = 77] = "M";
86
+ CharacterCodes2[CharacterCodes2["N"] = 78] = "N";
87
+ CharacterCodes2[CharacterCodes2["O"] = 79] = "O";
88
+ CharacterCodes2[CharacterCodes2["P"] = 80] = "P";
89
+ CharacterCodes2[CharacterCodes2["Q"] = 81] = "Q";
90
+ CharacterCodes2[CharacterCodes2["R"] = 82] = "R";
91
+ CharacterCodes2[CharacterCodes2["S"] = 83] = "S";
92
+ CharacterCodes2[CharacterCodes2["T"] = 84] = "T";
93
+ CharacterCodes2[CharacterCodes2["U"] = 85] = "U";
94
+ CharacterCodes2[CharacterCodes2["V"] = 86] = "V";
95
+ CharacterCodes2[CharacterCodes2["W"] = 87] = "W";
96
+ CharacterCodes2[CharacterCodes2["X"] = 88] = "X";
97
+ CharacterCodes2[CharacterCodes2["Y"] = 89] = "Y";
98
+ CharacterCodes2[CharacterCodes2["Z"] = 90] = "Z";
99
+ CharacterCodes2[CharacterCodes2["asterisk"] = 42] = "asterisk";
100
+ CharacterCodes2[CharacterCodes2["backslash"] = 92] = "backslash";
101
+ CharacterCodes2[CharacterCodes2["closeBrace"] = 125] = "closeBrace";
102
+ CharacterCodes2[CharacterCodes2["closeBracket"] = 93] = "closeBracket";
103
+ CharacterCodes2[CharacterCodes2["colon"] = 58] = "colon";
104
+ CharacterCodes2[CharacterCodes2["comma"] = 44] = "comma";
105
+ CharacterCodes2[CharacterCodes2["dot"] = 46] = "dot";
106
+ CharacterCodes2[CharacterCodes2["doubleQuote"] = 34] = "doubleQuote";
107
+ CharacterCodes2[CharacterCodes2["minus"] = 45] = "minus";
108
+ CharacterCodes2[CharacterCodes2["openBrace"] = 123] = "openBrace";
109
+ CharacterCodes2[CharacterCodes2["openBracket"] = 91] = "openBracket";
110
+ CharacterCodes2[CharacterCodes2["plus"] = 43] = "plus";
111
+ CharacterCodes2[CharacterCodes2["slash"] = 47] = "slash";
112
+ CharacterCodes2[CharacterCodes2["formFeed"] = 12] = "formFeed";
113
+ CharacterCodes2[CharacterCodes2["tab"] = 9] = "tab";
114
+ })(CharacterCodes || (CharacterCodes = {}));
115
+
116
+ // node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/string-intern.js
117
+ var cachedSpaces = new Array(20).fill(0).map((_, index) => {
118
+ return " ".repeat(index);
119
+ });
120
+ var maxCachedValues = 200;
121
+ var cachedBreakLinesWithSpaces = {
122
+ " ": {
123
+ "\n": new Array(maxCachedValues).fill(0).map((_, index) => {
124
+ return "\n" + " ".repeat(index);
125
+ }),
126
+ "\r": new Array(maxCachedValues).fill(0).map((_, index) => {
127
+ return "\r" + " ".repeat(index);
128
+ }),
129
+ "\r\n": new Array(maxCachedValues).fill(0).map((_, index) => {
130
+ return "\r\n" + " ".repeat(index);
131
+ })
132
+ },
133
+ " ": {
134
+ "\n": new Array(maxCachedValues).fill(0).map((_, index) => {
135
+ return "\n" + " ".repeat(index);
136
+ }),
137
+ "\r": new Array(maxCachedValues).fill(0).map((_, index) => {
138
+ return "\r" + " ".repeat(index);
139
+ }),
140
+ "\r\n": new Array(maxCachedValues).fill(0).map((_, index) => {
141
+ return "\r\n" + " ".repeat(index);
142
+ })
143
+ }
144
+ };
145
+
146
+ // node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/parser.js
147
+ var ParseOptions;
148
+ (function(ParseOptions2) {
149
+ ParseOptions2.DEFAULT = {
150
+ allowTrailingComma: false
151
+ };
152
+ })(ParseOptions || (ParseOptions = {}));
153
+
154
+ // node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/main.js
155
+ var ScanError;
156
+ (function(ScanError2) {
157
+ ScanError2[ScanError2["None"] = 0] = "None";
158
+ ScanError2[ScanError2["UnexpectedEndOfComment"] = 1] = "UnexpectedEndOfComment";
159
+ ScanError2[ScanError2["UnexpectedEndOfString"] = 2] = "UnexpectedEndOfString";
160
+ ScanError2[ScanError2["UnexpectedEndOfNumber"] = 3] = "UnexpectedEndOfNumber";
161
+ ScanError2[ScanError2["InvalidUnicode"] = 4] = "InvalidUnicode";
162
+ ScanError2[ScanError2["InvalidEscapeCharacter"] = 5] = "InvalidEscapeCharacter";
163
+ ScanError2[ScanError2["InvalidCharacter"] = 6] = "InvalidCharacter";
164
+ })(ScanError || (ScanError = {}));
165
+ var SyntaxKind;
166
+ (function(SyntaxKind2) {
167
+ SyntaxKind2[SyntaxKind2["OpenBraceToken"] = 1] = "OpenBraceToken";
168
+ SyntaxKind2[SyntaxKind2["CloseBraceToken"] = 2] = "CloseBraceToken";
169
+ SyntaxKind2[SyntaxKind2["OpenBracketToken"] = 3] = "OpenBracketToken";
170
+ SyntaxKind2[SyntaxKind2["CloseBracketToken"] = 4] = "CloseBracketToken";
171
+ SyntaxKind2[SyntaxKind2["CommaToken"] = 5] = "CommaToken";
172
+ SyntaxKind2[SyntaxKind2["ColonToken"] = 6] = "ColonToken";
173
+ SyntaxKind2[SyntaxKind2["NullKeyword"] = 7] = "NullKeyword";
174
+ SyntaxKind2[SyntaxKind2["TrueKeyword"] = 8] = "TrueKeyword";
175
+ SyntaxKind2[SyntaxKind2["FalseKeyword"] = 9] = "FalseKeyword";
176
+ SyntaxKind2[SyntaxKind2["StringLiteral"] = 10] = "StringLiteral";
177
+ SyntaxKind2[SyntaxKind2["NumericLiteral"] = 11] = "NumericLiteral";
178
+ SyntaxKind2[SyntaxKind2["LineCommentTrivia"] = 12] = "LineCommentTrivia";
179
+ SyntaxKind2[SyntaxKind2["BlockCommentTrivia"] = 13] = "BlockCommentTrivia";
180
+ SyntaxKind2[SyntaxKind2["LineBreakTrivia"] = 14] = "LineBreakTrivia";
181
+ SyntaxKind2[SyntaxKind2["Trivia"] = 15] = "Trivia";
182
+ SyntaxKind2[SyntaxKind2["Unknown"] = 16] = "Unknown";
183
+ SyntaxKind2[SyntaxKind2["EOF"] = 17] = "EOF";
184
+ })(SyntaxKind || (SyntaxKind = {}));
185
+ var ParseErrorCode;
186
+ (function(ParseErrorCode2) {
187
+ ParseErrorCode2[ParseErrorCode2["InvalidSymbol"] = 1] = "InvalidSymbol";
188
+ ParseErrorCode2[ParseErrorCode2["InvalidNumberFormat"] = 2] = "InvalidNumberFormat";
189
+ ParseErrorCode2[ParseErrorCode2["PropertyNameExpected"] = 3] = "PropertyNameExpected";
190
+ ParseErrorCode2[ParseErrorCode2["ValueExpected"] = 4] = "ValueExpected";
191
+ ParseErrorCode2[ParseErrorCode2["ColonExpected"] = 5] = "ColonExpected";
192
+ ParseErrorCode2[ParseErrorCode2["CommaExpected"] = 6] = "CommaExpected";
193
+ ParseErrorCode2[ParseErrorCode2["CloseBraceExpected"] = 7] = "CloseBraceExpected";
194
+ ParseErrorCode2[ParseErrorCode2["CloseBracketExpected"] = 8] = "CloseBracketExpected";
195
+ ParseErrorCode2[ParseErrorCode2["EndOfFileExpected"] = 9] = "EndOfFileExpected";
196
+ ParseErrorCode2[ParseErrorCode2["InvalidCommentToken"] = 10] = "InvalidCommentToken";
197
+ ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfComment"] = 11] = "UnexpectedEndOfComment";
198
+ ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfString"] = 12] = "UnexpectedEndOfString";
199
+ ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfNumber"] = 13] = "UnexpectedEndOfNumber";
200
+ ParseErrorCode2[ParseErrorCode2["InvalidUnicode"] = 14] = "InvalidUnicode";
201
+ ParseErrorCode2[ParseErrorCode2["InvalidEscapeCharacter"] = 15] = "InvalidEscapeCharacter";
202
+ ParseErrorCode2[ParseErrorCode2["InvalidCharacter"] = 16] = "InvalidCharacter";
203
+ })(ParseErrorCode || (ParseErrorCode = {}));
204
+
205
+ // src/core/store.ts
206
+ function writeJsonAtomic(path, value) {
207
+ (0, import_node_fs2.mkdirSync)((0, import_node_path3.dirname)(path), { recursive: true });
208
+ const tmp = `${path}.tmp-${process.pid}-${Date.now()}`;
209
+ (0, import_node_fs2.writeFileSync)(tmp, JSON.stringify(value), "utf8");
210
+ try {
211
+ (0, import_node_fs2.renameSync)(tmp, path);
212
+ } catch {
213
+ (0, import_node_fs2.writeFileSync)(path, JSON.stringify(value), "utf8");
214
+ try {
215
+ (0, import_node_fs2.unlinkSync)(tmp);
216
+ } catch {
217
+ }
218
+ }
219
+ }
220
+
221
+ // src/core/cache.ts
222
+ function touchTerminalHeartbeat() {
223
+ writeJsonAtomic(terminalHeartbeatPath(), { ts: Date.now() });
224
+ }
225
+
226
+ // src/core/webviewPatch.ts
227
+ var import_node_fs3 = require("fs");
228
+ var import_node_os2 = require("os");
229
+ var import_node_path4 = require("path");
230
+ var _MARKER = "__kiliSpinnerLinkPatch";
231
+ var _ANCHORS = [
232
+ {
233
+ version: "2.1.258",
234
+ find: 'function od0($){if(!$)return KH1;if($.mode==="replace")return $.verbs.length>0?$.verbs:KH1;return[...KH1,...$.verbs]}function s$0({size:$=16,permissionMode:J,status:Y,spinnerVerbsConfig:X}){let Q=C2(()=>od0(X),[X]),Z=C2(()=>Math.max(...Q.map((W)=>W.length)),[Q]),[G,q]=J1(0),[z,U]=J1(()=>mi(Q));Z1(()=>{let W=setInterval(()=>{q((F)=>(F+1)%a$0.length)},120);return()=>clearInterval(W)},[]),Vy(()=>{U(mi(Q))},(W)=>{let F=[2000,3000,5000];return W<F.length?F[W]:5000});let H=z;if(Y==="compacting")H="Compacting";let B=td0(H+"...",Z+3);return E("div",{className:gi.container,"data-permission-mode":J,children:[D("span",{"aria-hidden":"true",className:gi.icon,style:{fontSize:`${$}px`},children:a$0[G]}),D("span",{"aria-hidden":"true",className:gi.text,children:B}),D("span",{className:YN.visuallyHidden,children:Y==="compacting"?"Compacting conversation":"Claude is working"})]})}',
235
+ replace: `var ${_MARKER}=new Map();var __kiliLastLog="";var __kiliLastGeom="";function _kiliLog(o){try{var s=JSON.stringify(o);if(s===__kiliLastLog)return;__kiliLastLog=s;console.log("[kili]",o)}catch(e){}}function _kiliParseLink(raw){let i=raw.indexOf("\\u0001");if(i<0)return null;let rest=raw.slice(i+1);let j2=rest.indexOf("\\u0001");return j2<0?{label:raw.slice(0,i),url:rest,logo:null}:{label:raw.slice(0,i),url:rest.slice(0,j2),logo:rest.slice(j2+1)}}function od0($){if(!$)return KH1;if($.mode==="replace")return $.verbs.length>0?$.verbs:KH1;return[...KH1,...$.verbs]}function s$0({size:$=16,permissionMode:J,status:Y,spinnerVerbsConfig:X}){let Q=C2(()=>{${_MARKER}.clear();return od0(X).map((raw)=>{let p=_kiliParseLink(raw);if(p){${_MARKER}.set(p.label,{url:p.url,logo:p.logo});return p.label}return raw})},[X]),Z=C2(()=>Math.max(...Q.map((W)=>W.length)),[Q]),[G,q]=J1(0),[z,U]=J1(()=>mi(Q));Z1(()=>{let W=setInterval(()=>{q((F)=>(F+1)%a$0.length)},120);return()=>clearInterval(W)},[]),Vy(()=>{U(mi(Q))},(W)=>{let F=[2000,3000,5000];return W<F.length?F[W]:5000});let H=z;if(!Q.includes(H))H=Q[0];if(Y==="compacting")H="Compacting";let B=H+"...",K=${_MARKER}.get(H);_kiliLog({labels:Q,width:Z,drawn:H,wasStale:!Q.includes(z),linked:!!K,hasLogo:!!(K&&K.logo)});return E("div",{className:gi.container,style:{overflow:"visible",maxWidth:"none",width:"auto",flexWrap:"nowrap"},"data-permission-mode":J,children:[D("span",{"aria-hidden":"true",className:gi.icon,style:{fontSize:\`\${$}px\`},children:a$0[G]}),K?D("a",{ref:(el)=>{if(!el)return;try{var sel=[],q=el.parentElement;for(var i=0;i<8&&q;i++){var qr=q.getBoundingClientRect();if(qr.height>80)break;var cn=(typeof q.className==="string"?q.className:"").trim();if(cn)sel.push("."+cn.split(/\\s+/).join("."));q=q.parentElement}if(sel.length){var id="__kiliUnclip",st=document.getElementById(id);if(!st){st=document.createElement("style");st.id=id;document.head.appendChild(st)}var css=sel.join(",")+"{overflow:visible!important;max-width:none!important;min-width:0!important;flex-shrink:0!important;text-overflow:clip!important;white-space:nowrap!important;animation:none!important;transition:none!important}";if(st.textContent!==css)st.textContent=css}setTimeout(function(){try{var o=[],n=el;for(var k=0;k<8&&n;k++){var c=getComputedStyle(n),r=n.getBoundingClientRect();o.push(k+":"+n.tagName+" w="+Math.round(r.width)+" h="+Math.round(r.height)+" sw="+n.scrollWidth+" tlen="+((n.textContent||"").length)+" anim="+c.animationName+" ovf="+c.overflow);n=n.parentElement}var g=o.join(" | ");if(g!==__kiliLastGeom){__kiliLastGeom=g;console.log("[kili-geom]",g)}}catch(e){}},50)}catch(e){}},"aria-hidden":"true",className:gi.text,style:{color:"#22c55e",whiteSpace:"nowrap",overflow:"visible",textOverflow:"clip",maxWidth:"none",flexShrink:0,width:"auto",animation:"none",transition:"none"},href:K.url,target:"_blank",rel:"noopener noreferrer",children:[K.logo?D("img",{src:K.logo,alt:"",style:{width:"14px",height:"14px",borderRadius:"3px",objectFit:"cover",verticalAlign:"middle",marginRight:"4px"}}):null,B]}):D("span",{"aria-hidden":"true",className:gi.text,style:{color:"#22c55e",whiteSpace:"nowrap",overflow:"visible",textOverflow:"clip",maxWidth:"none",flexShrink:0,width:"auto",animation:"none",transition:"none"},children:B}),D("span",{className:YN.visuallyHidden,children:Y==="compacting"?"Compacting conversation":"Claude is working"})]})}`
236
+ },
237
+ {
238
+ version: "2.1.251",
239
+ find: 'function ac0($){if(!$)return TV1;if($.mode==="replace")return $.verbs.length>0?$.verbs:TV1;return[...TV1,...$.verbs]}function L30({size:$=16,permissionMode:J,status:Y,spinnerVerbsConfig:X}){let Q=t2(()=>ac0(X),[X]),Z=t2(()=>Math.max(...Q.map((W)=>W.length)),[Q]),[G,q]=Y1(0),[z,U]=Y1(()=>Ki(Q));Z1(()=>{let W=setInterval(()=>{q((F)=>(F+1)%R30.length)},120);return()=>clearInterval(W)},[]),sk(()=>{U(Ki(Q))},(W)=>{let F=[2000,3000,5000];return W<F.length?F[W]:5000});let H=z;if(Y==="compacting")H="Compacting";let B=rc0(H+"...",Z+3);return E("div",{className:Fi.container,"data-permission-mode":J,children:[j("span",{"aria-hidden":"true",className:Fi.icon,style:{fontSize:`${$}px`},children:R30[G]}),j("span",{"aria-hidden":"true",className:Fi.text,children:B}),j("span",{className:aO.visuallyHidden,children:Y==="compacting"?"Compacting conversation":"Claude is working"})]})}',
240
+ replace: `var ${_MARKER}=new Map();var __kiliLastLog="";var __kiliLastGeom="";function _kiliLog(o){try{var s=JSON.stringify(o);if(s===__kiliLastLog)return;__kiliLastLog=s;console.log("[kili]",o)}catch(e){}}function _kiliParseLink(raw){let i=raw.indexOf("\\u0001");if(i<0)return null;let rest=raw.slice(i+1);let j2=rest.indexOf("\\u0001");return j2<0?{label:raw.slice(0,i),url:rest,logo:null}:{label:raw.slice(0,i),url:rest.slice(0,j2),logo:rest.slice(j2+1)}}function ac0($){if(!$)return TV1;if($.mode==="replace")return $.verbs.length>0?$.verbs:TV1;return[...TV1,...$.verbs]}function L30({size:$=16,permissionMode:J,status:Y,spinnerVerbsConfig:X}){let Q=t2(()=>{${_MARKER}.clear();return ac0(X).map((raw)=>{let p=_kiliParseLink(raw);if(p){${_MARKER}.set(p.label,{url:p.url,logo:p.logo});return p.label}return raw})},[X]),Z=t2(()=>Math.max(...Q.map((W)=>W.length)),[Q]),[G,q]=Y1(0),[z,U]=Y1(()=>Ki(Q));Z1(()=>{let W=setInterval(()=>{q((F)=>(F+1)%R30.length)},120);return()=>clearInterval(W)},[]),sk(()=>{U(Ki(Q))},(W)=>{let F=[2000,3000,5000];return W<F.length?F[W]:5000});let H=z;if(!Q.includes(H))H=Q[0];if(Y==="compacting")H="Compacting";let B=H+"...",K=${_MARKER}.get(H);_kiliLog({labels:Q,width:Z,drawn:H,wasStale:!Q.includes(z),linked:!!K,hasLogo:!!(K&&K.logo)});return E("div",{className:Fi.container,style:{overflow:"visible",maxWidth:"none",width:"auto",flexWrap:"nowrap"},"data-permission-mode":J,children:[j("span",{"aria-hidden":"true",className:Fi.icon,style:{fontSize:\`\${$}px\`},children:R30[G]}),K?j("a",{ref:(el)=>{if(!el)return;try{var sel=[],q=el.parentElement;for(var i=0;i<8&&q;i++){var qr=q.getBoundingClientRect();if(qr.height>80)break;var cn=(typeof q.className==="string"?q.className:"").trim();if(cn)sel.push("."+cn.split(/\\s+/).join("."));q=q.parentElement}if(sel.length){var id="__kiliUnclip",st=document.getElementById(id);if(!st){st=document.createElement("style");st.id=id;document.head.appendChild(st)}var css=sel.join(",")+"{overflow:visible!important;max-width:none!important;min-width:0!important;flex-shrink:0!important;text-overflow:clip!important;white-space:nowrap!important;animation:none!important;transition:none!important}";if(st.textContent!==css)st.textContent=css}setTimeout(function(){try{var o=[],n=el;for(var k=0;k<8&&n;k++){var c=getComputedStyle(n),r=n.getBoundingClientRect();o.push(k+":"+n.tagName+" w="+Math.round(r.width)+" h="+Math.round(r.height)+" sw="+n.scrollWidth+" tlen="+((n.textContent||"").length)+" anim="+c.animationName+" ovf="+c.overflow);n=n.parentElement}var g=o.join(" | ");if(g!==__kiliLastGeom){__kiliLastGeom=g;console.log("[kili-geom]",g)}}catch(e){}},50)}catch(e){}},"aria-hidden":"true",className:Fi.text,style:{color:"#22c55e",whiteSpace:"nowrap",overflow:"visible",textOverflow:"clip",maxWidth:"none",flexShrink:0,width:"auto",animation:"none",transition:"none"},href:K.url,target:"_blank",rel:"noopener noreferrer",children:[K.logo?j("img",{src:K.logo,alt:"",style:{width:"14px",height:"14px",borderRadius:"3px",objectFit:"cover",verticalAlign:"middle",marginRight:"4px"}}):null,B]}):j("span",{"aria-hidden":"true",className:Fi.text,style:{color:"#22c55e",whiteSpace:"nowrap",overflow:"visible",textOverflow:"clip",maxWidth:"none",flexShrink:0,width:"auto",animation:"none",transition:"none"},children:B}),j("span",{className:aO.visuallyHidden,children:Y==="compacting"?"Compacting conversation":"Claude is working"})]})}`
241
+ },
242
+ {
243
+ version: "2.1.250",
244
+ find: 'function cc0($){if(!$)return NV1;if($.mode==="replace")return $.verbs.length>0?$.verbs:NV1;return[...NV1,...$.verbs]}function R30({size:$=16,permissionMode:J,status:Y,spinnerVerbsConfig:X}){let Q=o2(()=>cc0(X),[X]),Z=o2(()=>Math.max(...Q.map((W)=>W.length)),[Q]),[G,q]=Y1(0),[z,U]=Y1(()=>Ki(Q));Z1(()=>{let W=setInterval(()=>{q((F)=>(F+1)%w30.length)},120);return()=>clearInterval(W)},[]),rk(()=>{U(Ki(Q))},(W)=>{let F=[2000,3000,5000];return W<F.length?F[W]:5000});let H=z;if(Y==="compacting")H="Compacting";let B=lc0(H+"...",Z+3);return E("div",{className:Fi.container,"data-permission-mode":J,children:[j("span",{"aria-hidden":"true",className:Fi.icon,style:{fontSize:`${$}px`},children:w30[G]}),j("span",{"aria-hidden":"true",className:Fi.text,children:B}),j("span",{className:dO.visuallyHidden,children:Y==="compacting"?"Compacting conversation":"Claude is working"})]})}',
245
+ replace: `var ${_MARKER}=new Map();var __kiliLastLog="";var __kiliLastGeom="";function _kiliLog(o){try{var s=JSON.stringify(o);if(s===__kiliLastLog)return;__kiliLastLog=s;console.log("[kili]",o)}catch(e){}}function _kiliParseLink(raw){let i=raw.indexOf("\\u0001");if(i<0)return null;let rest=raw.slice(i+1);let j2=rest.indexOf("\\u0001");return j2<0?{label:raw.slice(0,i),url:rest,logo:null}:{label:raw.slice(0,i),url:rest.slice(0,j2),logo:rest.slice(j2+1)}}function cc0($){if(!$)return NV1;if($.mode==="replace")return $.verbs.length>0?$.verbs:NV1;return[...NV1,...$.verbs]}function R30({size:$=16,permissionMode:J,status:Y,spinnerVerbsConfig:X}){let Q=o2(()=>{${_MARKER}.clear();return cc0(X).map((raw)=>{let p=_kiliParseLink(raw);if(p){${_MARKER}.set(p.label,{url:p.url,logo:p.logo});return p.label}return raw})},[X]),Z=o2(()=>Math.max(...Q.map((W)=>W.length)),[Q]),[G,q]=Y1(0),[z,U]=Y1(()=>Ki(Q));Z1(()=>{let W=setInterval(()=>{q((F)=>(F+1)%w30.length)},120);return()=>clearInterval(W)},[]),rk(()=>{U(Ki(Q))},(W)=>{let F=[2000,3000,5000];return W<F.length?F[W]:5000});let H=z;if(!Q.includes(H))H=Q[0];if(Y==="compacting")H="Compacting";let B=H+"...",K=${_MARKER}.get(H);_kiliLog({labels:Q,width:Z,drawn:H,wasStale:!Q.includes(z),linked:!!K,hasLogo:!!(K&&K.logo)});return E("div",{className:Fi.container,style:{overflow:"visible",maxWidth:"none",width:"auto",flexWrap:"nowrap"},"data-permission-mode":J,children:[j("span",{"aria-hidden":"true",className:Fi.icon,style:{fontSize:\`\${$}px\`},children:w30[G]}),K?j("a",{ref:(el)=>{if(!el)return;try{var sel=[],q=el.parentElement;for(var i=0;i<8&&q;i++){var qr=q.getBoundingClientRect();if(qr.height>80)break;var cn=(typeof q.className==="string"?q.className:"").trim();if(cn)sel.push("."+cn.split(/\\s+/).join("."));q=q.parentElement}if(sel.length){var id="__kiliUnclip",st=document.getElementById(id);if(!st){st=document.createElement("style");st.id=id;document.head.appendChild(st)}var css=sel.join(",")+"{overflow:visible!important;max-width:none!important;min-width:0!important;flex-shrink:0!important;text-overflow:clip!important;white-space:nowrap!important;animation:none!important;transition:none!important}";if(st.textContent!==css)st.textContent=css}setTimeout(function(){try{var o=[],n=el;for(var k=0;k<8&&n;k++){var c=getComputedStyle(n),r=n.getBoundingClientRect();o.push(k+":"+n.tagName+" w="+Math.round(r.width)+" h="+Math.round(r.height)+" sw="+n.scrollWidth+" tlen="+((n.textContent||"").length)+" anim="+c.animationName+" ovf="+c.overflow);n=n.parentElement}var g=o.join(" | ");if(g!==__kiliLastGeom){__kiliLastGeom=g;console.log("[kili-geom]",g)}}catch(e){}},50)}catch(e){}},"aria-hidden":"true",className:Fi.text,style:{color:"#22c55e",whiteSpace:"nowrap",overflow:"visible",textOverflow:"clip",maxWidth:"none",flexShrink:0,width:"auto",animation:"none",transition:"none"},href:K.url,target:"_blank",rel:"noopener noreferrer",children:[K.logo?j("img",{src:K.logo,alt:"",style:{width:"14px",height:"14px",borderRadius:"3px",objectFit:"cover",verticalAlign:"middle",marginRight:"4px"}}):null,B]}):j("span",{"aria-hidden":"true",className:Fi.text,style:{color:"#22c55e",whiteSpace:"nowrap",overflow:"visible",textOverflow:"clip",maxWidth:"none",flexShrink:0,width:"auto",animation:"none",transition:"none"},children:B}),j("span",{className:dO.visuallyHidden,children:Y==="compacting"?"Compacting conversation":"Claude is working"})]})}`
246
+ },
247
+ {
248
+ version: "2.1.247",
249
+ find: 'function Ec0($){if(!$)return RV1;if($.mode==="replace")return $.verbs.length>0?$.verbs:RV1;return[...RV1,...$.verbs]}function w30({size:$=16,permissionMode:J,status:Y,spinnerVerbsConfig:X}){let Q=o2(()=>Ec0(X),[X]),Z=o2(()=>Math.max(...Q.map((W)=>W.length)),[Q]),[G,q]=Y1(0),[z,U]=Y1(()=>Fi(Q));Z1(()=>{let W=setInterval(()=>{q((F)=>(F+1)%M30.length)},120);return()=>clearInterval(W)},[]),rk(()=>{U(Fi(Q))},(W)=>{let F=[2000,3000,5000];return W<F.length?F[W]:5000});let H=z;if(Y==="compacting")H="Compacting";let B=Ic0(H+"...",Z+3);return E("div",{className:Wi.container,"data-permission-mode":J,children:[j("span",{"aria-hidden":"true",className:Wi.icon,style:{fontSize:`${$}px`},children:M30[G]}),j("span",{"aria-hidden":"true",className:Wi.text,children:B}),j("span",{className:dO.visuallyHidden,children:Y==="compacting"?"Compacting conversation":"Claude is working"})]})}',
250
+ replace: `var ${_MARKER}=new Map();var __kiliLastLog="";var __kiliLastGeom="";function _kiliLog(o){try{var s=JSON.stringify(o);if(s===__kiliLastLog)return;__kiliLastLog=s;console.log("[kili]",o)}catch(e){}}function _kiliParseLink(raw){let i=raw.indexOf("\\u0001");if(i<0)return null;let rest=raw.slice(i+1);let j2=rest.indexOf("\\u0001");return j2<0?{label:raw.slice(0,i),url:rest,logo:null}:{label:raw.slice(0,i),url:rest.slice(0,j2),logo:rest.slice(j2+1)}}function Ec0($){if(!$)return RV1;if($.mode==="replace")return $.verbs.length>0?$.verbs:RV1;return[...RV1,...$.verbs]}function w30({size:$=16,permissionMode:J,status:Y,spinnerVerbsConfig:X}){let Q=o2(()=>{${_MARKER}.clear();return Ec0(X).map((raw)=>{let p=_kiliParseLink(raw);if(p){${_MARKER}.set(p.label,{url:p.url,logo:p.logo});return p.label}return raw})},[X]),Z=o2(()=>Math.max(...Q.map((W)=>W.length)),[Q]),[G,q]=Y1(0),[z,U]=Y1(()=>Fi(Q));Z1(()=>{let W=setInterval(()=>{q((F)=>(F+1)%M30.length)},120);return()=>clearInterval(W)},[]),rk(()=>{U(Fi(Q))},(W)=>{let F=[2000,3000,5000];return W<F.length?F[W]:5000});let H=z;if(!Q.includes(H))H=Q[0];if(Y==="compacting")H="Compacting";let B=H+"...",K=${_MARKER}.get(H);_kiliLog({labels:Q,width:Z,drawn:H,wasStale:!Q.includes(z),linked:!!K,hasLogo:!!(K&&K.logo)});return E("div",{className:Wi.container,style:{overflow:"visible",maxWidth:"none",width:"auto",flexWrap:"nowrap"},"data-permission-mode":J,children:[j("span",{"aria-hidden":"true",className:Wi.icon,style:{fontSize:\`\${$}px\`},children:M30[G]}),K?j("a",{ref:(el)=>{if(!el)return;try{var sel=[],q=el.parentElement;for(var i=0;i<8&&q;i++){var qr=q.getBoundingClientRect();if(qr.height>80)break;var cn=(typeof q.className==="string"?q.className:"").trim();if(cn)sel.push("."+cn.split(/\\s+/).join("."));q=q.parentElement}if(sel.length){var id="__kiliUnclip",st=document.getElementById(id);if(!st){st=document.createElement("style");st.id=id;document.head.appendChild(st)}var css=sel.join(",")+"{overflow:visible!important;max-width:none!important;min-width:0!important;flex-shrink:0!important;text-overflow:clip!important;white-space:nowrap!important;animation:none!important;transition:none!important}";if(st.textContent!==css)st.textContent=css}setTimeout(function(){try{var o=[],n=el;for(var k=0;k<8&&n;k++){var c=getComputedStyle(n),r=n.getBoundingClientRect();o.push(k+":"+n.tagName+" w="+Math.round(r.width)+" h="+Math.round(r.height)+" sw="+n.scrollWidth+" tlen="+((n.textContent||"").length)+" anim="+c.animationName+" ovf="+c.overflow);n=n.parentElement}var g=o.join(" | ");if(g!==__kiliLastGeom){__kiliLastGeom=g;console.log("[kili-geom]",g)}}catch(e){}},50)}catch(e){}},"aria-hidden":"true",className:Wi.text,style:{color:"#22c55e",whiteSpace:"nowrap",overflow:"visible",textOverflow:"clip",maxWidth:"none",flexShrink:0,width:"auto",animation:"none",transition:"none"},href:K.url,target:"_blank",rel:"noopener noreferrer",children:[K.logo?j("img",{src:K.logo,alt:"",style:{width:"14px",height:"14px",borderRadius:"3px",objectFit:"cover",verticalAlign:"middle",marginRight:"4px"}}):null,B]}):j("span",{"aria-hidden":"true",className:Wi.text,style:{color:"#22c55e",whiteSpace:"nowrap",overflow:"visible",textOverflow:"clip",maxWidth:"none",flexShrink:0,width:"auto",animation:"none",transition:"none"},children:B}),j("span",{className:dO.visuallyHidden,children:Y==="compacting"?"Compacting conversation":"Claude is working"})]})}`
251
+ },
252
+ {
253
+ version: "2.1.246",
254
+ find: 'function Tc0($){if(!$)return RV1;if($.mode==="replace")return $.verbs.length>0?$.verbs:RV1;return[...RV1,...$.verbs]}function _30({size:$=16,permissionMode:J,status:Y,spinnerVerbsConfig:X}){let Q=i2(()=>Tc0(X),[X]),Z=i2(()=>Math.max(...Q.map((W)=>W.length)),[Q]),[G,q]=Y1(0),[z,U]=Y1(()=>Fi(Q));Z1(()=>{let W=setInterval(()=>{q((F)=>(F+1)%P30.length)},120);return()=>clearInterval(W)},[]),rk(()=>{U(Fi(Q))},(W)=>{let F=[2000,3000,5000];return W<F.length?F[W]:5000});let H=z;if(Y==="compacting")H="Compacting";let B=Ec0(H+"...",Z+3);return E("div",{className:Wi.container,"data-permission-mode":J,children:[j("span",{"aria-hidden":"true",className:Wi.icon,style:{fontSize:`${$}px`},children:P30[G]}),j("span",{"aria-hidden":"true",className:Wi.text,children:B}),j("span",{className:dO.visuallyHidden,children:Y==="compacting"?"Compacting conversation":"Claude is working"})]})}',
255
+ replace: `var ${_MARKER}=new Map();var __kiliLastLog="";var __kiliLastGeom="";function _kiliLog(o){try{var s=JSON.stringify(o);if(s===__kiliLastLog)return;__kiliLastLog=s;console.log("[kili]",o)}catch(e){}}function _kiliParseLink(raw){let i=raw.indexOf("\\u0001");if(i<0)return null;let rest=raw.slice(i+1);let j2=rest.indexOf("\\u0001");return j2<0?{label:raw.slice(0,i),url:rest,logo:null}:{label:raw.slice(0,i),url:rest.slice(0,j2),logo:rest.slice(j2+1)}}function Tc0($){if(!$)return RV1;if($.mode==="replace")return $.verbs.length>0?$.verbs:RV1;return[...RV1,...$.verbs]}function _30({size:$=16,permissionMode:J,status:Y,spinnerVerbsConfig:X}){let Q=i2(()=>{${_MARKER}.clear();return Tc0(X).map((raw)=>{let p=_kiliParseLink(raw);if(p){${_MARKER}.set(p.label,{url:p.url,logo:p.logo});return p.label}return raw})},[X]),Z=i2(()=>Math.max(...Q.map((W)=>W.length)),[Q]),[G,q]=Y1(0),[z,U]=Y1(()=>Fi(Q));Z1(()=>{let W=setInterval(()=>{q((F)=>(F+1)%P30.length)},120);return()=>clearInterval(W)},[]),rk(()=>{U(Fi(Q))},(W)=>{let F=[2000,3000,5000];return W<F.length?F[W]:5000});let H=z;if(!Q.includes(H))H=Q[0];if(Y==="compacting")H="Compacting";let B=H+"...",K=${_MARKER}.get(H);_kiliLog({labels:Q,width:Z,drawn:H,wasStale:!Q.includes(z),linked:!!K,hasLogo:!!(K&&K.logo)});return E("div",{className:Wi.container,style:{overflow:"visible",maxWidth:"none",width:"auto",flexWrap:"nowrap"},"data-permission-mode":J,children:[j("span",{"aria-hidden":"true",className:Wi.icon,style:{fontSize:\`\${$}px\`},children:P30[G]}),K?j("a",{ref:(el)=>{if(!el)return;try{var sel=[],q=el.parentElement;for(var i=0;i<8&&q;i++){var qr=q.getBoundingClientRect();if(qr.height>80)break;var cn=(typeof q.className==="string"?q.className:"").trim();if(cn)sel.push("."+cn.split(/\\s+/).join("."));q=q.parentElement}if(sel.length){var id="__kiliUnclip",st=document.getElementById(id);if(!st){st=document.createElement("style");st.id=id;document.head.appendChild(st)}var css=sel.join(",")+"{overflow:visible!important;max-width:none!important;min-width:0!important;flex-shrink:0!important;text-overflow:clip!important;white-space:nowrap!important;animation:none!important;transition:none!important}";if(st.textContent!==css)st.textContent=css}setTimeout(function(){try{var o=[],n=el;for(var k=0;k<8&&n;k++){var c=getComputedStyle(n),r=n.getBoundingClientRect();o.push(k+":"+n.tagName+" w="+Math.round(r.width)+" h="+Math.round(r.height)+" sw="+n.scrollWidth+" tlen="+((n.textContent||"").length)+" anim="+c.animationName+" ovf="+c.overflow);n=n.parentElement}var g=o.join(" | ");if(g!==__kiliLastGeom){__kiliLastGeom=g;console.log("[kili-geom]",g)}}catch(e){}},50)}catch(e){}},"aria-hidden":"true",className:Wi.text,style:{color:"#22c55e",whiteSpace:"nowrap",overflow:"visible",textOverflow:"clip",maxWidth:"none",flexShrink:0,width:"auto",animation:"none",transition:"none"},href:K.url,target:"_blank",rel:"noopener noreferrer",children:[K.logo?j("img",{src:K.logo,alt:"",style:{width:"14px",height:"14px",borderRadius:"3px",objectFit:"cover",verticalAlign:"middle",marginRight:"4px"}}):null,B]}):j("span",{"aria-hidden":"true",className:Wi.text,style:{color:"#22c55e",whiteSpace:"nowrap",overflow:"visible",textOverflow:"clip",maxWidth:"none",flexShrink:0,width:"auto",animation:"none",transition:"none"},children:B}),j("span",{className:dO.visuallyHidden,children:Y==="compacting"?"Compacting conversation":"Claude is working"})]})}`
256
+ },
257
+ {
258
+ version: "2.1.245",
259
+ find: 'function Lc0($){if(!$)return wV1;if($.mode==="replace")return $.verbs.length>0?$.verbs:wV1;return[...wV1,...$.verbs]}function M30({size:$=16,permissionMode:J,status:Y,spinnerVerbsConfig:X}){let Q=i2(()=>Lc0(X),[X]),Z=i2(()=>Math.max(...Q.map((W)=>W.length)),[Q]),[G,q]=Y1(0),[z,U]=Y1(()=>Bi(Q));Z1(()=>{let W=setInterval(()=>{q((F)=>(F+1)%j30.length)},120);return()=>clearInterval(W)},[]),dk(()=>{U(Bi(Q))},(W)=>{let F=[2000,3000,5000];return W<F.length?F[W]:5000});let H=z;if(Y==="compacting")H="Compacting";let B=Tc0(H+"...",Z+3);return E("div",{className:Hi.container,"data-permission-mode":J,children:[j("span",{"aria-hidden":"true",className:Hi.icon,style:{fontSize:`${$}px`},children:j30[G]}),j("span",{"aria-hidden":"true",className:Hi.text,children:B}),j("span",{className:lO.visuallyHidden,children:Y==="compacting"?"Compacting conversation":"Claude is working"})]})}',
260
+ replace: `var ${_MARKER}=new Map();var __kiliLastLog="";var __kiliLastGeom="";function _kiliLog(o){try{var s=JSON.stringify(o);if(s===__kiliLastLog)return;__kiliLastLog=s;console.log("[kili]",o)}catch(e){}}function _kiliParseLink(raw){let i=raw.indexOf("\\u0001");if(i<0)return null;let rest=raw.slice(i+1);let j2=rest.indexOf("\\u0001");return j2<0?{label:raw.slice(0,i),url:rest,logo:null}:{label:raw.slice(0,i),url:rest.slice(0,j2),logo:rest.slice(j2+1)}}function Lc0($){if(!$)return wV1;if($.mode==="replace")return $.verbs.length>0?$.verbs:wV1;return[...wV1,...$.verbs]}function M30({size:$=16,permissionMode:J,status:Y,spinnerVerbsConfig:X}){let Q=i2(()=>{${_MARKER}.clear();return Lc0(X).map((raw)=>{let p=_kiliParseLink(raw);if(p){${_MARKER}.set(p.label,{url:p.url,logo:p.logo});return p.label}return raw})},[X]),Z=i2(()=>Math.max(...Q.map((W)=>W.length)),[Q]),[G,q]=Y1(0),[z,U]=Y1(()=>Bi(Q));Z1(()=>{let W=setInterval(()=>{q((F)=>(F+1)%j30.length)},120);return()=>clearInterval(W)},[]),dk(()=>{U(Bi(Q))},(W)=>{let F=[2000,3000,5000];return W<F.length?F[W]:5000});let H=z;if(!Q.includes(H))H=Q[0];if(Y==="compacting")H="Compacting";let B=H+"...",K=${_MARKER}.get(H);_kiliLog({labels:Q,width:Z,drawn:H,wasStale:!Q.includes(z),linked:!!K,hasLogo:!!(K&&K.logo)});return E("div",{className:Hi.container,style:{overflow:"visible",maxWidth:"none",width:"auto",flexWrap:"nowrap"},"data-permission-mode":J,children:[j("span",{"aria-hidden":"true",className:Hi.icon,style:{fontSize:\`\${$}px\`},children:j30[G]}),K?j("a",{ref:(el)=>{if(!el)return;try{var sel=[],q=el.parentElement;for(var i=0;i<8&&q;i++){var qr=q.getBoundingClientRect();if(qr.height>80)break;var cn=(typeof q.className==="string"?q.className:"").trim();if(cn)sel.push("."+cn.split(/\\s+/).join("."));q=q.parentElement}if(sel.length){var id="__kiliUnclip",st=document.getElementById(id);if(!st){st=document.createElement("style");st.id=id;document.head.appendChild(st)}var css=sel.join(",")+"{overflow:visible!important;max-width:none!important;min-width:0!important;flex-shrink:0!important;text-overflow:clip!important;white-space:nowrap!important;animation:none!important;transition:none!important}";if(st.textContent!==css)st.textContent=css}setTimeout(function(){try{var o=[],n=el;for(var k=0;k<8&&n;k++){var c=getComputedStyle(n),r=n.getBoundingClientRect();o.push(k+":"+n.tagName+" w="+Math.round(r.width)+" h="+Math.round(r.height)+" sw="+n.scrollWidth+" tlen="+((n.textContent||"").length)+" anim="+c.animationName+" ovf="+c.overflow);n=n.parentElement}var g=o.join(" | ");if(g!==__kiliLastGeom){__kiliLastGeom=g;console.log("[kili-geom]",g)}}catch(e){}},50)}catch(e){}},"aria-hidden":"true",className:Hi.text,style:{color:"#22c55e",whiteSpace:"nowrap",overflow:"visible",textOverflow:"clip",maxWidth:"none",flexShrink:0,width:"auto",animation:"none",transition:"none"},href:K.url,target:"_blank",rel:"noopener noreferrer",children:[K.logo?j("img",{src:K.logo,alt:"",style:{width:"14px",height:"14px",borderRadius:"3px",objectFit:"cover",verticalAlign:"middle",marginRight:"4px"}}):null,B]}):j("span",{"aria-hidden":"true",className:Hi.text,style:{color:"#22c55e",whiteSpace:"nowrap",overflow:"visible",textOverflow:"clip",maxWidth:"none",flexShrink:0,width:"auto",animation:"none",transition:"none"},children:B}),j("span",{className:lO.visuallyHidden,children:Y==="compacting"?"Compacting conversation":"Claude is working"})]})}`
261
+ },
262
+ {
263
+ version: "2.1.232",
264
+ find: 'function cBt(e){if(!e)return r0e;if(e.mode==="replace")return e.verbs.length>0?e.verbs:r0e;return[...r0e,...e.verbs]}function Mot({size:e=16,permissionMode:t,status:i,spinnerVerbsConfig:n}){let o=Jn(()=>cBt(n),[n]),r=Jn(()=>Math.max(...o.map((p)=>p.length)),[o]),[s,a]=ne(0),[l,c]=ne(()=>LG(o));se(()=>{let p=setInterval(()=>{a((f)=>(f+1)%Rot.length)},120);return()=>clearInterval(p)},[]),o0e(()=>{c(LG(o))},(p)=>{let f=[2000,3000,5000];return p<f.length?f[p]:5000});let u=l;if(i==="compacting")u="Compacting";let h=dBt(u+"...",r+3);return I("div",{className:kG.container,"data-permission-mode":t,children:[b("span",{className:kG.icon,style:{fontSize:`${e}px`},children:Rot[s]}),b("span",{className:kG.text,children:h})]})}',
265
+ replace: `var ${_MARKER}=new Map();var __kiliLastLog="";var __kiliLastGeom="";function _kiliLog(o){try{var s=JSON.stringify(o);if(s===__kiliLastLog)return;__kiliLastLog=s;console.log("[kili]",o)}catch(e){}}function _kiliParseLink(raw){let i=raw.indexOf("\\u0001");if(i<0)return null;let rest=raw.slice(i+1);let j2=rest.indexOf("\\u0001");return j2<0?{label:raw.slice(0,i),url:rest,logo:null}:{label:raw.slice(0,i),url:rest.slice(0,j2),logo:rest.slice(j2+1)}}function cBt(e){if(!e)return r0e;if(e.mode==="replace")return e.verbs.length>0?e.verbs:r0e;return[...r0e,...e.verbs]}function Mot({size:e=16,permissionMode:t,status:i,spinnerVerbsConfig:n}){let o=Jn(()=>{${_MARKER}.clear();return cBt(n).map((raw)=>{let p=_kiliParseLink(raw);if(p){${_MARKER}.set(p.label,{url:p.url,logo:p.logo});return p.label}return raw})},[n]),r=Jn(()=>Math.max(...o.map((p)=>p.length)),[o]),[s,a]=ne(0),[l,c]=ne(()=>LG(o));se(()=>{let p=setInterval(()=>{a((f)=>(f+1)%Rot.length)},120);return()=>clearInterval(p)},[]),o0e(()=>{c(LG(o))},(p)=>{let f=[2000,3000,5000];return p<f.length?f[p]:5000});let u=l;if(!o.includes(u))u=o[0];if(i==="compacting")u="Compacting";let h=u+"...",K=${_MARKER}.get(u);_kiliLog({labels:o,width:r,drawn:u,wasStale:!o.includes(l),linked:!!K,hasLogo:!!(K&&K.logo)});return I("div",{className:kG.container,style:{overflow:"visible",maxWidth:"none",width:"auto",flexWrap:"nowrap"},"data-permission-mode":t,children:[b("span",{className:kG.icon,style:{fontSize:\`\${e}px\`},children:Rot[s]}),K?b("a",{ref:(el)=>{if(!el)return;try{var sel=[],q=el.parentElement;for(var i=0;i<8&&q;i++){var qr=q.getBoundingClientRect();if(qr.height>80)break;var cn=(typeof q.className==="string"?q.className:"").trim();if(cn)sel.push("."+cn.split(/\\s+/).join("."));q=q.parentElement}if(sel.length){var id="__kiliUnclip",st=document.getElementById(id);if(!st){st=document.createElement("style");st.id=id;document.head.appendChild(st)}var css=sel.join(",")+"{overflow:visible!important;max-width:none!important;min-width:0!important;flex-shrink:0!important;text-overflow:clip!important;white-space:nowrap!important;animation:none!important;transition:none!important}";if(st.textContent!==css)st.textContent=css}setTimeout(function(){try{var o=[],n=el;for(var k=0;k<8&&n;k++){var c=getComputedStyle(n),r=n.getBoundingClientRect();o.push(k+":"+n.tagName+" w="+Math.round(r.width)+" h="+Math.round(r.height)+" sw="+n.scrollWidth+" tlen="+((n.textContent||"").length)+" anim="+c.animationName+" ovf="+c.overflow);n=n.parentElement}var g=o.join(" | ");if(g!==__kiliLastGeom){__kiliLastGeom=g;console.log("[kili-geom]",g)}}catch(e){}},50)}catch(e){}},className:kG.text,style:{color:"#22c55e",whiteSpace:"nowrap",overflow:"visible",textOverflow:"clip",maxWidth:"none",flexShrink:0,width:"auto",animation:"none",transition:"none"},href:K.url,target:"_blank",rel:"noopener noreferrer",children:[K.logo?b("img",{src:K.logo,alt:"",style:{width:"14px",height:"14px",borderRadius:"3px",objectFit:"cover",verticalAlign:"middle",marginRight:"4px"}}):null,h]}):b("span",{className:kG.text,style:{color:"#22c55e",whiteSpace:"nowrap",overflow:"visible",textOverflow:"clip",maxWidth:"none",flexShrink:0,width:"auto",animation:"none",transition:"none"},children:h})]})}`
266
+ }
267
+ ];
268
+ var _LINK_SEP = String.fromCharCode(1);
269
+ var _PATCH_VERSION = "9";
270
+ var _VERSION_TAG = `${_MARKER}_v${_PATCH_VERSION}`;
271
+
272
+ // src/core/copy.ts
273
+ var _ESC = String.fromCharCode(27);
274
+ var _DIM = `${_ESC}[2m`;
275
+ var _RESET = `${_ESC}[0m`;
276
+ function dim(text) {
277
+ return `${_DIM}${text}${_RESET}`;
278
+ }
279
+
280
+ // src/statusline.ts
281
+ function main() {
282
+ touchTerminalHeartbeat();
283
+ process.stdout.write(dim("esc to interrupt \xB7 ? for shortcuts"));
284
+ }
285
+ main();
286
+ //# sourceMappingURL=statusline.js.map