koneck 2.67.0 → 2.69.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.
Files changed (43) hide show
  1. package/dist/cycle.d.ts +107 -0
  2. package/dist/cycle.d.ts.map +1 -0
  3. package/dist/cycle.js +136 -0
  4. package/dist/cycle.js.map +1 -0
  5. package/dist/engine.d.ts.map +1 -1
  6. package/dist/engine.js +63 -0
  7. package/dist/engine.js.map +1 -1
  8. package/dist/ink-chat.d.ts.map +1 -1
  9. package/dist/ink-chat.js +98 -9
  10. package/dist/ink-chat.js.map +1 -1
  11. package/dist/mention-resolve.d.ts +64 -0
  12. package/dist/mention-resolve.d.ts.map +1 -0
  13. package/dist/mention-resolve.js +139 -0
  14. package/dist/mention-resolve.js.map +1 -0
  15. package/dist/types.d.ts +11 -0
  16. package/dist/types.d.ts.map +1 -1
  17. package/dist/web/api.d.ts.map +1 -1
  18. package/dist/web/api.js +63 -0
  19. package/dist/web/api.js.map +1 -1
  20. package/dist/web/events.d.ts +13 -0
  21. package/dist/web/events.d.ts.map +1 -1
  22. package/dist/web/events.js.map +1 -1
  23. package/dist/web/mention-signals.d.ts +41 -0
  24. package/dist/web/mention-signals.d.ts.map +1 -0
  25. package/dist/web/mention-signals.js +117 -0
  26. package/dist/web/mention-signals.js.map +1 -0
  27. package/dist/web/mention.d.ts +121 -0
  28. package/dist/web/mention.d.ts.map +1 -0
  29. package/dist/web/mention.js +211 -0
  30. package/dist/web/mention.js.map +1 -0
  31. package/dist/web/sessions.d.ts.map +1 -1
  32. package/dist/web/sessions.js +25 -2
  33. package/dist/web/sessions.js.map +1 -1
  34. package/dist/web/ui-client.d.ts.map +1 -1
  35. package/dist/web/ui-client.js +270 -1
  36. package/dist/web/ui-client.js.map +1 -1
  37. package/dist/web/ui-css.d.ts.map +1 -1
  38. package/dist/web/ui-css.js +39 -0
  39. package/dist/web/ui-css.js.map +1 -1
  40. package/dist/web/ui.d.ts.map +1 -1
  41. package/dist/web/ui.js +9 -0
  42. package/dist/web/ui.js.map +1 -1
  43. package/package.json +1 -1
@@ -382,6 +382,25 @@ function onEvent(e) {
382
382
  const box = el('div', 'msg');
383
383
  box.appendChild(el('div', 'who', e.images ? 'you · ' + e.images + ' image(s)' : 'you'));
384
384
  box.appendChild(el('div', 'you', e.text));
385
+ /*
386
+ * What an @ actually attached, under the message.
387
+ *
388
+ * The sentence stays the sentence — nobody wants to scroll past eight hundred lines of their
389
+ * own attachment to find what they asked. But the attachment is a real spend and is stated,
390
+ * including the ones that failed, because a reference that quietly resolved to nothing is how
391
+ * you end up asking why the model ignored the file you gave it.
392
+ */
393
+ if (e.refs && e.refs.length) {
394
+ const row = el('div', 'urefs');
395
+ e.refs.forEach((r) => {
396
+ const bad = r.kind !== 'file' && r.kind !== 'dir';
397
+ row.appendChild(el('span', bad ? 'uref bad' : 'uref',
398
+ bad ? '@' + r.ref + ' — ' + (r.note || 'not attached')
399
+ : '@' + r.ref + (r.kind === 'dir' ? '/ · ' + r.lines + ' entries'
400
+ : ' · ' + r.lines + ' lines')));
401
+ });
402
+ box.appendChild(row);
403
+ }
385
404
  add(box);
386
405
  state.replyEl = null; state.thinkEl = null;
387
406
  setBusy(true, 'thinking');
@@ -2357,6 +2376,7 @@ async function newSession() {
2357
2376
 
2358
2377
  async function send(text) {
2359
2378
  const ta = $('ta');
2379
+ closeMention();
2360
2380
  text = text || ta.value.trim();
2361
2381
  if (!text || state.busy) return;
2362
2382
  // A slash command is not a prompt. It opens the thing that does the same job.
@@ -2380,6 +2400,235 @@ async function send(text) {
2380
2400
  } catch (e) { add(el('div', 'err', e.message)); setBusy(false); }
2381
2401
  }
2382
2402
 
2403
+ /* ── referencing a file with @ ──────────────────────────────── */
2404
+ /*
2405
+ * The picker, and why it ranks rather than lists.
2406
+ *
2407
+ * Every editor has @. What they mostly do with it is fuzzy-match filenames, which answers "which
2408
+ * paths contain these letters" and not "which file did you mean" — and with four thousand paths in
2409
+ * a project those are different questions. So the server ranks by what this project is actually
2410
+ * doing: files git has touched, files this session has already handled, files the ledger holds
2411
+ * findings about. The reason is shown in the row, because a ranking that will not say why it ranked
2412
+ * something is one you cannot argue with.
2413
+ *
2414
+ * And every row carries what attaching it will cost. That is the part that matters most here: an @
2415
+ * puts the file in the prompt, and a picker that hides the price of what it is about to spend is
2416
+ * how somebody ends up wondering where their context window went.
2417
+ */
2418
+ const mention = {
2419
+ open: false,
2420
+ items: [],
2421
+ sel: 0,
2422
+ /* Where the @ sits in the textarea, so the replacement knows what to replace. */
2423
+ start: -1,
2424
+ query: '',
2425
+ /* Requests can land out of order over a slow link; only the newest answer may draw. */
2426
+ seq: 0,
2427
+ timer: null,
2428
+ };
2429
+
2430
+ /*
2431
+ * Where an @ reference being typed begins, or null.
2432
+ *
2433
+ * The same rule as the terminal's: an @ only opens a reference at a word boundary, so an email
2434
+ * address or a decorator in pasted code does not trigger it, and a space closes it because the
2435
+ * paths offered here never contain one.
2436
+ */
2437
+ function activeRef(draft, caret) {
2438
+ const upto = draft.slice(0, caret);
2439
+ const at = upto.lastIndexOf('@');
2440
+ if (at === -1) return null;
2441
+ const before = at === 0 ? '' : upto[at - 1];
2442
+ if (before !== '' && !/\s/.test(before)) return null;
2443
+ const query = upto.slice(at + 1);
2444
+ if (/\s/.test(query)) return null;
2445
+ return { start: at, query: query };
2446
+ }
2447
+
2448
+ function closeMention() {
2449
+ if (mention.timer) { clearTimeout(mention.timer); mention.timer = null; }
2450
+ mention.open = false;
2451
+ mention.items = [];
2452
+ mention.start = -1;
2453
+ $('mention').hidden = true;
2454
+ }
2455
+
2456
+ /*
2457
+ * The rows.
2458
+ *
2459
+ * The filename is emboldened and the directory left plain, because the eye is looking for the name
2460
+ * and the folder is only there to tell two of them apart. Built with el() and textContent — these
2461
+ * are paths from disk, and a filename is as capable of holding a bracket as anything else is.
2462
+ */
2463
+ function drawMention() {
2464
+ const box = $('mention');
2465
+ box.textContent = '';
2466
+
2467
+ const head = el('div', 'mhead');
2468
+ head.appendChild(el('span', null, mention.query ? 'files matching ' + mention.query : 'what you are working on'));
2469
+ head.appendChild(el('span', 'mgap'));
2470
+ head.appendChild(el('span', 'mkeys', '↑↓ move · ⏎ or tab insert · esc close'));
2471
+ box.appendChild(head);
2472
+
2473
+ if (mention.items.length === 0) {
2474
+ box.appendChild(el('div', 'mnone', mention.query
2475
+ ? 'Nothing in this project matches ' + mention.query + '.'
2476
+ : 'Nothing recent to offer yet — type to search the project.'));
2477
+ box.hidden = false;
2478
+ return;
2479
+ }
2480
+
2481
+ mention.items.forEach((item, i) => {
2482
+ const row = el('div', 'mrow' + (i === mention.sel ? ' on' : ''));
2483
+
2484
+ /*
2485
+ * The path, with the name picked out.
2486
+ *
2487
+ * direction:rtl in the stylesheet keeps the filename visible when a deep path has to be
2488
+ * truncated — a left-truncated path is readable and a right-truncated one is not, since
2489
+ * everything that distinguishes it is at the end.
2490
+ */
2491
+ const p = el('div', 'mp');
2492
+ const cut = item.path.lastIndexOf('/');
2493
+ if (cut > -1) p.appendChild(document.createTextNode(item.path.slice(0, cut + 1)));
2494
+ const name = el('b', null, cut > -1 ? item.path.slice(cut + 1) : item.path);
2495
+ p.appendChild(name);
2496
+ row.appendChild(p);
2497
+
2498
+ if (item.because && item.because.length) {
2499
+ const why = el('div', 'mwhy');
2500
+ item.because.forEach((reason, n) => {
2501
+ /*
2502
+ * The wording comes from the server.
2503
+ *
2504
+ * A row is a row and not a sentence, so "used in this session" is shown as "in session" —
2505
+ * but the shortening happens once, server-side, and the terminal's picker uses the same
2506
+ * function. Two copies of the same phrasing is how two surfaces end up describing the same
2507
+ * signal differently.
2508
+ */
2509
+ const cls = reason === 'used in this session' ? 's'
2510
+ : reason === 'recently changed' ? 'g' : '';
2511
+ why.appendChild(el('span', cls || null, (item.shorts && item.shorts[n]) || reason));
2512
+ });
2513
+ row.appendChild(why);
2514
+ }
2515
+
2516
+ row.appendChild(item.kind === 'dir'
2517
+ ? el('div', 'mdir', 'folder · listing')
2518
+ : el('div', 'mcost', item.tokens === null ? '' : approxTokens(item.tokens)));
2519
+
2520
+ row.onmousedown = (ev) => { ev.preventDefault(); pickMention(i); };
2521
+ box.appendChild(row);
2522
+ });
2523
+ box.hidden = false;
2524
+
2525
+ const chosen = box.children[mention.sel + 1];
2526
+ if (chosen && chosen.scrollIntoView) chosen.scrollIntoView({ block: 'nearest' });
2527
+ }
2528
+
2529
+ /* Approximate, and never dressed up as exact — the tilde is doing real work. */
2530
+ function approxTokens(n) {
2531
+ if (n < 1000) return '~' + n + ' tok';
2532
+ return '~' + (Math.round(n / 100) / 10) + 'k tok';
2533
+ }
2534
+
2535
+ /*
2536
+ * Asks the server for candidates.
2537
+ *
2538
+ * Debounced, and the answer is discarded unless it is the newest one asked for: typing four
2539
+ * characters quickly fires four requests, and without the sequence check the second can draw over
2540
+ * the fourth and leave the list one keystroke behind the box.
2541
+ */
2542
+ function refreshMention(fresh) {
2543
+ const mine = ++mention.seq;
2544
+ const q = mention.query;
2545
+ const url = '/api/mention?q=' + encodeURIComponent(q)
2546
+ + (state.session ? '&session=' + encodeURIComponent(state.session) : '')
2547
+ + (fresh ? '&fresh=1' : '');
2548
+ api(url).then((out) => {
2549
+ if (mine !== mention.seq || !mention.open) return;
2550
+ mention.items = out.candidates || [];
2551
+ if (mention.sel >= mention.items.length) mention.sel = 0;
2552
+ drawMention();
2553
+ }).catch(() => {
2554
+ if (mine !== mention.seq || !mention.open) return;
2555
+ mention.items = [];
2556
+ drawMention();
2557
+ });
2558
+ }
2559
+
2560
+ /*
2561
+ * Replaces the half-typed reference with the chosen path.
2562
+ *
2563
+ * A trailing space, because the reference is finished and the next thing typed is a sentence — and
2564
+ * without it the picker reopens on the path it just inserted.
2565
+ */
2566
+ function pickMention(i) {
2567
+ const item = mention.items[i];
2568
+ if (!item) return;
2569
+ const ta = $('ta');
2570
+ const value = ta.value;
2571
+ const end = mention.start + 1 + mention.query.length;
2572
+ const inserted = '@' + item.path + (item.kind === 'dir' ? '/' : '') + ' ';
2573
+ ta.value = value.slice(0, mention.start) + inserted + value.slice(end);
2574
+ const caret = mention.start + inserted.length;
2575
+ closeMention();
2576
+ ta.focus();
2577
+ ta.setSelectionRange(caret, caret);
2578
+ ta.dispatchEvent(new Event('input'));
2579
+ }
2580
+
2581
+ /*
2582
+ * Called on every keystroke in the composer.
2583
+ *
2584
+ * The listing and the project signals are refreshed when the reference opens rather than while it
2585
+ * is being typed: opening is the moment a file created a second ago would be noticed missing, and
2586
+ * every keystroke after it only needs the ranking.
2587
+ */
2588
+ function syncMention() {
2589
+ const ta = $('ta');
2590
+ const ref = activeRef(ta.value, ta.selectionStart);
2591
+ if (!ref) { if (mention.open) closeMention(); return; }
2592
+ const opening = !mention.open || ref.start !== mention.start;
2593
+ mention.open = true;
2594
+ mention.start = ref.start;
2595
+ mention.query = ref.query;
2596
+ if (opening) { mention.sel = 0; mention.items = []; drawMention(); }
2597
+ if (mention.timer) clearTimeout(mention.timer);
2598
+ /* No wait at all when it opens: the first list should already be there. */
2599
+ if (opening) { refreshMention(true); return; }
2600
+ mention.timer = setTimeout(() => { mention.timer = null; refreshMention(false); }, 55);
2601
+ }
2602
+
2603
+ /* True when the key was the picker's, so the composer must not also act on it. */
2604
+ function mentionKey(ev) {
2605
+ if (!mention.open) return false;
2606
+ if (ev.key === 'Escape') { closeMention(); return true; }
2607
+ if (ev.key === 'ArrowDown' || (ev.key === 'n' && ev.ctrlKey)) {
2608
+ if (mention.items.length) { mention.sel = (mention.sel + 1) % mention.items.length; drawMention(); }
2609
+ return true;
2610
+ }
2611
+ if (ev.key === 'ArrowUp' || (ev.key === 'p' && ev.ctrlKey)) {
2612
+ if (mention.items.length) {
2613
+ mention.sel = (mention.sel - 1 + mention.items.length) % mention.items.length;
2614
+ drawMention();
2615
+ }
2616
+ return true;
2617
+ }
2618
+ if (ev.key === 'Tab' || (ev.key === 'Enter' && !ev.shiftKey)) {
2619
+ /*
2620
+ * Enter inserts while the picker is open, and only then.
2621
+ *
2622
+ * A half-typed @src/eng followed by Enter is somebody choosing a file, not sending a message —
2623
+ * but with no candidates there is nothing to choose, so it falls through and sends.
2624
+ */
2625
+ if (mention.items.length === 0) return false;
2626
+ pickMention(mention.sel);
2627
+ return true;
2628
+ }
2629
+ return false;
2630
+ }
2631
+
2383
2632
  /* ── wiring ────────────────────────────────────────────────── */
2384
2633
  $('ta').addEventListener('input', (ev) => {
2385
2634
  const ta = ev.target;
@@ -2387,10 +2636,30 @@ $('ta').addEventListener('input', (ev) => {
2387
2636
  ta.style.height = Math.min(ta.scrollHeight, 200) + 'px';
2388
2637
  $('send').disabled = state.busy || !ta.value.trim();
2389
2638
  refreshComposerHints();
2639
+ syncMention();
2390
2640
  });
2391
2641
  $('ta').addEventListener('focus', refreshComposerHints);
2392
- $('ta').addEventListener('blur', refreshComposerHints);
2642
+ $('ta').addEventListener('blur', () => {
2643
+ refreshComposerHints();
2644
+ /*
2645
+ * Closed on blur, but not before a click on a row has landed.
2646
+ *
2647
+ * The rows are wired to mousedown, which fires before blur, so this only ever closes a picker
2648
+ * nobody was clicking in. Without the delay a click on a candidate closed the list under the
2649
+ * pointer and inserted nothing.
2650
+ */
2651
+ setTimeout(() => { if (document.activeElement !== $('ta')) closeMention(); }, 120);
2652
+ });
2653
+ /* Clicking or arrowing to a different place in the text can leave a reference, or enter one. */
2654
+ $('ta').addEventListener('click', syncMention);
2393
2655
  $('ta').addEventListener('keydown', (ev) => {
2656
+ // The picker gets first refusal on the keys it uses, so Enter chooses a file rather than sending
2657
+ // a message that was still being addressed.
2658
+ if (mentionKey(ev)) { ev.preventDefault(); return; }
2659
+ if (ev.key === 'ArrowLeft' || ev.key === 'ArrowRight' || ev.key === 'Home' || ev.key === 'End') {
2660
+ // After the caret has actually moved, not before.
2661
+ setTimeout(syncMention, 0);
2662
+ }
2394
2663
  if (ev.key === 'Enter' && !ev.shiftKey) { ev.preventDefault(); send(); }
2395
2664
  });
2396
2665
  $('send').onclick = () => send();
@@ -1 +1 @@
1
- {"version":3,"file":"ui-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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAw4JlB,CAAC;AACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ui-css.d.ts","sourceRoot":"","sources":["../../src/web/ui-css.ts"],"names":[],"mappings":"AA8CA,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CA4kC3C"}
1
+ {"version":3,"file":"ui-css.d.ts","sourceRoot":"","sources":["../../src/web/ui-css.ts"],"names":[],"mappings":"AA8CA,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAmnC3C"}
@@ -406,6 +406,45 @@ footer{flex:0 0 auto;border-top:1px solid var(--line);background:var(--panel);pa
406
406
  .live .lel{color:var(--dim);font-variant-numeric:tabular-nums;font-size:11.5px}
407
407
  .live .lstop{border:1px solid var(--red);color:var(--red);border-radius:999px;padding:2px 10px;
408
408
  font-size:11.5px}
409
+ /*
410
+ * The @ picker.
411
+ *
412
+ * A fixed height with its own scroll, because the alternative is a list that resizes the footer on
413
+ * every keystroke — and a composer that moves while you type in it is the thing that makes a picker
414
+ * feel unfinished. Anchored to the box's width so the paths line up with the text they will become.
415
+ */
416
+ .mention{margin-bottom:9px;border:1px solid var(--line-2);border-radius:var(--radius);
417
+ background:var(--panel);max-height:min(46vh,340px);overflow-y:auto;overflow-x:hidden;
418
+ box-shadow:0 -6px 26px rgba(0,0,0,.22)}
419
+ .mention[hidden]{display:none}
420
+ .mhead{display:flex;align-items:center;gap:8px;padding:7px 11px;font-size:10.5px;
421
+ letter-spacing:.09em;text-transform:uppercase;color:var(--dim);
422
+ border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--panel);z-index:1}
423
+ .mhead .mgap{flex:1}
424
+ .mhead .mkeys{text-transform:none;letter-spacing:0;font-size:11px}
425
+ .mrow{display:flex;align-items:baseline;gap:9px;padding:6px 11px;cursor:pointer;
426
+ border-left:2px solid transparent}
427
+ .mrow:hover{background:var(--panel-2)}
428
+ .mrow.on{background:var(--panel-2);border-left-color:var(--cyan)}
429
+ /* The name carries the weight; the directory it sits in is context, not the answer. */
430
+ .mrow .mp{font-family:var(--mono);font-size:12.5px;color:var(--muted);
431
+ overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:rtl;text-align:left}
432
+ .mrow .mp b{color:var(--ink);font-weight:600}
433
+ .mrow .mwhy{display:flex;gap:5px;flex:0 0 auto}
434
+ /* Why it is where it is, said in the row rather than in a tooltip nobody opens. */
435
+ .mwhy span{font-size:9.5px;letter-spacing:.04em;padding:1px 6px;border-radius:999px;
436
+ border:1px solid var(--line-2);color:var(--dim);white-space:nowrap}
437
+ .mwhy span.s{border-color:var(--cyan);color:var(--cyan)}
438
+ .mwhy span.g{border-color:var(--amber);color:var(--amber)}
439
+ /* Tabular so the costs form a column you can compare down, rather than a ragged edge. */
440
+ .mrow .mcost{flex:0 0 auto;font-size:11px;color:var(--dim);font-variant-numeric:tabular-nums}
441
+ .mrow .mdir{flex:0 0 auto;font-size:11px;color:var(--dim)}
442
+ .mnone{padding:10px 11px;font-size:12.5px;color:var(--dim)}
443
+ /* What an @ attached, under the message it was in. */
444
+ .urefs{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
445
+ .uref{font-family:var(--mono);font-size:10.5px;color:var(--dim);padding:1px 7px;
446
+ border:1px solid var(--line-2);border-radius:999px}
447
+ .uref.bad{border-color:var(--red);color:var(--red)}
409
448
  .attached{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:9px}
410
449
  .attached[hidden]{display:none}
411
450
  .thumb{position:relative;width:60px;height:60px;border-radius:8px;overflow:hidden;
@@ -1 +1 @@
1
- {"version":3,"file":"ui-css.js","sourceRoot":"","sources":["../../src/web/ui-css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH;;;;;;;;;;;;GAYG;AACH,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;CAkBZ,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,OAAe;IACjC,OAAO;;;;;;;;;;;;;;;;;gBAiBO,OAAO;;;oCAGa,IAAI;;2BAEb,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2lC9B,CAAC;AACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/web/ui.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,wBAAgB,IAAI,IAAI,MAAM,CA+d7B"}
1
+ {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/web/ui.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,wBAAgB,IAAI,IAAI,MAAM,CAwe7B"}
package/dist/web/ui.js CHANGED
@@ -214,6 +214,14 @@ export function page() {
214
214
  <button class="lstop" id="livestop">stop</button>
215
215
  </div>
216
216
  <div id="attached" class="attached" hidden></div>
217
+ <!--
218
+ Referencing a file with @.
219
+ ==========================
220
+ Above the box rather than below it, so the list grows up into the transcript instead of
221
+ pushing the input off the bottom of the window — which is where a dropdown under a
222
+ bottom-anchored composer ends up on a short screen.
223
+ -->
224
+ <div id="mention" class="mention" hidden></div>
217
225
  <div class="cin">
218
226
  <button class="attach" id="attach" title="Attach an image">+</button>
219
227
  <textarea id="ta" rows="1" placeholder="Describe what you want to build&hellip;"></textarea>
@@ -246,6 +254,7 @@ export function page() {
246
254
  <span><kbd>Enter</kbd> send</span>
247
255
  <span><kbd>Shift</kbd>+<kbd>Enter</kbd> newline</span>
248
256
  <span><kbd>Ctrl</kbd>+<kbd>K</kbd> commands</span>
257
+ <span><kbd>@</kbd> reference a file or folder</span>
249
258
  <span><kbd>/</kbd> for commands, paste or drop an image</span>
250
259
  </div>
251
260
  </div>
@@ -1 +1 @@
1
- {"version":3,"file":"ui.js","sourceRoot":"","sources":["../../src/web/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AAM,gBAAgB,CAAC;AAE9C,MAAM,UAAU,IAAI;IAClB,OAAO;;;;;;;SAOA,GAAG,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA4dF,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;EAC7C,YAAY,EAAE;;eAED,CAAC;AAChB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koneck",
3
- "version": "2.67.0",
3
+ "version": "2.69.0",
4
4
  "description": "Kinetically Orchestrated Neural Execution Engine for Code",
5
5
  "type": "module",
6
6
  "bin": {