@camunda/copilot-chat 0.0.3 → 0.1.1

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 (199) hide show
  1. package/README.md +30 -22
  2. package/dist/CopilotChat.d.ts +6 -4
  3. package/dist/CopilotChat.d.ts.map +1 -1
  4. package/dist/CopilotSidecar.d.ts +12 -0
  5. package/dist/CopilotSidecar.d.ts.map +1 -0
  6. package/dist/apl-B2DGVGxc.mjs +76 -0
  7. package/dist/asciiarmor-2LVJmxlE.mjs +34 -0
  8. package/dist/asn1-jKiBa2Ya.mjs +95 -0
  9. package/dist/asterisk-DS281yxp.mjs +271 -0
  10. package/dist/clike-BMALKCNj.mjs +620 -0
  11. package/dist/clojure-CCKyeQKf.mjs +800 -0
  12. package/dist/cmake-CuaCgAKt.mjs +28 -0
  13. package/dist/cobol-BlTKFDRj.mjs +72 -0
  14. package/dist/codemirror-runtime-XiCK6xRe.mjs +14620 -0
  15. package/dist/coffeescript-BVCvwO8I.mjs +179 -0
  16. package/dist/commonlisp-D_kxz07b.mjs +75 -0
  17. package/dist/crystal-D309uH6_.mjs +217 -0
  18. package/dist/css-BkF-NPzE.mjs +1553 -0
  19. package/dist/cypher-BMq4Fwjl.mjs +68 -0
  20. package/dist/d-BZcgY6La.mjs +127 -0
  21. package/dist/diff-Cg9d_RX2.mjs +18 -0
  22. package/dist/dockerfile-BmicwmnY.mjs +194 -0
  23. package/dist/dtd-CtLokQ-U.mjs +84 -0
  24. package/dist/dylan-QYeExnWK.mjs +234 -0
  25. package/dist/ebnf-DUPDuY4r.mjs +78 -0
  26. package/dist/ecl-CiXN-g_D.mjs +121 -0
  27. package/dist/eiffel-yQhjl4T1.mjs +110 -0
  28. package/dist/elm-CNT9vbN0.mjs +108 -0
  29. package/dist/erlang-CFOYdy9e.mjs +487 -0
  30. package/dist/factor-CYi8BYN3.mjs +65 -0
  31. package/dist/fcl-CPC2WYrI.mjs +103 -0
  32. package/dist/forth-BmxRyE9S.mjs +60 -0
  33. package/dist/fortran-9bvPyrOW.mjs +442 -0
  34. package/dist/gas-cpmYfFX2.mjs +183 -0
  35. package/dist/gherkin-CJuwpceU.mjs +34 -0
  36. package/dist/groovy-DZeT_VM-.mjs +146 -0
  37. package/dist/haskell-CxiO_7JL.mjs +375 -0
  38. package/dist/haxe-70NVW1pR.mjs +359 -0
  39. package/dist/hooks/index.d.ts +4 -0
  40. package/dist/hooks/index.d.ts.map +1 -1
  41. package/dist/hooks/useAgentAdapter.d.ts +1 -1
  42. package/dist/hooks/useAgentAdapter.d.ts.map +1 -1
  43. package/dist/hooks/useConversationLifecycle.d.ts +14 -0
  44. package/dist/hooks/useConversationLifecycle.d.ts.map +1 -0
  45. package/dist/hooks/useCopilotSidecar.d.ts +2 -2
  46. package/dist/hooks/useCopilotSidecar.d.ts.map +1 -1
  47. package/dist/hooks/useEventProcessing.d.ts +25 -0
  48. package/dist/hooks/useEventProcessing.d.ts.map +1 -0
  49. package/dist/hooks/useToolExecution.d.ts +11 -0
  50. package/dist/hooks/useToolExecution.d.ts.map +1 -0
  51. package/dist/hooks/useTransportSubscription.d.ts +6 -0
  52. package/dist/hooks/useTransportSubscription.d.ts.map +1 -0
  53. package/dist/http-D9LttvKF.mjs +44 -0
  54. package/dist/idl-B6TRFYjl.mjs +947 -0
  55. package/dist/index--BxDoZF9.mjs +253 -0
  56. package/dist/index--XA6rVTe.mjs +248 -0
  57. package/dist/index--gybvRRN.mjs +76 -0
  58. package/dist/index-A2-oYBDG.mjs +136 -0
  59. package/dist/index-B4yArHAf.mjs +342 -0
  60. package/dist/index-B6CwfTEa.mjs +555 -0
  61. package/dist/index-B6Ya3Gu5.mjs +270 -0
  62. package/dist/index-BMQN0pdr.mjs +1307 -0
  63. package/dist/index-BmnhvZ84.mjs +1918 -0
  64. package/dist/index-Byf0Vnh-.mjs +74 -0
  65. package/dist/index-C0we7KB8.mjs +565 -0
  66. package/dist/index-CBGL4OvF.mjs +960 -0
  67. package/dist/index-CDZzGj53.mjs +59 -0
  68. package/dist/index-CRB0UBa2.mjs +157 -0
  69. package/dist/index-Cir0Ep35.mjs +101 -0
  70. package/dist/index-D-5_2SRG.mjs +289 -0
  71. package/dist/index-D65q3v4G.mjs +310 -0
  72. package/dist/index-D7rl23KX.mjs +612 -0
  73. package/dist/index-D8W5EOiR.mjs +302 -0
  74. package/dist/index-DBkH_HaW.mjs +138 -0
  75. package/dist/index-DUJqnGYc.mjs +94 -0
  76. package/dist/index-IcwkYeVK.mjs +946 -0
  77. package/dist/index-Xp5lQcXo.mjs +16155 -0
  78. package/dist/index.css +1 -1
  79. package/dist/index.d.ts +8 -4
  80. package/dist/index.d.ts.map +1 -1
  81. package/dist/index.js +24 -8613
  82. package/dist/javascript-DOuB9oqA.mjs +691 -0
  83. package/dist/julia-DpvXAuO6.mjs +241 -0
  84. package/dist/layout/attachSidecarLayout.d.ts +4 -0
  85. package/dist/layout/attachSidecarLayout.d.ts.map +1 -0
  86. package/dist/layout/index.d.ts +2 -0
  87. package/dist/layout/index.d.ts.map +1 -0
  88. package/dist/layout/sidecarDom.d.ts +10 -0
  89. package/dist/layout/sidecarDom.d.ts.map +1 -0
  90. package/dist/layout/sidecarMediaQuery.d.ts +3 -0
  91. package/dist/layout/sidecarMediaQuery.d.ts.map +1 -0
  92. package/dist/layout/sidecarState.d.ts +29 -0
  93. package/dist/layout/sidecarState.d.ts.map +1 -0
  94. package/dist/layout/sidecarTypes.d.ts +14 -0
  95. package/dist/layout/sidecarTypes.d.ts.map +1 -0
  96. package/dist/livescript-CanGTf8u.mjs +272 -0
  97. package/dist/lua-XplVlWi_.mjs +217 -0
  98. package/dist/mathematica-jaRHnSxC.mjs +35 -0
  99. package/dist/mbox-BctzC1hL.mjs +76 -0
  100. package/dist/mirc-CFBPAOaF.mjs +72 -0
  101. package/dist/mllike-BSnXJBGA.mjs +272 -0
  102. package/dist/modelica-vUgVs--1.mjs +93 -0
  103. package/dist/mscgen-Cpl0NYLN.mjs +104 -0
  104. package/dist/mumps-CQoS1kWX.mjs +25 -0
  105. package/dist/nginx-zDPm3Z74.mjs +89 -0
  106. package/dist/nsis-DYWPgAyk.mjs +62 -0
  107. package/dist/ntriples-CsNjv2QF.mjs +79 -0
  108. package/dist/octave-C8PmmSRH.mjs +143 -0
  109. package/dist/oz-Ce8aN8oE.mjs +151 -0
  110. package/dist/package.json +1 -4
  111. package/dist/pascal-De0D6mP7.mjs +77 -0
  112. package/dist/perl-B4bSCe1C.mjs +915 -0
  113. package/dist/pig-D24Z8EXi.mjs +54 -0
  114. package/dist/powershell-DkYVfTzP.mjs +249 -0
  115. package/dist/properties-Dn9wna3M.mjs +26 -0
  116. package/dist/protobuf-BPIjwpzm.mjs +49 -0
  117. package/dist/pug-Bz8aeT0D.mjs +248 -0
  118. package/dist/puppet-nyd4dhjf.mjs +45 -0
  119. package/dist/python-BkR3uSy8.mjs +313 -0
  120. package/dist/q-DyHZGnqm.mjs +86 -0
  121. package/dist/r-LKEuhEGI.mjs +104 -0
  122. package/dist/registry/index.d.ts +4 -0
  123. package/dist/registry/index.d.ts.map +1 -0
  124. package/dist/registry/toolDefinitions.d.ts +11 -0
  125. package/dist/registry/toolDefinitions.d.ts.map +1 -0
  126. package/dist/registry/toolNames.d.ts +9 -0
  127. package/dist/registry/toolNames.d.ts.map +1 -0
  128. package/dist/registry/toolRegistry.d.ts +23 -0
  129. package/dist/registry/toolRegistry.d.ts.map +1 -0
  130. package/dist/rpm-IznJm2Xc.mjs +57 -0
  131. package/dist/ruby-CcYfvIk6.mjs +228 -0
  132. package/dist/sas-7E8yHoCW.mjs +105 -0
  133. package/dist/scheme-DjibxsNh.mjs +124 -0
  134. package/dist/shell-C0C2sNA_.mjs +182 -0
  135. package/dist/sieve-Bwz7vjP5.mjs +72 -0
  136. package/dist/simple-mode-mNVtnu0l.mjs +89 -0
  137. package/dist/smalltalk-Bhddl2pB.mjs +48 -0
  138. package/dist/solr-BNlsLglM.mjs +41 -0
  139. package/dist/sparql-FarWu_Gb.mjs +197 -0
  140. package/dist/spreadsheet-C-cy4P5N.mjs +49 -0
  141. package/dist/sql-CfG5lQ3l.mjs +282 -0
  142. package/dist/stex-Du4h4KAU.mjs +129 -0
  143. package/dist/store/agentStore.d.ts +14 -4
  144. package/dist/store/agentStore.d.ts.map +1 -1
  145. package/dist/store/{agentEventHandlers.d.ts → agentStoreEventProcessor.d.ts} +1 -2
  146. package/dist/store/agentStoreEventProcessor.d.ts.map +1 -0
  147. package/dist/store/chatStore.d.ts +5 -1
  148. package/dist/store/chatStore.d.ts.map +1 -1
  149. package/dist/store/index.d.ts +0 -1
  150. package/dist/store/index.d.ts.map +1 -1
  151. package/dist/styles/ensureSidecarStyles.d.ts.map +1 -1
  152. package/dist/stylus-CAdqWld3.mjs +250 -0
  153. package/dist/swift-DSxqR9R6.mjs +230 -0
  154. package/dist/sync-ottB0RsS.mjs +1251 -0
  155. package/dist/table-runtime-Dg6FGtuD.mjs +3606 -0
  156. package/dist/tcl-xfoLljhY.mjs +81 -0
  157. package/dist/textile-D1AWE-pc.mjs +295 -0
  158. package/dist/tiddlywiki-5wqsXtSk.mjs +155 -0
  159. package/dist/tiki-__Kn3CeS.mjs +181 -0
  160. package/dist/toml-DWAmxCjl.mjs +58 -0
  161. package/dist/troff-D2UO-fKf.mjs +35 -0
  162. package/dist/ttcn-Bsa4sfRm.mjs +123 -0
  163. package/dist/ttcn-cfg-Bac_acMi.mjs +88 -0
  164. package/dist/turtle-xwJUxoPV.mjs +80 -0
  165. package/dist/types/agentTypes.d.ts +2 -2
  166. package/dist/types/agentTypes.d.ts.map +1 -1
  167. package/dist/types/chatTypes.d.ts +8 -0
  168. package/dist/types/chatTypes.d.ts.map +1 -1
  169. package/dist/types/transportTypes.d.ts +7 -4
  170. package/dist/types/transportTypes.d.ts.map +1 -1
  171. package/dist/utils/eventHandlers.d.ts +12 -2
  172. package/dist/utils/eventHandlers.d.ts.map +1 -1
  173. package/dist/utils/eventPredicates.d.ts.map +1 -1
  174. package/dist/utils/index.d.ts +2 -3
  175. package/dist/utils/index.d.ts.map +1 -1
  176. package/dist/utils/kapaTools.d.ts +1 -4
  177. package/dist/utils/kapaTools.d.ts.map +1 -1
  178. package/dist/utils/statusLabels.d.ts +1 -1
  179. package/dist/utils/statusLabels.d.ts.map +1 -1
  180. package/dist/utils/thinkingBlockUtils.d.ts.map +1 -1
  181. package/dist/utils/toolResultFormatter.d.ts +3 -2
  182. package/dist/utils/toolResultFormatter.d.ts.map +1 -1
  183. package/dist/vb-c2kQGd6-.mjs +74 -0
  184. package/dist/vbscript-1f_Dhg5H.mjs +324 -0
  185. package/dist/velocity-DJd0pTTC.mjs +96 -0
  186. package/dist/verilog-CiS1jyi5.mjs +262 -0
  187. package/dist/vhdl-T9HkrbI2.mjs +106 -0
  188. package/dist/webidl-CjfDENEo.mjs +155 -0
  189. package/dist/xquery-Ct6lEb4B.mjs +422 -0
  190. package/dist/yacas-C0absKBh.mjs +73 -0
  191. package/dist/z80-Pki2zAjW.mjs +61 -0
  192. package/package.json +1 -4
  193. package/dist/constants/theme.d.ts +0 -79
  194. package/dist/constants/theme.d.ts.map +0 -1
  195. package/dist/layout/SidecarLayoutManager.d.ts +0 -8
  196. package/dist/layout/SidecarLayoutManager.d.ts.map +0 -1
  197. package/dist/store/agentEventHandlers.d.ts.map +0 -1
  198. package/dist/store/messageContextStore.d.ts +0 -21
  199. package/dist/store/messageContextStore.d.ts.map +0 -1
@@ -0,0 +1,359 @@
1
+ function o(e) {
2
+ return { type: e, style: "keyword" };
3
+ }
4
+ var P = o("keyword a"), W = o("keyword b"), g = o("keyword c"), K = o("operator"), z = { type: "atom", style: "atom" }, y = { type: "attribute", style: "attribute" }, c = o("typedef"), B = {
5
+ if: P,
6
+ while: P,
7
+ else: W,
8
+ do: W,
9
+ try: W,
10
+ return: g,
11
+ break: g,
12
+ continue: g,
13
+ new: g,
14
+ throw: g,
15
+ var: o("var"),
16
+ inline: y,
17
+ static: y,
18
+ using: o("import"),
19
+ public: y,
20
+ private: y,
21
+ cast: o("cast"),
22
+ import: o("import"),
23
+ macro: o("macro"),
24
+ function: o("function"),
25
+ catch: o("catch"),
26
+ untyped: o("untyped"),
27
+ callback: o("cb"),
28
+ for: o("for"),
29
+ switch: o("switch"),
30
+ case: o("case"),
31
+ default: o("default"),
32
+ in: K,
33
+ never: o("property_access"),
34
+ trace: o("trace"),
35
+ class: c,
36
+ abstract: c,
37
+ enum: c,
38
+ interface: c,
39
+ typedef: c,
40
+ extends: c,
41
+ implements: c,
42
+ dynamic: c,
43
+ true: z,
44
+ false: z,
45
+ null: z
46
+ }, E = /[+\-*&%=<>!?|]/;
47
+ function I(e, r, n) {
48
+ return r.tokenize = n, n(e, r);
49
+ }
50
+ function L(e, r) {
51
+ for (var n = !1, i; (i = e.next()) != null; ) {
52
+ if (i == r && !n)
53
+ return !0;
54
+ n = !n && i == "\\";
55
+ }
56
+ }
57
+ var c, N;
58
+ function p(e, r, n) {
59
+ return c = e, N = n, r;
60
+ }
61
+ function A(e, r) {
62
+ var n = e.next();
63
+ if (n == '"' || n == "'")
64
+ return I(e, r, M(n));
65
+ if (/[\[\]{}\(\),;\:\.]/.test(n))
66
+ return p(n);
67
+ if (n == "0" && e.eat(/x/i))
68
+ return e.eatWhile(/[\da-f]/i), p("number", "number");
69
+ if (/\d/.test(n) || n == "-" && e.eat(/\d/))
70
+ return e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/), p("number", "number");
71
+ if (r.reAllowed && n == "~" && e.eat(/\//))
72
+ return L(e, "/"), e.eatWhile(/[gimsu]/), p("regexp", "string.special");
73
+ if (n == "/")
74
+ return e.eat("*") ? I(e, r, Q) : e.eat("/") ? (e.skipToEnd(), p("comment", "comment")) : (e.eatWhile(E), p("operator", null, e.current()));
75
+ if (n == "#")
76
+ return e.skipToEnd(), p("conditional", "meta");
77
+ if (n == "@")
78
+ return e.eat(/:/), e.eatWhile(/[\w_]/), p("metadata", "meta");
79
+ if (E.test(n))
80
+ return e.eatWhile(E), p("operator", null, e.current());
81
+ var i;
82
+ if (/[A-Z]/.test(n))
83
+ return e.eatWhile(/[\w_<>]/), i = e.current(), p("type", "type", i);
84
+ e.eatWhile(/[\w_]/);
85
+ var i = e.current(), u = B.propertyIsEnumerable(i) && B[i];
86
+ return u && r.kwAllowed ? p(u.type, u.style, i) : p("variable", "variable", i);
87
+ }
88
+ function M(e) {
89
+ return function(r, n) {
90
+ return L(r, e) && (n.tokenize = A), p("string", "string");
91
+ };
92
+ }
93
+ function Q(e, r) {
94
+ for (var n = !1, i; i = e.next(); ) {
95
+ if (i == "/" && n) {
96
+ r.tokenize = A;
97
+ break;
98
+ }
99
+ n = i == "*";
100
+ }
101
+ return p("comment", "comment");
102
+ }
103
+ var $ = { atom: !0, number: !0, variable: !0, string: !0, regexp: !0 };
104
+ function j(e, r, n, i, u, s) {
105
+ this.indented = e, this.column = r, this.type = n, this.prev = u, this.info = s, i != null && (this.align = i);
106
+ }
107
+ function R(e, r) {
108
+ for (var n = e.localVars; n; n = n.next)
109
+ if (n.name == r) return !0;
110
+ }
111
+ function X(e, r, n, i, u) {
112
+ var s = e.cc;
113
+ for (a.state = e, a.stream = u, a.marked = null, a.cc = s, e.lexical.hasOwnProperty("align") || (e.lexical.align = !0); ; ) {
114
+ var k = s.length ? s.pop() : x;
115
+ if (k(n, i)) {
116
+ for (; s.length && s[s.length - 1].lex; )
117
+ s.pop()();
118
+ return a.marked ? a.marked : n == "variable" && R(e, i) ? "variableName.local" : n == "variable" && Y(e, i) ? "variableName.special" : r;
119
+ }
120
+ }
121
+ }
122
+ function Y(e, r) {
123
+ if (/[a-z]/.test(r.charAt(0)))
124
+ return !1;
125
+ for (var n = e.importedtypes.length, i = 0; i < n; i++)
126
+ if (e.importedtypes[i] == r) return !0;
127
+ }
128
+ function F(e) {
129
+ for (var r = a.state, n = r.importedtypes; n; n = n.next)
130
+ if (n.name == e) return;
131
+ r.importedtypes = { name: e, next: r.importedtypes };
132
+ }
133
+ var a = { state: null, marked: null, cc: null };
134
+ function b() {
135
+ for (var e = arguments.length - 1; e >= 0; e--) a.cc.push(arguments[e]);
136
+ }
137
+ function t() {
138
+ return b.apply(null, arguments), !0;
139
+ }
140
+ function H(e, r) {
141
+ for (var n = r; n; n = n.next)
142
+ if (n.name == e) return !0;
143
+ return !1;
144
+ }
145
+ function S(e) {
146
+ var r = a.state;
147
+ if (r.context) {
148
+ if (a.marked = "def", H(e, r.localVars)) return;
149
+ r.localVars = { name: e, next: r.localVars };
150
+ } else if (r.globalVars) {
151
+ if (H(e, r.globalVars)) return;
152
+ r.globalVars = { name: e, next: r.globalVars };
153
+ }
154
+ }
155
+ var ee = { name: "this", next: null };
156
+ function D() {
157
+ a.state.context || (a.state.localVars = ee), a.state.context = { prev: a.state.context, vars: a.state.localVars };
158
+ }
159
+ function V() {
160
+ a.state.localVars = a.state.context.vars, a.state.context = a.state.context.prev;
161
+ }
162
+ V.lex = !0;
163
+ function l(e, r) {
164
+ var n = function() {
165
+ var i = a.state;
166
+ i.lexical = new j(i.indented, a.stream.column(), e, null, i.lexical, r);
167
+ };
168
+ return n.lex = !0, n;
169
+ }
170
+ function f() {
171
+ var e = a.state;
172
+ e.lexical.prev && (e.lexical.type == ")" && (e.indented = e.lexical.indented), e.lexical = e.lexical.prev);
173
+ }
174
+ f.lex = !0;
175
+ function d(e) {
176
+ function r(n) {
177
+ return n == e ? t() : e == ";" ? b() : t(r);
178
+ }
179
+ return r;
180
+ }
181
+ function x(e) {
182
+ return e == "@" ? t(Z) : e == "var" ? t(l("vardef"), C, d(";"), f) : e == "keyword a" ? t(l("form"), h, x, f) : e == "keyword b" ? t(l("form"), x, f) : e == "{" ? t(l("}"), D, _, f, V) : e == ";" ? t() : e == "attribute" ? t(U) : e == "function" ? t(w) : e == "for" ? t(
183
+ l("form"),
184
+ d("("),
185
+ l(")"),
186
+ ae,
187
+ d(")"),
188
+ f,
189
+ x,
190
+ f
191
+ ) : e == "variable" ? t(l("stat"), te) : e == "switch" ? t(
192
+ l("form"),
193
+ h,
194
+ l("}", "switch"),
195
+ d("{"),
196
+ _,
197
+ f,
198
+ f
199
+ ) : e == "case" ? t(h, d(":")) : e == "default" ? t(d(":")) : e == "catch" ? t(
200
+ l("form"),
201
+ D,
202
+ d("("),
203
+ J,
204
+ d(")"),
205
+ x,
206
+ f,
207
+ V
208
+ ) : e == "import" ? t(q, d(";")) : e == "typedef" ? t(ne) : b(l("stat"), h, d(";"), f);
209
+ }
210
+ function h(e) {
211
+ return $.hasOwnProperty(e) || e == "type" ? t(v) : e == "function" ? t(w) : e == "keyword c" ? t(O) : e == "(" ? t(l(")"), O, d(")"), f, v) : e == "operator" ? t(h) : e == "[" ? t(l("]"), m(O, "]"), f, v) : e == "{" ? t(l("}"), m(ue, "}"), f, v) : t();
212
+ }
213
+ function O(e) {
214
+ return e.match(/[;\}\)\],]/) ? b() : b(h);
215
+ }
216
+ function v(e, r) {
217
+ if (e == "operator" && /\+\+|--/.test(r)) return t(v);
218
+ if (e == "operator" || e == ":") return t(h);
219
+ if (e != ";") {
220
+ if (e == "(") return t(l(")"), m(h, ")"), f, v);
221
+ if (e == ".") return t(ie, v);
222
+ if (e == "[") return t(l("]"), h, d("]"), f, v);
223
+ }
224
+ }
225
+ function U(e) {
226
+ if (e == "attribute") return t(U);
227
+ if (e == "function") return t(w);
228
+ if (e == "var") return t(C);
229
+ }
230
+ function Z(e) {
231
+ if (e == ":" || e == "variable") return t(Z);
232
+ if (e == "(") return t(l(")"), m(re, ")"), f, x);
233
+ }
234
+ function re(e) {
235
+ if (e == "variable") return t();
236
+ }
237
+ function q(e, r) {
238
+ if (e == "variable" && /[A-Z]/.test(r.charAt(0)))
239
+ return F(r), t();
240
+ if (e == "variable" || e == "property" || e == "." || r == "*") return t(q);
241
+ }
242
+ function ne(e, r) {
243
+ if (e == "variable" && /[A-Z]/.test(r.charAt(0)))
244
+ return F(r), t();
245
+ if (e == "type" && /[A-Z]/.test(r.charAt(0)))
246
+ return t();
247
+ }
248
+ function te(e) {
249
+ return e == ":" ? t(f, x) : b(v, d(";"), f);
250
+ }
251
+ function ie(e) {
252
+ if (e == "variable")
253
+ return a.marked = "property", t();
254
+ }
255
+ function ue(e) {
256
+ if (e == "variable" && (a.marked = "property"), $.hasOwnProperty(e)) return t(d(":"), h);
257
+ }
258
+ function m(e, r) {
259
+ function n(i) {
260
+ return i == "," ? t(e, n) : i == r ? t() : t(d(r));
261
+ }
262
+ return function(i) {
263
+ return i == r ? t() : b(e, n);
264
+ };
265
+ }
266
+ function _(e) {
267
+ return e == "}" ? t() : b(x, _);
268
+ }
269
+ function C(e, r) {
270
+ return e == "variable" ? (S(r), t(T, G)) : t();
271
+ }
272
+ function G(e, r) {
273
+ if (r == "=") return t(h, G);
274
+ if (e == ",") return t(C);
275
+ }
276
+ function ae(e, r) {
277
+ return e == "variable" ? (S(r), t(fe, h)) : b();
278
+ }
279
+ function fe(e, r) {
280
+ if (r == "in") return t();
281
+ }
282
+ function w(e, r) {
283
+ if (e == "variable" || e == "type")
284
+ return S(r), t(w);
285
+ if (r == "new") return t(w);
286
+ if (e == "(") return t(l(")"), D, m(J, ")"), f, T, x, V);
287
+ }
288
+ function T(e) {
289
+ if (e == ":") return t(oe);
290
+ }
291
+ function oe(e) {
292
+ if (e == "type" || e == "variable") return t();
293
+ if (e == "{") return t(l("}"), m(le, "}"), f);
294
+ }
295
+ function le(e) {
296
+ if (e == "variable") return t(T);
297
+ }
298
+ function J(e, r) {
299
+ if (e == "variable")
300
+ return S(r), t(T);
301
+ }
302
+ const ce = {
303
+ name: "haxe",
304
+ startState: function(e) {
305
+ var r = ["Int", "Float", "String", "Void", "Std", "Bool", "Dynamic", "Array"], n = {
306
+ tokenize: A,
307
+ reAllowed: !0,
308
+ kwAllowed: !0,
309
+ cc: [],
310
+ lexical: new j(-e, 0, "block", !1),
311
+ importedtypes: r,
312
+ context: null,
313
+ indented: 0
314
+ };
315
+ return n;
316
+ },
317
+ token: function(e, r) {
318
+ if (e.sol() && (r.lexical.hasOwnProperty("align") || (r.lexical.align = !1), r.indented = e.indentation()), e.eatSpace()) return null;
319
+ var n = r.tokenize(e, r);
320
+ return c == "comment" ? n : (r.reAllowed = !!(c == "operator" || c == "keyword c" || c.match(/^[\[{}\(,;:]$/)), r.kwAllowed = c != ".", X(r, n, c, N, e));
321
+ },
322
+ indent: function(e, r, n) {
323
+ if (e.tokenize != A) return 0;
324
+ var i = r && r.charAt(0), u = e.lexical;
325
+ u.type == "stat" && i == "}" && (u = u.prev);
326
+ var s = u.type, k = i == s;
327
+ return s == "vardef" ? u.indented + 4 : s == "form" && i == "{" ? u.indented : s == "stat" || s == "form" ? u.indented + n.unit : u.info == "switch" && !k ? u.indented + (/^(?:case|default)\b/.test(r) ? n.unit : 2 * n.unit) : u.align ? u.column + (k ? 0 : 1) : u.indented + (k ? 0 : n.unit);
328
+ },
329
+ languageData: {
330
+ indentOnInput: /^\s*[{}]$/,
331
+ commentTokens: { line: "//", block: { open: "/*", close: "*/" } }
332
+ }
333
+ }, se = {
334
+ name: "hxml",
335
+ startState: function() {
336
+ return {
337
+ define: !1,
338
+ inString: !1
339
+ };
340
+ },
341
+ token: function(e, r) {
342
+ var u = e.peek(), n = e.sol();
343
+ if (u == "#")
344
+ return e.skipToEnd(), "comment";
345
+ if (n && u == "-") {
346
+ var i = "variable-2";
347
+ return e.eat(/-/), e.peek() == "-" && (e.eat(/-/), i = "keyword a"), e.peek() == "D" && (e.eat(/[D]/), i = "keyword c", r.define = !0), e.eatWhile(/[A-Z]/i), i;
348
+ }
349
+ var u = e.peek();
350
+ return r.inString == !1 && u == "'" && (r.inString = !0, e.next()), r.inString == !0 ? (e.skipTo("'") || e.skipToEnd(), e.peek() == "'" && (e.next(), r.inString = !1), "string") : (e.next(), null);
351
+ },
352
+ languageData: {
353
+ commentTokens: { line: "#" }
354
+ }
355
+ };
356
+ export {
357
+ ce as haxe,
358
+ se as hxml
359
+ };
@@ -1,3 +1,7 @@
1
1
  export { useCopilotSidecar } from './useCopilotSidecar';
2
2
  export { useAgentAdapter } from './useAgentAdapter';
3
+ export { useToolExecution } from './useToolExecution';
4
+ export { useEventProcessing } from './useEventProcessing';
5
+ export { useConversationLifecycle } from './useConversationLifecycle';
6
+ export { useTransportSubscription } from './useTransportSubscription';
3
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { AgentAdapterConfig, AgentAdapterReturn } from '../types/agentTypes';
2
- export declare const useAgentAdapter: ({ transport, frontendTools, onToolInvoke, getStatusLabel, }: AgentAdapterConfig) => AgentAdapterReturn;
2
+ export declare const useAgentAdapter: ({ transport, onToolInvoke, getStatusLabel, }: AgentAdapterConfig) => AgentAdapterReturn;
3
3
  //# sourceMappingURL=useAgentAdapter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAgentAdapter.d.ts","sourceRoot":"","sources":["../../src/hooks/useAgentAdapter.ts"],"names":[],"mappings":"AASA,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACxB,MAAM,qBAAqB,CAAC;AAe7B,eAAO,MAAM,eAAe,GAAI,6DAK7B,kBAAkB,KAAG,kBAkTvB,CAAC"}
1
+ {"version":3,"file":"useAgentAdapter.d.ts","sourceRoot":"","sources":["../../src/hooks/useAgentAdapter.ts"],"names":[],"mappings":"AASA,OAAO,EAAc,KAAK,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAmBnG,eAAO,MAAM,eAAe,GAAI,8CAI7B,kBAAkB,KAAG,kBA6EvB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { AgentEvent } from '../types/agentTypes';
2
+ import { AgentTransport } from '../types/transportTypes';
3
+ export interface UseConversationLifecycleParams {
4
+ readonly transport: AgentTransport;
5
+ readonly onEvent: (event: AgentEvent) => void;
6
+ readonly onInitializeMessage: (messageId: string) => void;
7
+ }
8
+ export interface UseConversationLifecycleReturn {
9
+ readonly sendMessage: (userMessage: string) => Promise<void>;
10
+ readonly stopGeneration: () => void;
11
+ readonly resetConversation: () => void;
12
+ }
13
+ export declare const useConversationLifecycle: ({ transport, onEvent, onInitializeMessage, }: UseConversationLifecycleParams) => UseConversationLifecycleReturn;
14
+ //# sourceMappingURL=useConversationLifecycle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConversationLifecycle.d.ts","sourceRoot":"","sources":["../../src/hooks/useConversationLifecycle.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;IACnC,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IAC9C,QAAQ,CAAC,mBAAmB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D;AAED,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,WAAW,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D,QAAQ,CAAC,cAAc,EAAE,MAAM,IAAI,CAAC;IACpC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,IAAI,CAAC;CACxC;AAED,eAAO,MAAM,wBAAwB,GAAI,8CAItC,8BAA8B,KAAG,8BA4EnC,CAAC"}
@@ -1,6 +1,6 @@
1
- import { SidecarLayoutConfig } from '../layout/SidecarLayoutManager';
1
+ import { SidecarLayoutConfig } from '../layout';
2
2
  export interface UseCopilotSidecarOptions extends SidecarLayoutConfig {
3
3
  enabled: boolean;
4
4
  }
5
- export declare const useCopilotSidecar: ({ enabled, width, zIndex, workareaSelector, responsiveBreakpoint, }: UseCopilotSidecarOptions) => void;
5
+ export declare const useCopilotSidecar: ({ enabled, width, zIndex, workareaSelector, headerSelector, responsiveBreakpoint, }: UseCopilotSidecarOptions) => void;
6
6
  //# sourceMappingURL=useCopilotSidecar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCopilotSidecar.d.ts","sourceRoot":"","sources":["../../src/hooks/useCopilotSidecar.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,mBAAmB,EACpB,MAAM,gCAAgC,CAAC;AAExC,MAAM,WAAW,wBAAyB,SAAQ,mBAAmB;IACnE,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,iBAAiB,GAAI,qEAM/B,wBAAwB,SAe1B,CAAC"}
1
+ {"version":3,"file":"useCopilotSidecar.d.ts","sourceRoot":"","sources":["../../src/hooks/useCopilotSidecar.ts"],"names":[],"mappings":"AAQA,OAAO,EAAuB,KAAK,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAE1E,MAAM,WAAW,wBAAyB,SAAQ,mBAAmB;IACnE,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,iBAAiB,GAAI,qFAO/B,wBAAwB,SAgB1B,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { AgentEvent, ResultType, EventTypeValue } from '../types/agentTypes';
2
+ export interface MessageContext {
3
+ readonly messageId: string | null;
4
+ readonly currentThinkingBlockId: string | null;
5
+ readonly lastThinkingContent: string;
6
+ readonly lastStatusLabel: string;
7
+ readonly accumulatedContent: string;
8
+ readonly blockCount: number;
9
+ readonly toolStepCount: number;
10
+ }
11
+ export interface UseEventProcessingParams {
12
+ readonly getStatusLabel?: (eventType: EventTypeValue, toolName?: string) => string | undefined;
13
+ readonly getMessageContext: () => MessageContext;
14
+ readonly onUpdateMessageContext: (updates: Partial<MessageContext>) => void;
15
+ }
16
+ export interface UseEventProcessingReturn {
17
+ readonly handleEvent: (event: AgentEvent) => {
18
+ readonly agentResultType: (typeof ResultType)[keyof typeof ResultType] | null;
19
+ readonly toolName?: string;
20
+ readonly toolArguments?: Record<string, unknown>;
21
+ readonly toolResult?: string;
22
+ };
23
+ }
24
+ export declare const useEventProcessing: ({ getStatusLabel, getMessageContext, onUpdateMessageContext, }: UseEventProcessingParams) => UseEventProcessingReturn;
25
+ //# sourceMappingURL=useEventProcessing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useEventProcessing.d.ts","sourceRoot":"","sources":["../../src/hooks/useEventProcessing.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAMlF,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/C,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IAC/F,QAAQ,CAAC,iBAAiB,EAAE,MAAM,cAAc,CAAC;IACjD,QAAQ,CAAC,sBAAsB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CAC7E;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK;QAC3C,QAAQ,CAAC,eAAe,EAAE,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,GAAG,IAAI,CAAC;QAC9E,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACjD,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;KAC9B,CAAC;CACH;AAID,eAAO,MAAM,kBAAkB,GAAI,gEAIhC,wBAAwB,KAAG,wBA6J7B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { AgentTransport } from '../types/transportTypes';
2
+ export interface UseToolExecutionParams {
3
+ readonly onToolInvoke?: (toolName: string, toolArguments: Record<string, unknown>) => Promise<unknown>;
4
+ readonly transport: AgentTransport;
5
+ }
6
+ export interface UseToolExecutionReturn {
7
+ readonly executeToolAndSendResult: (toolName: string, toolArguments: Record<string, unknown>) => Promise<void>;
8
+ readonly handleToolExecutionError: (toolName: string, error: Error) => void;
9
+ }
10
+ export declare const useToolExecution: ({ onToolInvoke, transport }: UseToolExecutionParams) => UseToolExecutionReturn;
11
+ //# sourceMappingURL=useToolExecution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useToolExecution.d.ts","sourceRoot":"","sources":["../../src/hooks/useToolExecution.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACvG,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;CACpC;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,wBAAwB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/G,QAAQ,CAAC,wBAAwB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAC7E;AAED,eAAO,MAAM,gBAAgB,GAAI,6BAA6B,sBAAsB,KAAG,sBAoDtF,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { AgentTransport } from '../types/transportTypes';
2
+ export interface UseTransportSubscriptionParams {
3
+ readonly transport: AgentTransport;
4
+ }
5
+ export declare const useTransportSubscription: ({ transport }: UseTransportSubscriptionParams) => void;
6
+ //# sourceMappingURL=useTransportSubscription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTransportSubscription.d.ts","sourceRoot":"","sources":["../../src/hooks/useTransportSubscription.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;CACpC;AAED,eAAO,MAAM,wBAAwB,GAAI,eAAe,8BAA8B,KAAG,IAexF,CAAC"}
@@ -0,0 +1,44 @@
1
+ function u(r, n) {
2
+ return r.skipToEnd(), n.cur = t, "error";
3
+ }
4
+ function i(r, n) {
5
+ return r.match(/^HTTP\/\d\.\d/) ? (n.cur = f, "keyword") : r.match(/^[A-Z]+/) && /[ \t]/.test(r.peek()) ? (n.cur = d, "keyword") : u(r, n);
6
+ }
7
+ function f(r, n) {
8
+ var e = r.match(/^\d+/);
9
+ if (!e) return u(r, n);
10
+ n.cur = l;
11
+ var o = Number(e[0]);
12
+ return o >= 100 && o < 400 ? "atom" : "error";
13
+ }
14
+ function l(r, n) {
15
+ return r.skipToEnd(), n.cur = t, null;
16
+ }
17
+ function d(r, n) {
18
+ return r.eatWhile(/\S/), n.cur = s, "string.special";
19
+ }
20
+ function s(r, n) {
21
+ return r.match(/^HTTP\/\d\.\d$/) ? (n.cur = t, "keyword") : u(r, n);
22
+ }
23
+ function t(r) {
24
+ return r.sol() && !r.eat(/[ \t]/) ? r.match(/^.*?:/) ? "atom" : (r.skipToEnd(), "error") : (r.skipToEnd(), "string");
25
+ }
26
+ function c(r) {
27
+ return r.skipToEnd(), null;
28
+ }
29
+ const p = {
30
+ name: "http",
31
+ token: function(r, n) {
32
+ var e = n.cur;
33
+ return e != t && e != c && r.eatSpace() ? null : e(r, n);
34
+ },
35
+ blankLine: function(r) {
36
+ r.cur = c;
37
+ },
38
+ startState: function() {
39
+ return { cur: i };
40
+ }
41
+ };
42
+ export {
43
+ p as http
44
+ };