@qwen-code/arena-agent 0.0.8 → 0.0.9-dev.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 (55) hide show
  1. package/.env.example +41 -11
  2. package/README.md +128 -29
  3. package/dist/agent.d.ts +2 -0
  4. package/dist/agent.js +57 -36
  5. package/dist/agent.js.map +1 -1
  6. package/dist/cli.js +12 -4
  7. package/dist/cli.js.map +1 -1
  8. package/dist/compaction.js +2 -1
  9. package/dist/compaction.js.map +1 -1
  10. package/dist/config.d.ts +11 -0
  11. package/dist/config.js +73 -9
  12. package/dist/config.js.map +1 -1
  13. package/dist/conversation-metrics.d.ts +61 -0
  14. package/dist/conversation-metrics.js +433 -0
  15. package/dist/conversation-metrics.js.map +1 -0
  16. package/dist/document-reader.js +9 -0
  17. package/dist/document-reader.js.map +1 -1
  18. package/dist/history.d.ts +31 -2
  19. package/dist/history.js +53 -3
  20. package/dist/history.js.map +1 -1
  21. package/dist/metrics.d.ts +61 -0
  22. package/dist/metrics.js +578 -0
  23. package/dist/metrics.js.map +1 -0
  24. package/dist/mock.js +153 -0
  25. package/dist/mock.js.map +1 -1
  26. package/dist/protocol.d.ts +1 -1
  27. package/dist/protocol.js +9 -2
  28. package/dist/protocol.js.map +1 -1
  29. package/dist/provider.js +22 -8
  30. package/dist/provider.js.map +1 -1
  31. package/dist/runtime-assets.d.ts +3 -0
  32. package/dist/runtime-assets.js +16 -0
  33. package/dist/runtime-assets.js.map +1 -0
  34. package/dist/sdk.d.ts +28 -1
  35. package/dist/sdk.js +38 -0
  36. package/dist/sdk.js.map +1 -1
  37. package/dist/server.js +486 -36
  38. package/dist/server.js.map +1 -1
  39. package/dist/side-query.d.ts +31 -0
  40. package/dist/side-query.js +138 -0
  41. package/dist/side-query.js.map +1 -0
  42. package/dist/spec.js +4 -1
  43. package/dist/spec.js.map +1 -1
  44. package/dist/tools.js +122 -45
  45. package/dist/tools.js.map +1 -1
  46. package/dist/tui.js +4 -3
  47. package/dist/tui.js.map +1 -1
  48. package/dist/types.d.ts +155 -0
  49. package/dist/web/app.d.ts +1 -0
  50. package/dist/web/app.js +333 -10
  51. package/dist/web/app.js.map +1 -1
  52. package/docs/SDK.md +563 -0
  53. package/package.json +5 -1
  54. package/web/index.html +25 -0
  55. package/web/styles.css +109 -3
package/web/styles.css CHANGED
@@ -520,6 +520,51 @@ a:focus-visible {
520
520
  animation: none;
521
521
  }
522
522
 
523
+ .session-metrics {
524
+ display: flex;
525
+ min-width: 0;
526
+ align-items: center;
527
+ gap: 7px;
528
+ margin-left: auto;
529
+ margin-right: 18px;
530
+ }
531
+
532
+ .metric-chip {
533
+ display: grid;
534
+ min-width: 118px;
535
+ grid-template-columns: auto auto;
536
+ gap: 7px;
537
+ align-items: baseline;
538
+ padding: 6px 9px;
539
+ border: 1px solid var(--line-soft);
540
+ border-radius: 6px;
541
+ background: rgb(255 255 255 / 2%);
542
+ white-space: nowrap;
543
+ }
544
+
545
+ .metric-chip small {
546
+ color: var(--dim);
547
+ font-size: 9px;
548
+ }
549
+
550
+ .metric-chip strong {
551
+ color: var(--text-soft);
552
+ font-size: 10px;
553
+ font-weight: 500;
554
+ }
555
+
556
+ .metric-chip[data-state="good"] strong {
557
+ color: var(--accent);
558
+ }
559
+
560
+ .metric-chip[data-state="warning"] strong {
561
+ color: #d9a255;
562
+ }
563
+
564
+ .metric-chip[data-state="bad"] strong {
565
+ color: var(--red);
566
+ }
567
+
523
568
  @keyframes pulse {
524
569
  50% {
525
570
  opacity: 0.35;
@@ -768,7 +813,9 @@ a:focus-visible {
768
813
  .add-files,
769
814
  .composer-tools button,
770
815
  .artifact-toggle,
816
+ .undo-button,
771
817
  .send-button,
818
+ .retry-button,
772
819
  .stop-button {
773
820
  height: 34px;
774
821
  border: 1px solid var(--line);
@@ -808,7 +855,8 @@ a:focus-visible {
808
855
 
809
856
  .add-files:hover,
810
857
  .composer-tools button:hover,
811
- .artifact-toggle:hover {
858
+ .artifact-toggle:hover,
859
+ .undo-button:hover:not(:disabled) {
812
860
  border-color: #6b6661;
813
861
  background: var(--panel-raised);
814
862
  }
@@ -828,6 +876,17 @@ a:focus-visible {
828
876
  font-size: 9px;
829
877
  }
830
878
 
879
+ .undo-button {
880
+ padding: 0 10px;
881
+ color: var(--text-soft);
882
+ font-size: 11px;
883
+ }
884
+
885
+ .undo-button:disabled {
886
+ cursor: default;
887
+ opacity: 0.5;
888
+ }
889
+
831
890
  .send-button {
832
891
  display: grid;
833
892
  width: 34px;
@@ -857,6 +916,23 @@ a:focus-visible {
857
916
  font-size: 10px;
858
917
  }
859
918
 
919
+ .retry-button {
920
+ padding: 0 11px;
921
+ border-color: #7a6841;
922
+ color: #e8c978;
923
+ font-size: 11px;
924
+ }
925
+
926
+ .retry-button:hover:not(:disabled) {
927
+ border-color: #b69b5e;
928
+ background: rgb(182 155 94 / 12%);
929
+ }
930
+
931
+ .retry-button:disabled {
932
+ cursor: not-allowed;
933
+ opacity: 0.45;
934
+ }
935
+
860
936
  .stop-button span {
861
937
  width: 7px;
862
938
  height: 7px;
@@ -1525,7 +1601,7 @@ audio.artifact-preview-content {
1525
1601
  }
1526
1602
 
1527
1603
  .workspace-shell {
1528
- grid-template-rows: 56px minmax(0, 1fr);
1604
+ grid-template-rows: 88px minmax(0, 1fr);
1529
1605
  }
1530
1606
 
1531
1607
  .topbar {
@@ -1546,6 +1622,35 @@ audio.artifact-preview-content {
1546
1622
  position: static;
1547
1623
  }
1548
1624
 
1625
+ .session-metrics {
1626
+ position: absolute;
1627
+ top: 52px;
1628
+ right: 8px;
1629
+ left: 8px;
1630
+ justify-content: center;
1631
+ gap: 4px;
1632
+ margin: 0;
1633
+ }
1634
+
1635
+ .metric-chip {
1636
+ min-width: 0;
1637
+ padding: 5px 6px;
1638
+ }
1639
+
1640
+ .metric-chip small {
1641
+ display: none;
1642
+ }
1643
+
1644
+ .metric-chip strong {
1645
+ font-size: 0;
1646
+ }
1647
+
1648
+ .metric-chip strong::after {
1649
+ color: inherit;
1650
+ content: attr(data-mobile-value);
1651
+ font-size: 9px;
1652
+ }
1653
+
1549
1654
  .mode-toggle {
1550
1655
  padding: 0 8px;
1551
1656
  }
@@ -1559,6 +1664,7 @@ audio.artifact-preview-content {
1559
1664
 
1560
1665
  .connection {
1561
1666
  position: absolute;
1667
+ top: 20px;
1562
1668
  right: 15px;
1563
1669
  display: flex;
1564
1670
  margin: 0;
@@ -1588,7 +1694,7 @@ audio.artifact-preview-content {
1588
1694
  }
1589
1695
 
1590
1696
  .announcement {
1591
- top: 76px;
1697
+ top: 108px;
1592
1698
  width: min(296.98px, calc(100vw - 32px));
1593
1699
  height: 38px;
1594
1700
  max-width: none;