Spaces:
Running
Running
File size: 23,351 Bytes
c089755 085f660 8d35d60 c089755 085f660 c089755 085f660 c089755 99d3c8e c089755 085f660 c089755 085f660 c089755 085f660 c089755 085f660 c089755 80ebc34 c089755 085f660 c089755 085f660 c089755 8d35d60 c089755 085f660 c089755 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Lumi Eggcracker is noqt's native Linux kill switch for unapproved supported local-AI workloads. Clone the complete source from Hugging Face.">
<meta name="noqt-source-revision" content="7a9759b97fc0fe84d8c9e331795cef7082861b79">
<meta name="theme-color" content="#090a0c">
<title>Lumi Eggcracker — Native Linux AI kill switch</title>
<style>
:root {
--bg: #090a0c;
--panel: #111317;
--panel-2: #171a1f;
--text: #f4f1e9;
--muted: #aba99f;
--line: #30343b;
--red: #f04444;
--red-dark: #921e27;
--amber: #f3b64b;
--green: #65d18a;
--max: 1180px;
--mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
--sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
color: var(--text);
background:
radial-gradient(circle at 82% 5%, rgba(240, 68, 68, .13), transparent 27rem),
radial-gradient(circle at 10% 32%, rgba(243, 182, 75, .05), transparent 24rem),
var(--bg);
font-family: var(--sans);
line-height: 1.55;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell {
width: min(calc(100% - 40px), var(--max));
margin-inline: auto;
}
.site-header {
position: sticky;
top: 0;
z-index: 10;
border-bottom: 1px solid rgba(255, 255, 255, .08);
background: rgba(9, 10, 12, .84);
backdrop-filter: blur(18px);
}
.nav {
min-height: 68px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
}
.brand {
display: inline-flex;
align-items: center;
gap: 12px;
text-decoration: none;
font-weight: 780;
letter-spacing: .08em;
font-size: .86rem;
}
.brand-mark {
width: 34px;
height: 34px;
display: grid;
place-items: center;
border: 1px solid rgba(240, 68, 68, .55);
border-radius: 10px;
background: linear-gradient(145deg, #241214, #0e0f12);
box-shadow: inset 0 0 18px rgba(240, 68, 68, .12);
font-size: 1.05rem;
}
.nav-links {
display: flex;
align-items: center;
gap: 24px;
color: var(--muted);
font-size: .9rem;
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.hero {
padding: 110px 0 82px;
display: grid;
grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr);
gap: 70px;
align-items: center;
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 9px;
margin-bottom: 22px;
color: #e8b7b7;
font-family: var(--mono);
font-size: .77rem;
letter-spacing: .12em;
text-transform: uppercase;
}
.eyebrow::before {
content: "";
width: 28px;
height: 1px;
background: var(--red);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
max-width: 820px;
margin-bottom: 24px;
font-size: clamp(3.1rem, 7vw, 6.8rem);
line-height: .94;
letter-spacing: -.065em;
font-weight: 830;
}
h1 span { color: var(--red); }
.lede {
max-width: 720px;
margin-bottom: 34px;
color: #ccc9bf;
font-size: clamp(1.04rem, 1.7vw, 1.28rem);
}
.actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.button {
min-height: 48px;
padding: 0 18px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 9px;
border: 1px solid var(--line);
border-radius: 10px;
background: #15171b;
color: var(--text);
text-decoration: none;
font-weight: 720;
cursor: pointer;
}
.button.primary {
border-color: #ff5656;
background: var(--red);
color: #160606;
}
.button:hover { transform: translateY(-1px); }
.boundary-card {
position: relative;
overflow: hidden;
padding: 28px;
border: 1px solid var(--line);
border-radius: 18px;
background: linear-gradient(145deg, rgba(30, 32, 38, .93), rgba(13, 14, 17, .93));
box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}
.boundary-card::after {
content: "";
position: absolute;
inset: auto -40px -60px auto;
width: 160px;
height: 160px;
border: 32px solid rgba(240, 68, 68, .08);
border-radius: 50%;
}
.status {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--green);
font: .78rem var(--mono);
text-transform: uppercase;
letter-spacing: .08em;
}
.status::before {
content: "";
width: 8px;
height: 8px;
border-radius: 50%;
background: currentColor;
box-shadow: 0 0 13px currentColor;
}
.boundary-card h2 {
margin: 18px 0 10px;
font-size: 1.65rem;
letter-spacing: -.03em;
}
.boundary-card p { color: var(--muted); }
.facts {
margin-top: 24px;
display: grid;
gap: 1px;
border: 1px solid var(--line);
border-radius: 11px;
overflow: hidden;
background: var(--line);
}
.fact {
padding: 13px 14px;
display: flex;
justify-content: space-between;
gap: 16px;
background: #111317;
font-size: .86rem;
}
.fact span:first-child { color: var(--muted); }
.fact span:last-child { font-family: var(--mono); text-align: right; }
.distribution-note {
padding: 18px 0;
border-block: 1px solid var(--line);
background: rgba(255, 255, 255, .018);
}
.distribution-note .shell {
display: flex;
align-items: center;
gap: 14px;
color: #c9c6bd;
font-size: .94rem;
}
.distribution-note strong { color: var(--text); }
.pill {
flex: 0 0 auto;
padding: 5px 9px;
border: 1px solid rgba(243, 182, 75, .35);
border-radius: 999px;
color: var(--amber);
font: .72rem var(--mono);
text-transform: uppercase;
letter-spacing: .08em;
}
section { padding: 92px 0; }
.section-head {
max-width: 760px;
margin-bottom: 42px;
}
.section-head h2 {
margin-bottom: 14px;
font-size: clamp(2.2rem, 4vw, 4rem);
line-height: 1;
letter-spacing: -.05em;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }
.flow {
display: grid;
grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
gap: 12px;
align-items: center;
}
.flow-card {
min-height: 155px;
padding: 20px;
border: 1px solid var(--line);
border-radius: 14px;
background: var(--panel);
}
.flow-card code {
display: block;
margin-bottom: 13px;
color: var(--red);
font: .75rem var(--mono);
letter-spacing: .08em;
}
.flow-card h3 { margin-bottom: 8px; font-size: 1.03rem; }
.flow-card p { margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.arrow { color: #646972; font-family: var(--mono); }
.install-grid {
display: grid;
grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
gap: 28px;
align-items: stretch;
}
.terminal {
overflow: hidden;
border: 1px solid var(--line);
border-radius: 16px;
background: #0c0e11;
box-shadow: 0 22px 65px rgba(0, 0, 0, .24);
}
.terminal-bar {
min-height: 47px;
padding: 0 16px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
border-bottom: 1px solid var(--line);
background: #15171b;
color: var(--muted);
font: .75rem var(--mono);
}
.dots { letter-spacing: .32em; color: #6e727a; }
pre {
margin: 0;
padding: 25px;
overflow-x: auto;
color: #e8e4d9;
font: .9rem/1.75 var(--mono);
}
.copy {
border: 0;
background: transparent;
color: #ddd9cf;
font: inherit;
cursor: pointer;
}
.requirements {
padding: 25px;
border: 1px solid var(--line);
border-radius: 16px;
background: var(--panel);
}
.requirements h3 { margin-bottom: 16px; }
.requirements ul { margin: 0; padding: 0; list-style: none; }
.requirements li {
padding: 10px 0;
display: flex;
gap: 10px;
border-bottom: 1px solid rgba(255, 255, 255, .07);
color: #c9c6bd;
}
.requirements li:last-child { border-bottom: 0; }
.requirements li::before { content: "✓"; color: var(--green); font-weight: 800; }
.profiles {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 14px;
}
.profile {
min-height: 130px;
padding: 21px;
border: 1px solid var(--line);
border-radius: 14px;
background: linear-gradient(150deg, var(--panel-2), var(--panel));
}
.profile span {
display: block;
margin-bottom: 13px;
color: var(--red);
font: .74rem var(--mono);
}
.profile strong { display: block; font-size: 1rem; overflow-wrap: anywhere; }
.boundary-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
}
.boundary-box {
padding: 28px;
border: 1px solid var(--line);
border-radius: 16px;
background: var(--panel);
}
.boundary-box h3 { margin-bottom: 18px; }
.boundary-box ul { margin: 0; padding-left: 20px; color: var(--muted); }
.boundary-box li + li { margin-top: 9px; }
.boundary-box.excluded { border-color: rgba(240, 68, 68, .32); }
.source-bar {
padding: 33px;
display: grid;
grid-template-columns: 1fr auto;
gap: 28px;
align-items: center;
border: 1px solid var(--line);
border-radius: 18px;
background: linear-gradient(110deg, rgba(240, 68, 68, .11), rgba(255, 255, 255, .02));
}
.source-bar h2 { margin-bottom: 7px; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.04em; }
.source-bar p { margin-bottom: 0; color: var(--muted); }
.source-id { font-family: var(--mono); font-size: .78rem; color: #d7d3c9; }
footer {
margin-top: 90px;
padding: 30px 0 42px;
border-top: 1px solid var(--line);
color: var(--muted);
font-size: .86rem;
}
.footer-row {
display: flex;
justify-content: space-between;
gap: 24px;
flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
@media (max-width: 900px) {
.hero, .install-grid { grid-template-columns: 1fr; }
.hero { gap: 40px; padding-top: 80px; }
.flow { grid-template-columns: 1fr; }
.arrow { transform: rotate(90deg); justify-self: center; }
.profiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
.shell { width: min(calc(100% - 28px), var(--max)); }
.nav-links a:not(:last-child) { display: none; }
.hero { padding: 64px 0 58px; }
h1 { font-size: clamp(2.8rem, 16vw, 4.2rem); }
section { padding: 66px 0; }
.profiles, .boundary-grid { grid-template-columns: 1fr; }
.source-bar { grid-template-columns: 1fr; padding: 24px; }
.distribution-note .shell { align-items: flex-start; }
pre { font-size: .78rem; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.button:hover { transform: none; }
}
</style>
</head>
<body id="top">
<header class="site-header">
<div class="shell nav">
<a class="brand" href="#top" aria-label="Lumi Eggcracker home">
<span class="brand-mark" aria-hidden="true">🥚</span>
<span>noqt / Lumi Eggcracker</span>
</a>
<nav class="nav-links" aria-label="Primary navigation">
<a href="#how">How it works</a>
<a href="#get">Get it</a>
<a href="#boundary">Boundary</a>
<a href="https://huggingface.co/spaces/noqt/eggcracker/tree/main">Files ↗</a>
</nav>
</div>
</header>
<main>
<div class="shell hero">
<div>
<div class="eyebrow">Official noqt distribution</div>
<h1>The kill switch <span>outside</span> the sandbox.</h1>
<p class="lede">Lumi Eggcracker is a native Linux kill tool for unapproved supported local-AI workloads. It terminates the captured workload tree, proves that tree is empty, and leaves a bounded receipt.</p>
<div class="actions">
<a class="button" href="#get">Get Eggcracker</a>
<a class="button primary" href="https://noqt.no-qt.chatgpt.site/products/eggcracker/demo/overlap">Try the 60-second static example</a>
<span>Fabricated source-only preview. No live evaluation, account, upload, install, actuation, or safety conclusion.</span>
<a class="button" href="https://huggingface.co/spaces/noqt/eggcracker/tree/main">Browse complete source ↗</a>
<a class="button" href="https://github.com/noqt/Lumi-Eggcracker/releases/tag/v1.0.10">Signed v1.0.10 release ↗</a>
</div>
</div>
<aside class="boundary-card" aria-label="Current Eggcracker release boundary">
<div class="status">Source available</div>
<h2>Distributed here.<br>Runs on native Linux.</h2>
<p>This Space is a public source distribution and discovery surface. Eggcracker runs on the protected host—not inside Hugging Face.</p>
<div class="facts">
<div class="fact"><span>Release</span><span>v1.0.10 alpha boundary</span></div>
<div class="fact"><span>License</span><span>Apache-2.0</span></div>
<div class="fact"><span>Enforcement</span><span>pidfds + cgroup.kill</span></div>
<div class="fact"><span>Telemetry</span><span>none</span></div>
</div>
</aside>
</div>
<div class="distribution-note">
<div class="shell">
<span class="pill">Distribution</span>
<span><strong>The tracked product source is generated from this exact GitHub commit.</strong> This snapshot is called current only after the release-linked sync job verifies its returned Hub commit and full manifest; signed release assets remain linked as a separate boundary.</span>
</div>
</div>
<section id="how">
<div class="shell">
<div class="section-head">
<div class="eyebrow">Deterministic containment</div>
<h2>Recognise. Contain. Prove.</h2>
<p>The release keeps workload recognition separate from the deterministic kill path, then records the exact bounded result.</p>
</div>
<div class="flow" aria-label="Eggcracker containment flow">
<article class="flow-card">
<code>01 / OBSERVE</code>
<h3>Root supervisor</h3>
<p>Observes local Linux processes and matches only qualified workload identities.</p>
</article>
<div class="arrow" aria-hidden="true">→</div>
<article class="flow-card">
<code>02 / DECIDE</code>
<h3>Exact approval gate</h3>
<p>A complete supported match without its exact root approval becomes a kill condition.</p>
</article>
<div class="arrow" aria-hidden="true">→</div>
<article class="flow-card">
<code>03 / CONTAIN</code>
<h3>Whole-tree kill</h3>
<p>Uses held pidfds and direct cgroup-v2 <code style="display:inline;margin:0">cgroup.kill</code>.</p>
</article>
<div class="arrow" aria-hidden="true">→</div>
<article class="flow-card">
<code>04 / RECEIPT</code>
<h3>Empty-tree proof</h3>
<p>Writes a bounded local receipt only after the owned hierarchy is empty.</p>
</article>
</div>
</div>
</section>
<section id="get">
<div class="shell">
<div class="section-head">
<div class="eyebrow">Hugging Face distribution</div>
<h2>Clone the actual tool.</h2>
<p>Start with Eggcracker's read-only compatibility check on a disposable supported native Ubuntu host. Do not begin on a workstation, shared server, production host, or machine carrying private data.</p>
</div>
<div class="install-grid">
<div class="terminal">
<div class="terminal-bar">
<span><span class="dots" aria-hidden="true">● ● ●</span> native Ubuntu shell</span>
<button class="copy" id="copy-command" type="button">Copy</button>
</div>
<pre id="install-command">git clone https://huggingface.co/spaces/noqt/eggcracker
cd eggcracker
sudo /usr/bin/python3 -I -S scripts/first_kill.py \
--operator "$USER" \
--preflight-only</pre>
</div>
<aside class="requirements">
<h3>Preflight expects</h3>
<ul>
<li>Disposable native Ubuntu host with at least 7 GiB memory</li>
<li>Root and systemd</li>
<li>Unified cgroup v2 with cgroup.kill</li>
<li>pidfds and Python 3.11+</li>
<li>iproute2, nftables, Git and GnuPG</li>
<li>CMake and a native C/C++ build toolchain</li>
</ul>
</aside>
</div>
<div class="actions" style="margin-top:22px">
<a class="button" href="https://huggingface.co/spaces/noqt/eggcracker/blob/main/README.md">Read the full installation path ↗</a>
<a class="button" href="https://github.com/noqt/Lumi-Eggcracker/blob/main/TRY_IT.md#checkout-free-gguf-file-evidence-preview-unreleased">Inspect a local GGUF file — bounded preview ↗</a>
<span>Source-only and unreleased: reports GGUF header plausibility, a coarse size bucket, and a digest of at most the first 1 MiB—not authentication, full-file integrity, loader compatibility, or safety.</span>
</div>
</div>
</section>
<section>
<div class="shell">
<div class="section-head">
<div class="eyebrow">Qualified release profiles</div>
<h2>Four explicit identities.</h2>
<p>Names alone never trigger a kill. These are the four qualified content/topology profiles carried by the current public release.</p>
</div>
<div class="profiles">
<div class="profile"><span>GGUF / NATIVE</span><strong>content.gguf-llama</strong></div>
<div class="profile"><span>GGUF / NATIVE</span><strong>content.gguf-ollama</strong></div>
<div class="profile"><span>SAFETENSORS / NATIVE</span><strong>content.safetensors-pytorch</strong></div>
<div class="profile"><span>SAFETENSORS / NATIVE</span><strong>content.safetensors-vllm</strong></div>
</div>
</div>
</section>
<section id="boundary">
<div class="shell">
<div class="section-head">
<div class="eyebrow">Read the boundary literally</div>
<h2>A narrow security control.</h2>
<p>Eggcracker is intentionally a kill switch, not an alerting dashboard, universal AI detector, sandbox, or EDR replacement.</p>
</div>
<div class="boundary-grid">
<article class="boundary-box">
<h3>Current qualified surface</h3>
<ul>
<li>Native Linux with systemd and unified cgroup v2.</li>
<li>At least 7 GiB memory, Python 3.11+, iproute2 and nftables.</li>
<li>Exact CPU-first runtime and artifact identities.</li>
<li>Root-owned offline boundary for selected workloads.</li>
<li>Loopback is allowed; non-loopback egress is denied for selected workloads.</li>
<li>Operator and autonomous whole-tree containment paths.</li>
</ul>
</article>
<article class="boundary-box excluded">
<h3>Not claimed</h3>
<ul>
<li>Containers, remote APIs, TGI, LocalAI or llamafile.</li>
<li>GPU-generic deployments or universal recognition.</li>
<li>Credential isolation, malware prevention or EDR.</li>
<li>Effectiveness beyond the exact qualified evidence.</li>
</ul>
</article>
</div>
<div class="actions" style="margin-top:22px">
<a class="button" href="https://huggingface.co/spaces/noqt/eggcracker/blob/main/LIMITATIONS.md">Read limitations ↗</a>
<a class="button" href="https://huggingface.co/spaces/noqt/eggcracker/blob/main/SECURITY_MODEL.md">Read security model ↗</a>
</div>
</div>
</section>
<section>
<div class="shell source-bar">
<div>
<div class="source-id">SOURCE COMMIT · 7a9759b97fc0</div>
<h2>Inspect every line.</h2>
<p>Complete source, tests, qualification documents and reproducible proof tooling are distributed in this repository.</p>
</div>
<div class="actions">
<a class="button primary" href="https://huggingface.co/spaces/noqt/eggcracker/tree/main">Open Files ↗</a>
<a class="button" href="https://github.com/noqt/Lumi-Eggcracker/security/advisories/new">Private security report ↗</a>
</div>
</div>
</section>
</main>
<footer>
<div class="shell footer-row">
<span>© noqt · Lumi Eggcracker · Apache-2.0</span>
<span class="footer-links">
<a href="https://huggingface.co/spaces/noqt/eggcracker/tree/main">Source</a>
<a href="https://github.com/noqt/Lumi-Eggcracker/releases/tag/v1.0.10">Signed release</a>
<a href="https://huggingface.co/spaces/noqt/eggcracker/blob/main/CONTRIBUTING.md">Contributing</a>
</span>
</div>
</footer>
<script>
const copyButton = document.getElementById("copy-command");
const command = document.getElementById("install-command").textContent;
const fallbackCopy = (text) => {
const field = document.createElement("textarea");
field.value = text;
field.setAttribute("readonly", "");
field.style.position = "fixed";
field.style.opacity = "0";
document.body.appendChild(field);
field.select();
const copied = document.execCommand("copy");
field.remove();
return copied;
};
copyButton.addEventListener("click", async () => {
let copied = false;
try {
if (navigator.clipboard && window.isSecureContext) {
await navigator.clipboard.writeText(command);
copied = true;
} else {
copied = fallbackCopy(command);
}
} catch {
copied = fallbackCopy(command);
}
copyButton.textContent = copied ? "Copied" : "Select command";
window.setTimeout(() => { copyButton.textContent = "Copy"; }, 4500);
});
</script>
</body>
</html>
|