agentgui 1.0.909 → 1.0.911

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 (2) hide show
  1. package/package.json +1 -1
  2. package/site/theme.mjs +18 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.909",
3
+ "version": "1.0.911",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "electron/main.js",
package/site/theme.mjs CHANGED
@@ -1,8 +1,7 @@
1
1
  // AnEntrypoint design-system theme for flatspace.
2
2
  // Renders site chrome via anentrypoint-design SDK using REAL SDK components.
3
3
  // theme.mjs emits HTML shell + bootstrap that consumes YAML baked into <script id="__site__">.
4
- // The SDK provides ALL styling via installStyles(); no local <style> block that ensures
5
- // every portfolio site looks uniform.
4
+ // SDK provides ALL styling via installStyles(); plus a tiny inline body-margin reset.
6
5
 
7
6
  const escapeHtml = (s) => String(s ?? '')
8
7
  .replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;')
@@ -10,7 +9,7 @@ const escapeHtml = (s) => String(s ?? '')
10
9
 
11
10
  const escapeJson = (obj) => JSON.stringify(obj)
12
11
  .replace(/</g, '\\u003c').replace(/>/g, '\\u003e').replace(/&/g, '\\u0026')
13
- .replace(new RegExp('\\u2028','g'), '\\u2028').replace(new RegExp('\\u2029','g'), '\\u2029');
12
+ .replace(new RegExp('\\u2028', 'g'), '\\u2028').replace(new RegExp('\\u2029', 'g'), '\\u2029');
14
13
 
15
14
  const SDK_URL = 'https://unpkg.com/anentrypoint-design@latest/dist/247420.js';
16
15
 
@@ -31,10 +30,10 @@ function Hero() {
31
30
  home.hero.subheading ? C.Lede({ children: home.hero.subheading }) : null,
32
31
  home.hero.body ? h('p', { style: 'margin:8px 0 16px 0;color:var(--panel-text-2);max-width:64ch' }, home.hero.body) : null,
33
32
  (home.hero.badges && home.hero.badges.length) ? h('div', { style: 'display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px 0' },
34
- ...home.hero.badges.map((b, i) => C.Chip({ key: 'b'+i, children: b.label }))
33
+ ...home.hero.badges.map((b, i) => C.Chip({ key: 'b' + i, children: b.label }))
35
34
  ) : null,
36
35
  (home.hero.ctas && home.hero.ctas.length) ? h('div', { style: 'display:flex;gap:8px;flex-wrap:wrap' },
37
- ...home.hero.ctas.map((c, i) => C.Btn({ key: 'c'+i, href: c.href, primary: c.primary, children: c.label }))
36
+ ...home.hero.ctas.map((c, i) => C.Btn({ key: 'c' + i, href: c.href, primary: c.primary, children: c.label }))
38
37
  ) : null
39
38
  )
40
39
  });
@@ -43,8 +42,8 @@ function Hero() {
43
42
  function Features() {
44
43
  if (!home || !home.features || !home.features.items || !home.features.items.length) return null;
45
44
  const rows = home.features.items.map((it, i) => C.RowLink({
46
- key: 'f'+i,
47
- code: String(i+1).padStart(2,'0'),
45
+ key: 'f' + i,
46
+ code: String(i + 1).padStart(2, '0'),
48
47
  title: it.name,
49
48
  sub: it.desc || '',
50
49
  meta: it.meta || '',
@@ -59,10 +58,13 @@ function Features() {
59
58
 
60
59
  function Quickstart() {
61
60
  if (!home || !home.quickstart || !home.quickstart.lines || !home.quickstart.lines.length) return null;
62
- const lineNodes = home.quickstart.lines.map((l, i) => h('div', { key: 'q'+i, class: 'cli' },
63
- h('span', { class: 'prompt' }, (l.kind === 'cmt' ? '#' : '$')),
64
- h('span', { class: 'cmd' }, l.text)
65
- ));
61
+ const lineNodes = home.quickstart.lines.map((l, i) => {
62
+ const isComment = l.kind === 'cmt';
63
+ return h('div', { key: 'q' + i, class: 'cli' },
64
+ h('span', { class: 'prompt' }, isComment ? '#' : '$'),
65
+ h('span', { class: 'cmd' }, l.text)
66
+ );
67
+ });
66
68
  return C.Panel({
67
69
  title: home.quickstart.heading || 'quick start',
68
70
  style: 'margin:8px',
@@ -73,7 +75,7 @@ function Quickstart() {
73
75
  function Examples() {
74
76
  if (!home || !home.examples || !home.examples.items || !home.examples.items.length) return null;
75
77
  const rows = home.examples.items.map((it, i) => C.RowLink({
76
- key: 'e'+i,
78
+ key: 'e' + i,
77
79
  title: it.name,
78
80
  sub: it.desc || '',
79
81
  meta: it.cta || 'open',
@@ -145,6 +147,10 @@ const html = ({ site, nav, home }) => `<!DOCTYPE html>
145
147
  `;
146
148
 
147
149
  export default {
150
+ assets: {
151
+ '../docs/demo.html': 'demo.html',
152
+ '../docs/screenshots': 'screenshots',
153
+ },
148
154
  render: async (ctx) => {
149
155
  const site = ctx.readGlobal('site') || {};
150
156
  const nav = ctx.readGlobal('navigation') || { links: [] };