@dudko.dev/agent-web-ui 0.0.6 → 0.0.8

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 (170) hide show
  1. package/README.md +52 -0
  2. package/dist/{chunk-NHU6WQM5.js → chunk-ETYLHTPK.js} +435 -1
  3. package/dist/{chunk-627OXMFG.js → chunk-HIHUK7YA.js} +5 -0
  4. package/dist/{chunk-S5AHUAFG.js → chunk-JEW2ZWYX.js} +4 -0
  5. package/dist/{chunk-VZCQXE3P.js → chunk-UO2Q7AIV.js} +4 -0
  6. package/dist/{chunk-V33T6VX3.js → chunk-VG5NLFI5.js} +4 -0
  7. package/dist/controller.cjs +452 -16
  8. package/dist/controller.d.cts +39 -3
  9. package/dist/controller.d.ts +39 -3
  10. package/dist/controller.js +39 -16
  11. package/dist/{en-Dg2MtzcJ.d.cts → en-CPCAidve.d.cts} +4 -0
  12. package/dist/{en-Dg2MtzcJ.d.ts → en-CPCAidve.d.ts} +4 -0
  13. package/dist/index.cjs +458 -4
  14. package/dist/index.d.cts +4 -3
  15. package/dist/index.d.ts +4 -3
  16. package/dist/index.js +37 -1
  17. package/dist/{labels-CCPL7t17.d.ts → labels-CeJMN8NU.d.ts} +9 -1
  18. package/dist/{labels-ipy-ydkp.d.cts → labels-D-NI4hKW.d.cts} +9 -1
  19. package/dist/locales/be.cjs +9 -0
  20. package/dist/locales/be.d.cts +2 -2
  21. package/dist/locales/be.d.ts +2 -2
  22. package/dist/locales/be.js +5 -1
  23. package/dist/locales/bg.cjs +9 -0
  24. package/dist/locales/bg.d.cts +2 -2
  25. package/dist/locales/bg.d.ts +2 -2
  26. package/dist/locales/bg.js +5 -1
  27. package/dist/locales/ca.cjs +9 -0
  28. package/dist/locales/ca.d.cts +2 -2
  29. package/dist/locales/ca.d.ts +2 -2
  30. package/dist/locales/ca.js +5 -1
  31. package/dist/locales/cs.cjs +9 -0
  32. package/dist/locales/cs.d.cts +2 -2
  33. package/dist/locales/cs.d.ts +2 -2
  34. package/dist/locales/cs.js +5 -1
  35. package/dist/locales/da.cjs +9 -0
  36. package/dist/locales/da.d.cts +2 -2
  37. package/dist/locales/da.d.ts +2 -2
  38. package/dist/locales/da.js +5 -1
  39. package/dist/locales/de.cjs +9 -0
  40. package/dist/locales/de.d.cts +2 -2
  41. package/dist/locales/de.d.ts +2 -2
  42. package/dist/locales/de.js +5 -1
  43. package/dist/locales/el.cjs +9 -0
  44. package/dist/locales/el.d.cts +2 -2
  45. package/dist/locales/el.d.ts +2 -2
  46. package/dist/locales/el.js +5 -1
  47. package/dist/locales/en.cjs +9 -0
  48. package/dist/locales/en.d.cts +2 -2
  49. package/dist/locales/en.d.ts +2 -2
  50. package/dist/locales/en.js +5 -1
  51. package/dist/locales/es-419.cjs +9 -0
  52. package/dist/locales/es-419.d.cts +2 -2
  53. package/dist/locales/es-419.d.ts +2 -2
  54. package/dist/locales/es-419.js +2 -2
  55. package/dist/locales/es.cjs +9 -0
  56. package/dist/locales/es.d.cts +2 -2
  57. package/dist/locales/es.d.ts +2 -2
  58. package/dist/locales/es.js +2 -2
  59. package/dist/locales/fi.cjs +9 -0
  60. package/dist/locales/fi.d.cts +2 -2
  61. package/dist/locales/fi.d.ts +2 -2
  62. package/dist/locales/fi.js +5 -1
  63. package/dist/locales/fr-CA.cjs +9 -0
  64. package/dist/locales/fr-CA.d.cts +2 -2
  65. package/dist/locales/fr-CA.d.ts +2 -2
  66. package/dist/locales/fr-CA.js +2 -2
  67. package/dist/locales/fr.cjs +9 -0
  68. package/dist/locales/fr.d.cts +2 -2
  69. package/dist/locales/fr.d.ts +2 -2
  70. package/dist/locales/fr.js +2 -2
  71. package/dist/locales/gn.cjs +9 -0
  72. package/dist/locales/gn.d.cts +2 -2
  73. package/dist/locales/gn.d.ts +2 -2
  74. package/dist/locales/gn.js +5 -1
  75. package/dist/locales/hr.cjs +9 -0
  76. package/dist/locales/hr.d.cts +2 -2
  77. package/dist/locales/hr.d.ts +2 -2
  78. package/dist/locales/hr.js +5 -1
  79. package/dist/locales/ht.cjs +9 -0
  80. package/dist/locales/ht.d.cts +2 -2
  81. package/dist/locales/ht.d.ts +2 -2
  82. package/dist/locales/ht.js +5 -1
  83. package/dist/locales/hu.cjs +9 -0
  84. package/dist/locales/hu.d.cts +2 -2
  85. package/dist/locales/hu.d.ts +2 -2
  86. package/dist/locales/hu.js +5 -1
  87. package/dist/locales/index.cjs +5 -0
  88. package/dist/locales/index.d.cts +4 -4
  89. package/dist/locales/index.d.ts +4 -4
  90. package/dist/locales/index.js +1 -1
  91. package/dist/locales/it.cjs +9 -0
  92. package/dist/locales/it.d.cts +2 -2
  93. package/dist/locales/it.d.ts +2 -2
  94. package/dist/locales/it.js +5 -1
  95. package/dist/locales/nb.cjs +9 -0
  96. package/dist/locales/nb.d.cts +2 -2
  97. package/dist/locales/nb.d.ts +2 -2
  98. package/dist/locales/nb.js +5 -1
  99. package/dist/locales/nl.cjs +9 -0
  100. package/dist/locales/nl.d.cts +2 -2
  101. package/dist/locales/nl.d.ts +2 -2
  102. package/dist/locales/nl.js +5 -1
  103. package/dist/locales/pl.cjs +9 -0
  104. package/dist/locales/pl.d.cts +2 -2
  105. package/dist/locales/pl.d.ts +2 -2
  106. package/dist/locales/pl.js +5 -1
  107. package/dist/locales/pt-BR.cjs +9 -0
  108. package/dist/locales/pt-BR.d.cts +2 -2
  109. package/dist/locales/pt-BR.d.ts +2 -2
  110. package/dist/locales/pt-BR.js +5 -1
  111. package/dist/locales/pt.cjs +9 -0
  112. package/dist/locales/pt.d.cts +2 -2
  113. package/dist/locales/pt.d.ts +2 -2
  114. package/dist/locales/pt.js +5 -1
  115. package/dist/locales/qu.cjs +9 -0
  116. package/dist/locales/qu.d.cts +2 -2
  117. package/dist/locales/qu.d.ts +2 -2
  118. package/dist/locales/qu.js +5 -1
  119. package/dist/locales/ro.cjs +9 -0
  120. package/dist/locales/ro.d.cts +2 -2
  121. package/dist/locales/ro.d.ts +2 -2
  122. package/dist/locales/ro.js +5 -1
  123. package/dist/locales/ru.cjs +9 -0
  124. package/dist/locales/ru.d.cts +2 -2
  125. package/dist/locales/ru.d.ts +2 -2
  126. package/dist/locales/ru.js +5 -1
  127. package/dist/locales/sk.cjs +9 -0
  128. package/dist/locales/sk.d.cts +2 -2
  129. package/dist/locales/sk.d.ts +2 -2
  130. package/dist/locales/sk.js +5 -1
  131. package/dist/locales/sq.cjs +9 -0
  132. package/dist/locales/sq.d.cts +2 -2
  133. package/dist/locales/sq.d.ts +2 -2
  134. package/dist/locales/sq.js +5 -1
  135. package/dist/locales/sr-Latn.cjs +9 -0
  136. package/dist/locales/sr-Latn.d.cts +2 -2
  137. package/dist/locales/sr-Latn.d.ts +2 -2
  138. package/dist/locales/sr-Latn.js +2 -2
  139. package/dist/locales/sr.cjs +9 -0
  140. package/dist/locales/sr.d.cts +2 -2
  141. package/dist/locales/sr.d.ts +2 -2
  142. package/dist/locales/sr.js +2 -2
  143. package/dist/locales/sv.cjs +9 -0
  144. package/dist/locales/sv.d.cts +2 -2
  145. package/dist/locales/sv.d.ts +2 -2
  146. package/dist/locales/sv.js +5 -1
  147. package/dist/locales/tr.cjs +9 -0
  148. package/dist/locales/tr.d.cts +2 -2
  149. package/dist/locales/tr.d.ts +2 -2
  150. package/dist/locales/tr.js +5 -1
  151. package/dist/locales/uk.cjs +9 -0
  152. package/dist/locales/uk.d.cts +2 -2
  153. package/dist/locales/uk.d.ts +2 -2
  154. package/dist/locales/uk.js +5 -1
  155. package/dist/page-context-BAmw4p6d.d.cts +244 -0
  156. package/dist/page-context-BAmw4p6d.d.ts +244 -0
  157. package/dist/pipeline-format.cjs +842 -0
  158. package/dist/pipeline-format.d.cts +512 -0
  159. package/dist/pipeline-format.d.ts +512 -0
  160. package/dist/pipeline-format.js +788 -0
  161. package/dist/pipeline.cjs +1 -0
  162. package/dist/pipeline.d.cts +2 -0
  163. package/dist/pipeline.d.ts +2 -0
  164. package/dist/pipeline.js +1 -0
  165. package/dist/styles.css +59 -0
  166. package/dist/{types-CQquuZpl.d.cts → types-B5cyqkWY.d.cts} +1 -1
  167. package/dist/{types-CXZfZVP5.d.ts → types-BgNjWN5Z.d.ts} +1 -1
  168. package/dist/{types-DnBCok3z.d.ts → types-CHFtTZjl.d.cts} +6 -0
  169. package/dist/{types-DnBCok3z.d.cts → types-CHFtTZjl.d.ts} +6 -0
  170. package/package.json +12 -2
package/dist/pipeline.cjs CHANGED
@@ -693,6 +693,7 @@ var defaultPipelineLabels = {
693
693
  activityReplanning: "checking the plan…",
694
694
  activityAnswering: "writing the answer…",
695
695
  activityStep: (index, total, step) => `${index}/${total} ${step}`,
696
+ activityStepAt: (index, step) => `${index} ${step}`,
696
697
  activityTool: (name) => `tool: ${name}`,
697
698
  skippedBy: {
698
699
  maxNodeVisits: "visit limit reached",
@@ -255,6 +255,8 @@ interface PipelineLabels {
255
255
  activityReplanning: string;
256
256
  activityAnswering: string;
257
257
  activityStep: (index: number, total: number, step: string) => string;
258
+ /** A step whose plan length is not known (an older server's event): its 1-based place alone. */
259
+ activityStepAt: (index: number, step: string) => string;
258
260
  activityTool: (name: string) => string;
259
261
  skippedBy: Record<'maxRuns' | 'maxNodeVisits', string>;
260
262
  inspector: string;
@@ -255,6 +255,8 @@ interface PipelineLabels {
255
255
  activityReplanning: string;
256
256
  activityAnswering: string;
257
257
  activityStep: (index: number, total: number, step: string) => string;
258
+ /** A step whose plan length is not known (an older server's event): its 1-based place alone. */
259
+ activityStepAt: (index: number, step: string) => string;
258
260
  activityTool: (name: string) => string;
259
261
  skippedBy: Record<'maxRuns' | 'maxNodeVisits', string>;
260
262
  inspector: string;
package/dist/pipeline.js CHANGED
@@ -627,6 +627,7 @@ var defaultPipelineLabels = {
627
627
  activityReplanning: "checking the plan…",
628
628
  activityAnswering: "writing the answer…",
629
629
  activityStep: (index, total, step) => `${index}/${total} ${step}`,
630
+ activityStepAt: (index, step) => `${index} ${step}`,
630
631
  activityTool: (name) => `tool: ${name}`,
631
632
  skippedBy: {
632
633
  maxNodeVisits: "visit limit reached",
package/dist/styles.css CHANGED
@@ -853,6 +853,10 @@
853
853
  white-space: pre-wrap;
854
854
  word-break: break-word;
855
855
  }
856
+ .awr-approval__summary {
857
+ max-height: 240px;
858
+ overflow: auto;
859
+ }
856
860
  .awr-approval__actions {
857
861
  display: flex;
858
862
  gap: 6px;
@@ -4107,3 +4111,58 @@ button.awr-frame__state:focus-visible {
4107
4111
  :where(.awr-md) :where(tbody tr:last-child td) {
4108
4112
  border-bottom: 0;
4109
4113
  }
4114
+
4115
+ /* ── The page context the composer shares: the chip and what it opens to ── */
4116
+ .awr-pagectx {
4117
+ display: flex;
4118
+ flex-direction: column;
4119
+ align-items: flex-start;
4120
+ gap: 4px;
4121
+ margin: 0 0 6px;
4122
+ min-width: 0;
4123
+ max-width: 100%;
4124
+ }
4125
+ .awr-pagectx__chip {
4126
+ max-width: 100%;
4127
+ min-height: 28px;
4128
+ overflow: hidden;
4129
+ text-overflow: ellipsis;
4130
+ white-space: nowrap;
4131
+ color: var(--awr-muted);
4132
+ cursor: pointer;
4133
+ font: inherit;
4134
+ font-size: 12px;
4135
+ }
4136
+ .awr-pagectx.is-off .awr-pagectx__chip {
4137
+ text-decoration: line-through;
4138
+ }
4139
+ .awr-pagectx__details {
4140
+ width: 100%;
4141
+ box-sizing: border-box;
4142
+ border: 1px solid var(--awr-border);
4143
+ border-radius: 8px;
4144
+ padding: 6px 8px;
4145
+ font-size: 12px;
4146
+ }
4147
+ .awr-pagectx__list {
4148
+ display: grid;
4149
+ grid-template-columns: max-content minmax(0, 1fr);
4150
+ gap: 2px 8px;
4151
+ margin: 0 0 6px;
4152
+ }
4153
+ .awr-pagectx__list dt {
4154
+ color: var(--awr-muted);
4155
+ }
4156
+ .awr-pagectx__list dd {
4157
+ margin: 0;
4158
+ overflow-wrap: anywhere;
4159
+ white-space: pre-wrap;
4160
+ max-height: 6em;
4161
+ overflow: auto;
4162
+ }
4163
+ .awr-pagectx__off {
4164
+ display: inline-flex;
4165
+ align-items: center;
4166
+ gap: 4px;
4167
+ cursor: pointer;
4168
+ }
@@ -1,4 +1,4 @@
1
- import { c as catalog } from './en-Dg2MtzcJ.cjs';
1
+ import { c as catalog } from './en-CPCAidve.cjs';
2
2
 
3
3
  /** The plural categories of `Intl.PluralRules`. */
4
4
  type AgentLabelPluralCategory = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other';
@@ -1,4 +1,4 @@
1
- import { c as catalog } from './en-Dg2MtzcJ.js';
1
+ import { c as catalog } from './en-CPCAidve.js';
2
2
 
3
3
  /** The plural categories of `Intl.PluralRules`. */
4
4
  type AgentLabelPluralCategory = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other';
@@ -598,6 +598,12 @@ interface ApprovalView {
598
598
  * `<ToolApprovalPrompt>` offers no "Always allow" on it by default.
599
599
  */
600
600
  rule?: string;
601
+ /**
602
+ * The tool's own words about the call (the core's `summary`, `withApprovalSummary`): a write's
603
+ * path and line counts, a commit's message. Plain text from the host: show it as text, in place
604
+ * of the raw input (`<ToolApprovalPrompt>` does).
605
+ */
606
+ summary?: string;
601
607
  }
602
608
  /** What a person is shown of an MCP server's skill (the core's `McpSkillConsentView`). */
603
609
  type SkillConsentView = Omit<McpSkillConsentView, 'body'> & {
@@ -598,6 +598,12 @@ interface ApprovalView {
598
598
  * `<ToolApprovalPrompt>` offers no "Always allow" on it by default.
599
599
  */
600
600
  rule?: string;
601
+ /**
602
+ * The tool's own words about the call (the core's `summary`, `withApprovalSummary`): a write's
603
+ * path and line counts, a commit's message. Plain text from the host: show it as text, in place
604
+ * of the raw input (`<ToolApprovalPrompt>` does).
605
+ */
606
+ summary?: string;
601
607
  }
602
608
  /** What a person is shown of an MCP server's skill (the core's `McpSkillConsentView`). */
603
609
  type SkillConsentView = Omit<McpSkillConsentView, 'body'> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dudko.dev/agent-web-ui",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "private": false,
5
5
  "description": "The framework-free UI logic of @dudko.dev/agent-web, the in-browser LLM agent: the headless reducer that turns the agent's events into UI state, every UI string, the composer's and transcript's pure helpers, voice, saved chats, the sandboxed-frame and MCP Apps security cores, the MCP Apps sandbox page for a server, and the pipeline editor's logic - plus the stylesheets. No React: build a front end for any framework on it.",
6
6
  "type": "module",
@@ -51,6 +51,16 @@
51
51
  "default": "./dist/pipeline.cjs"
52
52
  }
53
53
  },
54
+ "./pipeline-format": {
55
+ "import": {
56
+ "types": "./dist/pipeline-format.d.ts",
57
+ "default": "./dist/pipeline-format.js"
58
+ },
59
+ "require": {
60
+ "types": "./dist/pipeline-format.d.cts",
61
+ "default": "./dist/pipeline-format.cjs"
62
+ }
63
+ },
54
64
  "./canvas": {
55
65
  "import": {
56
66
  "types": "./dist/canvas.d.ts",
@@ -182,7 +192,7 @@
182
192
  "prettier": "^3.10.1",
183
193
  "tsup": "^9.0.0",
184
194
  "typescript": "^6.0.3",
185
- "@dudko.dev/agent-web": "0.0.54",
195
+ "@dudko.dev/agent-web": "0.0.56",
186
196
  "@dudko.dev/test-servers": "0.0.0"
187
197
  },
188
198
  "scripts": {