@dudko.dev/agent-web-react 0.0.20 → 0.0.21
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.
- package/README.md +9 -2
- package/dist/index.cjs +190 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +105 -5
- package/dist/index.d.ts +105 -5
- package/dist/index.js +188 -28
- package/dist/index.js.map +1 -1
- package/dist/styles.css +104 -0
- package/package.json +3 -3
package/dist/styles.css
CHANGED
|
@@ -1406,3 +1406,107 @@
|
|
|
1406
1406
|
max-width: 70vw;
|
|
1407
1407
|
}
|
|
1408
1408
|
}
|
|
1409
|
+
|
|
1410
|
+
/* ── notebook: the agent's own lessons, and what it fetched ─────────────────── */
|
|
1411
|
+
.awr-notebook {
|
|
1412
|
+
font-size: 13px;
|
|
1413
|
+
}
|
|
1414
|
+
.awr-notebook__title {
|
|
1415
|
+
display: flex;
|
|
1416
|
+
align-items: center;
|
|
1417
|
+
gap: 6px;
|
|
1418
|
+
margin: 0 0 8px;
|
|
1419
|
+
font-size: 13px;
|
|
1420
|
+
font-weight: 600;
|
|
1421
|
+
}
|
|
1422
|
+
.awr-notebook__count {
|
|
1423
|
+
margin-left: auto;
|
|
1424
|
+
padding: 0 6px;
|
|
1425
|
+
border-radius: 999px;
|
|
1426
|
+
background: var(--awr-subtle);
|
|
1427
|
+
color: var(--awr-muted);
|
|
1428
|
+
font-size: 11px;
|
|
1429
|
+
font-weight: 500;
|
|
1430
|
+
}
|
|
1431
|
+
.awr-notebook__empty {
|
|
1432
|
+
margin: 0;
|
|
1433
|
+
color: var(--awr-muted);
|
|
1434
|
+
}
|
|
1435
|
+
.awr-notebook__list {
|
|
1436
|
+
display: flex;
|
|
1437
|
+
flex-direction: column;
|
|
1438
|
+
gap: 8px;
|
|
1439
|
+
margin: 0;
|
|
1440
|
+
padding: 0;
|
|
1441
|
+
list-style: none;
|
|
1442
|
+
}
|
|
1443
|
+
.awr-lesson {
|
|
1444
|
+
padding: 8px 10px;
|
|
1445
|
+
border: 1px solid var(--awr-border);
|
|
1446
|
+
border-radius: 8px;
|
|
1447
|
+
background: var(--awr-subtle);
|
|
1448
|
+
}
|
|
1449
|
+
.awr-lesson__head {
|
|
1450
|
+
display: flex;
|
|
1451
|
+
align-items: center;
|
|
1452
|
+
gap: 6px;
|
|
1453
|
+
}
|
|
1454
|
+
.awr-lesson__name {
|
|
1455
|
+
font-family: var(--awr-mono);
|
|
1456
|
+
font-size: 12px;
|
|
1457
|
+
word-break: break-all;
|
|
1458
|
+
}
|
|
1459
|
+
.awr-lesson__rev {
|
|
1460
|
+
color: var(--awr-muted);
|
|
1461
|
+
font-size: 11px;
|
|
1462
|
+
}
|
|
1463
|
+
.awr-lesson__forget {
|
|
1464
|
+
display: inline-flex;
|
|
1465
|
+
margin-left: auto;
|
|
1466
|
+
padding: 2px;
|
|
1467
|
+
border: 0;
|
|
1468
|
+
border-radius: 4px;
|
|
1469
|
+
background: transparent;
|
|
1470
|
+
color: var(--awr-muted);
|
|
1471
|
+
cursor: pointer;
|
|
1472
|
+
}
|
|
1473
|
+
.awr-lesson__forget:hover {
|
|
1474
|
+
color: var(--awr-danger);
|
|
1475
|
+
}
|
|
1476
|
+
.awr-lesson__when {
|
|
1477
|
+
margin: 4px 0 0;
|
|
1478
|
+
}
|
|
1479
|
+
.awr-lesson__from {
|
|
1480
|
+
margin: 4px 0 0;
|
|
1481
|
+
color: var(--awr-muted);
|
|
1482
|
+
font-size: 11px;
|
|
1483
|
+
word-break: break-all;
|
|
1484
|
+
}
|
|
1485
|
+
.awr-learned {
|
|
1486
|
+
display: flex;
|
|
1487
|
+
align-items: center;
|
|
1488
|
+
gap: 6px;
|
|
1489
|
+
margin: 6px 0 0;
|
|
1490
|
+
color: var(--awr-muted);
|
|
1491
|
+
font-size: 12px;
|
|
1492
|
+
}
|
|
1493
|
+
.awr-fetches {
|
|
1494
|
+
margin: 6px 0 0;
|
|
1495
|
+
padding: 0;
|
|
1496
|
+
list-style: none;
|
|
1497
|
+
font-size: 12px;
|
|
1498
|
+
}
|
|
1499
|
+
.awr-fetch {
|
|
1500
|
+
display: flex;
|
|
1501
|
+
flex-wrap: wrap;
|
|
1502
|
+
align-items: center;
|
|
1503
|
+
gap: 4px;
|
|
1504
|
+
color: var(--awr-muted);
|
|
1505
|
+
}
|
|
1506
|
+
.awr-fetch code {
|
|
1507
|
+
font-family: var(--awr-mono);
|
|
1508
|
+
word-break: break-all;
|
|
1509
|
+
}
|
|
1510
|
+
.awr-fetch--refused {
|
|
1511
|
+
color: var(--awr-warn);
|
|
1512
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dudko.dev/agent-web-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"description": "React bindings for @dudko.dev/agent-web: a headless useAgent hook, an AgentProvider context, and optional pre-styled components (chat panel, plan/step view, BYOK key form, WebLLM load bar) that connect the in-browser LLM agent to any React site. UI you can drop in — or a headless reducer you can build your own around.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -115,12 +115,12 @@
|
|
|
115
115
|
"node": ">=18"
|
|
116
116
|
},
|
|
117
117
|
"peerDependencies": {
|
|
118
|
-
"@dudko.dev/agent-web": ">=0.0.
|
|
118
|
+
"@dudko.dev/agent-web": ">=0.0.30",
|
|
119
119
|
"react": ">=18",
|
|
120
120
|
"react-dom": ">=18"
|
|
121
121
|
},
|
|
122
122
|
"devDependencies": {
|
|
123
|
-
"@dudko.dev/agent-web": "^0.0.
|
|
123
|
+
"@dudko.dev/agent-web": "^0.0.30",
|
|
124
124
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
125
125
|
"@playwright/test": "^1.65.0",
|
|
126
126
|
"@types/node": "^22.9.0",
|