retiam 2.0.1 → 2.0.2

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 (52) hide show
  1. package/THIRD_PARTY_NOTICES.md +3 -3
  2. package/agent/AGENTS.md +67 -0
  3. package/agent/CLAUDE.md +2 -0
  4. package/agent/skill/SKILL.md +111 -0
  5. package/agent/skill/examples/AreaLesson.ts +48 -0
  6. package/agent/skill/examples/ExplainMotion.ts +32 -0
  7. package/agent/skill/examples/NarratedMotion.ts +42 -0
  8. package/agent/skill/examples/SecantToTangent.ts +142 -0
  9. package/agent/skill/references/api.md +109 -0
  10. package/agent/skill/references/explainers.md +121 -0
  11. package/agent/skill/references/quality.md +148 -0
  12. package/agent/skill/references/styles.md +58 -0
  13. package/agent/skill/references/tts.md +72 -0
  14. package/agent/templates/explainer/lesson.json +25 -0
  15. package/agent/templates/explainer/review.json +6 -0
  16. package/agent/templates/explainer/styles.json +92 -0
  17. package/bin/agent-kit.js +26 -0
  18. package/bin/cli.js +24 -4
  19. package/bin/context.js +57 -0
  20. package/bin/init.js +71 -12
  21. package/bin/lesson-project.js +30 -0
  22. package/bin/lesson.js +168 -0
  23. package/bin/lint.js +6 -6
  24. package/bin/snapshot-runtime.js +185 -0
  25. package/bin/snapshot.js +32 -225
  26. package/dist/THIRD_PARTY_NOTICES.md +3 -3
  27. package/dist/UTIF-BrQ3Ng5l.min.js +1 -0
  28. package/dist/{UTIF-2Ear_0Uo.js → UTIF-CN0-pEnd.js} +1 -1
  29. package/dist/decompress-D7LzbvPD.min.js +15 -0
  30. package/dist/index-3sAseSJQ.min.js +10472 -0
  31. package/dist/{index-B2sJBy4c.js → index-yQIdejOj.js} +15 -13
  32. package/dist/libs/explainer/example.d.ts +3 -0
  33. package/dist/libs/explainer/index.d.ts +5 -0
  34. package/dist/libs/explainer/index.js +134 -0
  35. package/dist/libs/explainer/plan.d.ts +12 -0
  36. package/dist/libs/explainer/plan.js +197 -0
  37. package/dist/libs/explainer/runtime.d.ts +24 -0
  38. package/dist/libs/explainer/styles.d.ts +3 -0
  39. package/dist/libs/explainer/types.d.ts +119 -0
  40. package/dist/libs/explainer/visuals.d.ts +18 -0
  41. package/dist/libs/tts/index.js +386 -1009
  42. package/dist/libs/vite/index.d.ts +28 -0
  43. package/dist/libs/vite/index.js +158 -0
  44. package/dist/{main-D_G4uIju.js → main-BTk_9jtl.js} +1 -1
  45. package/dist/main-lQwYAed8.min.js +5939 -0
  46. package/dist/msEdgeV2-BLEnvPJa.js +641 -0
  47. package/dist/opentype.module-B-1cYAb-.min.js +1 -0
  48. package/dist/retiam.es.js +1 -1
  49. package/dist/retiam.es.min.js +1 -0
  50. package/dist/src/engine/animation/Animation.d.ts +1 -0
  51. package/package.json +13 -8
  52. package/readme.md +7 -6
@@ -120,6 +120,7 @@ export declare abstract class Animation {
120
120
  * @returns `true` when the animation completed during this step.
121
121
  */
122
122
  step(dt: number): boolean;
123
+ private _advanceTimelineStep;
123
124
  /**
124
125
  * Resets the interval accumulator timer.
125
126
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "retiam",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "WebGPU powered animation engine",
5
5
  "type": "module",
6
6
  "main": "./dist/retiam.es.js",
@@ -16,6 +16,10 @@
16
16
  "types": "./bin/third-party.d.ts",
17
17
  "import": "./bin/third-party.js"
18
18
  },
19
+ "./explainer/plan": {
20
+ "types": "./dist/libs/explainer/plan.d.ts",
21
+ "import": "./dist/libs/explainer/plan.js"
22
+ },
19
23
  "./*": {
20
24
  "types": "./dist/libs/*/index.d.ts",
21
25
  "import": "./dist/libs/*/index.js"
@@ -31,6 +35,7 @@
31
35
  "dist/libs/**/*.d.ts",
32
36
  "dist/src/**/*.d.ts",
33
37
  "bin",
38
+ "agent",
34
39
  "LICENSE",
35
40
  "COMMERCIAL_LICENSE.md",
36
41
  "THIRD_PARTY_NOTICES.md",
@@ -42,9 +47,8 @@
42
47
  ],
43
48
  "scripts": {
44
49
  "dev": "vite",
45
- "prebuild": "node tools/prepare-release.mjs",
46
- "build": "npm run licenses:check && tsc && vite build",
47
- "prepack": "npm run build",
50
+ "build": "tsc && vite build",
51
+ "prepack": "node tools/prepare-release.mjs && npm run build",
48
52
  "build:watch": "vite build --watch",
49
53
  "export": "node ./bin/cli.js export",
50
54
  "render": "node ./bin/cli.js render",
@@ -56,13 +60,14 @@
56
60
  "start": "npm run dev",
57
61
  "resolve": "npm i",
58
62
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
59
- "test:distribution": "node --import tsx --test test/library_portability_test.ts test/package_contents_test.mjs test/render_config_test.mjs",
63
+ "test:distribution": "node --import tsx --test test/library_portability_test.ts test/package_contents_test.mjs test/render_config_test.mjs test/cdn_build_test.ts",
60
64
  "test:create": "node --test test/create_retiam_test.mjs",
65
+ "test:agent": "node --test test/agent_workflow_test.mjs test/snapshot_test.mjs test/tts_project_test.mjs",
66
+ "test:explainer": "node --import tsx --test test/explainer_plan_test.ts && node --test test/explainer_project_test.mjs",
61
67
  "test:shading": "npm run build && node --test test/shading_test.mjs test/shading_browser.test.mjs",
62
68
  "test:studio-layout": "node --test test/studio_layout.test.mjs",
63
69
  "licenses:generate": "node tools/generate-third-party-notices.mjs",
64
- "licenses:check": "node tools/generate-third-party-notices.mjs --check",
65
- "test:licenses": "node --test test/third_party_notices_test.mjs test/release_metadata_test.mjs",
70
+ "test:licenses": "node --test test/third_party_notices_test.mjs",
66
71
  "unit-test": "ts-node-esm test/test.ts",
67
72
  "gen-context": "ts-node tools/context_gen/context_generator.ts ./src",
68
73
  "gen-index": "node ./tools/index_generator/generate-index.cjs"
@@ -121,4 +126,4 @@
121
126
  "woff2-encoder": "^2.0.0",
122
127
  "ws": "^8.16.0"
123
128
  }
124
- }
129
+ }
package/readme.md CHANGED
@@ -5,23 +5,24 @@ Retiam is a TypeScript animation engine built on WebGPU. Write scenes for mathem
5
5
  **[Documentation](https://abhilasbiswas.github.io/retiam-docs/)** · [Getting started](https://abhilasbiswas.github.io/retiam-docs/getting-started/) · [Examples](https://abhilasbiswas.github.io/retiam-docs/examples-catalog/) · [API reference](https://abhilasbiswas.github.io/retiam-docs/api-core/)
6
6
 
7
7
  Retiam is **free for noncommercial use** under the [Retiam Noncommercial
8
- License](https://unpkg.com/retiam@2.0.1/LICENSE). Commercial development,
8
+ License](https://unpkg.com/retiam/LICENSE). Commercial development,
9
9
  internal business use, paid client work, and products, services or content that earn revenue directly or
10
10
  indirectly require a separate paid written commercial license before use.
11
11
  This includes advertising, sponsorships, subscriptions, and monetized videos
12
12
  or courses, even when Retiam is only one part of a larger project.
13
13
  Contact [abhilasbiswas@gmail.com](mailto:abhilasbiswas@gmail.com) for
14
- [commercial licensing](https://unpkg.com/retiam@2.0.1/COMMERCIAL_LICENSE.md).
14
+ [commercial licensing](https://unpkg.com/retiam/COMMERCIAL_LICENSE.md).
15
15
 
16
16
  The full terms are included in the npm package. After installation, read
17
17
  `node_modules/retiam/LICENSE` and `node_modules/retiam/COMMERCIAL_LICENSE.md`.
18
- The public links above show the terms for this release without requiring
19
- access to the private engine repository.
18
+ The public links show the latest published terms without requiring access to
19
+ the private engine repository. The installed files contain the terms supplied
20
+ with your installed version.
20
21
 
21
22
  Your independently authored code and original outputs remain your own.
22
23
  Earlier ISC permissions and third-party licenses remain unaffected. Keep the
23
- [third-party notices](https://unpkg.com/retiam@2.0.1/THIRD_PARTY_NOTICES.md) and
24
- [license texts](https://unpkg.com/retiam@2.0.1/THIRD_PARTY_LICENSES.txt) with
24
+ [third-party notices](https://unpkg.com/retiam/THIRD_PARTY_NOTICES.md) and
25
+ [license texts](https://unpkg.com/retiam/THIRD_PARTY_LICENSES.txt) with
25
26
  redistributed Retiam code. These files are also installed in
26
27
  `node_modules/retiam/`. Source maintainers can find provenance review limits
27
28
  and notice-generation commands in `docs/LICENSING.md` in the engine checkout.