@alauda/doom 1.10.12 → 1.12.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 (155) hide show
  1. package/assets/alert.svg +1 -0
  2. package/assets/angle-down.svg +1 -0
  3. package/assets/assistant.svg +1 -0
  4. package/assets/close.svg +1 -0
  5. package/assets/logout.svg +1 -0
  6. package/assets/new-chat.svg +1 -0
  7. package/assets/question-circle.svg +1 -0
  8. package/assets/send.svg +1 -0
  9. package/lib/cli/export.js +1 -1
  10. package/lib/cli/load-config.js +11 -6
  11. package/lib/global/Intelligence/AIAssistant/Chat/ChatRefDocs/index.d.ts +5 -0
  12. package/lib/global/Intelligence/AIAssistant/Chat/ChatRefDocs/index.js +16 -0
  13. package/lib/global/Intelligence/AIAssistant/Chat/ThinkingProcess/index.d.ts +4 -0
  14. package/lib/global/Intelligence/AIAssistant/Chat/ThinkingProcess/index.js +6 -0
  15. package/lib/global/Intelligence/AIAssistant/Chat/index.d.ts +7 -0
  16. package/lib/global/Intelligence/AIAssistant/Chat/index.js +8 -0
  17. package/lib/global/Intelligence/AIAssistant/Preamble/ApiErrorAlert/index.d.ts +5 -0
  18. package/lib/global/Intelligence/AIAssistant/Preamble/ApiErrorAlert/index.js +22 -0
  19. package/lib/global/Intelligence/AIAssistant/Preamble/Button/index.d.ts +8 -0
  20. package/lib/global/Intelligence/AIAssistant/Preamble/Button/index.js +5 -0
  21. package/lib/global/Intelligence/AIAssistant/Preamble/CaptchaInput/index.d.ts +10 -0
  22. package/lib/global/Intelligence/AIAssistant/Preamble/CaptchaInput/index.js +14 -0
  23. package/lib/global/Intelligence/AIAssistant/Preamble/FocusInput/index.d.ts +6 -0
  24. package/lib/global/Intelligence/AIAssistant/Preamble/FocusInput/index.js +19 -0
  25. package/lib/global/Intelligence/AIAssistant/Preamble/FormItem/index.d.ts +16 -0
  26. package/lib/global/Intelligence/AIAssistant/Preamble/FormItem/index.js +27 -0
  27. package/lib/global/Intelligence/AIAssistant/Preamble/Input/index.d.ts +7 -0
  28. package/lib/global/Intelligence/AIAssistant/Preamble/Input/index.js +5 -0
  29. package/lib/global/Intelligence/AIAssistant/Preamble/LoginForm/index.d.ts +3 -0
  30. package/lib/global/Intelligence/AIAssistant/Preamble/LoginForm/index.js +88 -0
  31. package/lib/global/Intelligence/AIAssistant/Preamble/LoginForm/types.d.ts +18 -0
  32. package/lib/global/Intelligence/AIAssistant/Preamble/LoginForm/utils.d.ts +3 -0
  33. package/lib/global/Intelligence/AIAssistant/Preamble/LoginForm/utils.js +7 -0
  34. package/lib/global/Intelligence/AIAssistant/Preamble/Radio/Radio.d.ts +7 -0
  35. package/lib/global/Intelligence/AIAssistant/Preamble/Radio/Radio.js +11 -0
  36. package/lib/global/Intelligence/AIAssistant/Preamble/Radio/RadioGroup.d.ts +11 -0
  37. package/lib/global/Intelligence/AIAssistant/Preamble/Radio/RadioGroup.js +21 -0
  38. package/lib/global/Intelligence/AIAssistant/Preamble/Radio/context.d.ts +7 -0
  39. package/lib/global/Intelligence/AIAssistant/Preamble/Radio/context.js +2 -0
  40. package/lib/global/Intelligence/AIAssistant/Preamble/Radio/index.d.ts +2 -0
  41. package/lib/global/Intelligence/AIAssistant/Preamble/Radio/index.js +2 -0
  42. package/lib/global/Intelligence/AIAssistant/Preamble/index.d.ts +4 -0
  43. package/lib/global/Intelligence/AIAssistant/Preamble/index.js +10 -0
  44. package/lib/global/Intelligence/AIAssistant/Preamble/types.d.ts +9 -0
  45. package/lib/global/Intelligence/AIAssistant/Preamble/types.js +1 -0
  46. package/lib/global/Intelligence/AIAssistant/ResizableUserInput/index.d.ts +8 -0
  47. package/lib/global/Intelligence/AIAssistant/ResizableUserInput/index.js +54 -0
  48. package/lib/global/Intelligence/AIAssistant/Thinking.d.ts +1 -0
  49. package/lib/global/Intelligence/AIAssistant/Thinking.js +15 -0
  50. package/lib/global/Intelligence/AIAssistant/index.d.ts +6 -0
  51. package/lib/global/Intelligence/AIAssistant/index.js +122 -0
  52. package/lib/global/Intelligence/AIAssistant/types.d.ts +14 -0
  53. package/lib/global/Intelligence/AIAssistant/types.js +1 -0
  54. package/lib/global/Intelligence/AIAssistant/utils.d.ts +8 -0
  55. package/lib/global/Intelligence/AIAssistant/utils.js +29 -0
  56. package/lib/global/Intelligence/constants.d.ts +6 -0
  57. package/lib/global/Intelligence/constants.js +21 -0
  58. package/lib/global/Intelligence/context.d.ts +18 -0
  59. package/lib/global/Intelligence/context.js +31 -0
  60. package/lib/global/Intelligence/index.d.ts +2 -0
  61. package/lib/global/Intelligence/index.js +33 -0
  62. package/lib/global/Intelligence/types.d.ts +32 -0
  63. package/lib/global/Intelligence/types.js +6 -0
  64. package/lib/global/Intelligence/utils.d.ts +3 -0
  65. package/lib/global/Intelligence/utils.js +32 -0
  66. package/lib/global/VersionsNav/NavMenuSingleItem.js +2 -2
  67. package/lib/plugins/index.d.ts +0 -1
  68. package/lib/plugins/index.js +0 -1
  69. package/lib/runtime/components/OpenAPIPath.js +2 -3
  70. package/lib/runtime/components/Overview.js +3 -6
  71. package/lib/runtime/components/_utils.d.ts +1 -1
  72. package/lib/runtime/components/_utils.js +2 -4
  73. package/lib/runtime/hooks/index.d.ts +5 -3
  74. package/lib/runtime/hooks/index.js +5 -3
  75. package/lib/runtime/hooks/useInterval.d.ts +1 -0
  76. package/lib/runtime/hooks/useInterval.js +19 -0
  77. package/lib/runtime/hooks/useMemoizedFn.d.ts +1 -0
  78. package/lib/runtime/hooks/useMemoizedFn.js +12 -0
  79. package/lib/runtime/hooks/useTranslation.d.ts +1 -1
  80. package/lib/runtime/translation.d.ts +148 -0
  81. package/lib/runtime/translation.js +111 -0
  82. package/package.json +32 -30
  83. package/styles/ai-assistant.module.scss +61 -0
  84. package/styles/chat-ref-docs.module.scss +50 -0
  85. package/styles/chat.module.scss +72 -0
  86. package/styles/global.scss +2 -0
  87. package/styles/intelligence.module.scss +26 -0
  88. package/styles/intelligence.scss +168 -0
  89. package/styles/preamble.module.scss +27 -0
  90. package/styles/resizable-user-input.module.scss +60 -0
  91. package/LICENSE +0 -21
  92. package/README.md +0 -29
  93. package/lib/cli/export-pdf-core/generatePdf.d.ts +0 -25
  94. package/lib/cli/export-pdf-core/generatePdf.js +0 -91
  95. package/lib/cli/export-pdf-core/index.d.ts +0 -3
  96. package/lib/cli/export-pdf-core/index.js +0 -3
  97. package/lib/cli/export-pdf-core/types.d.ts +0 -15
  98. package/lib/cli/export-pdf-core/utils/convertPathToPosix.d.ts +0 -8
  99. package/lib/cli/export-pdf-core/utils/convertPathToPosix.js +0 -26
  100. package/lib/cli/export-pdf-core/utils/getUrlLink.d.ts +0 -4
  101. package/lib/cli/export-pdf-core/utils/getUrlLink.js +0 -7
  102. package/lib/cli/export-pdf-core/utils/index.d.ts +0 -3
  103. package/lib/cli/export-pdf-core/utils/index.js +0 -3
  104. package/lib/cli/export-pdf-core/utils/mergePDF.d.ts +0 -26
  105. package/lib/cli/export-pdf-core/utils/mergePDF.js +0 -137
  106. package/lib/cli/html-export-pdf/core/index.d.ts +0 -3
  107. package/lib/cli/html-export-pdf/core/index.js +0 -3
  108. package/lib/cli/html-export-pdf/core/outline.d.ts +0 -47
  109. package/lib/cli/html-export-pdf/core/outline.js +0 -217
  110. package/lib/cli/html-export-pdf/core/postprocesser.d.ts +0 -14
  111. package/lib/cli/html-export-pdf/core/postprocesser.js +0 -36
  112. package/lib/cli/html-export-pdf/core/printer.d.ts +0 -59
  113. package/lib/cli/html-export-pdf/core/printer.js +0 -235
  114. package/lib/cli/html-export-pdf/index.d.ts +0 -2
  115. package/lib/cli/html-export-pdf/index.js +0 -2
  116. package/lib/cli/html-export-pdf/utils/cliProgress.d.ts +0 -13
  117. package/lib/cli/html-export-pdf/utils/cliProgress.js +0 -80
  118. package/lib/cli/html-export-pdf/utils/fs.d.ts +0 -5
  119. package/lib/cli/html-export-pdf/utils/fs.js +0 -18
  120. package/lib/cli/html-export-pdf/utils/getAbsFileName.d.ts +0 -1
  121. package/lib/cli/html-export-pdf/utils/getAbsFileName.js +0 -4
  122. package/lib/cli/html-export-pdf/utils/getDirname.d.ts +0 -1
  123. package/lib/cli/html-export-pdf/utils/getDirname.js +0 -5
  124. package/lib/cli/html-export-pdf/utils/index.d.ts +0 -7
  125. package/lib/cli/html-export-pdf/utils/index.js +0 -7
  126. package/lib/cli/html-export-pdf/utils/isValidUrl.d.ts +0 -1
  127. package/lib/cli/html-export-pdf/utils/isValidUrl.js +0 -3
  128. package/lib/cli/html-export-pdf/utils/optionsCustomProcessing.d.ts +0 -2
  129. package/lib/cli/html-export-pdf/utils/optionsCustomProcessing.js +0 -6
  130. package/lib/cli/html-export-pdf/utils/replaceExt.d.ts +0 -1
  131. package/lib/cli/html-export-pdf/utils/replaceExt.js +0 -19
  132. package/lib/cli/merge-pdfs/formatDate.d.ts +0 -1
  133. package/lib/cli/merge-pdfs/formatDate.js +0 -23
  134. package/lib/cli/merge-pdfs/index.d.ts +0 -8
  135. package/lib/cli/merge-pdfs/index.js +0 -62
  136. package/lib/plugins/sitemap/index.d.ts +0 -16
  137. package/lib/plugins/sitemap/index.js +0 -51
  138. package/pyodide/README.md +0 -90
  139. package/pyodide/console.html +0 -259
  140. package/pyodide/ffi.d.ts +0 -1118
  141. package/pyodide/micropip-0.8.0-py3-none-any.whl +0 -0
  142. package/pyodide/package.json +0 -59
  143. package/pyodide/packaging-24.2-py3-none-any.whl +0 -0
  144. package/pyodide/pyodide-lock.json +0 -1
  145. package/pyodide/pyodide.asm.js +0 -17
  146. package/pyodide/pyodide.asm.wasm +0 -0
  147. package/pyodide/pyodide.d.ts +0 -1627
  148. package/pyodide/pyodide.js +0 -6
  149. package/pyodide/pyodide.js.map +0 -1
  150. package/pyodide/pyodide.mjs +0 -4
  151. package/pyodide/pyodide.mjs.map +0 -1
  152. package/pyodide/pypdf-3.8.1-py3-none-any.whl +0 -0
  153. package/pyodide/python_stdlib.zip +0 -0
  154. package/pyodide/repodata.json +0 -1
  155. /package/lib/{cli/export-pdf-core → global/Intelligence/AIAssistant/Preamble/LoginForm}/types.js +0 -0
@@ -1,259 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8" />
5
- <script src="https://cdn.jsdelivr.net/npm/jquery"></script>
6
- <script src="https://cdn.jsdelivr.net/npm/jquery.terminal@2.35.2/js/jquery.terminal.min.js"></script>
7
- <script src="https://cdn.jsdelivr.net/npm/jquery.terminal@2.35.2/js/unix_formatting.min.js"></script>
8
- <link
9
- href="https://cdn.jsdelivr.net/npm/jquery.terminal@2.35.2/css/jquery.terminal.min.css"
10
- rel="stylesheet"
11
- />
12
- <style>
13
- .terminal {
14
- --size: 1.5;
15
- --color: rgba(255, 255, 255, 0.8);
16
- }
17
- .noblink {
18
- --animation: terminal-none;
19
- }
20
- body {
21
- background-color: black;
22
- }
23
- #jquery-terminal-logo {
24
- color: white;
25
- border-color: white;
26
- position: absolute;
27
- top: 7px;
28
- right: 18px;
29
- z-index: 2;
30
- }
31
- #jquery-terminal-logo a {
32
- color: gray;
33
- text-decoration: none;
34
- font-size: 0.7em;
35
- }
36
- #loading {
37
- display: inline-block;
38
- width: 50px;
39
- height: 50px;
40
- position: fixed;
41
- top: 50%;
42
- left: 50%;
43
- border: 3px solid rgba(172, 237, 255, 0.5);
44
- border-radius: 50%;
45
- border-top-color: #fff;
46
- animation: spin 1s ease-in-out infinite;
47
- -webkit-animation: spin 1s ease-in-out infinite;
48
- }
49
-
50
- @keyframes spin {
51
- to {
52
- -webkit-transform: rotate(360deg);
53
- }
54
- }
55
- @-webkit-keyframes spin {
56
- to {
57
- -webkit-transform: rotate(360deg);
58
- }
59
- }
60
- </style>
61
- </head>
62
- <body>
63
- <div id="jquery-terminal-logo">
64
- <a href="https://terminal.jcubic.pl/">jQuery Terminal</a>
65
- </div>
66
- <div id="loading"></div>
67
- <script>
68
- "use strict";
69
-
70
- function sleep(s) {
71
- return new Promise((resolve) => setTimeout(resolve, s));
72
- }
73
-
74
- async function main() {
75
- let indexURL = "./";
76
- const urlParams = new URLSearchParams(window.location.search);
77
- const buildParam = urlParams.get("build");
78
- if (buildParam) {
79
- if (["full", "debug", "pyc"].includes(buildParam)) {
80
- indexURL = indexURL.replace(
81
- "/full/",
82
- "/" + urlParams.get("build") + "/",
83
- );
84
- } else {
85
- console.warn(
86
- 'Invalid URL parameter: build="' +
87
- buildParam +
88
- '". Using default "full".',
89
- );
90
- }
91
- }
92
- const { loadPyodide } = await import(indexURL + "pyodide.mjs");
93
-
94
- let term;
95
- globalThis.pyodide = await loadPyodide({
96
- stdin: () => {
97
- let result = prompt();
98
- echo(result);
99
- return result;
100
- },
101
- });
102
- let namespace = pyodide.globals.get("dict")();
103
- pyodide.runPython(
104
- `
105
- import sys
106
- from pyodide.ffi import to_js
107
- from pyodide.console import PyodideConsole, repr_shorten, BANNER
108
- import __main__
109
- BANNER = "Welcome to the Pyodide terminal emulator 🐍\\n" + BANNER
110
- pyconsole = PyodideConsole(__main__.__dict__)
111
- import builtins
112
- async def await_fut(fut):
113
- res = await fut
114
- if res is not None:
115
- builtins._ = res
116
- return to_js([res], depth=1)
117
- def clear_console():
118
- pyconsole.buffer = []
119
- `,
120
- { globals: namespace },
121
- );
122
- let repr_shorten = namespace.get("repr_shorten");
123
- let banner = namespace.get("BANNER");
124
- let await_fut = namespace.get("await_fut");
125
- let pyconsole = namespace.get("pyconsole");
126
- let clear_console = namespace.get("clear_console");
127
- const echo = (msg, ...opts) =>
128
- term.echo(
129
- msg
130
- .replaceAll("]]", "&rsqb;&rsqb;")
131
- .replaceAll("[[", "&lsqb;&lsqb;"),
132
- ...opts,
133
- );
134
- namespace.destroy();
135
-
136
- let ps1 = ">>> ",
137
- ps2 = "... ";
138
-
139
- async function lock() {
140
- let resolve;
141
- let ready = term.ready;
142
- term.ready = new Promise((res) => (resolve = res));
143
- await ready;
144
- return resolve;
145
- }
146
-
147
- async function interpreter(command) {
148
- let unlock = await lock();
149
- term.pause();
150
- // multiline should be split (useful when pasting)
151
- for (const c of command.split("\n")) {
152
- const escaped = c.replaceAll(/\u00a0/g, " ");
153
- let fut = pyconsole.push(escaped);
154
- term.set_prompt(fut.syntax_check === "incomplete" ? ps2 : ps1);
155
- switch (fut.syntax_check) {
156
- case "syntax-error":
157
- term.error(fut.formatted_error.trimEnd());
158
- continue;
159
- case "incomplete":
160
- continue;
161
- case "complete":
162
- break;
163
- default:
164
- throw new Error(`Unexpected type ${ty}`);
165
- }
166
- // In JavaScript, await automatically also awaits any results of
167
- // awaits, so if an async function returns a future, it will await
168
- // the inner future too. This is not what we want so we
169
- // temporarily put it into a list to protect it.
170
- let wrapped = await_fut(fut);
171
- // complete case, get result / error and print it.
172
- try {
173
- let [value] = await wrapped;
174
- if (value !== undefined) {
175
- echo(
176
- repr_shorten.callKwargs(value, {
177
- separator: "\n<long output truncated>\n",
178
- }),
179
- );
180
- }
181
- if (value instanceof pyodide.ffi.PyProxy) {
182
- value.destroy();
183
- }
184
- } catch (e) {
185
- if (e.constructor.name === "PythonError") {
186
- const message = fut.formatted_error || e.message;
187
- term.error(message.trimEnd());
188
- } else {
189
- throw e;
190
- }
191
- } finally {
192
- fut.destroy();
193
- wrapped.destroy();
194
- }
195
- }
196
- term.resume();
197
- await sleep(10);
198
- unlock();
199
- }
200
-
201
- term = $("body").terminal(interpreter, {
202
- greetings: banner,
203
- prompt: ps1,
204
- completionEscape: false,
205
- completion: function (command, callback) {
206
- callback(pyconsole.complete(command).toJs()[0]);
207
- },
208
- keymap: {
209
- "CTRL+C": async function (event, original) {
210
- clear_console();
211
- term.enter();
212
- echo("KeyboardInterrupt");
213
- term.set_command("");
214
- term.set_prompt(ps1);
215
- },
216
- TAB: (event, original) => {
217
- const command = term.before_cursor();
218
- // Disable completion for whitespaces.
219
- if (command.trim() === "") {
220
- term.insert("\t");
221
- return false;
222
- }
223
- return original(event);
224
- },
225
- },
226
- });
227
- window.term = term;
228
- pyconsole.stdout_callback = (s) => echo(s, { newline: false });
229
- pyconsole.stderr_callback = (s) => {
230
- term.error(s.trimEnd());
231
- };
232
- term.ready = Promise.resolve();
233
- pyodide._api.on_fatal = async (e) => {
234
- if (e.name === "Exit") {
235
- term.error(e);
236
- term.error("Pyodide exited and can no longer be used.");
237
- } else {
238
- term.error(
239
- "Pyodide has suffered a fatal error. Please report this to the Pyodide maintainers.",
240
- );
241
- term.error("The cause of the fatal error was:");
242
- term.error(e);
243
- term.error("Look in the browser console for more details.");
244
- }
245
- await term.ready;
246
- term.pause();
247
- await sleep(15);
248
- term.pause();
249
- };
250
-
251
- const searchParams = new URLSearchParams(window.location.search);
252
- if (searchParams.has("noblink")) {
253
- $(".cmd-cursor").addClass("noblink");
254
- }
255
- }
256
- window.console_ready = main();
257
- </script>
258
- </body>
259
- </html>