@beff/aula-cli 0.9.0 → 0.11.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 (67) hide show
  1. package/dist/src/{aula-voice-tts-ZLENVCTL.js → aula-voice-tts-HPJAJO2Q.js} +2 -2
  2. package/dist/src/aula.js +5 -3
  3. package/dist/src/{chunk-S4R2YV4Q.js → chunk-3RB5T3CC.js} +10 -10
  4. package/dist/src/{chunk-6MTKOBV3.js → chunk-4N4NUMKP.js} +1 -1
  5. package/dist/src/{chunk-LONUONDL.js → chunk-4PZYWKO5.js} +1 -1
  6. package/dist/src/{chunk-I7YBTEZQ.js → chunk-5ABPFV55.js} +2 -2
  7. package/dist/src/{chunk-Z6BPR7P2.js → chunk-5TUGYMFH.js} +3 -3
  8. package/dist/src/{chunk-Y2QUSCIS.js → chunk-5XVICDLW.js} +7 -5
  9. package/dist/src/{chunk-MBGQSHJQ.js → chunk-DFXG2P7A.js} +6 -3
  10. package/dist/src/{chunk-ADPNDDVR.js → chunk-F4XRXW6M.js} +1 -1
  11. package/dist/src/{chunk-L3D2SCGY.js → chunk-JWBPHDVP.js} +1 -1
  12. package/dist/src/{chunk-HNX33Z2H.js → chunk-KCGXC2RV.js} +1 -1
  13. package/dist/src/{chunk-CDCQV6LH.js → chunk-VX7UVLQW.js} +1 -0
  14. package/dist/src/{chunk-4ISJCROX.js → chunk-XCPBFMEA.js} +2 -2
  15. package/dist/src/{chunk-XND4JY6N.js → chunk-Y56UHOZ2.js} +13670 -11331
  16. package/dist/src/cli.js +11 -11
  17. package/dist/src/commands-BUM4AG3N.js +34 -0
  18. package/dist/src/generated/aula.core5.wasm +0 -0
  19. package/dist/src/generated/aula.core6.wasm +0 -0
  20. package/dist/src/generated/aula.core7.wasm +0 -0
  21. package/dist/src/generated/aula.js +13393 -11218
  22. package/dist/src/generated/interfaces/aula-engine-types.d.ts +1 -0
  23. package/dist/src/problems-2IXR6RUV.js +18 -0
  24. package/dist/src/project-36YBXKCD.js +16 -0
  25. package/dist/src/render-child.js +3 -3
  26. package/dist/src/{run-UMTKLDLV.js → run-YLF62D3C.js} +13 -13
  27. package/dist/src/{server-UOGVZC42.js → server-ALRN2C2W.js} +8 -8
  28. package/dist/src/{site-VE7QMIQT.js → site-A2I4P4GX.js} +7 -7
  29. package/dist/src/{tex-mathjax-BPTK3PIV.js → tex-mathjax-7AXKQRBZ.js} +1 -1
  30. package/dist/web/app/assets/56cf58c4/aula-method.js +2 -0
  31. package/dist/web/app/assets/56cf58c4/aula.js +1 -0
  32. package/dist/web/app/assets/{99347f41 → 56cf58c4}/build-worker.js +1 -1
  33. package/dist/web/app/assets/{99347f41 → 56cf58c4}/index.js +3 -2
  34. package/dist/web/app/assets/__vite-browser-external-BHESVS8k.js +1 -0
  35. package/dist/web/app/assets/aula-voice-worker-CJpoa9h-.js +1 -0
  36. package/dist/web/app/assets/{aula.core5-DyTpnTeu.wasm → aula.core5-CQ2oHbtB.wasm} +0 -0
  37. package/dist/web/app/assets/{index-BL7_U8KF.css → index-qn44kZJM.css} +1 -1
  38. package/dist/web/{site/assets/protocol-SzfRuFqZ.js → app/assets/protocol-C3Pseh4g.js} +3 -3
  39. package/dist/web/app/assets/src-DTLT9Lbm.js +6 -0
  40. package/dist/web/{site/assets/tex-mathjax-DI8t3K0d.js → app/assets/tex-mathjax-8QilZX4j.js} +1 -1
  41. package/dist/web/app/index.html +4 -4
  42. package/dist/web/site/assets/82624cbe/aula-method.js +2 -0
  43. package/dist/web/site/assets/82624cbe/aula.js +1 -0
  44. package/dist/web/site/assets/{0b93700f → 82624cbe}/build-worker.js +1 -1
  45. package/dist/web/site/assets/{0b93700f → 82624cbe}/index.js +3 -2
  46. package/dist/web/site/assets/__vite-browser-external-DQubyTsZ.js +1 -0
  47. package/dist/web/site/assets/aula-voice-worker-BRrzyFz3.js +1 -0
  48. package/dist/web/site/assets/{aula.core5-DyTpnTeu.wasm → aula.core5-CQ2oHbtB.wasm} +0 -0
  49. package/dist/web/site/assets/{index-BL7_U8KF.css → index-qn44kZJM.css} +1 -1
  50. package/dist/web/{app/assets/protocol-6Ef0OiUV.js → site/assets/protocol-BOv1ch3F.js} +3 -3
  51. package/dist/web/site/assets/src-DpS3WA7l.js +6 -0
  52. package/dist/web/{app/assets/tex-mathjax-CIEEjyeS.js → site/assets/tex-mathjax-CVHS5J80.js} +1 -1
  53. package/dist/web/site/index.html +4 -4
  54. package/package.json +1 -1
  55. package/dist/src/commands-5ZNEAKAX.js +0 -34
  56. package/dist/src/problems-FB2KGUXJ.js +0 -18
  57. package/dist/src/project-2QUGAEKA.js +0 -16
  58. package/dist/web/app/assets/99347f41/aula-method.js +0 -2
  59. package/dist/web/app/assets/99347f41/aula.js +0 -1
  60. package/dist/web/app/assets/__vite-browser-external-BUQWWIRp.js +0 -1
  61. package/dist/web/app/assets/aula-voice-worker-BOAoj3G4.js +0 -1
  62. package/dist/web/app/assets/src-BnqGFItZ.js +0 -6
  63. package/dist/web/site/assets/0b93700f/aula-method.js +0 -2
  64. package/dist/web/site/assets/0b93700f/aula.js +0 -1
  65. package/dist/web/site/assets/__vite-browser-external-dZqIvDN7.js +0 -1
  66. package/dist/web/site/assets/aula-voice-worker-prRokwBn.js +0 -1
  67. package/dist/web/site/assets/src-BPmV8WO9.js +0 -6
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  loadEngine,
3
3
  tts
4
- } from "./chunk-XND4JY6N.js";
5
- import "./chunk-CDCQV6LH.js";
4
+ } from "./chunk-Y56UHOZ2.js";
5
+ import "./chunk-VX7UVLQW.js";
6
6
  import "./chunk-CZ7CSFO4.js";
7
7
 
8
8
  // ../aula-narration/src/aula-voice-tts.ts
package/dist/src/aula.js CHANGED
@@ -1,21 +1,23 @@
1
1
  import {
2
2
  manim_exports
3
- } from "./chunk-4ISJCROX.js";
3
+ } from "./chunk-XCPBFMEA.js";
4
4
  import {
5
5
  defineChapter,
6
6
  defineProject,
7
7
  embed,
8
+ loadEngine,
8
9
  paragraph,
9
10
  pronounce,
10
11
  say,
11
12
  show
12
- } from "./chunk-XND4JY6N.js";
13
- import "./chunk-CDCQV6LH.js";
13
+ } from "./chunk-Y56UHOZ2.js";
14
+ import "./chunk-VX7UVLQW.js";
14
15
  import "./chunk-CZ7CSFO4.js";
15
16
  export {
16
17
  defineChapter,
17
18
  defineProject,
18
19
  embed,
20
+ loadEngine,
19
21
  manim_exports as m,
20
22
  paragraph,
21
23
  pronounce,
@@ -6,10 +6,10 @@ import {
6
6
  assemble,
7
7
  ffmpeg,
8
8
  hasAudio
9
- } from "./chunk-ADPNDDVR.js";
9
+ } from "./chunk-F4XRXW6M.js";
10
10
  import {
11
11
  printDiagnostics
12
- } from "./chunk-Z6BPR7P2.js";
12
+ } from "./chunk-5TUGYMFH.js";
13
13
  import {
14
14
  chapterIndexes,
15
15
  checkProject,
@@ -30,22 +30,22 @@ import {
30
30
  timedChapter,
31
31
  timelineView,
32
32
  wordNotes
33
- } from "./chunk-Y2QUSCIS.js";
33
+ } from "./chunk-5XVICDLW.js";
34
34
  import {
35
35
  narrateScript,
36
36
  scriptAudio,
37
37
  wav
38
- } from "./chunk-L3D2SCGY.js";
38
+ } from "./chunk-JWBPHDVP.js";
39
39
  import {
40
40
  narrationScript
41
- } from "./chunk-HNX33Z2H.js";
41
+ } from "./chunk-KCGXC2RV.js";
42
42
  import {
43
43
  host
44
- } from "./chunk-LONUONDL.js";
44
+ } from "./chunk-4PZYWKO5.js";
45
45
  import {
46
46
  folderOf,
47
47
  nameOf
48
- } from "./chunk-I7YBTEZQ.js";
48
+ } from "./chunk-5ABPFV55.js";
49
49
  import {
50
50
  ObjectRuntype,
51
51
  OptionalFieldRuntype,
@@ -58,14 +58,14 @@ import {
58
58
  bundle,
59
59
  isError,
60
60
  wrongArgument
61
- } from "./chunk-MBGQSHJQ.js";
61
+ } from "./chunk-DFXG2P7A.js";
62
62
  import {
63
63
  manim_exports
64
- } from "./chunk-4ISJCROX.js";
64
+ } from "./chunk-XCPBFMEA.js";
65
65
  import {
66
66
  chapterNames,
67
67
  renderChapter
68
- } from "./chunk-XND4JY6N.js";
68
+ } from "./chunk-Y56UHOZ2.js";
69
69
 
70
70
  // src/commands.ts
71
71
  import path2 from "node:path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  aulaError
3
- } from "./chunk-CDCQV6LH.js";
3
+ } from "./chunk-VX7UVLQW.js";
4
4
 
5
5
  // src/process.ts
6
6
  function run(capabilities, command, args, options = {}) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  host,
3
3
  loadProject
4
- } from "./chunk-I7YBTEZQ.js";
4
+ } from "./chunk-5ABPFV55.js";
5
5
 
6
6
  // src/load-user.ts
7
7
  import { existsSync } from "node:fs";
@@ -4,7 +4,7 @@ import {
4
4
  error,
5
5
  projectName,
6
6
  wrongArgument
7
- } from "./chunk-MBGQSHJQ.js";
7
+ } from "./chunk-DFXG2P7A.js";
8
8
  import {
9
9
  definedAt,
10
10
  importUserModule,
@@ -13,7 +13,7 @@ import {
13
13
  loadEngine,
14
14
  loadTex,
15
15
  v8Frames
16
- } from "./chunk-XND4JY6N.js";
16
+ } from "./chunk-Y56UHOZ2.js";
17
17
 
18
18
  // ../aula-project/src/node.ts
19
19
  import { existsSync } from "node:fs";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  renderDiagnostic
3
- } from "./chunk-HNX33Z2H.js";
3
+ } from "./chunk-KCGXC2RV.js";
4
4
  import {
5
5
  withSource
6
- } from "./chunk-I7YBTEZQ.js";
6
+ } from "./chunk-5ABPFV55.js";
7
7
  import {
8
8
  loadEngine
9
- } from "./chunk-XND4JY6N.js";
9
+ } from "./chunk-Y56UHOZ2.js";
10
10
 
11
11
  // src/problems.ts
12
12
  async function printDiagnostics(capabilities, root, diagnostics, print = (text) => capabilities.log.out(text)) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  timeChapter
3
- } from "./chunk-L3D2SCGY.js";
3
+ } from "./chunk-JWBPHDVP.js";
4
4
  import {
5
5
  check,
6
6
  moveFrames,
@@ -10,7 +10,7 @@ import {
10
10
  timeline,
11
11
  unclearWords,
12
12
  words
13
- } from "./chunk-HNX33Z2H.js";
13
+ } from "./chunk-KCGXC2RV.js";
14
14
  import {
15
15
  LIST_MODULE,
16
16
  Problems,
@@ -18,10 +18,10 @@ import {
18
18
  isError,
19
19
  linkBundle,
20
20
  wrongArgument
21
- } from "./chunk-MBGQSHJQ.js";
21
+ } from "./chunk-DFXG2P7A.js";
22
22
  import {
23
23
  manim_exports
24
- } from "./chunk-4ISJCROX.js";
24
+ } from "./chunk-XCPBFMEA.js";
25
25
  import {
26
26
  FPS,
27
27
  chapterNames,
@@ -35,7 +35,7 @@ import {
35
35
  loadEngine,
36
36
  readChapter,
37
37
  renderChapter
38
- } from "./chunk-XND4JY6N.js";
38
+ } from "./chunk-Y56UHOZ2.js";
39
39
 
40
40
  // ../aula-project/src/chapters.ts
41
41
  function chapterIndex(names, name) {
@@ -82,6 +82,7 @@ async function clock(narrator, chapters, only = null, names = []) {
82
82
  const location = cueLocation(cue.place);
83
83
  throw new Problems([
84
84
  error(`cannot narrate ${cue.kind} in ${chapter}: ${JSON.stringify(cue.text)} has no spoken words`, {
85
+ code: "cue-no-spoken",
85
86
  ...location === void 0 ? {} : { location },
86
87
  hint: `give the ${cue.kind} words that the narrator can say`
87
88
  })
@@ -148,6 +149,7 @@ function exportCheck(project, host) {
148
149
  const open = checked.texts.flatMap(
149
150
  (t) => openMoves(t).map(
150
151
  (m) => error(`show: the move "${m.note}" has no animation yet`, {
152
+ code: "show-open-move",
151
153
  location: m.place,
152
154
  hint: "give the show its move, show`note``25%`((s) => { \u2026 }), or make it a hold, show`note``25%`(() => {})"
153
155
  })
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  diagnosticOf
3
- } from "./chunk-XND4JY6N.js";
3
+ } from "./chunk-Y56UHOZ2.js";
4
4
 
5
5
  // ../../node_modules/.pnpm/@beff+client@1.0.1/node_modules/@beff/client/dist/esm/openapi-pp.js
6
6
  var removeNullUnionBranch = (definition) => {
@@ -1087,6 +1087,7 @@ function isMessage(value) {
1087
1087
  }
1088
1088
  var diagnostic = ({ text, location: at }) => ({
1089
1089
  severity: "error",
1090
+ code: "bundle-error",
1090
1091
  message: text,
1091
1092
  ...at ? { location: { file: at.file.replace(SOURCE_PREFIX, ""), line: at.line, col: at.column + 1 } } : {},
1092
1093
  stack: [],
@@ -1241,6 +1242,7 @@ async function projectModules(tree, root) {
1241
1242
  const folders = [found[first], project].map((p) => (p?.module ?? "").slice(0, -"/index.ts".length));
1242
1243
  errors.push({
1243
1244
  severity: "error",
1245
+ code: "duplicate-project-name",
1244
1246
  message: `two projects have the name ${project.name}: ${folders.join(" and ")}`,
1245
1247
  hint: "the name of a project is its folder name without the order prefix: rename one of the folders",
1246
1248
  stack: [],
@@ -1277,7 +1279,8 @@ async function bundleWorkspace(bundler, tree, root) {
1277
1279
 
1278
1280
  // ../aula-project/src/diagnostics.ts
1279
1281
  function error(message, more = {}) {
1280
- return { severity: "error", message, ...more, stack: [], related: [] };
1282
+ const { code = "error", ...rest } = more;
1283
+ return { severity: "error", code, message, ...rest, stack: [], related: [] };
1281
1284
  }
1282
1285
  var isError = (d) => d.severity === "error";
1283
1286
  var Problems = class extends Error {
@@ -1288,7 +1291,7 @@ var Problems = class extends Error {
1288
1291
  }
1289
1292
  };
1290
1293
  function wrongArgument(message, hint) {
1291
- return new Problems([error(message, hint === void 0 ? {} : { hint })]);
1294
+ return new Problems([error(message, { code: "wrong-argument", ...hint === void 0 ? {} : { hint } })]);
1292
1295
  }
1293
1296
  function diagnosticsOf(e, host) {
1294
1297
  return e instanceof Problems ? e.diagnostics : [diagnosticOf(e, "", host)];
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  run
3
- } from "./chunk-6MTKOBV3.js";
3
+ } from "./chunk-4N4NUMKP.js";
4
4
 
5
5
  // src/media.ts
6
6
  import path from "node:path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  chapterNarration
3
- } from "./chunk-HNX33Z2H.js";
3
+ } from "./chunk-KCGXC2RV.js";
4
4
 
5
5
  // ../aula-narration/src/script.ts
6
6
  var starts = (words) => Float64Array.from(words, (w) => w.start);
@@ -3,7 +3,7 @@ import {
3
3
  initG2p,
4
4
  lexiconEntries,
5
5
  loadEngine
6
- } from "./chunk-XND4JY6N.js";
6
+ } from "./chunk-Y56UHOZ2.js";
7
7
 
8
8
  // ../aula-narration/src/align.ts
9
9
  function roundHalfEven(value) {
@@ -12,6 +12,7 @@ var AulaError = class extends Error {
12
12
  function aulaError(message, hint) {
13
13
  return new AulaError({
14
14
  severity: "error",
15
+ code: "api-error",
15
16
  message,
16
17
  stack: [],
17
18
  related: [],
@@ -430,10 +430,10 @@ import {
430
430
  wiggle,
431
431
  wrap,
432
432
  wrong
433
- } from "./chunk-XND4JY6N.js";
433
+ } from "./chunk-Y56UHOZ2.js";
434
434
  import {
435
435
  fault
436
- } from "./chunk-CDCQV6LH.js";
436
+ } from "./chunk-VX7UVLQW.js";
437
437
  import {
438
438
  __export
439
439
  } from "./chunk-CZ7CSFO4.js";