@1agents/acp-service 0.8.1 → 0.8.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.
Files changed (103) hide show
  1. package/README.md +37 -2
  2. package/dist/bin/a2a.js +3 -2
  3. package/dist/src/a2a/executor.d.ts +2 -0
  4. package/dist/src/a2a/executor.js +63 -10
  5. package/dist/src/a2a/gateway.d.ts +407 -14
  6. package/dist/src/a2a/gateway.js +719 -37
  7. package/dist/src/a2a/index.d.ts +8 -1
  8. package/dist/src/a2a/index.js +4 -0
  9. package/dist/src/a2a/notices.d.ts +24 -0
  10. package/dist/src/a2a/notices.js +56 -0
  11. package/dist/src/a2a/preflight.d.ts +52 -0
  12. package/dist/src/a2a/preflight.js +153 -0
  13. package/dist/src/a2a/result-metadata.d.ts +59 -0
  14. package/dist/src/a2a/result-metadata.js +156 -0
  15. package/dist/src/a2a/server.js +30 -0
  16. package/dist/src/a2a/session-delivery.d.ts +69 -0
  17. package/dist/src/a2a/session-delivery.js +260 -0
  18. package/dist/src/a2a/session-hosts.d.ts +34 -0
  19. package/dist/src/a2a/session-hosts.js +211 -0
  20. package/dist/src/a2a/store.js +3 -1
  21. package/dist/src/a2a/types.d.ts +33 -0
  22. package/dist/src/execution/delivery-progress.d.ts +108 -0
  23. package/dist/src/execution/delivery-progress.js +57 -0
  24. package/dist/src/execution/ledger.d.ts +235 -0
  25. package/dist/src/execution/ledger.js +396 -0
  26. package/dist/src/execution/ppt-delivery.d.ts +231 -0
  27. package/dist/src/execution/ppt-delivery.js +625 -0
  28. package/dist/src/execution/targets.d.ts +349 -0
  29. package/dist/src/execution/targets.js +428 -0
  30. package/package.json +11 -12
  31. package/skills/acp-service/SKILL.md +9 -2
  32. package/skills/acp-service/references/a2a.md +72 -4
  33. package/vendor/dsh/a2a-executor.d.ts +2 -1
  34. package/vendor/dsh/a2a-executor.js +28 -1
  35. package/vendor/dsh/a2a.js +1 -0
  36. package/vendor/dsh/client.js +11 -3
  37. package/vendor/runtime/dist/{agent-registry-CMg8LHKY.js → agent-registry-R7A3MSpr.js} +9 -1
  38. package/vendor/runtime/dist/agent-registry-R7A3MSpr.js.map +1 -0
  39. package/vendor/runtime/dist/agent-registry.d.ts +1 -0
  40. package/vendor/runtime/dist/agent-registry.d.ts.map +1 -1
  41. package/vendor/runtime/dist/agent-registry.js +1 -2
  42. package/vendor/runtime/dist/{cli-Bdzplbpj.js → cli-DeOpE2Xz.js} +4 -4
  43. package/vendor/runtime/dist/{cli-Bdzplbpj.js.map → cli-DeOpE2Xz.js.map} +1 -1
  44. package/vendor/runtime/dist/cli.d.ts +2 -1
  45. package/vendor/runtime/dist/cli.js +10 -10
  46. package/vendor/runtime/dist/cli.js.map +1 -1
  47. package/vendor/runtime/dist/{client-BXOiB0ND.d.ts → client-VQsqcIOJ.d.ts} +2 -2
  48. package/vendor/runtime/dist/{client-BXOiB0ND.d.ts.map → client-VQsqcIOJ.d.ts.map} +1 -1
  49. package/vendor/runtime/dist/docs-site/.nojekyll +0 -0
  50. package/vendor/runtime/dist/docs-site/CLI.html +833 -0
  51. package/vendor/runtime/dist/docs-site/VISION.html +415 -0
  52. package/vendor/runtime/dist/docs-site/agents.html +391 -0
  53. package/vendor/runtime/dist/docs-site/compare.html +359 -0
  54. package/vendor/runtime/dist/docs-site/config.html +450 -0
  55. package/vendor/runtime/dist/docs-site/custom-agents.html +408 -0
  56. package/vendor/runtime/dist/docs-site/exit-codes.html +347 -0
  57. package/vendor/runtime/dist/docs-site/favicon.svg +21 -0
  58. package/vendor/runtime/dist/docs-site/flows.html +498 -0
  59. package/vendor/runtime/dist/docs-site/index.html +367 -0
  60. package/vendor/runtime/dist/docs-site/install.html +386 -0
  61. package/vendor/runtime/dist/docs-site/llms.txt +36 -0
  62. package/vendor/runtime/dist/docs-site/output-formats.html +407 -0
  63. package/vendor/runtime/dist/docs-site/permissions.html +422 -0
  64. package/vendor/runtime/dist/docs-site/prompting.html +460 -0
  65. package/vendor/runtime/dist/docs-site/quickstart.html +382 -0
  66. package/vendor/runtime/dist/docs-site/releasing.html +341 -0
  67. package/vendor/runtime/dist/docs-site/runtime-environment.html +329 -0
  68. package/vendor/runtime/dist/docs-site/runtime-process-lifecycle.html +335 -0
  69. package/vendor/runtime/dist/docs-site/safe-errors.html +323 -0
  70. package/vendor/runtime/dist/docs-site/session-control.html +408 -0
  71. package/vendor/runtime/dist/docs-site/session-watch.html +354 -0
  72. package/vendor/runtime/dist/docs-site/sessions.html +488 -0
  73. package/vendor/runtime/dist/docs-site/shared-sessions.html +377 -0
  74. package/vendor/runtime/dist/{flows-BKlAuzM8.js → flows-oaBGn31w.js} +5 -5
  75. package/vendor/runtime/dist/{flows-BKlAuzM8.js.map → flows-oaBGn31w.js.map} +1 -1
  76. package/vendor/runtime/dist/flows.d.ts +2 -2
  77. package/vendor/runtime/dist/flows.d.ts.map +1 -1
  78. package/vendor/runtime/dist/flows.js +1 -2
  79. package/vendor/runtime/dist/{invocation-options-DMy77sEU.js → invocation-options-CUDEE8vW.js} +5 -5
  80. package/vendor/runtime/dist/{invocation-options-DMy77sEU.js.map → invocation-options-CUDEE8vW.js.map} +1 -1
  81. package/vendor/runtime/dist/{ipc-CLv2iL89.js → ipc-BQQpcEdP.js} +98 -20
  82. package/vendor/runtime/dist/ipc-BQQpcEdP.js.map +1 -0
  83. package/vendor/runtime/dist/{output-I-t-v55D.js → output-CFv3jcOQ.js} +86 -22
  84. package/vendor/runtime/dist/output-CFv3jcOQ.js.map +1 -0
  85. package/vendor/runtime/dist/{queue-owner-runtime-RN3uSid0.js → queue-owner-runtime-DvMJiGbP.js} +86 -27
  86. package/vendor/runtime/dist/queue-owner-runtime-DvMJiGbP.js.map +1 -0
  87. package/vendor/runtime/dist/runtime.d.ts +5 -2
  88. package/vendor/runtime/dist/runtime.d.ts.map +1 -1
  89. package/vendor/runtime/dist/runtime.js +77 -29
  90. package/vendor/runtime/dist/runtime.js.map +1 -1
  91. package/vendor/runtime/dist/{session-options-DNnDfiUt.d.ts → session-options-NjpFwf-c.d.ts} +5 -1
  92. package/vendor/runtime/dist/session-options-NjpFwf-c.d.ts.map +1 -0
  93. package/vendor/runtime/dist/{session-watch-CmHbH0jS.js → session-watch-Di-wIdCH.js} +4 -4
  94. package/vendor/runtime/dist/{session-watch-CmHbH0jS.js.map → session-watch-Di-wIdCH.js.map} +1 -1
  95. package/vendor/runtime/dist/{watch-BE-kKa7o.js → watch-CIpoMaWD.js} +2 -2
  96. package/vendor/runtime/dist/{watch-BE-kKa7o.js.map → watch-CIpoMaWD.js.map} +1 -1
  97. package/vendor/runtime/package.json +1 -1
  98. package/vendor/runtime/skills/acpx/SKILL.md +7 -2
  99. package/vendor/runtime/dist/agent-registry-CMg8LHKY.js.map +0 -1
  100. package/vendor/runtime/dist/ipc-CLv2iL89.js.map +0 -1
  101. package/vendor/runtime/dist/output-I-t-v55D.js.map +0 -1
  102. package/vendor/runtime/dist/queue-owner-runtime-RN3uSid0.js.map +0 -1
  103. package/vendor/runtime/dist/session-options-DNnDfiUt.d.ts.map +0 -1
@@ -0,0 +1,415 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Vision — acpx</title>
7
+ <meta name="description" content="Why acpx exists, what it should and should not become, and the design principles that guide what lands in core.">
8
+ <link rel="canonical" href="VISION.html">
9
+ <meta property="og:type" content="website">
10
+ <meta property="og:site_name" content="acpx">
11
+ <meta property="og:title" content="Vision — acpx">
12
+ <meta property="og:description" content="Why acpx exists, what it should and should not become, and the design principles that guide what lands in core.">
13
+ <meta property="og:url" content="VISION.html">
14
+ <meta name="twitter:card" content="summary_large_image">
15
+ <meta name="twitter:title" content="Vision — acpx">
16
+ <meta name="twitter:description" content="Why acpx exists, what it should and should not become, and the design principles that guide what lands in core.">
17
+ <link rel="icon" href="favicon.svg" type="image/svg+xml">
18
+ <link rel="preconnect" href="https://fonts.googleapis.com">
19
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
20
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
21
+ <script>(function(){var s;try{s=localStorage.getItem('theme')}catch(e){}var d=window.matchMedia&&matchMedia('(prefers-color-scheme: dark)').matches;document.documentElement.dataset.theme=s||(d?'dark':'light')})();</script>
22
+ <style>
23
+ :root{
24
+ --ink:#0b0e14;
25
+ --text:#1f2530;
26
+ --muted:#6a7282;
27
+ --subtle:#9aa1ab;
28
+ --bg:#f7f8fa;
29
+ --paper:#ffffff;
30
+ --accent:#0ea5e9;
31
+ --accent-soft:rgba(14,165,233,.10);
32
+ --accent-strong:#0284c7;
33
+ --accent-2:#a855f7;
34
+ --accent-3:#22c55e;
35
+ --accent-4:#f59e0b;
36
+ --line:#e5e7eb;
37
+ --line-soft:#eef0f3;
38
+ --code-bg:#0a0d14;
39
+ --code-fg:#e6edf3;
40
+ --code-inline-fg:#1c2128;
41
+ --pill-border:#dbe2eb;
42
+ --shadow-card:0 4px 14px rgba(15,17,21,.08);
43
+ --scrollbar:#cbd5e1;
44
+ }
45
+ :root[data-theme="dark"]{
46
+ --ink:#f3f5f9;
47
+ --text:#cdd3dd;
48
+ --muted:#8d96a4;
49
+ --subtle:#5d6371;
50
+ --bg:#08090f;
51
+ --paper:#13161f;
52
+ --accent:#38bdf8;
53
+ --accent-soft:rgba(56,189,248,.18);
54
+ --accent-strong:#7dd3fc;
55
+ --line:#23283a;
56
+ --line-soft:#1a1d28;
57
+ --code-bg:#040611;
58
+ --code-fg:#e6edf3;
59
+ --code-inline-fg:#e6edf3;
60
+ --pill-border:#2a2f3c;
61
+ --shadow-card:0 4px 18px rgba(0,0,0,.45);
62
+ --scrollbar:#3a4154;
63
+ }
64
+ :root{color-scheme:light}
65
+ :root[data-theme="dark"]{color-scheme:dark}
66
+ *{box-sizing:border-box}
67
+ html{scroll-behavior:smooth;scroll-padding-top:24px}
68
+ body{margin:0;background:var(--bg);color:var(--text);font-family:"Inter",ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.65;overflow-x:hidden;-webkit-font-smoothing:antialiased;font-feature-settings:"cv02","cv03","cv04","cv11";transition:background-color .18s,color .18s}
69
+ ::selection{background:var(--accent);color:#04121d}
70
+ a{color:var(--accent);text-decoration:none;transition:color .12s}
71
+ a:hover{text-decoration:underline;text-underline-offset:.2em}
72
+ .shell{display:grid;grid-template-columns:268px minmax(0,1fr);min-height:100vh}
73
+ .sidebar{position:sticky;top:0;height:100vh;overflow:auto;padding:24px 22px;background:var(--paper);border-right:1px solid var(--line);scrollbar-width:thin;scrollbar-color:var(--line) transparent;transition:background-color .18s,border-color .18s}
74
+ .sidebar::-webkit-scrollbar{width:6px}
75
+ .sidebar::-webkit-scrollbar-thumb{background:var(--line);border-radius:6px}
76
+ .sidebar-head{display:flex;align-items:center;gap:10px;margin-bottom:24px}
77
+ .brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none;flex:1;min-width:0}
78
+ .brand:hover{text-decoration:none}
79
+ .brand .mark{flex:0 0 34px;width:34px;height:34px;border-radius:8px;background:linear-gradient(145deg,#08111f 0%,#101827 58%,#172554 100%);position:relative;overflow:hidden;display:grid;place-items:center;box-shadow:0 1px 0 rgba(255,255,255,.08) inset,0 10px 24px -13px rgba(14,165,233,.7)}
80
+ .brand .mark::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(125,211,252,.22),transparent 42%),linear-gradient(315deg,rgba(167,139,250,.2),transparent 48%);pointer-events:none}
81
+ .brand .mark::after{content:"";position:absolute;inset:1px;border-radius:7px;border:1px solid rgba(255,255,255,.1);pointer-events:none}
82
+ .brand .mark svg{position:relative;z-index:1;width:23px;height:23px;display:block}
83
+ .brand .mark .cursor{transform-origin:center;animation:acpx-blink 1.2s steps(2,jump-none) infinite}
84
+ @keyframes acpx-blink{0%,49%{opacity:1}50%,100%{opacity:.25}}
85
+ @media (prefers-reduced-motion: reduce){.brand .mark .cursor{animation:none}}
86
+ .brand strong{display:block;font-size:1.05rem;line-height:1.1;font-weight:600;letter-spacing:0;color:var(--ink)}
87
+ .brand small{display:block;color:var(--muted);font-size:.74rem;margin-top:3px;font-weight:400}
88
+ .theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:34px;height:34px;border-radius:8px;border:1px solid var(--line);background:var(--paper);color:var(--muted);cursor:pointer;padding:0;transition:border-color .15s,color .15s,background-color .15s,transform .12s}
89
+ .theme-toggle:hover{border-color:var(--ink);color:var(--ink)}
90
+ .theme-toggle:active{transform:scale(.94)}
91
+ .theme-toggle svg{width:16px;height:16px;display:block}
92
+ .theme-icon-sun{display:none}
93
+ :root[data-theme="dark"] .theme-icon-sun{display:block}
94
+ :root[data-theme="dark"] .theme-icon-moon{display:none}
95
+ .search{display:block;margin:0 0 22px}
96
+ .search span{display:block;color:var(--muted);font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:0;margin-bottom:7px}
97
+ .search input{width:100%;border:1px solid var(--line);background:var(--paper);border-radius:8px;padding:9px 12px;font:inherit;font-size:.9rem;color:var(--text);outline:none;transition:border-color .15s,box-shadow .15s,background-color .18s}
98
+ .search input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
99
+ nav section{margin:0 0 18px}
100
+ nav h2{font-size:.68rem;color:var(--muted);text-transform:uppercase;letter-spacing:0;margin:0 0 6px;font-weight:600}
101
+ .nav-link{display:block;color:var(--text);text-decoration:none;border-radius:6px;padding:5px 10px;margin:1px 0;font-size:.9rem;line-height:1.4;transition:background .12s,color .12s}
102
+ .nav-link:hover{background:var(--line-soft);color:var(--ink);text-decoration:none}
103
+ .nav-link.active{background:var(--accent-soft);color:var(--accent);font-weight:600}
104
+ main{min-width:0;padding:32px clamp(20px,4.5vw,56px) 80px;max-width:1180px;margin:0 auto;width:100%}
105
+ .hero{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;border-bottom:1px solid var(--line);padding:8px 0 22px;margin-bottom:8px;flex-wrap:wrap}
106
+ .hero-text{min-width:0;flex:1 1 320px}
107
+ .eyebrow{margin:0 0 8px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:0;font-size:.7rem}
108
+ .hero h1{font-size:2.25rem;line-height:1.1;letter-spacing:-.01em;margin:0;font-weight:700;color:var(--ink)}
109
+ .hero-meta{display:flex;gap:8px;flex:0 0 auto;flex-wrap:wrap}
110
+ .repo,.edit,.btn-ghost{border:1px solid var(--line);color:var(--text);text-decoration:none;border-radius:7px;padding:6px 11px;font-weight:500;font-size:.83rem;background:var(--paper);transition:border-color .15s,color .15s,background .15s}
111
+ .repo:hover,.edit:hover,.btn-ghost:hover{border-color:var(--ink);color:var(--ink);text-decoration:none}
112
+ .edit{color:var(--muted)}
113
+ .home-hero{padding:14px 0 28px;margin-bottom:8px;border-bottom:1px solid var(--line)}
114
+ .home-hero .eyebrow{display:inline-flex;align-items:center;gap:8px}
115
+ .home-hero .eyebrow .dot{width:7px;height:7px;border-radius:50%;background:var(--accent-3);box-shadow:0 0 0 3px rgba(34,197,94,.2)}
116
+ .home-hero h1{font-size:3.25rem;line-height:1.04;letter-spacing:-.015em;margin:0 0 .35em;font-weight:700;color:var(--ink)}
117
+ .home-hero h1 .accent{background:linear-gradient(110deg,var(--accent) 0%,var(--accent-2) 70%);-webkit-background-clip:text;background-clip:text;color:transparent}
118
+ .home-hero .lede{font-size:1.18rem;line-height:1.55;color:var(--text);margin:0 0 1.2em;max-width:60ch}
119
+ .home-cta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 18px}
120
+ .home-cta .btn{display:inline-flex;align-items:center;gap:7px;border-radius:8px;padding:10px 16px;font-weight:600;font-size:.92rem;text-decoration:none;transition:background .15s,border-color .15s,color .15s,transform .12s}
121
+ .home-cta .btn-primary{background:var(--ink);color:var(--paper);border:1px solid var(--ink)}
122
+ .home-cta .btn-primary:hover{background:var(--accent);border-color:var(--accent);color:#04121d;text-decoration:none}
123
+ .home-cta .btn-ghost{padding:10px 16px}
124
+ .home-install{display:flex;align-items:center;gap:12px;background:var(--code-bg);color:var(--code-fg);border-radius:8px;padding:10px 10px 10px 16px;font:500 .9rem/1.2 "JetBrains Mono","SF Mono",ui-monospace,monospace;max-width:32em;border:1px solid #1f2937}
125
+ .home-install .prompt{color:#7dd3fc;user-select:none;flex:0 0 auto}
126
+ .home-install code{flex:1;background:transparent;border:0;color:var(--code-fg);font:inherit;padding:0;white-space:pre;overflow:hidden;text-overflow:ellipsis}
127
+ .home-install .copy{flex:0 0 auto;background:rgba(255,255,255,.08);color:var(--code-fg);border:1px solid rgba(255,255,255,.16);border-radius:6px;padding:5px 11px;font:500 .72rem/1 "Inter",sans-serif;cursor:pointer;transition:background .15s,border-color .15s}
128
+ .home-install .copy:hover{background:rgba(255,255,255,.16)}
129
+ .home-install .copy.copied{background:var(--accent);border-color:var(--accent);color:#04121d}
130
+ .home-services{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 18px}
131
+ .home-services span{display:inline-block;padding:3px 9px;border:1px solid var(--line);border-radius:999px;font-size:.78rem;color:var(--muted);background:var(--paper);font-family:"JetBrains Mono","SF Mono",ui-monospace,monospace}
132
+ .doc-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:48px;margin-top:24px}
133
+ .doc-grid-home{margin-top:8px}
134
+ @media(min-width:1180px){.doc-grid{grid-template-columns:minmax(0,72ch) 200px;justify-content:start}.doc-grid-home{grid-template-columns:minmax(0,76ch);justify-content:start}}
135
+ .doc{min-width:0;max-width:72ch;overflow-wrap:break-word}
136
+ .doc-home{max-width:76ch}
137
+ .doc h1{font-size:2.6rem;line-height:1.08;letter-spacing:-.015em;margin:0 0 .4em;font-weight:700;color:var(--ink)}
138
+ body:not(.home) .doc>h1:first-child{display:none}
139
+ .doc h2{font-size:1.45rem;line-height:1.2;margin:2em 0 .5em;font-weight:600;letter-spacing:-.005em;color:var(--ink);position:relative}
140
+ .doc h3{font-size:1.1rem;margin:1.7em 0 .35em;position:relative;font-weight:600;color:var(--ink);letter-spacing:0}
141
+ .doc h4{font-size:.98rem;margin:1.4em 0 .25em;color:var(--ink);position:relative;font-weight:600}
142
+ .doc h2:first-child,.doc h3:first-child,.doc h4:first-child{margin-top:.2em}
143
+ .doc :is(h2,h3,h4) .anchor{position:absolute;left:-1.05em;top:0;color:var(--subtle);opacity:0;text-decoration:none;font-weight:400;padding-right:.3em;transition:opacity .12s,color .12s}
144
+ .doc :is(h2,h3,h4):hover .anchor{opacity:.7}
145
+ .doc :is(h2,h3,h4) .anchor:hover{opacity:1;color:var(--accent);text-decoration:none}
146
+ .doc p{margin:0 0 1.05em}
147
+ .doc ul,.doc ol{padding-left:1.3rem;margin:0 0 1.15em}
148
+ .doc li{margin:.25em 0}
149
+ .doc li>p{margin:0 0 .4em}
150
+ .doc strong{font-weight:600;color:var(--ink)}
151
+ .doc em{font-style:italic}
152
+ .doc code{font-family:"JetBrains Mono","SF Mono",ui-monospace,monospace;font-size:.84em;background:var(--line-soft);border:1px solid var(--line);border-radius:5px;padding:.08em .35em;color:var(--code-inline-fg)}
153
+ .doc pre{position:relative;overflow:auto;background:var(--code-bg);color:var(--code-fg);border-radius:8px;padding:14px 18px;margin:1.3em 0;font-size:.85em;line-height:1.6;scrollbar-width:thin;scrollbar-color:#334155 transparent;border:1px solid #1f2937}
154
+ .doc pre::-webkit-scrollbar{height:8px;width:8px}
155
+ .doc pre::-webkit-scrollbar-thumb{background:#334155;border-radius:8px}
156
+ .doc pre code{display:block;background:transparent;border:0;color:inherit;padding:0;font-size:1em;white-space:pre}
157
+ .doc pre .hl-com{color:#7a8597;font-style:italic}
158
+ .doc pre .hl-str{color:#86efac}
159
+ .doc pre .hl-num{color:#fbbf24}
160
+ .doc pre .hl-kw{color:#c4b5fd;font-weight:500}
161
+ .doc pre .hl-lit{color:#f0abfc}
162
+ .doc pre .hl-flag{color:#7dd3fc}
163
+ .doc pre .hl-var{color:#fca5a5}
164
+ .doc pre .hl-prop{color:#7dd3fc}
165
+ .doc pre .hl-op{color:#94a3b8}
166
+ .doc pre .hl-typ{color:#fde68a}
167
+ .doc pre .copy{position:absolute;top:8px;right:8px;background:rgba(255,255,255,.06);color:var(--code-fg);border:1px solid rgba(255,255,255,.16);border-radius:6px;padding:3px 9px;font:500 .7rem/1 "Inter",sans-serif;cursor:pointer;opacity:0;transition:opacity .15s,background .15s,border-color .15s}
168
+ .doc pre:hover .copy,.doc pre .copy:focus{opacity:1}
169
+ .doc pre .copy:hover{background:rgba(255,255,255,.12)}
170
+ .doc pre .copy.copied{background:var(--accent);border-color:var(--accent);color:#04121d;opacity:1}
171
+ .doc blockquote{margin:1.4em 0;padding:10px 16px;border-left:3px solid var(--accent);background:var(--accent-soft);border-radius:0 8px 8px 0;color:var(--text)}
172
+ .doc blockquote p:last-child{margin-bottom:0}
173
+ .doc table{width:100%;border-collapse:collapse;margin:1.2em 0;font-size:.92em}
174
+ .doc th,.doc td{border-bottom:1px solid var(--line);padding:9px 10px;text-align:left;vertical-align:top}
175
+ .doc th{font-weight:600;color:var(--ink);background:var(--line-soft);border-bottom:1px solid var(--line)}
176
+ .doc hr{border:0;border-top:1px solid var(--line);margin:2.2em 0}
177
+ .toc{position:sticky;top:24px;align-self:start;font-size:.84rem;padding-left:14px;border-left:1px solid var(--line);max-height:calc(100vh - 48px);overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
178
+ .toc::-webkit-scrollbar{width:5px}
179
+ .toc::-webkit-scrollbar-thumb{background:var(--line);border-radius:5px}
180
+ .toc h2{font-size:.66rem;color:var(--muted);text-transform:uppercase;letter-spacing:0;margin:0 0 10px;font-weight:600}
181
+ .toc a{display:block;color:var(--muted);text-decoration:none;padding:4px 0 4px 10px;line-height:1.35;border-left:2px solid transparent;margin-left:-12px;transition:color .12s,border-color .12s}
182
+ .toc a:hover{color:var(--ink);text-decoration:none}
183
+ .toc a.active{color:var(--accent);border-left-color:var(--accent);font-weight:500}
184
+ .toc-l3{padding-left:22px!important;font-size:.94em}
185
+ @media(max-width:1179px){.toc{display:none}}
186
+ .page-nav{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:48px;border-top:1px solid var(--line);padding-top:20px}
187
+ .page-nav>a{display:block;border:1px solid var(--line);background:var(--paper);border-radius:9px;padding:13px 16px;text-decoration:none;color:var(--text);transition:border-color .15s,transform .15s,box-shadow .15s,background-color .18s}
188
+ .page-nav>a:hover{border-color:var(--accent);text-decoration:none;color:var(--ink)}
189
+ .page-nav small{display:block;color:var(--muted);font-size:.7rem;text-transform:uppercase;letter-spacing:0;margin-bottom:5px;font-weight:600}
190
+ .page-nav span{display:block;font-weight:600;line-height:1.3;color:var(--ink)}
191
+ .page-nav-prev{text-align:left}
192
+ .page-nav-next{text-align:right;grid-column:2}
193
+ .page-nav-prev:only-child{grid-column:1}
194
+ .nav-toggle{display:none;position:fixed;top:14px;right:14px;top:calc(14px + env(safe-area-inset-top, 0px));right:calc(14px + env(safe-area-inset-right, 0px));z-index:20;width:40px;height:40px;border-radius:9px;background:var(--paper);border:1px solid var(--line);color:var(--ink);cursor:pointer;padding:10px 9px;flex-direction:column;align-items:stretch;justify-content:space-between;box-shadow:var(--shadow-card)}
195
+ .nav-toggle span{display:block;width:100%;height:2px;flex:0 0 2px;background:currentColor;border-radius:2px;transition:transform .2s,opacity .2s}
196
+ .nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(8px) rotate(45deg)}
197
+ .nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
198
+ .nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
199
+ @media(max-width:900px){
200
+ .shell{display:block}
201
+ .sidebar{position:fixed;inset:0 30% 0 0;max-width:320px;height:100vh;z-index:15;transform:translateX(-100%);transition:transform .25s ease,background-color .18s,border-color .18s;box-shadow:0 18px 40px rgba(0,0,0,.18);background:var(--paper);pointer-events:none}
202
+ .sidebar.open{transform:translateX(0);pointer-events:auto}
203
+ .nav-toggle{display:flex}
204
+ main{padding:64px 18px 56px}
205
+ .hero{padding-top:6px}
206
+ .hero h1{font-size:1.8rem}
207
+ .home-hero h1{font-size:2.45rem}
208
+ .doc h1{font-size:2.1rem}
209
+ .hero-meta{width:100%;justify-content:flex-start}
210
+ .home-hero{padding-top:8px}
211
+ .doc{padding:0}
212
+ .doc-grid{margin-top:18px;gap:24px}
213
+ .doc :is(h2,h3,h4) .anchor{display:none}
214
+ }
215
+ @media(max-width:520px){
216
+ main{padding:60px 14px 48px}
217
+ .doc pre{margin-left:-14px;margin-right:-14px;border-radius:0;border-left:0;border-right:0}
218
+ .home-install{flex-wrap:wrap}
219
+ }
220
+ </style>
221
+ </head>
222
+ <body>
223
+ <button class="nav-toggle" type="button" aria-label="Toggle navigation" aria-expanded="false">
224
+ <span aria-hidden="true"></span><span aria-hidden="true"></span><span aria-hidden="true"></span>
225
+ </button>
226
+ <div class="shell">
227
+ <aside class="sidebar">
228
+ <div class="sidebar-head">
229
+ <a class="brand" href="./" aria-label="acpx docs home">
230
+ <span class="mark" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.8 6.8 10 12l-5.2 5.2" stroke="#7dd3fc" stroke-width="2.7" stroke-linecap="round" stroke-linejoin="round"/><path d="M13.2 7.2h2.9c1.7 0 3.1 1.4 3.1 3.1v.5c0 1.7-1.4 3.1-3.1 3.1h-1.4c-1.7 0-3.1 1.4-3.1 3.1v.5" stroke="#a78bfa" stroke-width="1.8" stroke-linecap="round"/><circle cx="13.2" cy="7.2" r="1.6" fill="#7dd3fc"/><circle cx="19.2" cy="12" r="1.6" fill="#a78bfa"/><rect class="cursor" x="13.2" y="16.2" width="6.6" height="2.5" rx="1.25" fill="#e0e7ff"/></svg></span>
231
+ <span><strong>acpx</strong><small>ACP CLI docs</small></span>
232
+ </a>
233
+ <button class="theme-toggle" type="button" aria-label="Toggle dark mode" aria-pressed="false" data-theme-toggle>
234
+ <svg class="theme-icon-moon" viewBox="0 0 20 20" aria-hidden="true"><path d="M14.6 12.1A6.5 6.5 0 0 1 7.4 2.7a6.5 6.5 0 1 0 7.2 9.4z" fill="currentColor"/></svg>
235
+ <svg class="theme-icon-sun" viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="3.4" fill="currentColor"/><g stroke="currentColor" stroke-width="1.6" stroke-linecap="round"><line x1="10" y1="2" x2="10" y2="4"/><line x1="10" y1="16" x2="10" y2="18"/><line x1="2" y1="10" x2="4" y2="10"/><line x1="16" y1="10" x2="18" y2="10"/><line x1="4.2" y1="4.2" x2="5.6" y2="5.6"/><line x1="14.4" y1="14.4" x2="15.8" y2="15.8"/><line x1="4.2" y1="15.8" x2="5.6" y2="14.4"/><line x1="14.4" y1="5.6" x2="15.8" y2="4.2"/></g></svg>
236
+ </button>
237
+ </div>
238
+ <label class="search"><span>Search</span><input id="doc-search" type="search" placeholder="sessions, flows, json…"></label>
239
+ <nav><section><h2>Start</h2><a class="nav-link" href="./">Overview</a><a class="nav-link" href="install.html">Install</a><a class="nav-link" href="quickstart.html">Quickstart</a></section><section><h2>Agents</h2><a class="nav-link" href="agents.html">Agents</a><a class="nav-link" href="custom-agents.html">Custom agents</a></section><section><h2>Sessions</h2><a class="nav-link" href="sessions.html">Sessions</a><a class="nav-link" href="prompting.html">Prompting</a><a class="nav-link" href="session-control.html">Session control</a></section><section><h2>Output &amp; Policy</h2><a class="nav-link" href="output-formats.html">Output formats</a><a class="nav-link" href="permissions.html">Permissions</a><a class="nav-link" href="config.html">Config</a></section><section><h2>Flows</h2><a class="nav-link" href="flows.html">Flows</a></section><section><h2>Reference</h2><a class="nav-link" href="CLI.html">CLI Reference</a><a class="nav-link" href="exit-codes.html">Exit codes</a><a class="nav-link active" href="VISION.html">Vision</a></section></nav>
240
+ </aside>
241
+ <main>
242
+ <header class="hero">
243
+ <div class="hero-text">
244
+ <p class="eyebrow">Reference</p>
245
+ <h1>Vision</h1>
246
+ </div>
247
+ <div class="hero-meta">
248
+ <a class="repo" href="https://github.com/scottzx/1acp" rel="noopener">GitHub</a>
249
+ <a class="edit" href="https://github.com/scottzx/1acp/edit/main/packages/runtime/docs/VISION.md" rel="noopener">Edit page</a>
250
+ </div>
251
+ </header>
252
+ <div class="doc-grid">
253
+ <article class="doc"><p><code>acpx</code> should be the smallest useful ACP client: a lightweight CLI that lets one agent talk to another agent through the Agent Client Protocol without PTY scraping or adapter-specific glue.</p>
254
+ <p>The goal is not to build a giant orchestration layer. The goal is to make ACP practical, robust, and easy to compose in real workflows.</p>
255
+ <p>Project overview: <a href="https://github.com/openclaw/acpx/blob/main/README.md"><code>README.md</code></a> Contribution guide: <a href="https://github.com/openclaw/acpx/blob/main/CONTRIBUTING.md"><code>CONTRIBUTING.md</code></a></p>
256
+ <h2 id="core-idea"><a class="anchor" href="#core-idea" aria-label="Anchor link">#</a>Core idea</h2>
257
+ <p><code>acpx</code> exists to make agent-to-agent communication over ACP reliable from the command line.</p>
258
+ <p>It should work in two modes at the same time:</p>
259
+ <ul>
260
+ <li>as an agent-first CLI that humans can still drive directly when needed</li>
261
+ <li>as a reusable backend for tools that do not want to reimplement session</li>
262
+ <p>storage, queueing, lifecycle handling, or harness-specific behavior</p>
263
+ </ul>
264
+ <p>If a tool wants ACP sessions, structured output, queueing, and persistence, it should be able to delegate those concerns to <code>acpx</code> instead of rebuilding them. The primary user is another agent, orchestrator, or harness. Human usability still matters, but it is a secondary constraint.</p>
265
+ <h2 id="principles"><a class="anchor" href="#principles" aria-label="Anchor link">#</a>Principles</h2>
266
+ <h3 id="1-interoperability-first"><a class="anchor" href="#1-interoperability-first" aria-label="Anchor link">#</a>1. Interoperability first</h3>
267
+ <p><code>acpx</code> should maximize interoperability across ACP adapters, agent harnesses, and automation tools.</p>
268
+ <p>The standard is ACP, not the quirks of a single agent. Where adapters differ, <code>acpx</code> should smooth the rough edges in a robust way without hiding important protocol semantics.</p>
269
+ <p>This means:</p>
270
+ <ul>
271
+ <li>keep the wire-level behavior close to ACP</li>
272
+ <li>normalize common incompatibilities when it improves portability</li>
273
+ <li>preserve structured data so downstream tools can make their own decisions</li>
274
+ <li>avoid features that lock users into one agent or one harness</li>
275
+ </ul>
276
+ <h3 id="2-keep-the-core-small"><a class="anchor" href="#2-keep-the-core-small" aria-label="Anchor link">#</a>2. Keep the core small</h3>
277
+ <p><code>acpx</code> should not try to do too many things at once.</p>
278
+ <p>It should stay focused on the problems that are central to being a strong ACP client:</p>
279
+ <ul>
280
+ <li>starting and talking to ACP agents</li>
281
+ <li>managing persistent sessions</li>
282
+ <li>queueing prompts safely</li>
283
+ <li>handling permissions and lifecycle concerns</li>
284
+ <li>rendering structured responses for humans and machines</li>
285
+ </ul>
286
+ <p>If a feature does not make <code>acpx</code> a better ACP client or backend, it probably does not belong in core.</p>
287
+ <h3 id="3-robust-by-default"><a class="anchor" href="#3-robust-by-default" aria-label="Anchor link">#</a>3. Robust by default</h3>
288
+ <p><code>acpx</code> should be dependable in long-running, automated, and multi-turn workflows.</p>
289
+ <p>That means the defaults should favor:</p>
290
+ <ul>
291
+ <li>session continuity</li>
292
+ <li>safe queueing behavior</li>
293
+ <li>clear failure modes</li>
294
+ <li>recoverable lifecycle management</li>
295
+ <li>machine-readable output and stable exit behavior</li>
296
+ </ul>
297
+ <p>Robustness matters more than novelty. A boring feature that works everywhere is better than a clever feature that only works in one harness.</p>
298
+ <h3 id="4-conventions-are-api-surface"><a class="anchor" href="#4-conventions-are-api-surface" aria-label="Anchor link">#</a>4. Conventions are API surface</h3>
299
+ <p>In <code>acpx</code>, data models, config keys, keywords, flags, output shapes, and naming conventions are part of the product surface.</p>
300
+ <p>They should be scrutinized multiple times before being added or changed. Convenience is not enough. Every new convention creates long-term compatibility cost.</p>
301
+ <p>This applies even to choices that may look small. For example, when <code>acpx</code> defines <code>claude</code> instead of <code>claude-code</code>, that should be an intentional convention, not a casual shortcut.</p>
302
+ <p>People and tools will build workflows on top of <code>acpx</code>. Once a keyword, flag, field, or convention becomes part of those workflows, changing it casually can break users and create unnecessary cruft. The default stance should be to add fewer conventions, make them clearer, and keep them stable.</p>
303
+ <h3 id="5-fully-customizable"><a class="anchor" href="#5-fully-customizable" aria-label="Anchor link">#</a>5. Fully customizable</h3>
304
+ <p><code>acpx</code> should be easy to customize locally and per project.</p>
305
+ <p>Static config should cover the common cases well. When users need more than static JSON, they should be able to define and extend their local <code>acpx</code> configuration programmatically in a controlled way, similar in spirit to Pi.</p>
306
+ <p>The point of customization is not to make the core bigger. The point is to let users adapt <code>acpx</code> to their environment without forking it.</p>
307
+ <h3 id="6-backend-friendly"><a class="anchor" href="#6-backend-friendly" aria-label="Anchor link">#</a>6. Backend-friendly</h3>
308
+ <p><code>acpx</code> should be useful even for tools whose end users never type <code>acpx</code> directly.</p>
309
+ <p>Many tools want the benefits of ACP, but they do not want to own:</p>
310
+ <ul>
311
+ <li>session persistence</li>
312
+ <li>queue ownership</li>
313
+ <li>prompt serialization</li>
314
+ <li>adapter process management</li>
315
+ <li>permission policy behavior</li>
316
+ <li>harness-specific operational details</li>
317
+ </ul>
318
+ <p><code>acpx</code> should be able to serve as that backend layer cleanly and predictably.</p>
319
+ <h2 id="configuration-and-extension"><a class="anchor" href="#configuration-and-extension" aria-label="Anchor link">#</a>Configuration and extension</h2>
320
+ <p>Configuration should be a strength of <code>acpx</code>, not an afterthought.</p>
321
+ <p>Users should be able to define:</p>
322
+ <ul>
323
+ <li>default agents and agent commands</li>
324
+ <li>project-local overrides</li>
325
+ <li>permission policies</li>
326
+ <li>output formats</li>
327
+ <li>session behavior</li>
328
+ <li>reusable local conventions</li>
329
+ </ul>
330
+ <p>Over time, <code>acpx</code> should support a robust programmatic extension model for local configuration when declarative config is not enough. That model should be explicit, inspectable, and predictable.</p>
331
+ <h2 id="what-acpx-should-enable"><a class="anchor" href="#what-acpx-should-enable" aria-label="Anchor link">#</a>What acpx should enable</h2>
332
+ <p><code>acpx</code> should make it straightforward to:</p>
333
+ <ul>
334
+ <li>swap one ACP-capable agent for another without rewriting orchestration</li>
335
+ <li>run persistent multi-turn sessions from shell scripts and CI-like tooling</li>
336
+ <li>build higher-level tools on top of a stable session and queueing layer</li>
337
+ <li>preserve structured agent output instead of scraping terminal text</li>
338
+ <li>bridge differences between harnesses without hard-coding every harness into</li>
339
+ <p>downstream tools</p>
340
+ </ul>
341
+ <h2 id="what-acpx-should-not-become"><a class="anchor" href="#what-acpx-should-not-become" aria-label="Anchor link">#</a>What acpx should not become</h2>
342
+ <p><code>acpx</code> should not become:</p>
343
+ <ul>
344
+ <li>a kitchen-sink automation framework</li>
345
+ <li>a replacement for every agent harness</li>
346
+ <li>a UI-heavy product with a thin CLI attached</li>
347
+ <li>a pile of agent-specific special cases with no coherent core</li>
348
+ </ul>
349
+ <p>The test for new features should be simple:</p>
350
+ <p>Does this make <code>acpx</code> more interoperable, more robust, or more useful as a lightweight ACP backend?</p>
351
+ <p>If not, it should probably live outside the core.</p><nav class="page-nav" aria-label="Pager"><a class="page-nav-prev" href="exit-codes.html"><small>Previous</small><span>Exit codes</span></a></nav></article>
352
+ <nav class="toc" aria-label="On this page"><h2>On this page</h2><a class="toc-l2" href="#core-idea">#Core idea</a><a class="toc-l2" href="#principles">#Principles</a><a class="toc-l3" href="#1-interoperability-first">#1. Interoperability first</a><a class="toc-l3" href="#2-keep-the-core-small">#2. Keep the core small</a><a class="toc-l3" href="#3-robust-by-default">#3. Robust by default</a><a class="toc-l3" href="#4-conventions-are-api-surface">#4. Conventions are API surface</a><a class="toc-l3" href="#5-fully-customizable">#5. Fully customizable</a><a class="toc-l3" href="#6-backend-friendly">#6. Backend-friendly</a><a class="toc-l2" href="#configuration-and-extension">#Configuration and extension</a><a class="toc-l2" href="#what-acpx-should-enable">#What acpx should enable</a><a class="toc-l2" href="#what-acpx-should-not-become">#What acpx should not become</a></nav>
353
+ </div>
354
+ </main>
355
+ </div>
356
+ <script>
357
+ const themeRoot=document.documentElement;
358
+ function applyTheme(mode){themeRoot.dataset.theme=mode;document.querySelectorAll('[data-theme-toggle]').forEach(b=>b.setAttribute('aria-pressed',mode==='dark'?'true':'false'))}
359
+ function storedTheme(){try{return localStorage.getItem('theme')}catch(e){return null}}
360
+ function persistTheme(mode){try{localStorage.setItem('theme',mode)}catch(e){}}
361
+ applyTheme(themeRoot.dataset.theme==='dark'?'dark':'light');
362
+ document.querySelectorAll('[data-theme-toggle]').forEach(btn=>{btn.addEventListener('click',()=>{const next=themeRoot.dataset.theme==='dark'?'light':'dark';applyTheme(next);persistTheme(next)})});
363
+ const systemDark=window.matchMedia&&matchMedia('(prefers-color-scheme: dark)');
364
+ function onSystemChange(e){if(storedTheme())return;applyTheme(e.matches?'dark':'light')}
365
+ if(systemDark){if(systemDark.addEventListener)systemDark.addEventListener('change',onSystemChange);else if(systemDark.addListener)systemDark.addListener(onSystemChange)}
366
+ const sidebar=document.querySelector('.sidebar');
367
+ const toggle=document.querySelector('.nav-toggle');
368
+ const mobileNav=window.matchMedia('(max-width: 900px)');
369
+ const sidebarFocusable='a[href],button,input,select,textarea,[tabindex]';
370
+ function setSidebarFocusable(enabled){
371
+ sidebar?.querySelectorAll(sidebarFocusable).forEach((el)=>{
372
+ if(enabled){
373
+ if(el.dataset.sidebarTabindex!==undefined){
374
+ if(el.dataset.sidebarTabindex)el.setAttribute('tabindex',el.dataset.sidebarTabindex);
375
+ else el.removeAttribute('tabindex');
376
+ delete el.dataset.sidebarTabindex;
377
+ }
378
+ }else if(el.dataset.sidebarTabindex===undefined){
379
+ el.dataset.sidebarTabindex=el.getAttribute('tabindex')??'';
380
+ el.setAttribute('tabindex','-1');
381
+ }
382
+ });
383
+ }
384
+ function setSidebarOpen(open){
385
+ if(!sidebar||!toggle)return;
386
+ sidebar.classList.toggle('open',open);
387
+ toggle.setAttribute('aria-expanded',open?'true':'false');
388
+ if(mobileNav.matches){
389
+ sidebar.inert=!open;
390
+ if(open)sidebar.removeAttribute('aria-hidden');
391
+ else sidebar.setAttribute('aria-hidden','true');
392
+ setSidebarFocusable(open);
393
+ }else{
394
+ sidebar.inert=false;
395
+ sidebar.removeAttribute('aria-hidden');
396
+ setSidebarFocusable(true);
397
+ }
398
+ }
399
+ setSidebarOpen(false);
400
+ toggle?.addEventListener('click',()=>setSidebarOpen(!sidebar?.classList.contains('open')));
401
+ document.addEventListener('click',(e)=>{if(!sidebar?.classList.contains('open'))return;if(sidebar.contains(e.target)||toggle?.contains(e.target))return;setSidebarOpen(false)});
402
+ document.addEventListener('keydown',(e)=>{if(e.key==='Escape')setSidebarOpen(false)});
403
+ const syncSidebarForViewport=()=>setSidebarOpen(sidebar?.classList.contains('open')??false);
404
+ if(mobileNav.addEventListener)mobileNav.addEventListener('change',syncSidebarForViewport);
405
+ else mobileNav.addListener?.(syncSidebarForViewport);
406
+ const input=document.getElementById('doc-search');
407
+ input?.addEventListener('input',()=>{const q=input.value.trim().toLowerCase();document.querySelectorAll('nav section').forEach(sec=>{let any=false;sec.querySelectorAll('.nav-link').forEach(a=>{const m=!q||a.textContent.toLowerCase().includes(q);a.style.display=m?'block':'none';if(m)any=true});sec.style.display=any?'block':'none'})});
408
+ function attachCopy(target,getText){const btn=document.createElement('button');btn.type='button';btn.className='copy';btn.textContent='Copy';btn.addEventListener('click',async()=>{try{await navigator.clipboard.writeText(getText());btn.textContent='Copied';btn.classList.add('copied');setTimeout(()=>{btn.textContent='Copy';btn.classList.remove('copied')},1400)}catch{btn.textContent='Failed';setTimeout(()=>{btn.textContent='Copy'},1400)}});target.appendChild(btn)}
409
+ document.querySelectorAll('.doc pre').forEach(pre=>attachCopy(pre,()=>pre.querySelector('code')?.textContent??''));
410
+ document.querySelectorAll('.home-install').forEach(el=>attachCopy(el,()=>el.querySelector('code')?.textContent??''));
411
+ const tocLinks=document.querySelectorAll('.toc a');
412
+ if(tocLinks.length){const map=new Map();tocLinks.forEach(a=>{const id=a.getAttribute('href').slice(1);const el=document.getElementById(id);if(el)map.set(el,a)});const setActive=l=>{tocLinks.forEach(x=>x.classList.remove('active'));l.classList.add('active')};const obs=new IntersectionObserver(entries=>{const visible=entries.filter(e=>e.isIntersecting).sort((a,b)=>a.boundingClientRect.top-b.boundingClientRect.top);if(visible.length){const link=map.get(visible[0].target);if(link)setActive(link)}},{rootMargin:'-15% 0px -65% 0px',threshold:0});map.forEach((_,el)=>obs.observe(el))}
413
+ </script>
414
+ </body>
415
+ </html>