@beff/aula-cli 0.1.1 → 0.3.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 (24) hide show
  1. package/README.md +1 -1
  2. package/dist/src/{chunk-QWNBVWUQ.js → chunk-5MXHQCWH.js} +26 -9
  3. package/dist/src/{chunk-IAQZ6DTC.js → chunk-7IQUN2SB.js} +45 -6
  4. package/dist/src/{chunk-XUBCUJW5.js → chunk-H54BN5R7.js} +6 -9
  5. package/dist/src/{chunk-YX73KJQ6.js → chunk-HDAMZF5B.js} +20 -23
  6. package/dist/src/cli.js +8 -8
  7. package/dist/src/{commands-M246OWYJ.js → commands-DUMGD7TE.js} +4 -4
  8. package/dist/src/{problems-Y67BY7WB.js → problems-DYLEPGE6.js} +3 -3
  9. package/dist/src/{run-CTVGU7EK.js → run-72KOJGZE.js} +14 -9
  10. package/dist/src/{server-5OGXX6BF.js → server-BWWN7KZA.js} +4 -3
  11. package/dist/web/app/assets/__vite-browser-external-BTSih4Wj.js +1 -0
  12. package/dist/web/app/assets/{aula-voice-worker-DymX5vwM.js → aula-voice-worker-DfzMG86o.js} +10 -10
  13. package/dist/web/app/assets/{aula.core5-YhDIb7Me.wasm → aula.core5-CdA2Cc_n.wasm} +0 -0
  14. package/dist/web/app/assets/d1a3d405/aula-method.js +1 -0
  15. package/dist/web/app/assets/d1a3d405/aula.js +1 -0
  16. package/dist/web/app/assets/{build-worker.js → d1a3d405/build-worker.js} +2 -2
  17. package/dist/web/app/assets/{index-B8_aMtuI.js → d1a3d405/index.js} +3 -3
  18. package/dist/web/app/assets/{protocol-CnlzsyRt.js → protocol-B85V84gE.js} +10 -10
  19. package/dist/web/app/assets/{src-CmWmmzpF.js → src-BV6xlpP7.js} +6 -6
  20. package/dist/web/app/index.html +3 -3
  21. package/package.json +2 -2
  22. package/dist/web/app/assets/__vite-browser-external-BN30sEqc.js +0 -1
  23. package/dist/web/app/assets/aula-method.js +0 -1
  24. package/dist/web/app/assets/aula.js +0 -1
@@ -4,10 +4,10 @@
4
4
  <meta charset="utf-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <title>Aula videos</title>
7
- <script type="module" crossorigin src="/assets/index-B8_aMtuI.js"></script>
7
+ <script type="module" crossorigin src="/assets/d1a3d405/index.js"></script>
8
8
  <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-BLXQ4ufn.js">
9
- <link rel="modulepreload" crossorigin href="/assets/src-CmWmmzpF.js">
10
- <link rel="modulepreload" crossorigin href="/assets/protocol-CnlzsyRt.js">
9
+ <link rel="modulepreload" crossorigin href="/assets/src-BV6xlpP7.js">
10
+ <link rel="modulepreload" crossorigin href="/assets/protocol-B85V84gE.js">
11
11
  <link rel="stylesheet" crossorigin href="/assets/index-cL-Dm_aw.css">
12
12
  </head>
13
13
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beff/aula-cli",
3
- "version": "0.1.1",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "description": "The aula command: runs chapter modules on the @beff/aula engine, checks and lints them, writes PNG pictures for review, makes project zips, and serves the web player with narration.",
6
6
  "license": "MIT AND GPL-3.0-or-later",
@@ -24,6 +24,6 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "esbuild-wasm": "^0.28.2",
27
- "@beff/aula": "0.1.1"
27
+ "@beff/aula": "0.3.0"
28
28
  }
29
29
  }
@@ -1 +0,0 @@
1
- import{t as e}from"./aula-voice-worker-DymX5vwM.js";var t=/* @__PURE__ */ e(((e,t)=>{t.exports={}}));export default t();
@@ -1 +0,0 @@
1
- import{l as e,p as t}from"./src-CmWmmzpF.js";var n=8,r=.5,i=3,a=3,o=[`view`,`claim`,`forecast`,`estimate`,`proposed`,`external`,`schematic`,`not measured`,`expected`,`alleged`],s=1,c=e=>JSON.stringify(e);function l(e){return e.toLowerCase().match(/[a-z0-9$%]+/g)??[]}function u(e){return!/\s/.test(e)&&!e.includes(`://`)&&/[/.]/.test(e)}function d(e,t){let n=l(e),r=` ${l(t).join(` `)} `;for(let e=0;e+a<=n.length;e++)if(r.includes(` ${n.slice(e,e+a).join(` `)} `))return!0;return!1}function f(e){let t=e.toLowerCase();return o.some(e=>t.includes(e))||/(^|[^\p{L}\p{N}_])\p{Lu}[\p{L}\p{N}_.&-]*['’]s(?![\p{L}\p{N}_])/u.test(e)}function p(e,t){let n=Math.max(e.low[0]-t.high[0],t.low[0]-e.high[0],0),r=Math.max(e.low[1]-t.high[1],t.low[1]-e.high[1],0);return Math.hypot(n,r)<=s}function m(e,t,a){let o=[],s=(t,n=e.place)=>{o.push({message:t,...n===void 0?{}:{at:n}})};a.mechanism.trim()===``&&s(`the paragraph has no mechanism: name the one mechanism that the viewer must understand`),a.sources.length===0&&s(`the paragraph has no sources (give its sources, or ["recap"])`);for(let e of a.sources)u(e)&&!t.exists(e)&&s(`${c(e)}: this path is not a file: correct the path or add the file`);let l=t.paragraphs.flatMap(e=>e.says.map(e=>e.text)).join(` `),m=new Map;for(let t of e.screen.instants)for(let e of t.texts)m.set(JSON.stringify([e.place,e.text]),e);for(let e of m.values())e.text.split(/\s+/).filter(Boolean).length>i&&s(`text on screen over ${String(i)} words: ${c(e.text)}; make it shorter`,e.place),d(e.text,l)&&s(`text on screen repeats the narration: ${c(e.text)}; use other words`,e.place);let h=new Map;for(let t of e.screen.instants){let e=new Set(t.texts.filter(e=>e.opacity>r).map(e=>e.id)).size,i=JSON.stringify(t.place);e>(h.get(i)?.count??n)&&h.set(i,{count:e,at:t.place})}for(let{count:e,at:t}of h.values())s(`${String(e)} labels on screen (about ${String(n)} at most): show fewer labels at one time, or split the picture`,t);let g=new Map,_=new Set;for(let t of e.screen.instants)for(let e of t.dashed)t.texts.some(t=>f(t.text)&&p(t,e))?_.add(e.id):g.set(e.id,e);for(let[e,t]of g)_.has(e)||s(`dashed shape with no attribution text near it: put a text that says whose view it is, such as "Smith's view", next to it`,t.place);return t.number===t.count&&e.index===t.paragraphs.length-1&&(a.sources.length!==1||a.sources[0]!==`recap`)&&s(`the video must end with a recap paragraph (sources: ["recap"])`),o}function h(n){let r=t(`paragraph`,n);return({sources:t},n)=>e({mechanism:r,sources:t},n??((e,n)=>m(e,n,{mechanism:r,sources:t})))}export{m as findings,h as paragraph};
@@ -1 +0,0 @@
1
- export{t as checkChapter,o as defineChapter,s as defineProject,c as isProjectDefinition,a as m,l as paragraph,r as readChapter,i as renderChapter,u as renderScene,d as say,f as show,p as tagText}from"./src-CmWmmzpF.js";