@camunda/copilot-chat 0.4.1 → 0.4.3

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 (220) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +5424 -28
  3. package/dist/package.json +4 -2
  4. package/package.json +4 -2
  5. package/dist/ConversationHistoryPanel/ConversationHistoryPanel.d.ts +0 -17
  6. package/dist/ConversationHistoryPanel/ConversationHistoryPanel.d.ts.map +0 -1
  7. package/dist/ConversationHistoryPanel/index.d.ts +0 -2
  8. package/dist/ConversationHistoryPanel/index.d.ts.map +0 -1
  9. package/dist/CopilotChat.d.ts +0 -18
  10. package/dist/CopilotChat.d.ts.map +0 -1
  11. package/dist/CopilotSidecar.d.ts +0 -12
  12. package/dist/CopilotSidecar.d.ts.map +0 -1
  13. package/dist/apl-B2DGVGxc.mjs +0 -76
  14. package/dist/asciiarmor-2LVJmxlE.mjs +0 -34
  15. package/dist/asn1-jKiBa2Ya.mjs +0 -95
  16. package/dist/asterisk-DS281yxp.mjs +0 -271
  17. package/dist/clike-BMALKCNj.mjs +0 -620
  18. package/dist/clojure-CCKyeQKf.mjs +0 -800
  19. package/dist/cmake-CuaCgAKt.mjs +0 -28
  20. package/dist/cobol-BlTKFDRj.mjs +0 -72
  21. package/dist/codemirror-runtime-CEPpTXJs.mjs +0 -14620
  22. package/dist/coffeescript-BVCvwO8I.mjs +0 -179
  23. package/dist/commonlisp-D_kxz07b.mjs +0 -75
  24. package/dist/crystal-D309uH6_.mjs +0 -217
  25. package/dist/css-BkF-NPzE.mjs +0 -1553
  26. package/dist/cypher-BMq4Fwjl.mjs +0 -68
  27. package/dist/d-BZcgY6La.mjs +0 -127
  28. package/dist/diff-Cg9d_RX2.mjs +0 -18
  29. package/dist/dockerfile-BmicwmnY.mjs +0 -194
  30. package/dist/dtd-CtLokQ-U.mjs +0 -84
  31. package/dist/dylan-QYeExnWK.mjs +0 -234
  32. package/dist/ebnf-DUPDuY4r.mjs +0 -78
  33. package/dist/ecl-CiXN-g_D.mjs +0 -121
  34. package/dist/eiffel-yQhjl4T1.mjs +0 -110
  35. package/dist/elm-CNT9vbN0.mjs +0 -108
  36. package/dist/erlang-CFOYdy9e.mjs +0 -487
  37. package/dist/factor-CYi8BYN3.mjs +0 -65
  38. package/dist/fcl-CPC2WYrI.mjs +0 -103
  39. package/dist/forth-BmxRyE9S.mjs +0 -60
  40. package/dist/fortran-9bvPyrOW.mjs +0 -442
  41. package/dist/gas-cpmYfFX2.mjs +0 -183
  42. package/dist/gherkin-CJuwpceU.mjs +0 -34
  43. package/dist/groovy-DZeT_VM-.mjs +0 -146
  44. package/dist/haskell-CxiO_7JL.mjs +0 -375
  45. package/dist/haxe-70NVW1pR.mjs +0 -359
  46. package/dist/hooks/index.d.ts +0 -7
  47. package/dist/hooks/index.d.ts.map +0 -1
  48. package/dist/hooks/useAgentAdapter.d.ts +0 -3
  49. package/dist/hooks/useAgentAdapter.d.ts.map +0 -1
  50. package/dist/hooks/useConversationLifecycle.d.ts +0 -15
  51. package/dist/hooks/useConversationLifecycle.d.ts.map +0 -1
  52. package/dist/hooks/useCopilotSidecar.d.ts +0 -6
  53. package/dist/hooks/useCopilotSidecar.d.ts.map +0 -1
  54. package/dist/hooks/useEventProcessing.d.ts +0 -25
  55. package/dist/hooks/useEventProcessing.d.ts.map +0 -1
  56. package/dist/hooks/useToolExecution.d.ts +0 -11
  57. package/dist/hooks/useToolExecution.d.ts.map +0 -1
  58. package/dist/hooks/useTransportSubscription.d.ts +0 -6
  59. package/dist/hooks/useTransportSubscription.d.ts.map +0 -1
  60. package/dist/http-D9LttvKF.mjs +0 -44
  61. package/dist/idl-B6TRFYjl.mjs +0 -947
  62. package/dist/index-B0VVkMg4.mjs +0 -302
  63. package/dist/index-B2hDZEh2.mjs +0 -76
  64. package/dist/index-BX9xjSNq.mjs +0 -101
  65. package/dist/index-BbhTSloX.mjs +0 -946
  66. package/dist/index-BjyHfjEa.mjs +0 -248
  67. package/dist/index-BljerkkH.mjs +0 -94
  68. package/dist/index-Bo9ApYYN.mjs +0 -289
  69. package/dist/index-BoHrWn4U.mjs +0 -253
  70. package/dist/index-BsAzfFID.mjs +0 -138
  71. package/dist/index-BspnobjW.mjs +0 -960
  72. package/dist/index-BzQx0g-S.mjs +0 -310
  73. package/dist/index-CCR62ymF.mjs +0 -74
  74. package/dist/index-CFVS5psP.mjs +0 -21189
  75. package/dist/index-CS1zZ4Sb.mjs +0 -270
  76. package/dist/index-CXvEIjQJ.mjs +0 -136
  77. package/dist/index-CoBD3JP3.mjs +0 -157
  78. package/dist/index-CtP7vBII.mjs +0 -1307
  79. package/dist/index-CvOBB2XD.mjs +0 -555
  80. package/dist/index-D_mWKo65.mjs +0 -565
  81. package/dist/index-DwF-4Nyi.mjs +0 -59
  82. package/dist/index-UnUv8lB6.mjs +0 -1918
  83. package/dist/index-jcKpOcsx.mjs +0 -612
  84. package/dist/index-oQ4276E9.mjs +0 -342
  85. package/dist/index.d.ts +0 -20
  86. package/dist/index.d.ts.map +0 -1
  87. package/dist/javascript-DOuB9oqA.mjs +0 -691
  88. package/dist/julia-DpvXAuO6.mjs +0 -241
  89. package/dist/layout/attachSidecarLayout.d.ts +0 -4
  90. package/dist/layout/attachSidecarLayout.d.ts.map +0 -1
  91. package/dist/layout/index.d.ts +0 -2
  92. package/dist/layout/index.d.ts.map +0 -1
  93. package/dist/layout/sidecarDom.d.ts +0 -10
  94. package/dist/layout/sidecarDom.d.ts.map +0 -1
  95. package/dist/layout/sidecarMediaQuery.d.ts +0 -3
  96. package/dist/layout/sidecarMediaQuery.d.ts.map +0 -1
  97. package/dist/layout/sidecarState.d.ts +0 -29
  98. package/dist/layout/sidecarState.d.ts.map +0 -1
  99. package/dist/layout/sidecarTypes.d.ts +0 -14
  100. package/dist/layout/sidecarTypes.d.ts.map +0 -1
  101. package/dist/livescript-CanGTf8u.mjs +0 -272
  102. package/dist/lua-XplVlWi_.mjs +0 -217
  103. package/dist/mathematica-jaRHnSxC.mjs +0 -35
  104. package/dist/mbox-BctzC1hL.mjs +0 -76
  105. package/dist/mirc-CFBPAOaF.mjs +0 -72
  106. package/dist/mllike-BSnXJBGA.mjs +0 -272
  107. package/dist/modelica-vUgVs--1.mjs +0 -93
  108. package/dist/mscgen-Cpl0NYLN.mjs +0 -104
  109. package/dist/mumps-CQoS1kWX.mjs +0 -25
  110. package/dist/nginx-zDPm3Z74.mjs +0 -89
  111. package/dist/nsis-DYWPgAyk.mjs +0 -62
  112. package/dist/ntriples-CsNjv2QF.mjs +0 -79
  113. package/dist/octave-C8PmmSRH.mjs +0 -143
  114. package/dist/oz-Ce8aN8oE.mjs +0 -151
  115. package/dist/pascal-De0D6mP7.mjs +0 -77
  116. package/dist/perl-B4bSCe1C.mjs +0 -915
  117. package/dist/pig-D24Z8EXi.mjs +0 -54
  118. package/dist/powershell-DkYVfTzP.mjs +0 -249
  119. package/dist/properties-Dn9wna3M.mjs +0 -26
  120. package/dist/protobuf-BPIjwpzm.mjs +0 -49
  121. package/dist/pug-Bz8aeT0D.mjs +0 -248
  122. package/dist/puppet-nyd4dhjf.mjs +0 -45
  123. package/dist/python-BkR3uSy8.mjs +0 -313
  124. package/dist/q-DyHZGnqm.mjs +0 -86
  125. package/dist/r-LKEuhEGI.mjs +0 -104
  126. package/dist/registry/index.d.ts +0 -2
  127. package/dist/registry/index.d.ts.map +0 -1
  128. package/dist/registry/toolDefinitions.d.ts +0 -10
  129. package/dist/registry/toolDefinitions.d.ts.map +0 -1
  130. package/dist/registry/toolRegistry.d.ts +0 -29
  131. package/dist/registry/toolRegistry.d.ts.map +0 -1
  132. package/dist/rpm-IznJm2Xc.mjs +0 -57
  133. package/dist/ruby-CcYfvIk6.mjs +0 -228
  134. package/dist/sas-7E8yHoCW.mjs +0 -105
  135. package/dist/scheme-DjibxsNh.mjs +0 -124
  136. package/dist/shell-C0C2sNA_.mjs +0 -182
  137. package/dist/sidecar-api.d.ts +0 -5
  138. package/dist/sidecar-api.d.ts.map +0 -1
  139. package/dist/sieve-Bwz7vjP5.mjs +0 -72
  140. package/dist/simple-mode-mNVtnu0l.mjs +0 -89
  141. package/dist/smalltalk-Bhddl2pB.mjs +0 -48
  142. package/dist/solr-BNlsLglM.mjs +0 -41
  143. package/dist/sparql-FarWu_Gb.mjs +0 -197
  144. package/dist/spreadsheet-C-cy4P5N.mjs +0 -49
  145. package/dist/sql-CfG5lQ3l.mjs +0 -282
  146. package/dist/stex-Du4h4KAU.mjs +0 -129
  147. package/dist/store/agentStore.d.ts +0 -27
  148. package/dist/store/agentStore.d.ts.map +0 -1
  149. package/dist/store/agentStoreEventProcessor.d.ts +0 -21
  150. package/dist/store/agentStoreEventProcessor.d.ts.map +0 -1
  151. package/dist/store/chatStore.d.ts +0 -36
  152. package/dist/store/chatStore.d.ts.map +0 -1
  153. package/dist/store/historyStore.d.ts +0 -23
  154. package/dist/store/historyStore.d.ts.map +0 -1
  155. package/dist/store/index.d.ts +0 -5
  156. package/dist/store/index.d.ts.map +0 -1
  157. package/dist/store/sidecarStore.d.ts +0 -9
  158. package/dist/store/sidecarStore.d.ts.map +0 -1
  159. package/dist/styles/ensureSidecarStyles.d.ts +0 -2
  160. package/dist/styles/ensureSidecarStyles.d.ts.map +0 -1
  161. package/dist/stylus-CAdqWld3.mjs +0 -250
  162. package/dist/swift-DSxqR9R6.mjs +0 -230
  163. package/dist/sync-ottB0RsS.mjs +0 -1251
  164. package/dist/table-runtime-BIDL1Oeg.mjs +0 -3606
  165. package/dist/tcl-xfoLljhY.mjs +0 -81
  166. package/dist/test-setup.d.ts +0 -1
  167. package/dist/test-setup.d.ts.map +0 -1
  168. package/dist/textile-D1AWE-pc.mjs +0 -295
  169. package/dist/tiddlywiki-5wqsXtSk.mjs +0 -155
  170. package/dist/tiki-__Kn3CeS.mjs +0 -181
  171. package/dist/toml-DWAmxCjl.mjs +0 -58
  172. package/dist/tools/kapaAi/KapaSearchBridge.d.ts +0 -7
  173. package/dist/tools/kapaAi/KapaSearchBridge.d.ts.map +0 -1
  174. package/dist/tools/kapaAi/kapaSearchExecutor.d.ts +0 -35
  175. package/dist/tools/kapaAi/kapaSearchExecutor.d.ts.map +0 -1
  176. package/dist/tools/kapaAi/kapaSearchTool.d.ts +0 -24
  177. package/dist/tools/kapaAi/kapaSearchTool.d.ts.map +0 -1
  178. package/dist/troff-D2UO-fKf.mjs +0 -35
  179. package/dist/ttcn-Bsa4sfRm.mjs +0 -123
  180. package/dist/ttcn-cfg-Bac_acMi.mjs +0 -88
  181. package/dist/turtle-xwJUxoPV.mjs +0 -80
  182. package/dist/types/agentTypes.d.ts +0 -11
  183. package/dist/types/agentTypes.d.ts.map +0 -1
  184. package/dist/types/chatTypes.d.ts +0 -45
  185. package/dist/types/chatTypes.d.ts.map +0 -1
  186. package/dist/types/eventTypes.d.ts +0 -28
  187. package/dist/types/eventTypes.d.ts.map +0 -1
  188. package/dist/types/historyTypes.d.ts +0 -34
  189. package/dist/types/historyTypes.d.ts.map +0 -1
  190. package/dist/types/index.d.ts +0 -5
  191. package/dist/types/index.d.ts.map +0 -1
  192. package/dist/types/toolTypes.d.ts +0 -46
  193. package/dist/types/toolTypes.d.ts.map +0 -1
  194. package/dist/types/transportTypes.d.ts +0 -44
  195. package/dist/types/transportTypes.d.ts.map +0 -1
  196. package/dist/utils/eventHandlers.d.ts +0 -34
  197. package/dist/utils/eventHandlers.d.ts.map +0 -1
  198. package/dist/utils/eventPredicates.d.ts +0 -10
  199. package/dist/utils/eventPredicates.d.ts.map +0 -1
  200. package/dist/utils/index.d.ts +0 -7
  201. package/dist/utils/index.d.ts.map +0 -1
  202. package/dist/utils/mapConversationMessages.d.ts +0 -12
  203. package/dist/utils/mapConversationMessages.d.ts.map +0 -1
  204. package/dist/utils/parseToolArguments.d.ts +0 -6
  205. package/dist/utils/parseToolArguments.d.ts.map +0 -1
  206. package/dist/utils/statusLabels.d.ts +0 -3
  207. package/dist/utils/statusLabels.d.ts.map +0 -1
  208. package/dist/utils/thinkingBlockUtils.d.ts +0 -18
  209. package/dist/utils/thinkingBlockUtils.d.ts.map +0 -1
  210. package/dist/utils/toolResultFormatter.d.ts +0 -6
  211. package/dist/utils/toolResultFormatter.d.ts.map +0 -1
  212. package/dist/vb-c2kQGd6-.mjs +0 -74
  213. package/dist/vbscript-1f_Dhg5H.mjs +0 -324
  214. package/dist/velocity-DJd0pTTC.mjs +0 -96
  215. package/dist/verilog-CiS1jyi5.mjs +0 -262
  216. package/dist/vhdl-T9HkrbI2.mjs +0 -106
  217. package/dist/webidl-CjfDENEo.mjs +0 -155
  218. package/dist/xquery-Ct6lEb4B.mjs +0 -422
  219. package/dist/yacas-C0absKBh.mjs +0 -73
  220. package/dist/z80-Pki2zAjW.mjs +0 -61
@@ -1,359 +0,0 @@
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,7 +0,0 @@
1
- export { useCopilotSidecar } from './useCopilotSidecar';
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';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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 +0,0 @@
1
- import { AgentAdapterConfig, AgentAdapterReturn } from '../types/agentTypes';
2
- export declare const useAgentAdapter: ({ transport, onToolInvoke, getStatusLabel, }: AgentAdapterConfig) => AgentAdapterReturn;
3
- //# sourceMappingURL=useAgentAdapter.d.ts.map
@@ -1 +0,0 @@
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;AAoBnG,eAAO,MAAM,eAAe,GAAI,8CAI7B,kBAAkB,KAAG,kBA0FvB,CAAC"}
@@ -1,15 +0,0 @@
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, context: Record<string, unknown>) => Promise<void>;
10
- readonly stopGeneration: () => void;
11
- readonly resetConversation: () => void;
12
- readonly loadConversation: (conversationId: string) => Promise<void>;
13
- }
14
- export declare const useConversationLifecycle: ({ transport, onEvent, onInitializeMessage, }: UseConversationLifecycleParams) => UseConversationLifecycleReturn;
15
- //# sourceMappingURL=useConversationLifecycle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useConversationLifecycle.d.ts","sourceRoot":"","sources":["../../src/hooks/useConversationLifecycle.ts"],"names":[],"mappings":"AAaA,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,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/F,QAAQ,CAAC,cAAc,EAAE,MAAM,IAAI,CAAC;IACpC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,IAAI,CAAC;IACvC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACtE;AAED,eAAO,MAAM,wBAAwB,GAAI,8CAItC,8BAA8B,KAAG,8BA2FnC,CAAC"}
@@ -1,6 +0,0 @@
1
- import { SidecarLayoutConfig } from '../layout';
2
- export interface UseCopilotSidecarOptions extends SidecarLayoutConfig {
3
- enabled: boolean;
4
- }
5
- export declare const useCopilotSidecar: ({ enabled, width, zIndex, workareaSelector, headerSelector, responsiveBreakpoint, }: UseCopilotSidecarOptions) => void;
6
- //# sourceMappingURL=useCopilotSidecar.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,25 +0,0 @@
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
@@ -1 +0,0 @@
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;AAOlF,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,wBAuK7B,CAAC"}
@@ -1,11 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,6 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,44 +0,0 @@
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
- };