@allyhub/sdk 0.15.0 → 0.15.1

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 (47) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  3. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  4. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  5. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  6. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  7. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  8. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  9. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  10. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  11. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  12. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  13. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +1 -1
  14. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  15. package/dist/node_modules/@allyhub/runtimes/dist/packages.d.ts +17 -0
  16. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
  17. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  18. package/dist/node_modules/@allyhub/runtimes/pins/ag-psd/package-lock.json +49 -0
  19. package/dist/node_modules/@allyhub/runtimes/pins/ag-psd/package.json +7 -0
  20. package/dist/node_modules/@allyhub/runtimes/pins/fontsource-caladea/package-lock.json +24 -0
  21. package/dist/node_modules/@allyhub/runtimes/pins/fontsource-caladea/package.json +23 -0
  22. package/dist/node_modules/@allyhub/runtimes/pins/fontsource-carlito/package-lock.json +24 -0
  23. package/dist/node_modules/@allyhub/runtimes/pins/fontsource-carlito/package.json +23 -0
  24. package/dist/node_modules/@allyhub/runtimes/pins/fontsource-cousine/package-lock.json +24 -0
  25. package/dist/node_modules/@allyhub/runtimes/pins/fontsource-cousine/package.json +23 -0
  26. package/dist/node_modules/@allyhub/runtimes/pins/fontsource-lxgw-wenkai/package-lock.json +24 -0
  27. package/dist/node_modules/@allyhub/runtimes/pins/fontsource-lxgw-wenkai/package.json +19 -0
  28. package/dist/node_modules/@allyhub/runtimes/pins/fontsource-noto-color-emoji/package-lock.json +24 -0
  29. package/dist/node_modules/@allyhub/runtimes/pins/fontsource-noto-color-emoji/package.json +17 -0
  30. package/dist/node_modules/@allyhub/runtimes/pins/fontsource-noto-sans-sc/package-lock.json +24 -0
  31. package/dist/node_modules/@allyhub/runtimes/pins/fontsource-noto-sans-sc/package.json +19 -0
  32. package/dist/node_modules/@allyhub/runtimes/pins/fontsource-noto-serif-sc/package-lock.json +24 -0
  33. package/dist/node_modules/@allyhub/runtimes/pins/fontsource-noto-serif-sc/package.json +19 -0
  34. package/dist/node_modules/@allyhub/runtimes/pins/fontsource-tinos/package-lock.json +24 -0
  35. package/dist/node_modules/@allyhub/runtimes/pins/fontsource-tinos/package.json +23 -0
  36. package/dist/node_modules/@allyhub/runtimes/pins/mermaid/package-lock.json +19 -0
  37. package/dist/node_modules/@allyhub/runtimes/pins/mermaid/package.json +15 -0
  38. package/dist/node_modules/@allyhub/runtimes/pins/pdf-lib/package-lock.json +55 -0
  39. package/dist/node_modules/@allyhub/runtimes/pins/pdf-lib/package.json +7 -0
  40. package/dist/node_modules/@allyhub/runtimes/pins/pptxgenjs/package-lock.json +169 -0
  41. package/dist/node_modules/@allyhub/runtimes/pins/pptxgenjs/package.json +7 -0
  42. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  43. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  44. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  45. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  46. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  47. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Feature highlights from each AllyHub release.
4
4
 
5
+ ## 0.15.1
6
+
7
+ - **A much smaller install.** A new project installs a fraction of what it did. Fonts, diagrams and the tools only some work uses are downloaded the first time a project needs them, once for the computer, and kept for every project.
8
+
5
9
  ## 0.15.0
6
10
 
7
11
  - **Reports are set aside.** AllyHub no longer makes reports, and `allyhub report style` is gone. Write a page of findings as a doc, a sheet or a deck instead.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/audio",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/chart",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/diagnostics",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/formats",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-draw",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-measure",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-sdk",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/measure",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/ooxml",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/piece",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/protocol",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,5 +1,5 @@
1
1
  export { binVariable, createRuntimes, type EnsureOptions, type Located, type Progress, type Runtimes, type RuntimesOptions, type Status, } from "./runtimes.js";
2
- export { createPackages, npmCi, NPM_FETCH_TIMEOUT_MS, NPM_STALL_MS, type EnsurePackageOptions, type InstallOptions, type LoadOptions, type Install, type LocatedPackage, type Packages, type PackagesOptions, } from "./packages.js";
2
+ export { createPackages, firstUse, npmCi, NPM_FETCH_TIMEOUT_MS, NPM_STALL_MS, type EnsurePackageOptions, type InstallOptions, type LoadOptions, type Install, type LocatedPackage, type Packages, type PackagesOptions, } from "./packages.js";
3
3
  export { bundledEnv, type BundledOptions } from "./bundled.js";
4
4
  export { RuntimeError, type RuntimeErrorCode } from "./errors.js";
5
5
  export { cacheHome } from "./home.js";
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export{binVariable,createRuntimes}from"./runtimes.js";export{createPackages,npmCi,NPM_FETCH_TIMEOUT_MS,NPM_STALL_MS}from"./packages.js";export{bundledEnv}from"./bundled.js";export{RuntimeError}from"./errors.js";export{cacheHome}from"./home.js";export{shippedManifest}from"./manifest.js";export{declareRuntimes,declaredRuntimes,knownManifest,runtimeExtension}from"./declared.js";export{download,sha256Of,DOWNLOAD_RETRIES,DOWNLOAD_RETRY_DELAY_MS,DOWNLOAD_STALL_MS}from"./download.js";export{withLock}from"./lock.js";export{unzip,untgz}from"./unpack.js";export{ffmpegOf,runFfmpegWith}from"./ffmpeg.js";
2
+ export{binVariable,createRuntimes}from"./runtimes.js";export{createPackages,firstUse,npmCi,NPM_FETCH_TIMEOUT_MS,NPM_STALL_MS}from"./packages.js";export{bundledEnv}from"./bundled.js";export{RuntimeError}from"./errors.js";export{cacheHome}from"./home.js";export{shippedManifest}from"./manifest.js";export{declareRuntimes,declaredRuntimes,knownManifest,runtimeExtension}from"./declared.js";export{download,sha256Of,DOWNLOAD_RETRIES,DOWNLOAD_RETRY_DELAY_MS,DOWNLOAD_STALL_MS}from"./download.js";export{withLock}from"./lock.js";export{unzip,untgz}from"./unpack.js";export{ffmpegOf,runFfmpegWith}from"./ffmpeg.js";
@@ -20,6 +20,8 @@ export interface InstallOptions {
20
20
  stallMs?: number | undefined;
21
21
  /** Kinds of dependency npm leaves out, beyond dev and peer ones (`optional`). */
22
22
  omit?: readonly string[] | undefined;
23
+ /** npm's download folder (default: the pins' own, shared by every install, `<home>/packages/.npm`). */
24
+ cache?: string | undefined;
23
25
  }
24
26
  export type Install = (dir: string, options: InstallOptions) => Promise<void>;
25
27
  /** npm's `--fetch-timeout`: a connection quiet this long is dropped and tried again by npm (ms). */
@@ -49,6 +51,8 @@ export interface Packages {
49
51
  readonly home: string;
50
52
  /** A package if it is there; never fetches, and reads only its record. */
51
53
  locate(name: string): LocatedPackage | undefined;
54
+ /** Every package this release pins, by name. */
55
+ pins(): string[];
52
56
  /** What a package takes on this computer, as near as its pin says (bytes). */
53
57
  size(name: string): number;
54
58
  /** The file `import(name)` would load, when the package is there. */
@@ -62,6 +66,8 @@ export interface Packages {
62
66
  /** Takes a package off this computer; it comes back when next ensured. */
63
67
  remove(name: string): Promise<void>;
64
68
  }
69
+ /** Whether a path in a module's folder is one its pin keeps (`*` matches within one name). */
70
+ export declare function kept(path: string, patterns: readonly string[]): boolean;
65
71
  /** A setting `npx` puts in the environment about its own install. */
66
72
  export declare const NPX_SETTING: RegExp;
67
73
  /** What went wrong, from what npm wrote: its reason, not its advice. */
@@ -81,4 +87,15 @@ export declare function findNpm(env: Readonly<Record<string, string | undefined>
81
87
  /** Runs `npm ci` from the lock, keeping npm's cache in AllyHub's home. */
82
88
  export declare const npmCi: Install;
83
89
  export declare function createPackages(options?: PackagesOptions): Packages;
90
+ /**
91
+ * A module that only some work uses, got when that work first runs
92
+ * (docs/distribution.md: a project installs AllyHub and nothing it may not
93
+ * need): `local`'s, where it is installed beside the code that asks (a
94
+ * workspace's development dependency), else its pin's, fetched the first
95
+ * time and loaded from there. One copy for the process; a failed fetch is
96
+ * tried again by the next call.
97
+ */
98
+ export declare function firstUse<T>(pin: string, local: () => Promise<T>, options?: LoadOptions & {
99
+ packages?: Packages;
100
+ }): () => Promise<T>;
84
101
  //# sourceMappingURL=packages.d.ts.map
@@ -1,4 +1,4 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{spawn as I}from"node:child_process";import{createHash as R}from"node:crypto";import{existsSync as A,readFileSync as x}from"node:fs";import{copyFile as P,mkdir as j,readdir as T,readFile as M,rename as D,rm as b,stat as H,writeFile as C}from"node:fs/promises";import{createRequire as F}from"node:module";import{delimiter as z,join as n}from"node:path";import{fileURLToPath as U,pathToFileURL as J}from"node:url";import{DOWNLOAD_STALL_MS as W}from"./download.js";import{RuntimeError as _}from"./errors.js";import{cacheHome as G}from"./home.js";import{partialOf as q,sweepPartials as B,withLock as K}from"./lock.js";import{nodeCommand as V}from"./node-program.js";import{createRuntimes as X}from"./runtimes.js";const E=".allyhub-package.json",Y=U(new URL("../pins/",import.meta.url));export const NPM_FETCH_TIMEOUT_MS=W,NPM_STALL_MS=12e4,NPX_SETTING=/^npm_config_(global|prefix|location|cache|.*_prefix)/iu;export function npmProblem(o,a){return o.split(`
3
- `).map(c=>c.replace(/^npm (error|ERR!)\s*/u,"").trim()).find(c=>c!==""&&!/^(code|errno|syscall|path|type|A complete log|Exit handler|This is an error with npm|<https)/u.test(c))??`npm ended with code ${String(a)}`}const Q=(o,a)=>(a.PATH??"").split(z).some(s=>s!==""&&A(n(s,o)));export async function findNpm(o,a){const s=o.ALLYHUB_NPM??o.npm_execpath;if(s?.endsWith(".js"))return{command:V(o),script:[s]};if(Q("npm",o))return{command:"npm",script:[]};const c=await a(),{node:p,npm:d}=c;if(!p||!d)throw new Error("AllyHub's Node has no npm");return{command:p,script:[d]}}async function Z(o,a){const s=await T(o,{recursive:!0}).catch(()=>[]);let c=0;for(const p of await T(a).catch(()=>[]))c+=await H(n(a,p)).then(d=>d.size,()=>0);return`${String(s.length)}:${String(c)}`}export const npmCi=async(o,{home:a,signal:s,fetchTimeoutMs:c=NPM_FETCH_TIMEOUT_MS,stallMs:p=NPM_STALL_MS,omit:d})=>{const O=await findNpm(process.env,async()=>(await X({home:a}).ensure("node",{signal:s})).bins),m=Object.fromEntries(Object.entries(process.env).filter(([f])=>!NPX_SETTING.test(f))),h=n(a,"packages",".npm"),w=["ci","--ignore-scripts","--omit=dev","--no-audit","--no-fund","--omit=peer",...(d??[]).map(f=>`--omit=${f}`),"--loglevel=error","--fetch-retries=1",`--fetch-timeout=${String(c)}`];await new Promise((f,g)=>{const v=I(O.command,[...O.script,...w],{cwd:o,env:{...m,npm_config_cache:h},stdio:["ignore","ignore","pipe"],...s?{signal:s}:{}});let k="",y=Date.now(),$="",S=!1,t=!1;const e=setInterval(()=>{S||t||(S=!0,Z(o,n(h,"_cacache","tmp")).then(r=>{r!==$?($=r,y=Date.now()):Date.now()-y>=p&&(t=!0,v.kill(),setTimeout(()=>v.kill("SIGKILL"),5e3).unref())}).finally(()=>{S=!1}))},Math.max(20,Math.min(5e3,p/4)));v.stderr.on("data",r=>{y=Date.now(),k=`${k}${r.toString()}`.slice(-1e3)}),v.on("error",r=>{clearInterval(e),g(r)}),v.on("close",r=>{clearInterval(e),t?g(new _("install",`npm made no progress for ${String(p/1e3)} s and was stopped${k.trim()?`; it said: ${npmProblem(k,r)}`:""}`)):r===0?f():g(new Error(npmProblem(k,r)))})})};export function createPackages(o={}){const a=o.env??process.env,s=o.home??G(a),c=o.pins??Y,p=o.install??npmCi,{fetchTimeoutMs:d,stallMs:O}=o,m=n(s,"packages"),h=t=>{const e=n(c,t);let r,i;try{r=JSON.parse(x(n(e,"package.json"),"utf8")),i=x(n(e,"package-lock.json"),"utf8")}catch{throw new _("unknown-package",`AllyHub has no package "${t}".`)}const l=r.dependencies??{},u=l[t]??r.version;if(!u)throw new _("unknown-package",`The pin of "${t}" does not name it.`);return{version:u,holds:l,lock:R("sha256").update(i).digest("hex"),dir:e,size:r.allyhubSize??0,omit:r.allyhubOmit??[]}},w=(t,e)=>n(m,`${t}@${e.version}`),f=(t,e)=>{try{const r=JSON.parse(x(n(w(t,e),E),"utf8"));return r.version===e.version&&r.lock===e.lock}catch{return!1}},g=(t,e)=>({name:t,version:e.version,dir:w(t,e)}),v=async(t,e,r)=>{const i=w(t,e),l=q(i);await j(l,{recursive:!0});try{await P(n(e.dir,"package.json"),n(l,"package.json")),await P(n(e.dir,"package-lock.json"),n(l,"package-lock.json")),await p(l,{home:s,signal:r,fetchTimeoutMs:d,stallMs:O,omit:e.omit});for(const[u,L]of Object.entries(e.holds)){const N=JSON.parse(await M(n(l,"node_modules",u,"package.json"),"utf8"));if(N.version!==L)throw new Error(`it holds ${u} ${String(N.version)}, not ${L}`)}await C(n(l,E),`${JSON.stringify({version:e.version,lock:e.lock,at:new Date().toISOString()})}
4
- `),await b(i,{recursive:!0,force:!0}),await D(l,i),await k(t,e)}catch(u){throw await b(l,{recursive:!0,force:!0}),r?.aborted?new _("cancelled",`Stopped getting ${t}.`,{cause:u}):new _("install",`Could not get ${t} ${e.version} (${u instanceof Error?u.message:String(u)}). Check the connection and run it again.`,{cause:u})}},k=async(t,e)=>{const r=`${t}@${e.version}`;for(const i of await T(m))i.startsWith(`${t}@`)&&i!==r&&!i.startsWith(`${r}.`)&&await b(n(m,i),{recursive:!0,force:!0})},y=t=>{const e=h(t);return f(t,e)?g(t,e):void 0},$=(t,e)=>F(n(t,"package.json")).resolve(e),S=async(t,e={})=>{const r=h(t);return f(t,r)||(await j(m,{recursive:!0}).catch(i=>{throw new _("install",`Could not get ${t} ${r.version}: AllyHub cannot write to ${m}.`,{cause:i})}),await K(`${w(t,r)}.lock`,async()=>{f(t,r)||(await B(m,t),e.onFetch?.(t),await v(t,r,e.signal))},{signal:e.signal})),g(t,r)};return{home:s,locate:y,ensure:S,size:t=>h(t).size,entry(t){const e=y(t);return e?$(e.dir,t):void 0},resolve(t,e){const r=y(t);return r?$(r.dir,e):void 0},async load(t,e){const{dir:r}=await S(t,e),i=$(r,e?.module??t);return await import(J(i).href)},async remove(t){await b(w(t,h(t)),{recursive:!0,force:!0})}}}
2
+ import{spawn as I}from"node:child_process";import{createHash as A}from"node:crypto";import{existsSync as F,readdirSync as M,readFileSync as E}from"node:fs";import{copyFile as N,mkdir as P,readdir as j,readFile as H,rename as C,rm as v,stat as U,writeFile as z}from"node:fs/promises";import{createRequire as J}from"node:module";import{delimiter as W,join as i}from"node:path";import{fileURLToPath as G,pathToFileURL as K}from"node:url";import{DOWNLOAD_STALL_MS as q}from"./download.js";import{RuntimeError as b}from"./errors.js";import{cacheHome as B}from"./home.js";import{partialOf as V,sweepPartials as X,withLock as Y}from"./lock.js";import{nodeCommand as Q}from"./node-program.js";import{createRuntimes as Z}from"./runtimes.js";const R=".allyhub-package.json",ee=G(new URL("../pins/",import.meta.url));export const NPM_FETCH_TIMEOUT_MS=q,NPM_STALL_MS=12e4;export function kept(o,a){return a.some(n=>new RegExp(`^${n.split("*").map(s=>s.replace(/[.+?^${}()|[\]\\]/gu,"\\$&")).join("[^/]*")}$`,"u").test(o))}async function D(o,a,n=""){let s=!1;for(const l of await j(i(o,n),{withFileTypes:!0})){const f=n===""?l.name:`${n}/${l.name}`;l.isDirectory()?await D(o,a,f)?s=!0:await v(i(o,f),{recursive:!0,force:!0}):kept(f,a)?s=!0:await v(i(o,f),{force:!0})}return s}export const NPX_SETTING=/^npm_config_(global|prefix|location|cache|.*_prefix)/iu;export function npmProblem(o,a){return o.split(`
3
+ `).map(s=>s.replace(/^npm (error|ERR!)\s*/u,"").trim()).find(s=>s!==""&&!/^(code|errno|syscall|path|type|A complete log|Exit handler|This is an error with npm|<https)/u.test(s))??`npm ended with code ${String(a)}`}const te=(o,a)=>(a.PATH??"").split(W).some(n=>n!==""&&F(i(n,o)));export async function findNpm(o,a){const n=o.ALLYHUB_NPM??o.npm_execpath;if(n?.endsWith(".js"))return{command:Q(o),script:[n]};if(te("npm",o))return{command:"npm",script:[]};const s=await a(),{node:l,npm:f}=s;if(!l||!f)throw new Error("AllyHub's Node has no npm");return{command:l,script:[f]}}async function re(o,a){const n=await j(o,{recursive:!0}).catch(()=>[]);let s=0;for(const l of await j(a).catch(()=>[]))s+=await U(i(a,l)).then(f=>f.size,()=>0);return`${String(n.length)}:${String(s)}`}export const npmCi=async(o,{home:a,signal:n,fetchTimeoutMs:s=NPM_FETCH_TIMEOUT_MS,stallMs:l=NPM_STALL_MS,omit:f,cache:O=i(a,"packages",".npm")})=>{const d=await findNpm(process.env,async()=>(await Z({home:a}).ensure("node",{signal:n})).bins),$=Object.fromEntries(Object.entries(process.env).filter(([m])=>!NPX_SETTING.test(m))),w=["ci","--ignore-scripts","--omit=dev","--no-audit","--no-fund","--omit=peer",...(f??[]).map(m=>`--omit=${m}`),"--loglevel=error","--fetch-retries=1",`--fetch-timeout=${String(s)}`];await new Promise((m,h)=>{const g=I(d.command,[...d.script,...w],{cwd:o,env:{...$,npm_config_cache:O},stdio:["ignore","ignore","pipe"],...n?{signal:n}:{}});let k="",y=Date.now(),S="",_=!1,e=!1;const t=setInterval(()=>{_||e||(_=!0,re(o,i(O,"_cacache","tmp")).then(r=>{r!==S?(S=r,y=Date.now()):Date.now()-y>=l&&(e=!0,g.kill(),setTimeout(()=>g.kill("SIGKILL"),5e3).unref())}).finally(()=>{_=!1}))},Math.max(20,Math.min(5e3,l/4)));g.stderr.on("data",r=>{y=Date.now(),k=`${k}${r.toString()}`.slice(-1e3)}),g.on("error",r=>{clearInterval(t),h(r)}),g.on("close",r=>{clearInterval(t),e?h(new b("install",`npm made no progress for ${String(l/1e3)} s and was stopped${k.trim()?`; it said: ${npmProblem(k,r)}`:""}`)):r===0?m():h(new Error(npmProblem(k,r)))})})};export function createPackages(o={}){const a=o.env??process.env,n=o.home??B(a),s=o.pins??ee,l=o.install??npmCi,{fetchTimeoutMs:f,stallMs:O}=o,d=i(n,"packages"),$=e=>{const t=i(s,e);let r,c;try{r=JSON.parse(E(i(t,"package.json"),"utf8")),c=E(i(t,"package-lock.json"),"utf8")}catch{throw new b("unknown-package",`AllyHub has no package "${e}".`)}const u=r.dependencies??{},p=u[e]??r.version;if(!p)throw new b("unknown-package",`The pin of "${e}" does not name it.`);return{version:p,holds:u,lock:A("sha256").update(c).digest("hex"),dir:t,size:r.allyhubSize??0,omit:r.allyhubOmit??[],keep:r.allyhubKeep??{}}},w=(e,t)=>i(d,`${e}@${t.version}`),m=(e,t)=>{try{const r=JSON.parse(E(i(w(e,t),R),"utf8"));return r.version===t.version&&r.lock===t.lock}catch{return!1}},h=(e,t)=>({name:e,version:t.version,dir:w(e,t)}),g=async(e,t,r)=>{const c=w(e,t),u=V(c);await P(u,{recursive:!0});try{await N(i(t.dir,"package.json"),i(u,"package.json")),await N(i(t.dir,"package-lock.json"),i(u,"package-lock.json"));const p=Object.keys(t.keep).length>0;await l(u,{home:n,signal:r,fetchTimeoutMs:f,stallMs:O,omit:t.omit,...p?{cache:i(u,".npm")}:{}}),p&&await v(i(u,".npm"),{recursive:!0,force:!0});for(const[x,T]of Object.entries(t.holds)){const L=JSON.parse(await H(i(u,"node_modules",x,"package.json"),"utf8"));if(L.version!==T)throw new Error(`it holds ${x} ${String(L.version)}, not ${T}`)}for(const[x,T]of Object.entries(t.keep))await D(i(u,"node_modules",x),T);await z(i(u,R),`${JSON.stringify({version:t.version,lock:t.lock,at:new Date().toISOString()})}
4
+ `),await v(c,{recursive:!0,force:!0}),await C(u,c),await k(e,t)}catch(p){throw await v(u,{recursive:!0,force:!0}),r?.aborted?new b("cancelled",`Stopped getting ${e}.`,{cause:p}):new b("install",`Could not get ${e} ${t.version} (${p instanceof Error?p.message:String(p)}). Check the connection and run it again.`,{cause:p})}},k=async(e,t)=>{const r=`${e}@${t.version}`;for(const c of await j(d))c.startsWith(`${e}@`)&&c!==r&&!c.startsWith(`${r}.`)&&await v(i(d,c),{recursive:!0,force:!0})},y=e=>{const t=$(e);return m(e,t)?h(e,t):void 0},S=(e,t)=>J(i(e,"package.json")).resolve(t),_=async(e,t={})=>{const r=$(e);return m(e,r)||(await P(d,{recursive:!0}).catch(c=>{throw new b("install",`Could not get ${e} ${r.version}: AllyHub cannot write to ${d}.`,{cause:c})}),await Y(`${w(e,r)}.lock`,async()=>{m(e,r)||(await X(d,e),t.onFetch?.(e),await g(e,r,t.signal))},{signal:t.signal})),h(e,r)};return{home:n,locate:y,ensure:_,size:e=>$(e).size,entry(e){const t=y(e);return t?S(t.dir,e):void 0},resolve(e,t){const r=y(e);return r?S(r.dir,t):void 0},async load(e,t){const{dir:r}=await _(e,t),c=S(r,t?.module??e);return await import(K(c).href)},async remove(e){await v(w(e,$(e)),{recursive:!0,force:!0})},pins(){return M(s,{withFileTypes:!0}).filter(e=>e.isDirectory()).map(e=>e.name).sort()}}}export function firstUse(o,a,n){let s;return()=>(s??=a().catch(()=>(n?.packages??createPackages()).load(o,n)),s.catch(()=>{s=void 0}),s)}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/runtimes",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "allyhub-pin-ag-psd",
3
+ "lockfileVersion": 3,
4
+ "requires": true,
5
+ "packages": {
6
+ "": {
7
+ "name": "allyhub-pin-ag-psd",
8
+ "dependencies": {
9
+ "ag-psd": "34.1.0"
10
+ }
11
+ },
12
+ "node_modules/ag-psd": {
13
+ "version": "34.1.0",
14
+ "resolved": "https://registry.npmjs.org/ag-psd/-/ag-psd-34.1.0.tgz",
15
+ "integrity": "sha512-OamTuun+q681j5NvK8LxMX8oRHS//Ah9+3Xmt0uGXVMdzMz2JpLqBvtXXQdGpucdLE3fs8EzwsPyB/vc1aVSvw==",
16
+ "license": "MIT",
17
+ "dependencies": {
18
+ "base64-js": "1.5.1",
19
+ "pako": "2.1.0"
20
+ }
21
+ },
22
+ "node_modules/base64-js": {
23
+ "version": "1.5.1",
24
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
25
+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
26
+ "funding": [
27
+ {
28
+ "type": "github",
29
+ "url": "https://github.com/sponsors/feross"
30
+ },
31
+ {
32
+ "type": "patreon",
33
+ "url": "https://www.patreon.com/feross"
34
+ },
35
+ {
36
+ "type": "consulting",
37
+ "url": "https://feross.org/support"
38
+ }
39
+ ],
40
+ "license": "MIT"
41
+ },
42
+ "node_modules/pako": {
43
+ "version": "2.1.0",
44
+ "resolved": "https://registry.npmjs.org/pako/-/pako-2.1.0.tgz",
45
+ "integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==",
46
+ "license": "(MIT AND Zlib)"
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "allyhub-pin-ag-psd",
3
+ "private": true,
4
+ "dependencies": {
5
+ "ag-psd": "34.1.0"
6
+ }
7
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "allyhub-pin-fontsource-caladea",
3
+ "version": "5.3.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "allyhub-pin-fontsource-caladea",
9
+ "version": "5.3.0",
10
+ "dependencies": {
11
+ "@fontsource/caladea": "5.3.0"
12
+ }
13
+ },
14
+ "node_modules/@fontsource/caladea": {
15
+ "version": "5.3.0",
16
+ "resolved": "https://registry.npmjs.org/@fontsource/caladea/-/caladea-5.3.0.tgz",
17
+ "integrity": "sha512-ErBJWj9Gp/tTS33h0SUHmU3MCHzQa3RJS405ccznE8xxVK41J+mrKhjjcf3oIrnQTCgICMbl9nAH3XMXN9ANUg==",
18
+ "license": "OFL-1.1",
19
+ "funding": {
20
+ "url": "https://github.com/sponsors/ayuhito"
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "allyhub-pin-fontsource-caladea",
3
+ "private": true,
4
+ "version": "5.3.0",
5
+ "dependencies": {
6
+ "@fontsource/caladea": "5.3.0"
7
+ },
8
+ "allyhubSize": 272281,
9
+ "allyhubKeep": {
10
+ "@fontsource/caladea": [
11
+ "package.json",
12
+ "LICENSE",
13
+ "400.css",
14
+ "400-italic.css",
15
+ "700.css",
16
+ "700-italic.css",
17
+ "files/*-400-normal.woff2",
18
+ "files/*-400-italic.woff2",
19
+ "files/*-700-normal.woff2",
20
+ "files/*-700-italic.woff2"
21
+ ]
22
+ }
23
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "allyhub-pin-fontsource-carlito",
3
+ "version": "5.3.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "allyhub-pin-fontsource-carlito",
9
+ "version": "5.3.0",
10
+ "dependencies": {
11
+ "@fontsource/carlito": "5.3.0"
12
+ }
13
+ },
14
+ "node_modules/@fontsource/carlito": {
15
+ "version": "5.3.0",
16
+ "resolved": "https://registry.npmjs.org/@fontsource/carlito/-/carlito-5.3.0.tgz",
17
+ "integrity": "sha512-oPqvLGK/dtVzC4KjdDcV/YzQq37sZdMXxD58ADvguPo3dm6yzbBKs40ADmevJF0wLvyvJY7/fPl5YkCQ1njWUw==",
18
+ "license": "OFL-1.1",
19
+ "funding": {
20
+ "url": "https://github.com/sponsors/ayuhito"
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "allyhub-pin-fontsource-carlito",
3
+ "private": true,
4
+ "version": "5.3.0",
5
+ "dependencies": {
6
+ "@fontsource/carlito": "5.3.0"
7
+ },
8
+ "allyhubSize": 1399298,
9
+ "allyhubKeep": {
10
+ "@fontsource/carlito": [
11
+ "package.json",
12
+ "LICENSE",
13
+ "400.css",
14
+ "400-italic.css",
15
+ "700.css",
16
+ "700-italic.css",
17
+ "files/*-400-normal.woff2",
18
+ "files/*-400-italic.woff2",
19
+ "files/*-700-normal.woff2",
20
+ "files/*-700-italic.woff2"
21
+ ]
22
+ }
23
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "allyhub-pin-fontsource-cousine",
3
+ "version": "5.3.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "allyhub-pin-fontsource-cousine",
9
+ "version": "5.3.0",
10
+ "dependencies": {
11
+ "@fontsource/cousine": "5.3.0"
12
+ }
13
+ },
14
+ "node_modules/@fontsource/cousine": {
15
+ "version": "5.3.0",
16
+ "resolved": "https://registry.npmjs.org/@fontsource/cousine/-/cousine-5.3.0.tgz",
17
+ "integrity": "sha512-EhVes1KpHrmPwGVCoVxYpdiIi/L2LRGxbAuv07m3TdY76f9Vmwyhd/TNqi2RC0NOvMCNt2FtYPJcAfFfkK9DoQ==",
18
+ "license": "OFL-1.1",
19
+ "funding": {
20
+ "url": "https://github.com/sponsors/ayuhito"
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "allyhub-pin-fontsource-cousine",
3
+ "private": true,
4
+ "version": "5.3.0",
5
+ "dependencies": {
6
+ "@fontsource/cousine": "5.3.0"
7
+ },
8
+ "allyhubSize": 1032508,
9
+ "allyhubKeep": {
10
+ "@fontsource/cousine": [
11
+ "package.json",
12
+ "LICENSE",
13
+ "400.css",
14
+ "400-italic.css",
15
+ "700.css",
16
+ "700-italic.css",
17
+ "files/*-400-normal.woff2",
18
+ "files/*-400-italic.woff2",
19
+ "files/*-700-normal.woff2",
20
+ "files/*-700-italic.woff2"
21
+ ]
22
+ }
23
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "allyhub-pin-fontsource-lxgw-wenkai",
3
+ "version": "5.3.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "allyhub-pin-fontsource-lxgw-wenkai",
9
+ "version": "5.3.0",
10
+ "dependencies": {
11
+ "@fontsource/lxgw-wenkai": "5.3.0"
12
+ }
13
+ },
14
+ "node_modules/@fontsource/lxgw-wenkai": {
15
+ "version": "5.3.0",
16
+ "resolved": "https://registry.npmjs.org/@fontsource/lxgw-wenkai/-/lxgw-wenkai-5.3.0.tgz",
17
+ "integrity": "sha512-+U5AAOXeaB7o+3G0Qm7I7Djz2Jd1hqNY+kClOZH8bTunyyGa2WxY12LZftt2AqUsxlfxwdQpd75Js1HQIt4H4g==",
18
+ "license": "OFL-1.1",
19
+ "funding": {
20
+ "url": "https://github.com/sponsors/ayuhito"
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "allyhub-pin-fontsource-lxgw-wenkai",
3
+ "private": true,
4
+ "version": "5.3.0",
5
+ "dependencies": {
6
+ "@fontsource/lxgw-wenkai": "5.3.0"
7
+ },
8
+ "allyhubSize": 55663853,
9
+ "allyhubKeep": {
10
+ "@fontsource/lxgw-wenkai": [
11
+ "package.json",
12
+ "LICENSE",
13
+ "500.css",
14
+ "700.css",
15
+ "files/*-500-normal.woff2",
16
+ "files/*-700-normal.woff2"
17
+ ]
18
+ }
19
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "allyhub-pin-fontsource-noto-color-emoji",
3
+ "version": "5.3.2",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "allyhub-pin-fontsource-noto-color-emoji",
9
+ "version": "5.3.2",
10
+ "dependencies": {
11
+ "@fontsource/noto-color-emoji": "5.3.2"
12
+ }
13
+ },
14
+ "node_modules/@fontsource/noto-color-emoji": {
15
+ "version": "5.3.2",
16
+ "resolved": "https://registry.npmjs.org/@fontsource/noto-color-emoji/-/noto-color-emoji-5.3.2.tgz",
17
+ "integrity": "sha512-rO15sQ45Dc28hMAMz1X1oSOWxcbqNL+CiHHJ7JPn1gmfiGIuR/QyLuHqBrXivSYHsHVTXGT/m6/DuQ42s5xQkw==",
18
+ "license": "OFL-1.1",
19
+ "funding": {
20
+ "url": "https://github.com/sponsors/ayuhito"
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "allyhub-pin-fontsource-noto-color-emoji",
3
+ "private": true,
4
+ "version": "5.3.2",
5
+ "dependencies": {
6
+ "@fontsource/noto-color-emoji": "5.3.2"
7
+ },
8
+ "allyhubSize": 24633074,
9
+ "allyhubKeep": {
10
+ "@fontsource/noto-color-emoji": [
11
+ "package.json",
12
+ "LICENSE",
13
+ "emoji.css",
14
+ "files/noto-color-emoji-emoji-400-normal.woff2"
15
+ ]
16
+ }
17
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "allyhub-pin-fontsource-noto-sans-sc",
3
+ "version": "5.3.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "allyhub-pin-fontsource-noto-sans-sc",
9
+ "version": "5.3.0",
10
+ "dependencies": {
11
+ "@fontsource/noto-sans-sc": "5.3.0"
12
+ }
13
+ },
14
+ "node_modules/@fontsource/noto-sans-sc": {
15
+ "version": "5.3.0",
16
+ "resolved": "https://registry.npmjs.org/@fontsource/noto-sans-sc/-/noto-sans-sc-5.3.0.tgz",
17
+ "integrity": "sha512-HeqIlGm0+ohOKxZLuHj1qW6r6avHH0OWdKERAcSDI0RQ+MXrteuLKA+M+5eOA8rYy0MFvOR5AT0fQo2rUkye0Q==",
18
+ "license": "OFL-1.1",
19
+ "funding": {
20
+ "url": "https://github.com/sponsors/ayuhito"
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "allyhub-pin-fontsource-noto-sans-sc",
3
+ "private": true,
4
+ "version": "5.3.0",
5
+ "dependencies": {
6
+ "@fontsource/noto-sans-sc": "5.3.0"
7
+ },
8
+ "allyhubSize": 73416948,
9
+ "allyhubKeep": {
10
+ "@fontsource/noto-sans-sc": [
11
+ "package.json",
12
+ "LICENSE",
13
+ "400.css",
14
+ "700.css",
15
+ "files/*-400-normal.woff2",
16
+ "files/*-700-normal.woff2"
17
+ ]
18
+ }
19
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "allyhub-pin-fontsource-noto-serif-sc",
3
+ "version": "5.3.1",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "allyhub-pin-fontsource-noto-serif-sc",
9
+ "version": "5.3.1",
10
+ "dependencies": {
11
+ "@fontsource/noto-serif-sc": "5.3.1"
12
+ }
13
+ },
14
+ "node_modules/@fontsource/noto-serif-sc": {
15
+ "version": "5.3.1",
16
+ "resolved": "https://registry.npmjs.org/@fontsource/noto-serif-sc/-/noto-serif-sc-5.3.1.tgz",
17
+ "integrity": "sha512-nIK2HyNGcUi2TGwIfrk2MItkh0O3Y5+TI8iPfPSzoNY6uyXYfQ9qqch8czk3aa1VhV4EU52uwCYCe1UDKJELpg==",
18
+ "license": "OFL-1.1",
19
+ "funding": {
20
+ "url": "https://github.com/sponsors/ayuhito"
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "allyhub-pin-fontsource-noto-serif-sc",
3
+ "private": true,
4
+ "version": "5.3.1",
5
+ "dependencies": {
6
+ "@fontsource/noto-serif-sc": "5.3.1"
7
+ },
8
+ "allyhubSize": 86477656,
9
+ "allyhubKeep": {
10
+ "@fontsource/noto-serif-sc": [
11
+ "package.json",
12
+ "LICENSE",
13
+ "400.css",
14
+ "700.css",
15
+ "files/*-400-normal.woff2",
16
+ "files/*-700-normal.woff2"
17
+ ]
18
+ }
19
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "allyhub-pin-fontsource-tinos",
3
+ "version": "5.3.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "allyhub-pin-fontsource-tinos",
9
+ "version": "5.3.0",
10
+ "dependencies": {
11
+ "@fontsource/tinos": "5.3.0"
12
+ }
13
+ },
14
+ "node_modules/@fontsource/tinos": {
15
+ "version": "5.3.0",
16
+ "resolved": "https://registry.npmjs.org/@fontsource/tinos/-/tinos-5.3.0.tgz",
17
+ "integrity": "sha512-VVDyyZdbcsLKxo/W7rClAvacD/7DsGc7J5xzzp51Tndib8kDkEe/0bqbb3Xb3iH6+IUjt07aRsvtQ9MGeGGi4w==",
18
+ "license": "OFL-1.1",
19
+ "funding": {
20
+ "url": "https://github.com/sponsors/ayuhito"
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "allyhub-pin-fontsource-tinos",
3
+ "private": true,
4
+ "version": "5.3.0",
5
+ "dependencies": {
6
+ "@fontsource/tinos": "5.3.0"
7
+ },
8
+ "allyhubSize": 1417704,
9
+ "allyhubKeep": {
10
+ "@fontsource/tinos": [
11
+ "package.json",
12
+ "LICENSE",
13
+ "400.css",
14
+ "400-italic.css",
15
+ "700.css",
16
+ "700-italic.css",
17
+ "files/*-400-normal.woff2",
18
+ "files/*-400-italic.woff2",
19
+ "files/*-700-normal.woff2",
20
+ "files/*-700-italic.woff2"
21
+ ]
22
+ }
23
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "allyhub-pin-mermaid",
3
+ "lockfileVersion": 3,
4
+ "requires": true,
5
+ "packages": {
6
+ "": {
7
+ "name": "allyhub-pin-mermaid",
8
+ "dependencies": {
9
+ "mermaid": "12.2.0"
10
+ }
11
+ },
12
+ "node_modules/mermaid": {
13
+ "version": "12.2.0",
14
+ "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-12.2.0.tgz",
15
+ "integrity": "sha512-w7nr/SFrLO7BaVTs3dQTvYSV6nYSBj0Yy9DjBhsIJtAcHqRzXSq4Pg32ujHZ/AdWsAMNEvvhbm5dt9E2tOiHzw==",
16
+ "license": "MIT"
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "allyhub-pin-mermaid",
3
+ "private": true,
4
+ "dependencies": {
5
+ "mermaid": "12.2.0"
6
+ },
7
+ "allyhubSize": 25955888,
8
+ "allyhubKeep": {
9
+ "mermaid": [
10
+ "package.json",
11
+ "LICENSE",
12
+ "dist/mermaid.min.js"
13
+ ]
14
+ }
15
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "allyhub-pin-pdf-lib",
3
+ "lockfileVersion": 3,
4
+ "requires": true,
5
+ "packages": {
6
+ "": {
7
+ "name": "allyhub-pin-pdf-lib",
8
+ "dependencies": {
9
+ "pdf-lib": "1.17.1"
10
+ }
11
+ },
12
+ "node_modules/@pdf-lib/standard-fonts": {
13
+ "version": "1.0.0",
14
+ "resolved": "https://registry.npmjs.org/@pdf-lib/standard-fonts/-/standard-fonts-1.0.0.tgz",
15
+ "integrity": "sha512-hU30BK9IUN/su0Mn9VdlVKsWBS6GyhVfqjwl1FjZN4TxP6cCw0jP2w7V3Hf5uX7M0AZJ16vey9yE0ny7Sa59ZA==",
16
+ "license": "MIT",
17
+ "dependencies": {
18
+ "pako": "^1.0.6"
19
+ }
20
+ },
21
+ "node_modules/@pdf-lib/upng": {
22
+ "version": "1.0.1",
23
+ "resolved": "https://registry.npmjs.org/@pdf-lib/upng/-/upng-1.0.1.tgz",
24
+ "integrity": "sha512-dQK2FUMQtowVP00mtIksrlZhdFXQZPC+taih1q4CvPZ5vqdxR/LKBaFg0oAfzd1GlHZXXSPdQfzQnt+ViGvEIQ==",
25
+ "license": "MIT",
26
+ "dependencies": {
27
+ "pako": "^1.0.10"
28
+ }
29
+ },
30
+ "node_modules/pako": {
31
+ "version": "1.0.11",
32
+ "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",
33
+ "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==",
34
+ "license": "(MIT AND Zlib)"
35
+ },
36
+ "node_modules/pdf-lib": {
37
+ "version": "1.17.1",
38
+ "resolved": "https://registry.npmjs.org/pdf-lib/-/pdf-lib-1.17.1.tgz",
39
+ "integrity": "sha512-V/mpyJAoTsN4cnP31vc0wfNA1+p20evqqnap0KLoRUN0Yk/p3wN52DOEsL4oBFcLdb76hlpKPtzJIgo67j/XLw==",
40
+ "license": "MIT",
41
+ "dependencies": {
42
+ "@pdf-lib/standard-fonts": "^1.0.0",
43
+ "@pdf-lib/upng": "^1.0.1",
44
+ "pako": "^1.0.11",
45
+ "tslib": "^1.11.1"
46
+ }
47
+ },
48
+ "node_modules/tslib": {
49
+ "version": "1.14.1",
50
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
51
+ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
52
+ "license": "0BSD"
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "allyhub-pin-pdf-lib",
3
+ "private": true,
4
+ "dependencies": {
5
+ "pdf-lib": "1.17.1"
6
+ }
7
+ }
@@ -0,0 +1,169 @@
1
+ {
2
+ "name": "allyhub-pin-pptxgenjs",
3
+ "lockfileVersion": 3,
4
+ "requires": true,
5
+ "packages": {
6
+ "": {
7
+ "name": "allyhub-pin-pptxgenjs",
8
+ "dependencies": {
9
+ "pptxgenjs": "4.0.1"
10
+ }
11
+ },
12
+ "node_modules/@types/node": {
13
+ "version": "22.20.5",
14
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.20.5.tgz",
15
+ "integrity": "sha512-U2+DNr+wSjpsTS/wZGYHq7GcwfuSmKiKvoPvK22zwTlRhU91yOniN4qRR5KhIjvif7ysw/dz/hKmfDH0Ris4aA==",
16
+ "license": "MIT",
17
+ "dependencies": {
18
+ "undici-types": "~6.21.0"
19
+ }
20
+ },
21
+ "node_modules/core-util-is": {
22
+ "version": "1.0.3",
23
+ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",
24
+ "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
25
+ "license": "MIT"
26
+ },
27
+ "node_modules/https": {
28
+ "version": "1.0.0",
29
+ "resolved": "https://registry.npmjs.org/https/-/https-1.0.0.tgz",
30
+ "integrity": "sha512-4EC57ddXrkaF0x83Oj8sM6SLQHAWXw90Skqu2M4AEWENZ3F02dFJE/GARA8igO79tcgYqGrD7ae4f5L3um2lgg==",
31
+ "license": "ISC"
32
+ },
33
+ "node_modules/image-size": {
34
+ "version": "1.2.1",
35
+ "resolved": "https://registry.npmjs.org/image-size/-/image-size-1.2.1.tgz",
36
+ "integrity": "sha512-rH+46sQJ2dlwfjfhCyNx5thzrv+dtmBIhPHk0zgRUukHzZ/kRueTJXoYYsclBaKcSMBWuGbOFXtioLpzTb5euw==",
37
+ "license": "MIT",
38
+ "dependencies": {
39
+ "queue": "6.0.2"
40
+ },
41
+ "bin": {
42
+ "image-size": "bin/image-size.js"
43
+ },
44
+ "engines": {
45
+ "node": ">=16.x"
46
+ }
47
+ },
48
+ "node_modules/immediate": {
49
+ "version": "3.0.6",
50
+ "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",
51
+ "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==",
52
+ "license": "MIT"
53
+ },
54
+ "node_modules/inherits": {
55
+ "version": "2.0.4",
56
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
57
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
58
+ "license": "ISC"
59
+ },
60
+ "node_modules/isarray": {
61
+ "version": "1.0.0",
62
+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
63
+ "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==",
64
+ "license": "MIT"
65
+ },
66
+ "node_modules/jszip": {
67
+ "version": "3.10.2",
68
+ "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.2.tgz",
69
+ "integrity": "sha512-3l+rb15IOWtUhU0H5MFqES/T6Kh7abYwjosBey/vD6hDt8zoEffkSC5Ws5SGtgVw3gBx2NEbhTeSW1+kWkpyTQ==",
70
+ "license": "(MIT OR GPL-3.0-or-later)",
71
+ "dependencies": {
72
+ "lie": "~3.3.0",
73
+ "pako": "~1.0.2",
74
+ "readable-stream": "~2.3.6",
75
+ "setimmediate": "^1.0.5"
76
+ }
77
+ },
78
+ "node_modules/lie": {
79
+ "version": "3.3.0",
80
+ "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz",
81
+ "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==",
82
+ "license": "MIT",
83
+ "dependencies": {
84
+ "immediate": "~3.0.5"
85
+ }
86
+ },
87
+ "node_modules/pako": {
88
+ "version": "1.0.11",
89
+ "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",
90
+ "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==",
91
+ "license": "(MIT AND Zlib)"
92
+ },
93
+ "node_modules/pptxgenjs": {
94
+ "version": "4.0.1",
95
+ "resolved": "https://registry.npmjs.org/pptxgenjs/-/pptxgenjs-4.0.1.tgz",
96
+ "integrity": "sha512-TeJISr8wouAuXw4C1F/mC33xbZs/FuEG6nH9FG1Zj+nuPcGMP5YRHl6X+j3HSUnS1f3at6k75ZZXPMZlA5Lj9A==",
97
+ "license": "MIT",
98
+ "dependencies": {
99
+ "@types/node": "^22.8.1",
100
+ "https": "^1.0.0",
101
+ "image-size": "^1.2.1",
102
+ "jszip": "^3.10.1"
103
+ }
104
+ },
105
+ "node_modules/process-nextick-args": {
106
+ "version": "2.0.1",
107
+ "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
108
+ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
109
+ "license": "MIT"
110
+ },
111
+ "node_modules/queue": {
112
+ "version": "6.0.2",
113
+ "resolved": "https://registry.npmjs.org/queue/-/queue-6.0.2.tgz",
114
+ "integrity": "sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==",
115
+ "license": "MIT",
116
+ "dependencies": {
117
+ "inherits": "~2.0.3"
118
+ }
119
+ },
120
+ "node_modules/readable-stream": {
121
+ "version": "2.3.8",
122
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",
123
+ "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
124
+ "license": "MIT",
125
+ "dependencies": {
126
+ "core-util-is": "~1.0.0",
127
+ "inherits": "~2.0.3",
128
+ "isarray": "~1.0.0",
129
+ "process-nextick-args": "~2.0.0",
130
+ "safe-buffer": "~5.1.1",
131
+ "string_decoder": "~1.1.1",
132
+ "util-deprecate": "~1.0.1"
133
+ }
134
+ },
135
+ "node_modules/safe-buffer": {
136
+ "version": "5.1.2",
137
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
138
+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
139
+ "license": "MIT"
140
+ },
141
+ "node_modules/setimmediate": {
142
+ "version": "1.0.5",
143
+ "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz",
144
+ "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==",
145
+ "license": "MIT"
146
+ },
147
+ "node_modules/string_decoder": {
148
+ "version": "1.1.1",
149
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
150
+ "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
151
+ "license": "MIT",
152
+ "dependencies": {
153
+ "safe-buffer": "~5.1.0"
154
+ }
155
+ },
156
+ "node_modules/undici-types": {
157
+ "version": "6.21.0",
158
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
159
+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
160
+ "license": "MIT"
161
+ },
162
+ "node_modules/util-deprecate": {
163
+ "version": "1.0.2",
164
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
165
+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
166
+ "license": "MIT"
167
+ }
168
+ }
169
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "allyhub-pin-pptxgenjs",
3
+ "private": true,
4
+ "dependencies": {
5
+ "pptxgenjs": "4.0.1"
6
+ }
7
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/scenery",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/sheet",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/slides-core",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/video-core",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/video-sdk",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/sdk",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "What an agent writes videos, decks and workbooks with: each built-in kind's authoring API, re-exported from its extension. The root, /dom, /media and /scenery are the video's: video(), parts with their speech, footage and sounds, defineComponent() and custom() layers, the layout, motion and input helpers, the scenery() layer's options; /slides is the deck's, python-pptx's API; /image is the image's, its boards each its own size; /sheets is the sheet's, openpyxl's API. Nothing a host needs.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://allyhub.com",