allyhub 0.9.0 → 0.10.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.
- package/CHANGELOG.md +8 -0
- package/dist/commands/auth.js +4 -4
- package/dist/commands/cloud-tools.js +11 -11
- package/dist/commands/frames/compare.js +2 -2
- package/dist/commands/frames/piece.js +1 -1
- package/dist/commands/frames.js +8 -8
- package/dist/commands/index.js +1 -1
- package/dist/commands/inspect/common.js +4 -2
- package/dist/commands/inspect/facts.js +3 -3
- package/dist/commands/inspect/layout.js +1 -1
- package/dist/commands/orgs.js +2 -2
- package/dist/help.js +4 -4
- package/dist/main.js +8 -7
- package/dist/node_modules/@allyhub/3d-extension/package.json +34 -2
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-extension/package.json +2 -1
- package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +4 -24
- package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
- package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +10 -0
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +9 -0
- package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +4 -4
- package/dist/node_modules/@allyhub/cloud/dist/credentials.js +2 -2
- package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +12 -0
- package/dist/node_modules/@allyhub/cloud/dist/device.js +2 -0
- package/dist/node_modules/@allyhub/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub/components/package.json +1 -1
- package/dist/node_modules/@allyhub/components/r/callout.json +1 -1
- package/dist/node_modules/@allyhub/components/src/callout.ts +98 -13
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
- package/dist/node_modules/@allyhub/doc/dist/captions.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
- package/dist/node_modules/@allyhub/doc/dist/html.js +50 -47
- package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/page.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/write.js +22 -22
- package/dist/node_modules/@allyhub/doc/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +17 -2
- package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
- package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/export/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
- package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +87 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +89 -0
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +50 -0
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +16 -1
- package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +7 -39
- package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
- package/dist/node_modules/@allyhub/image-render/package.json +1 -1
- package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/package.json +7 -4
- package/dist/node_modules/@allyhub/model/package.json +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +16 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +6 -0
- package/dist/node_modules/@allyhub/piece/package.json +1 -1
- package/dist/node_modules/@allyhub/project/dist/version.js +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +132 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +153 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +4 -2
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +43 -188
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +1 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +51 -91
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +3 -3
- package/dist/node_modules/@allyhub/protocol/package.json +5 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/dist/look.js +1 -1
- package/dist/node_modules/@allyhub/render/package.json +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/player/clips.js +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
- package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
- package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +7 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.d.ts +4 -3
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.d.ts +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.d.ts +8 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +4 -4
- package/dist/node_modules/@allyhub/sheet-extension/package.json +22 -3
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/package.json +20 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
- package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
- package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/stage/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +76 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +316 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +316 -0
- package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +3 -0
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +19 -19
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/package.json +16 -1
- package/dist/node_modules/@allyhub/video-measure/dist/version.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/dist/held.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +24 -1
- package/dist/node_modules/@allyhub/website-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/website-extension/package.json +49 -2
- package/dist/node_modules/@allyhub/x-extension/package.json +34 -4
- package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +7 -62
- package/dist/node_modules/@allyhub/x-model/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/dist/article.js +1 -1
- package/dist/node_modules/@allyhub/x-view/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/x-view/dist/post.js +2 -2
- package/dist/node_modules/@allyhub/x-view/package.json +1 -1
- package/dist/package.json +10 -10
- package/dist/text/facts-text.js +5 -5
- package/dist/text/index.js +1 -1
- package/dist/text/long-text.js +4 -0
- package/dist/works.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-CN5PiJYY.js → abnfDiagram-WEYOIA3C-CjAmWsNR.js} +1 -1
- package/editor-web/assets/alt-DnBZJzEh.js +4 -0
- package/editor-web/assets/{architecture-WOLXFQ4H-BnvZtQYk.js → architecture-WOLXFQ4H-DeeKhyhZ.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-tkcEcFQ8.js → architectureDiagram-ZHVYKT53-b32qTaJg.js} +1 -1
- package/editor-web/assets/{arrow-up-DTP2yVSU.js → arrow-up-L4YV_65f.js} +1 -1
- package/editor-web/assets/article-DLMjAdbP.js +73 -0
- package/editor-web/assets/{audio-lines-Ti8-m7H2.js → audio-lines-BFcM7G2L.js} +1 -1
- package/editor-web/assets/{blockDiagram-RJAE7QA3-DhqEIpie.js → blockDiagram-RJAE7QA3-BNbnMNmw.js} +1 -1
- package/editor-web/assets/button-Chk675Xu.js +41 -0
- package/editor-web/assets/{c4Diagram-XDPPPE54-Bg9G95tl.js → c4Diagram-XDPPPE54-BEuemvMw.js} +1 -1
- package/editor-web/assets/calc-worker-D2pGis6e.js +45 -0
- package/editor-web/assets/channel-EzYq4r0d.js +1 -0
- package/editor-web/assets/chart-Be9Hj5GL.js +1 -0
- package/editor-web/assets/choice-BgmBh4yu.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-C8Ve9lAa.js → chunk-2E7WHVMD-Zb5nPx_e.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-BDWwPUnT.js → chunk-4EMNKR2T-DSEM2reX.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-BQiNPKgx.js → chunk-55XCU76K-BOZa_65H.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-QoEt-6jf.js → chunk-7S6XSTFO-DeiGeVpB.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-BeuwIv0-.js → chunk-AQDTSKZB-fPuQFBJc.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-BHW7sLAz.js → chunk-DSNLSHJZ-5vdnoak2.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-bbGED0hu.js → chunk-HAGFOTED-DFF2mZJ1.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-FltWp8yo.js → chunk-HNE4Q36P-g6-ZLbTg.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-NeQzr6kH.js → chunk-NQOKRVIF-o3hNcHMJ.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-eA4-WUhn.js → chunk-UHW7PFBP-BQiDI9dK.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-BPPv325z.js → chunk-VQ5W62QI-CJlMXWWz.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-DOCIz7Te.js → chunk-WQQL4CDK-pNBU8dXv.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-Dc_ihQJi.js → chunk-YZO67HFG-2x-BiWd-.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-CoqwCPSm.js → chunk-ZAUX2LTX-etFStEM8.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-CZUQPkJx.js → chunk-ZCHMQSOR-B3AYRhIY.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-DUh9c50k.js → classDiagram-v2-4MYWR3UA-6y2yX0oq.js} +1 -1
- package/editor-web/assets/collaborator-LRd0hELn.js +1 -0
- package/editor-web/assets/createLucideIcon-CPS-TrJJ.js +1 -0
- package/editor-web/assets/{cynefin-EF2NZ3EQ-DUTZiog0.js → cynefin-EF2NZ3EQ-CX4BTQQe.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-oAjpfbrU.js → cynefinDiagram-WF24UDRP-LbDkOTy3.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-BrKvKCvb.js → dagre-NK4GIZVX-wCKQk7hi.js} +1 -1
- package/editor-web/assets/{diagram-CBK3MWTC-GekVRnmm.js → diagram-CBK3MWTC-a9fofQwk.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-CDd1VFRT.js → diagram-I5XIIV2D-UCLZWch5.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-535RISTn.js → diagram-ODIL2UCW-CAEe88Lp.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-MXzzKCGG.js → diagram-PFBEJUXE-Cp1o45bs.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-vKVwkQxY.js → diagram-RJA3I4VV-c6OVxDyq.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-UwGAiQLx.js → diagram-TYUNFSNR-BVRWslDM.js} +1 -1
- package/editor-web/assets/{dist-CKyfo5RM.js → dist--KKyT5zP.js} +1 -1
- package/editor-web/assets/dist-1k0MHB3i.js +1 -0
- package/editor-web/assets/dist-B9KHJqL5.js +4 -0
- package/editor-web/assets/dist-BbJyrhIY.js +1 -0
- package/editor-web/assets/dist-CJXCQxQM.js +37 -0
- package/editor-web/assets/dist-D9xQGwe9.js +5 -0
- package/editor-web/assets/dist-DFiLzbx8.js +219 -0
- package/editor-web/assets/{dist-shKo7XVN.js → dist-DIPV6xfF.js} +1 -1
- package/editor-web/assets/dist-Dp-fQMtx.js +6 -0
- package/editor-web/assets/dist-Duw28VxJ.js +16 -0
- package/editor-web/assets/{dist-9ymlIMhr.js → dist-DwGhfliS.js} +1 -1
- package/editor-web/assets/dist-OBE2IIYP.js +24 -0
- package/editor-web/assets/dist-j6ZLVcgf.js +38 -0
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-73yGokYa.js → ebnfDiagram-V4P3TTPT-KdOTJgFu.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-BW6V9y6a.js → elk-QONTBCTQ-Cmlrp7qB.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-BPqIJ22h.js → erDiagram-KYQIGQAA-CBM7-aQm.js} +1 -1
- package/editor-web/assets/{eventmodeling-K75KTNOO-_VZ8jvuy.js → eventmodeling-K75KTNOO-CEoJkbuW.js} +1 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-Xm2E2ib_.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-DZ157JN2.js → ganttDiagram-R7GPNTJY-D4S6ZSYD.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-fmcNL9bq.js → gitGraph-VSP46ZUC-BvkL6RSh.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-DiZDyksR.js → gitGraphDiagram-PDYL7XHY-lTGguloH.js} +1 -1
- package/editor-web/assets/hint-BimUgJms.js +1 -0
- package/editor-web/assets/index-C-i_iuxN.js +28 -0
- package/editor-web/assets/index-Cxh_Shkm.css +2 -0
- package/editor-web/assets/{info-OHQRW6UA-V06620kN.js → info-OHQRW6UA-DvKzqNvp.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-CbIgheWX.js → infoDiagram-MVDRKAX5-D7hCpehs.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-D5oJQPkG.js → ishikawaDiagram-HPEHV2GE-Bg93sZQe.js} +1 -1
- package/editor-web/assets/{italic-CDhZKo_q.js → italic-BQBwRTe8.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-BZEv6JI4.js → journeyDiagram-BOSHW7O7-CKm_KONJ.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-CLG1R8y_.js → kanban-definition-FNSA4HC5-BKknnpTR.js} +1 -1
- package/editor-web/assets/{mermaid-parser.core-DxDwXM7z.js → mermaid-parser.core-BzqkDnqL.js} +3 -3
- package/editor-web/assets/{mermaid.core-tU55ZwVG.js → mermaid.core-CEpvTOAe.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-CYf4zzAh.js → mindmap-definition-6OY57UG3-BJ0qG8Wi.js} +1 -1
- package/editor-web/assets/minus-oPj1GxwA.js +1 -0
- package/editor-web/assets/{packet-JDAUHWVQ-DsHeKYNL.js → packet-JDAUHWVQ-ew3kvyFm.js} +1 -1
- package/editor-web/assets/{pegDiagram-ECIUJNBX-CQyh6TTa.js → pegDiagram-ECIUJNBX-DqUS2xit.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-3vCIvpNB.js → pie-XZMESJXO-DTIAMPGm.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-DF5yGBLn.js → pieDiagram-GNMPY74T-DoKOE02-.js} +1 -1
- package/editor-web/assets/progress-CPEbDOoN.js +6 -0
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-B7pxlDYP.js → quadrantDiagram-D57K4MC3-DauOpYun.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-cpEA41mL.js → radar-ABXABTNO-BvMJXUU-.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-BLyy5R2c.js → railroad-I3PHUGI6-D3jdJmhM.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-Y-oyol19.js → railroad-abnf-LNEFI6M7-Dm8ZpmPj.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-o58wHZsr.js → railroad-ebnf-DWYD2UWJ-oc0Du7Ag.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-CcD3PXZ8.js → railroad-peg-JR7BVNR7-CMrQL_7U.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-BuCC4eyy.js → railroadDiagram-Y72NRBL7-y99z0C7i.js} +1 -1
- package/editor-web/assets/react-DztDSW4P.js +1 -0
- package/editor-web/assets/{repeat-2-C5PCbNsg.js → repeat-2-DJi4LW5C.js} +1 -1
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-Dp-JFGn4.js → requirementDiagram-EQYSW5RA-jMr_uoF6.js} +1 -1
- package/editor-web/assets/row-ClBisiBs.js +1 -0
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-rYuCqEvw.js → sankeyDiagram-SY24JHO5-DcUyx03Q.js} +1 -1
- package/editor-web/assets/schemas-68mjUjP5.js +1 -0
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-DryW8x6d.js → sequenceDiagram-BLEHNHQU-R4X8wRCd.js} +1 -1
- package/editor-web/assets/session-2u9U7koW.js +1 -0
- package/editor-web/assets/slides-BByblSSR.js +1 -0
- package/editor-web/assets/snapshots-C9KV-Y2_.js +56 -0
- package/editor-web/assets/sound-DExlNJbb.js +1 -0
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-Bnp0XfpT.js → stateDiagram-v2-A6IESKWZ-BqvXKbCA.js} +1 -1
- package/editor-web/assets/{strikethrough-DJckA35o.js → strikethrough-CyUBnGTl.js} +1 -1
- package/editor-web/assets/{svg-BjM9RazX.js → svg-lBRT-uhy.js} +1 -1
- package/editor-web/assets/swatch-1c1uVn1z.js +1 -0
- package/editor-web/assets/{swimlanes-B3ENRKFQ-BiRRhhbd.js → swimlanes-B3ENRKFQ-hjTXIc6M.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BLfytmPY.js +8 -0
- package/editor-web/assets/switch-D0K-K8-C.js +1 -0
- package/editor-web/assets/{syntax-CC6QYhCz.js → syntax-Bih_jv7W.js} +1 -1
- package/editor-web/assets/tabs-CxxOnGLR.js +1 -0
- package/editor-web/assets/{textarea-BGtPqZdB.js → textarea-Fu93tFO3.js} +1 -1
- package/editor-web/assets/{timeline-definition-JXYKGLGB-D-Q5ZtDF.js → timeline-definition-JXYKGLGB-BcSoN4Dq.js} +1 -1
- package/editor-web/assets/{trash-2-Bjj6cWzP.js → trash-2-BAKAeziW.js} +1 -1
- package/editor-web/assets/{treeView-D4JQ5SDB-B6DDatXq.js → treeView-D4JQ5SDB-CsFN2jrc.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-D7j5ZhiI.js → treemap-SAJKECNS-DP1eqXJ2.js} +1 -1
- package/editor-web/assets/{undo-2-yOSG766T.js → undo-2-DQ5CBmki.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-tkrdKUJB.js → usecaseDiagram-WPOLBNNX-BGxa0osF.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-Ch4XbSnD.js → vennDiagram-Q3Y3IDCW-D2XhTF49.js} +1 -1
- package/editor-web/assets/video-CDbPX4Cr.js +1 -0
- package/editor-web/assets/{wardley-7MLQ67FV-Bynt7qNQ.js → wardley-7MLQ67FV-DM3jMAbZ.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-DRuSgm_L.js → wardleyDiagram-IVAIDKWA-Bf-DaZEg.js} +1 -1
- package/editor-web/assets/{xychartDiagram-4URNHDU4-DctpvfkL.js → xychartDiagram-4URNHDU4-dp-mdcWd.js} +1 -1
- package/editor-web/index.html +6 -5
- package/package.json +2 -2
- package/editor-web/assets/alt-BOVao_9S.js +0 -4
- package/editor-web/assets/article-B6YCzhj8.js +0 -73
- package/editor-web/assets/calc-worker-B5-fDWnb.js +0 -45
- package/editor-web/assets/channel-C26aBI4o.js +0 -1
- package/editor-web/assets/chart-BOnxneyw.js +0 -1
- package/editor-web/assets/choice-O5nwc2N0.js +0 -1
- package/editor-web/assets/collaborator-BJU5qwHd.js +0 -1
- package/editor-web/assets/createLucideIcon-B3B95oX5.js +0 -1
- package/editor-web/assets/dist-C6NqUEG4.js +0 -16
- package/editor-web/assets/dist-C9UGmCG9.js +0 -6
- package/editor-web/assets/dist-CAk5bjBm.js +0 -1
- package/editor-web/assets/dist-CRaWqNwq.js +0 -37
- package/editor-web/assets/dist-CwIBc7HQ.js +0 -1
- package/editor-web/assets/dist-DXRmkezB.js +0 -38
- package/editor-web/assets/dist-EKK5i0dG.js +0 -219
- package/editor-web/assets/dist-hHJlpLWo.js +0 -5
- package/editor-web/assets/dist-oYKcwWUj.js +0 -4
- package/editor-web/assets/dist-wrKxBrVu.js +0 -24
- package/editor-web/assets/flowDiagram-IUGLLWBU-ouDQYiTr.js +0 -1
- package/editor-web/assets/hint-_AQWCDMj.js +0 -1
- package/editor-web/assets/index-BsstP-cI.js +0 -28
- package/editor-web/assets/index-DQRcmxBO.css +0 -2
- package/editor-web/assets/minus-Cgmm6ncD.js +0 -1
- package/editor-web/assets/progress-0B_TVsPi.js +0 -6
- package/editor-web/assets/react-BP46yLMB.js +0 -1
- package/editor-web/assets/react-pgBZqVxJ.js +0 -96
- package/editor-web/assets/schemas-Ewwjtbf4.js +0 -1
- package/editor-web/assets/session-DiI9KYRI.js +0 -1
- package/editor-web/assets/slides-CCwgBcGH.js +0 -1
- package/editor-web/assets/sound-CqryteNl.js +0 -1
- package/editor-web/assets/swatch-DL3HqIjW.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BkOls8Tv.js +0 -8
- package/editor-web/assets/switch-DltnKqN-.js +0 -1
- package/editor-web/assets/tabs-C-re0Kxn.js +0 -1
- package/editor-web/assets/video-DXFiCNGc.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{createHash as
|
|
2
|
+
import{createHash as E}from"node:crypto";import{mkdir as M,readFile as w,writeFile as P}from"node:fs/promises";import{basename as k,dirname as h,join as u}from"node:path";import{componentDraws as T,componentDrawingKey as W,markdownOf as _,parseDoc as x}from"@allyhub/doc";import{PAGE_FACT_DEFAULTS as C,pageFacts as G,printDoc as v,renderDoc as L,renderWord as O}from"@allyhub/doc-print";import{createPackages as z}from"@allyhub/runtimes";export const DOC_TYPES=["pdf","docx","png","md"];async function H(i){const s=z(),e=()=>i?.("Getting docx, once, to write Word documents…"),[n,c]=await Promise.all([s.load("docx",{onFetch:e}),s.load("docx",{module:"fflate",onFetch:e})]);return{docx:n,zip:c}}export async function renderDocFiles(i,s){const e=s.prepared.docs.find(t=>t.place===i.id);if(!e||s.types.length===0)return[];const{root:n,log:c,types:p}=s;c?.(`Rendering ${e.file}…`);const r=[],d={file:e.file,dir:e.dir,path:e.place,title:e.title,data:e.data,sources:e.sources},g=s.prepared.messages.locales[0],o=e.components.length===0?new Map:await s.session.componentStills(e,T(x(await w(u(s.prepared.root,e.file),"utf8")).blocks),g===void 0?{}:{lang:g});if(p.includes("md")){const t=s.out("md"),$=x(await w(u(n,e.file),"utf8"));await M(h(t),{recursive:!0});const m=`${k(t,".md")}.assets`,D=new Map;for(const[f,A]of o){const F=`${E("sha256").update(f).digest("hex").slice(0,16)}.webp`;await M(u(h(t),m),{recursive:!0}),await P(u(h(t),m,F),A),D.set(f,`${m}/${F}`)}await P(t,_($.blocks,{page:$.page,component:f=>D.get(W(f)),base:e.dir,data:f=>e.data[f],sources:e.sources})),r.push({type:"md",files:[t]})}if(p.includes("docx")){const t=s.out("docx");await O({root:n,doc:d,out:t,...await H(c),stills:o}),r.push({type:"docx",files:[t]})}const l=p.filter(t=>t==="pdf"||t==="png"),a=async t=>{const $=x(await w(u(n,e.file),"utf8"));for(const m of pagesLines(e.file,e.place,$,t))c?.(m)};if(l.length===0)return p.includes("docx")&&await a(await v({root:n,doc:d,stills:o})),r;const y=s.out("pdf"),b={},j=await L({root:n,doc:d,out:h(y),name:k(y,".pdf"),types:l,stills:o,onPrinted:t=>{b.done=t}}),S=b.done??(p.includes("docx")?await v({root:n,doc:d,stills:o}):void 0);S!==void 0&&await a(S);for(const t of j)r.push({type:t.endsWith(".png")?"png":"pdf",files:[u(h(y),t)]});return r}export function pagesLines(i,s,e,n){const c=G(e,n.layout,s,{...C,all:!1}),p=a=>`${String(Math.round(a*100))}%`,r=c.flatMap(a=>a.kind==="page-fill"?[a.data]:[]),d=c.flatMap(a=>a.kind==="page-split"?[a.data]:[]),g=n.layout.pages.length,o=[`${i}: ${String(g)} page${g===1?"":"s"} as it prints; left empty at each page's foot: ${r.map(a=>`page ${String(a.page)} ${p(a.share)}`).join(", ")}.`];d.length>0&&o.push(`${i}: broken over pages: ${d.map(a=>`line ${String(a.line)} ${a.block} (pages ${a.pages.join(", ")})`).join("; ")}.`);const l=[...n.layout.blocks.values()].filter(a=>a.pastPaper>.1).length;return l>0&&o.push(`${i}: ${String(l)} block${l===1?" runs":"s run"} past the paper's edge, which cuts ${l===1?"it":"them"}.`),n.settled||o.push(`${i}: its contents' page numbers did not hold after ${String(n.passes)} printings; one may be a page off.`),o.push(`allyhub inspect pages ${s} has every fact, and a picture of the pages.`),o}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allyhub/doc-extension",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./cli": {
|
|
@@ -46,6 +46,20 @@
|
|
|
46
46
|
},
|
|
47
47
|
"noun": "doc",
|
|
48
48
|
"editor": "allyhub.doc.editor",
|
|
49
|
+
"shown": {
|
|
50
|
+
"line": {
|
|
51
|
+
"en": "Reports, briefs and docs, page by page",
|
|
52
|
+
"zh-cn": "报告、简报和文档,逐页排版",
|
|
53
|
+
"zh-tw": "報告、簡報和文件,逐頁排版",
|
|
54
|
+
"ja": "レポート、ブリーフ、ドキュメントをページ単位で",
|
|
55
|
+
"ko": "보고서, 브리프, 문서를 페이지 단위로",
|
|
56
|
+
"es": "Informes, briefs y documentos, página a página",
|
|
57
|
+
"pt": "Relatórios, briefings e documentos, página a página",
|
|
58
|
+
"de": "Berichte, Briefings und Dokumente, Seite für Seite",
|
|
59
|
+
"fr": "Rapports, briefs et documents, page par page"
|
|
60
|
+
},
|
|
61
|
+
"order": 10
|
|
62
|
+
},
|
|
49
63
|
"icon": "file-text",
|
|
50
64
|
"color": "kind-blue",
|
|
51
65
|
"exports": {
|
|
@@ -84,7 +98,8 @@
|
|
|
84
98
|
"kinds": [
|
|
85
99
|
"doc"
|
|
86
100
|
],
|
|
87
|
-
"module": "@allyhub/doc-editor"
|
|
101
|
+
"module": "@allyhub/doc-editor",
|
|
102
|
+
"markup": "./markup"
|
|
88
103
|
}
|
|
89
104
|
],
|
|
90
105
|
"rules": [
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{CACHE_DIR as Se}from"@allyhub/formats";import{mkdir as Ie,stat as Ae,writeFile as Le}from"node:fs/promises";import{cpus as Pe}from"node:os";import{dirname as je,isAbsolute as Ce,join as j,relative as re,sep as Ne}from"node:path";import{itemKindBuild as Y,usesInOrder as Fe}from"@allyhub/build";import{FILE_TYPES as ae,comboKey as ce,exportProblem as Oe,pieceIs as Re,pieceNamed as de,versionLabel as q}from"@allyhub/piece";import{runCheck as Ee}from"@allyhub/check";import{ConsolePool as Te,mergeConsole as _e,dedupe as le,indexNeeds as De,makeIndex as Ke,CheckSession as ze,OpenedVersion as We,keyedStills as Be,ProjectError as C}from"@allyhub/project";import{batchCsv as He,batchRows as Ve}from"./batch.js";import{processFile as Ye}from"./processors.js";import{batchName as qe,checkName as Ge,exportName as fe,exportNames as Je}from"./names.js";export const exportsAtOnce=e=>Math.max(1,Math.min(e,Math.floor(Pe().length/4)));const G=(e,r)=>`${String(e)} ${r}${e===1?"":"s"}`,pe=(e,r)=>Re({id:e.id,path:e.entry},r);function Qe(e,r){if(e===void 0)return;const o=new Set([...Object.keys(ae),...r.flatMap(a=>a.renders?.types??[])]);for(const a of e)if(!o.has(a))throw new C("bad-type",`Cannot render ${a}.`,"usage",`Types: ${[...o].join(", ")}.`);return[...e]}const Ue=e=>({...e.steps===!0?{steps:!0}:{},...e.pptx==="picture"?{pptx:"picture"}:{}});function ue(e,r){return[...e.docs.filter(o=>o.place===r.id).map(o=>o.file),...e.sheets.filter(o=>o.place===r.id).flatMap(o=>o.files)]}async function J(e,r,o,a){const{files:p,type:$,...v}=r,{piece:I,...c}=o,w=p[0]??e,E=(await Promise.all(p.map(N=>Ae(N)))).reduce((N,F)=>N+F.size,0);return{files:[...p],...v,name:we(re(e,w)),path:w,piece:I,type:$,...c,bytes:E,seconds:Math.round((performance.now()-a)/10)/100}}const me=e=>"failure"in e;export function exportProject(e){return ge(e,new Map)}export const MADE_DIR=`${Se}/made`;const D=(e,r)=>`${e}\0${r}`;function he(e,r){return o=>{const a=e?.uses?.find($=>$.of===o);if(!a)return;const p=r.get(D(a.item,a.type))?.[0];if(p)return a.part===void 0?p.path:p.partFiles?.[a.part]}}async function ge(e,r){const o=Qe(e.types,e.kinds);e.name!==void 0&&Ge(e.name);const a=e.params??{},p=Ue(a),$=e.items??[],v=$.length>0,I=x=>$.some(S=>pe(x,S)),c=[],w=[],E=[],N={root:e.root,out:e.out,params:a,...e.log===void 0?{}:{log:e.log},...e.signal===void 0?{}:{signal:e.signal}},F=async x=>{c.push(await Ye(x,e.processors??[],N))},K=()=>ze.open({root:e.root,kinds:e.kinds,...e.gpu===void 0?{}:{gpu:e.gpu},...e.consoleLimit===void 0?{}:{consoleLimit:e.consoleLimit}});let f=await K(),z=!0;const Q={componentStills:(x,S,d)=>Be(S,{prepared:f.prepared,item:x,combo:d,gpu:f.gpu,withSession:L=>L(f)})},U=new Set,X=async(x,S,d)=>{U.has(x)||(U.add(x),await S?.ready?.(d,a))};try{const x=f.prepared.items.filter(n=>!v||I(n)),S=Fe(f.prepared.items,x).filter(n=>!r.has(D(n.item.id,n.type)));if(S.length>0){const n=f.prepared.pieces;z=!1,await f.close();for(const t of S){e.signal?.throwIfAborted();const b=n.find(h=>h.place===t.item.id)?.combos[0];e.log?.(`Making ${t.item.id} as ${t.type} first, which another item uses…`);try{const h=await ge({root:e.root,kinds:e.kinds,items:[t.item.id],types:[t.type],out:j(e.root,MADE_DIR),...b===void 0?{}:{combos:[b]},...e.gpu===void 0?{}:{gpu:e.gpu},...e.consoleLimit===void 0?{}:{consoleLimit:e.consoleLimit},...e.index===void 0?{}:{index:e.index},...e.analyses===void 0?{}:{analyses:e.analyses},...e.log===void 0?{}:{log:e.log},...e.signal===void 0?{}:{signal:e.signal}},r);r.set(D(t.item.id,t.type),h.files.filter(u=>u.type===t.type)),w.push(...h.failed)}catch(h){if(e.signal?.aborted===!0)throw h;r.set(D(t.item.id,t.type),[]),w.push({name:t.item.id,piece:t.item.id,type:t.type,code:h instanceof C?h.code:"failed",message:`${t.item.id}, which another item uses, could not be made: ${h.message}`})}}f=await K(),z=!0}const d=f.prepared,L=n=>d.kinds.find(t=>t.id===n)?.renders,O=[];for(const n of d.items){const t=await Y(d.kinds,n);t?.render&&t.onStage!==!0&&O.push({item:n,build:t})}const A=$.filter(n=>!O.some(t=>pe(t.item,n)));for(const n of A)if(!d.pieces.some(t=>de({id:t.id,path:t.place},n)))throw new C("no-item",`No item ${n}.`,"not-found",`Items: ${[...d.pieces.map(t=>t.id),...O.map(t=>t.item.id)].join(", ")||"none"}.`);const Z=v&&A.length===0,ye=new Set(d.pieces.flatMap(n=>L(n.kind)?.types??[])),ee=o?.filter(n=>n in ae||ye.has(n)),ke=Z?[]:d.pieces.filter(n=>A.length===0||A.some(t=>de({id:n.id,path:n.place},t))),W=o?.includes("csv")===!0?ke.filter(n=>n.matrix!==void 0):[];if(o?.includes("csv")===!0&&A.length>0&&W.length===0)throw new C("bad-type",`${A.join(", ")} has no slots (matrix.slots), so there is no table of ads to write as csv.`,"usage","csv is a batch's table of ads, or a sheet's rows.");let T=[...d.problems];const B=new Te(f.consoleLimit),be=new Set(O.flatMap(n=>ue(d,n.item))),$e=n=>n.where?.file!==void 0&&be.has(n.where.file),te=n=>n.filter(t=>t.level==="error"&&!$e(t)).length;if(!Z&&(ee?.length!==0||W.length>0)&&(d.pieces.length>0||te(d.problems)>0)){e.log?.("Checking…");const n=()=>Ze(f,e.root,A,e.combos);let t=await n();const b=e.index===!1?[]:De(t.results);if(b.length>0){const i=await Ke(d.root,b,e.analyses??[],{env:e.env??process.env,onProgress:et(e.log),signal:e.signal});E.push(...i.failed.map(s=>({file:s.need.file,error:s.error}))),i.done.length>0&&(await f.close(),f=await K(),t=await n())}T=t.problems,B.addReport(t.console);const h=te(t.problems);if(h>0)throw new C("check-failed",`The check found ${G(h,"must-fix problem")}, so nothing is rendered.`,"failed","allyhub check lists them; fix them, then render.");for(const i of W){const s=performance.now(),y=qe(i.id),M=Ve(i,t.wholes,f.prepared.media,Xe(e.root,e.out),e.name);await Ie(je(j(e.out,y)),{recursive:!0}),await Le(j(e.out,y),He(M));const P=t.targets.filter(m=>m.piece===i.id).length;M.length<P&&e.log?.(`${y}: ${G(P-M.length,"ad")} not listed, which did not load (allyhub check says why).`),await F(await J(e.out,{type:"csv",files:[j(e.out,y)]},{piece:i.id},s))}const u=[],R=new Set;for(const i of t.targets){const s=f.prepared.pieces.find(k=>k.id===i.piece);if(!s)continue;if(!v&&s.options.deliverable===!1){R.add(i.piece);continue}const y=L(s.kind),M={kind:s.kind,types:y?.types??[]},P=t.wholes.find(k=>k.piece===i.piece&&ce(k.combo)===i.key&&k.format===i.format)?.speaks??!1,m={piece:i.piece,output:i.output,combo:i.combo,format:i.format,...i.id===void 0?{}:{id:i.id}};for(const k of ee??y?.defaults??[]){const l=Oe({...M,speech:P},k);if(!(l?.code==="bad_type"&&!v)){if(l&&l.code!=="no_speech")throw new C("bad-type",`${q(m)}: ${l.message}`,"usage",l.hint);u.push({target:m,kind:s.kind,type:k,...l?{refused:{name:fe(m,k,p),piece:m.piece,type:k,code:"no-speech",message:`${q(m)}: ${l.message}`,...l.hint?{hint:l.hint}:{}}}:{}})}}}R.size>0&&e.log?.(`Not rendered, shown only inside another video (deliverable: false): ${[...R].join(", ")}. Name one to render it.`);for(const i of new Set(u.map(s=>s.kind)))await X(i,await Y(d.kinds,{kind:i}),u.filter(s=>s.kind===i).map(s=>s.type));const _=Je(u,e.name,p);u.forEach((i,s)=>{i.refused&&(i.refused.name=_[s]??i.refused.name)});const g=[],H=new Array(u.length).fill(0),V=(i,s)=>{H[i]=Math.max(H[i]??0,s),e.onProgress?.(H.reduce((y,M)=>y+M,0)/u.length)};let se=0,ve=0;const Me=async()=>{for(let i=se++;i<u.length;i=se++){e.signal?.throwIfAborted();const s=u[i];if(!s)continue;const y=_[i]??fe(s.target,s.type,p);if(s.refused){w.push(s.refused),V(i,1);continue}const M=await Y(d.kinds,{kind:s.kind}),P=performance.now(),m=await We.open({root:e.root,session:f,item:s.target.piece,combos:[s.target.combo],purpose:"render"});try{const k=await M?.render?.(d.items.find(l=>l.id===m.piece.place)??{id:m.piece.place,kind:s.kind,dir:m.piece.dir,entry:m.piece.file,groups:[]},{root:e.root,prepared:f.prepared,types:[s.type],out:()=>j(e.out,y),params:a,version:m,session:Q,made:he(d.items.find(l=>l.id===m.piece.place),r),onProgress:l=>{V(i,l)},...e.log===void 0?{}:{log:e.log},...e.signal===void 0?{}:{signal:e.signal}})??[{type:s.type,failure:{code:"no-render",message:`${q(s.target)}: its kind (${s.kind}) makes no files.`}}];for(const l of k){if(me(l)){w.push({name:y,piece:s.target.piece,type:s.type,code:l.failure.code,message:l.failure.message,...l.failure.hint?{hint:l.failure.hint}:{}});continue}const oe=await J(e.out,l,{piece:s.target.piece,combo:s.target.combo,key:ce(s.target.combo),format:s.target.format},P);await F(oe),e.log?.(`[${String(++ve)}/${String(u.length)}] ${y} (${oe.seconds.toFixed(1)} s)`)}}finally{g.push(...await m.problems()),B.add(s.target,await m.console()),await m.close(),V(i,1)}}};u.length>0&&e.log?.(`Rendering ${G(u.length,"file")}…`);const ie=(await Promise.allSettled(Array.from({length:exportsAtOnce(u.length)},Me))).find(i=>i.status==="rejected");if(ie)throw ie.reason;T=le([...T,...g])}const xe=n=>d.problems.find(t=>t.level==="error"&&t.where?.file!==void 0&&n.includes(t.where.file)),ne=[];for(const n of O.filter(t=>!v||I(t.item))){const t=xe(ue(d,n.item)),b=L(n.item.kind);t?w.push({name:n.item.id,piece:n.item.id,type:b?.defaults[0]??b?.types[0]??"",code:"check-failed",message:`${t.where?.file??n.item.entry}: ${t.message}`,hint:"Fix it, then render again."}):ne.push(n)}e.signal?.throwIfAborted();for(const{item:n,build:t}of ne){const b=L(n.kind),h=o===void 0?b?.defaults??[]:o.filter(g=>b?.types.includes(g)===!0);if(h.length===0)continue;await X(n.kind,t,h);const u=performance.now(),R=n.id,_=await t.render?.(n,{root:e.root,prepared:f.prepared,types:h,out:g=>j(e.out,`${R}.${g}`),params:a,session:Q,made:he(n,r),...e.log===void 0?{}:{log:e.log},...e.signal===void 0?{}:{signal:e.signal}})??[];for(const g of _)me(g)?w.push({name:n.id,piece:n.id,type:g.type,code:g.failure.code,message:g.failure.message,...g.failure.hint?{hint:g.failure.hint}:{}}):await F(await J(e.out,g,{piece:n.id},u))}return{out:e.out,files:c,failed:w,problems:T,console:B.report(),unindexed:E}}finally{z&&await f.close()}}const we=e=>e.split(Ne).join("/");function Xe(e,r){const o=re(e,r);return o===""?".":o.startsWith("..")||Ce(o)?r:we(o)}async function Ze(e,r,o,a){const p=[];for(const c of o.length>0?o:[void 0])p.push(await Ee({dir:r,session:e,facts:!1,...c===void 0?{}:{piece:c},...a?{combos:[...a]}:{}}));const $=new Set,v=p.flatMap(c=>c.targets).filter(c=>{const w=`${c.piece}\0${c.key}\0${c.format}`;return $.has(w)?!1:($.add(w),!0)}),I=le(p.flatMap(c=>c.problems));return{targets:v,results:p.flatMap(c=>c.results),wholes:p.flatMap(c=>c.wholes),problems:I,errors:I.filter(c=>c.level==="error").length,console:_e(e.consoleLimit,...p.map(c=>c.console))}}function et(e){let r="";return o=>{const a=o.status==="failed"?`Could not index ${o.file}: ${o.message}`:o.message;o.status==="running"&&o.share!==void 0||a!==r&&(r=a,e?.(a))}}
|
|
2
|
+
import{CACHE_DIR as Se}from"@allyhub/formats";import{mkdir as Ie,stat as je,writeFile as Ae}from"node:fs/promises";import{cpus as Le}from"node:os";import{dirname as Pe,isAbsolute as Ce,join as C,relative as ae,sep as Ne}from"node:path";import{itemKindBuild as Y,usesInOrder as Fe}from"@allyhub/build";import{FILE_TYPES as ce,comboKey as de,exportProblem as Oe,pieceIs as Re,pieceNamed as le,versionLabel as q}from"@allyhub/piece";import{runCheck as Ee}from"@allyhub/check";import{ConsolePool as Te,mergeConsole as _e,dedupe as fe,indexNeeds as De,makeIndex as Ke,CheckSession as We,OpenedVersion as ze,keyedStills as Be,ProjectError as A}from"@allyhub/project";import{batchCsv as He,batchRows as Ve}from"./batch.js";import{processFile as Ye}from"./processors.js";import{batchName as qe,checkName as Ge,exportName as pe,exportNames as Je}from"./names.js";export const exportsAtOnce=e=>Math.max(1,Math.min(e,Math.floor(Le().length/4)));const G=(e,r)=>`${String(e)} ${r}${e===1?"":"s"}`,J=(e,r)=>Re({id:e.id,path:e.entry},r);function Qe(e,r){if(e===void 0)return;const o=new Set([...Object.keys(ce),...r.flatMap(c=>c.renders?.types??[])]);for(const c of e)if(!o.has(c))throw new A("bad-type",`Cannot render ${c}.`,"usage",`Types: ${[...o].join(", ")}.`);return[...e]}const Ue=e=>({...e.steps===!0?{steps:!0}:{},...e.pptx==="picture"?{pptx:"picture"}:{}});function me(e,r){return[...e.docs.filter(o=>o.place===r.id).map(o=>o.file),...e.sheets.filter(o=>o.place===r.id).flatMap(o=>o.files)]}async function Q(e,r,o,c){const{files:m,type:$,...v}=r,{piece:I,...l}=o,y=m[0]??e,E=(await Promise.all(m.map(N=>je(N)))).reduce((N,F)=>N+F.size,0);return{files:[...m],...v,name:we(ae(e,y)),path:y,piece:I,type:$,...l,bytes:E,seconds:Math.round((performance.now()-c)/10)/100}}const ue=e=>"failure"in e;export function exportProject(e){return ge(e,new Map)}export const MADE_DIR=`${Se}/made`;const D=(e,r)=>`${e}\0${r}`;function he(e,r){return o=>{const c=e?.uses?.find($=>$.of===o);if(!c)return;const m=r.get(D(c.item,c.type))?.[0];if(m)return c.part===void 0?m.path:m.partFiles?.[c.part]}}async function ge(e,r){const o=Qe(e.types,e.kinds);e.name!==void 0&&Ge(e.name);const c=e.params??{},m=Ue(c),$=e.items??[],v=$.length>0,I=x=>$.some(S=>J(x,S)),l=[],y=[],E=[],N={root:e.root,out:e.out,params:c,...e.log===void 0?{}:{log:e.log},...e.signal===void 0?{}:{signal:e.signal}},F=async x=>{l.push(await Ye(x,e.processors??[],N))},K=()=>We.open({root:e.root,kinds:e.kinds,...e.gpu===void 0?{}:{gpu:e.gpu},...e.consoleLimit===void 0?{}:{consoleLimit:e.consoleLimit}});let p=await K(),W=!0;const U={componentStills:(x,S,d)=>Be(S,{prepared:p.prepared,item:x,combo:d,gpu:p.gpu,withSession:L=>L(p)})},X=new Set,Z=async(x,S,d)=>{X.has(x)||(X.add(x),await S?.ready?.(d,c))};try{const x=p.prepared.items.filter(n=>!v||I(n)),S=Fe(p.prepared.items,x).filter(n=>!r.has(D(n.item.id,n.type)));if(S.length>0){const n=p.prepared.pieces;W=!1,await p.close();for(const t of S){e.signal?.throwIfAborted();const g=n.find(a=>a.place===t.item.id)?.combos[0];e.log?.(`Making ${t.item.id} as ${t.type} first, which another item uses…`);try{const a=await ge({root:e.root,kinds:e.kinds,items:[t.item.id],types:[t.type],out:C(e.root,MADE_DIR),...g===void 0?{}:{combos:[g]},...e.gpu===void 0?{}:{gpu:e.gpu},...e.consoleLimit===void 0?{}:{consoleLimit:e.consoleLimit},...e.index===void 0?{}:{index:e.index},...e.analyses===void 0?{}:{analyses:e.analyses},...e.log===void 0?{}:{log:e.log},...e.signal===void 0?{}:{signal:e.signal}},r);r.set(D(t.item.id,t.type),a.files.filter(u=>u.type===t.type)),y.push(...a.failed)}catch(a){if(e.signal?.aborted===!0)throw a;r.set(D(t.item.id,t.type),[]),y.push({name:t.item.id,piece:t.item.id,type:t.type,code:a instanceof A?a.code:"failed",message:`${t.item.id}, which another item uses, could not be made: ${a.message}`})}}p=await K(),W=!0}const d=p.prepared,L=n=>d.kinds.find(t=>t.id===n)?.renders,O=[];for(const n of d.items){const t=await Y(d.kinds,n);t?.render&&t.onStage!==!0&&O.push({item:n,build:t})}const j=$.filter(n=>!O.some(t=>J(t.item,n)));for(const n of j)if(!d.pieces.some(t=>le({id:t.id,path:t.place},n))){const t=d.items.find(a=>J(a,n)),g=t&&d.problems.filter(a=>a.level==="error"&&(a.piece===t.id||a.where?.file===t.entry||(a.where?.file?.startsWith(`${t.dir}/`)??!1)));throw t&&g&&g.length>0?new A("item-failed",`${t.id} could not be made: ${g.map(a=>a.message).join(" ")}`,"failed","allyhub check lists every problem."):new A("no-item",`No item ${n}.`,"not-found",`Items: ${[...d.pieces.map(a=>a.id),...O.map(a=>a.item.id)].join(", ")||"none"}.`)}const ee=v&&j.length===0,ye=new Set(d.pieces.flatMap(n=>L(n.kind)?.types??[])),te=o?.filter(n=>n in ce||ye.has(n)),be=ee?[]:d.pieces.filter(n=>j.length===0||j.some(t=>le({id:n.id,path:n.place},t))),z=o?.includes("csv")===!0?be.filter(n=>n.matrix!==void 0):[];if(o?.includes("csv")===!0&&j.length>0&&z.length===0)throw new A("bad-type",`${j.join(", ")} has no slots (matrix.slots), so there is no table of ads to write as csv.`,"usage","csv is a batch's table of ads, or a sheet's rows.");let T=[...d.problems];const B=new Te(p.consoleLimit),ke=new Set(O.flatMap(n=>me(d,n.item))),$e=n=>n.where?.file!==void 0&&ke.has(n.where.file),ne=n=>n.filter(t=>t.level==="error"&&!$e(t)).length;if(!ee&&(te?.length!==0||z.length>0)&&(d.pieces.length>0||ne(d.problems)>0)){e.log?.("Checking…");const n=()=>Ze(p,e.root,j,e.combos);let t=await n();const g=e.index===!1?[]:De(t.results);if(g.length>0){const s=await Ke(d.root,g,e.analyses??[],{env:e.env??process.env,onProgress:et(e.log),signal:e.signal});E.push(...s.failed.map(i=>({file:i.need.file,error:i.error}))),s.done.length>0&&(await p.close(),p=await K(),t=await n())}T=t.problems,B.addReport(t.console);const a=ne(t.problems);if(a>0)throw new A("check-failed",`The check found ${G(a,"must-fix problem")}, so nothing is rendered.`,"failed","allyhub check lists them; fix them, then render.");for(const s of z){const i=performance.now(),b=qe(s.id),M=Ve(s,t.wholes,p.prepared.media,Xe(e.root,e.out),e.name);await Ie(Pe(C(e.out,b)),{recursive:!0}),await Ae(C(e.out,b),He(M));const P=t.targets.filter(h=>h.piece===s.id).length;M.length<P&&e.log?.(`${b}: ${G(P-M.length,"ad")} not listed, which did not load (allyhub check says why).`),await F(await Q(e.out,{type:"csv",files:[C(e.out,b)]},{piece:s.id},i))}const u=[],R=new Set;for(const s of t.targets){const i=p.prepared.pieces.find(k=>k.id===s.piece);if(!i)continue;if(!v&&i.options.deliverable===!1){R.add(s.piece);continue}const b=L(i.kind),M={kind:i.kind,types:b?.types??[]},P=t.wholes.find(k=>k.piece===s.piece&&de(k.combo)===s.key&&k.format===s.format)?.speaks??!1,h={piece:s.piece,output:s.output,combo:s.combo,format:s.format,...s.id===void 0?{}:{id:s.id}};for(const k of te??b?.defaults??[]){const f=Oe({...M,speech:P},k);if(!(f?.code==="bad_type"&&!v)){if(f&&f.code!=="no_speech")throw new A("bad-type",`${q(h)}: ${f.message}`,"usage",f.hint);u.push({target:h,kind:i.kind,type:k,...f?{refused:{name:pe(h,k,m),piece:h.piece,type:k,code:"no-speech",message:`${q(h)}: ${f.message}`,...f.hint?{hint:f.hint}:{}}}:{}})}}}R.size>0&&e.log?.(`Not rendered, shown only inside another video (deliverable: false): ${[...R].join(", ")}. Name one to render it.`);for(const s of new Set(u.map(i=>i.kind)))await Z(s,await Y(d.kinds,{kind:s}),u.filter(i=>i.kind===s).map(i=>i.type));const _=Je(u,e.name,m);u.forEach((s,i)=>{s.refused&&(s.refused.name=_[i]??s.refused.name)});const w=[],H=new Array(u.length).fill(0),V=(s,i)=>{H[s]=Math.max(H[s]??0,i),e.onProgress?.(H.reduce((b,M)=>b+M,0)/u.length)};let se=0,ve=0;const Me=async()=>{for(let s=se++;s<u.length;s=se++){e.signal?.throwIfAborted();const i=u[s];if(!i)continue;const b=_[s]??pe(i.target,i.type,m);if(i.refused){y.push(i.refused),V(s,1);continue}const M=await Y(d.kinds,{kind:i.kind}),P=performance.now(),h=await ze.open({root:e.root,session:p,item:i.target.piece,combos:[i.target.combo],purpose:"render"});try{const k=await M?.render?.(d.items.find(f=>f.id===h.piece.place)??{id:h.piece.place,kind:i.kind,dir:h.piece.dir,entry:h.piece.file,groups:[]},{root:e.root,prepared:p.prepared,types:[i.type],out:()=>C(e.out,b),params:c,version:h,session:U,made:he(d.items.find(f=>f.id===h.piece.place),r),onProgress:f=>{V(s,f)},...e.log===void 0?{}:{log:e.log},...e.signal===void 0?{}:{signal:e.signal}})??[{type:i.type,failure:{code:"no-render",message:`${q(i.target)}: its kind (${i.kind}) makes no files.`}}];for(const f of k){if(ue(f)){y.push({name:b,piece:i.target.piece,type:i.type,code:f.failure.code,message:f.failure.message,...f.failure.hint?{hint:f.failure.hint}:{}});continue}const re=await Q(e.out,f,{piece:i.target.piece,combo:i.target.combo,key:de(i.target.combo),format:i.target.format},P);await F(re),e.log?.(`[${String(++ve)}/${String(u.length)}] ${b} (${re.seconds.toFixed(1)} s)`)}}finally{w.push(...await h.problems()),B.add(i.target,await h.console()),await h.close(),V(s,1)}}};u.length>0&&e.log?.(`Rendering ${G(u.length,"file")}…`);const oe=(await Promise.allSettled(Array.from({length:exportsAtOnce(u.length)},Me))).find(s=>s.status==="rejected");if(oe)throw oe.reason;T=fe([...T,...w])}const xe=n=>d.problems.find(t=>t.level==="error"&&t.where?.file!==void 0&&n.includes(t.where.file)),ie=[];for(const n of O.filter(t=>!v||I(t.item))){const t=xe(me(d,n.item)),g=L(n.item.kind);t?y.push({name:n.item.id,piece:n.item.id,type:g?.defaults[0]??g?.types[0]??"",code:"check-failed",message:`${t.where?.file??n.item.entry}: ${t.message}`,hint:"Fix it, then render again."}):ie.push(n)}e.signal?.throwIfAborted();for(const{item:n,build:t}of ie){const g=L(n.kind),a=o===void 0?g?.defaults??[]:o.filter(w=>g?.types.includes(w)===!0);if(a.length===0)continue;await Z(n.kind,t,a);const u=performance.now(),R=n.id,_=await t.render?.(n,{root:e.root,prepared:p.prepared,types:a,out:w=>C(e.out,`${R}.${w}`),params:c,session:U,made:he(n,r),...e.log===void 0?{}:{log:e.log},...e.signal===void 0?{}:{signal:e.signal}})??[];for(const w of _)ue(w)?y.push({name:n.id,piece:n.id,type:w.type,code:w.failure.code,message:w.failure.message,...w.failure.hint?{hint:w.failure.hint}:{}}):await F(await Q(e.out,w,{piece:n.id},u))}return{out:e.out,files:l,failed:y,problems:T,console:B.report(),unindexed:E}}finally{W&&await p.close()}}const we=e=>e.split(Ne).join("/");function Xe(e,r){const o=ae(e,r);return o===""?".":o.startsWith("..")||Ce(o)?r:we(o)}async function Ze(e,r,o,c){const m=[];for(const l of o.length>0?o:[void 0])m.push(await Ee({dir:r,session:e,facts:!1,...l===void 0?{}:{piece:l},...c?{combos:[...c]}:{}}));const $=new Set,v=m.flatMap(l=>l.targets).filter(l=>{const y=`${l.piece}\0${l.key}\0${l.format}`;return $.has(y)?!1:($.add(y),!0)}),I=fe(m.flatMap(l=>l.problems));return{targets:v,results:m.flatMap(l=>l.results),wholes:m.flatMap(l=>l.wholes),problems:I,errors:I.filter(l=>l.level==="error").length,console:_e(e.consoleLimit,...m.map(l=>l.console))}}function et(e){let r="";return o=>{const c=o.status==="failed"?`Could not index ${o.file}: ${o.message}`:o.message;o.status==="running"&&o.share!==void 0||c!==r&&(r=c,e?.(c))}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{CORE as N,declareRules as _,ruleOf as v}from"@allyhub/diagnostics";import{STAGE_LOADS as C}from"@allyhub/formats";import{LOCALES as R}from"@allyhub/i18n";import{PROJECT_TOOLS as A,RuntimeSchema as L,StageFolderSchema as M,StageLoadSchema as W,known as V}from"@allyhub/protocol";import{z as n}from"zod";import{KEY as D,MENUS as K,SETTING_TYPES as j,VIEW_CONTAINERS as p,inMenuBar as U,settingProblem as O,whenProblem as G}from"./shell.js";export const definePoint=e=>e,WordsSchema=n.record(n.string(),n.string().min(1));export function missingLocales(e){return R.filter(t=>!(t in e))}export const wordIn=(e,t)=>e[t]??e.en??Object.values(e)[0]??"";const h=n.string().regex(/^(@[a-z0-9][\w.-]*\/)?[a-z0-9][\w.-]*(\/[\w.-]+)*$/u);function b(e,t,i){if(typeof e!="object"||e===null||Array.isArray(e))return`is not an object of ${t}.`;const o=[];for(const[s,a]of Object.entries(e)){if(!Array.isArray(a))return`.${s} is not a list.`;a.forEach((d,u)=>{o.push([`.${s}[${String(u)}]`,typeof d=="object"&&d!==null?{...d,[i]:s}:d])})}return o}const y=n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),f=n.string().superRefine((e,t)=>{const i=G(e);i!==void 0&&t.addIssue({code:"custom",message:i})}),H=n.object({id:y,title:WordsSchema,enablement:f.optional(),place:n.enum(["workspace","ui"]).default("workspace")});export const COMMANDS=definePoint({id:"commands",about:"Commands a person runs from the palette, the menus and the keys.",entry:H,key:e=>e.id,activation:(e,t)=>e.place===t?[`onCommand:${e.id}`]:[],check:e=>{const t=missingLocales(e.title);return t.length>0?[`${e.id}'s title has no words in ${t.join(", ")}.`]:[]}});const J=n.object({command:y,key:n.string().regex(D,{message:"A key is modifiers among Mod, Shift and Alt, then a capital letter, a digit, a sign or a key's name (Mod+Shift+H)."}),when:f.optional()});export const KEYBINDING_POINT=definePoint({id:"keybindings",about:"Keys that run commands, each while its when clause holds.",entry:J});const B=n.object({menu:n.string().min(1),command:y,when:f.optional(),group:n.string().min(1).optional()});export const MENU_POINT=definePoint({id:"menus",about:`Commands in menus, by menu (${K.join(", ")}), each while its when clause holds.`,entry:B,entries:e=>b(e,"menus","menu"),check:e=>U(e.menu)?[`${e.command} is not placed in ${e.menu}: Studio's menu bar shows the core's entries alone yet.`]:[]});const x="Studio places no extension's view yet; its work card and its sidebar show the core's alone.",F=n.object({location:n.string().min(1),id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),title:WordsSchema,icon:n.string().min(1).optional()});export const VIEW_CONTAINER_POINT=definePoint({id:"viewsContainers",about:`Containers of views, by where each goes; the shell gives its own (${p.join(", ")}) and takes none of an extension's yet.`,entry:F,entries:e=>b(e,"places","location"),key:e=>e.id,check:e=>{const t=missingLocales(e.title);return[...t.length>0?[`${e.id}'s title has no words in ${t.join(", ")}.`]:[],`the container ${e.id} is not placed: ${x}`]}});const Y=n.object({container:n.string().min(1),id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),name:WordsSchema,when:f.optional(),icon:n.string().min(1).optional(),module:h.optional()});export const VIEW_POINT=definePoint({id:"views",about:`Views, by the container each is in (${p.join(", ")}): a page in a frame, as an editor is.`,entry:Y,entries:e=>b(e,"containers","container"),key:e=>e.id,check:e=>{const t=missingLocales(e.name);return[...p.includes(e.container)?[]:[`${e.container} is not a container: a view goes in ${p.join(" or ")}.`],...t.length>0?[`${e.id}'s name has no words in ${t.join(", ")}.`]:[],...e.module===void 0?[`${e.id} names no module: a view is a page's module, as an editor is.`]:[],`the view ${e.id} is not placed: ${x}`]}});const S=n.union([n.string(),n.boolean(),n.number()]),Z=n.object({type:n.string().min(1),default:S.optional(),title:WordsSchema,description:WordsSchema.optional(),enum:n.array(S).min(1).optional(),enumItemLabels:n.array(WordsSchema).optional(),enumDescriptions:n.array(WordsSchema).optional(),minimum:n.number().optional(),maximum:n.number().optional(),minLength:n.number().int().min(0).optional(),order:n.number().int().optional()}),X=n.object({title:WordsSchema,order:n.number().int().optional(),properties:n.record(n.string(),Z)});function q(e,t){const i=[],o=(s,a)=>{const d=missingLocales(a);d.length>0&&i.push(`${e}'s ${s} has no words in ${d.join(", ")}.`)};return o("title",t.title),t.description!==void 0&&o("description",t.description),t.enumItemLabels?.forEach((s,a)=>{o(`label of choice ${String(a+1)}`,s)}),t.enumDescriptions?.forEach((s,a)=>{o(`description of choice ${String(a+1)}`,s)}),i}export const CONFIGURATION_POINT=definePoint({id:"configuration",about:"Settings: a title and JSON Schema properties by key, drawn as rows in the shell and read through allyhub.settings.",entry:X,entries:e=>Array.isArray(e)?e.map((t,i)=>[`[${String(i)}]`,t]):typeof e=="object"&&e!==null?[["",e]]:"is not a configuration or a list of them.",check:(e,t)=>{const i=[],o=missingLocales(e.title);o.length>0&&i.push(`a configuration's title has no words in ${o.join(", ")}.`);for(const[s,a]of Object.entries(e.properties)){if((!s.startsWith(`${t}.`)||s===`${t}.`)&&i.push(`${s} is not named by its extension: a setting's key is ${t}. and a name.`),i.push(...q(s,a)),!j.includes(a.type)){i.push(`${s} is of type ${a.type}: a shell draws ${j.join(", ")}.`);continue}const d={...a,type:a.type};for(const[u,m]of(a.enum??[]).entries()){const c=O({type:d.type},m);c!==void 0&&i.push(`${s}'s choice ${String(u+1)}: ${c}`)}if(a.default!==void 0){const u=O(d,a.default);u!==void 0&&i.push(`${s}'s default: ${u}`)}for(const u of["enumItemLabels","enumDescriptions"]){const m=a[u];m!==void 0&&m.length!==(a.enum?.length??0)&&i.push(`${s}'s ${u} are ${String(m.length)}, and its choices ${String(a.enum?.length??0)}.`)}}return i}});const Q=n.object({name:n.string().regex(/^[a-z0-9][a-z0-9_-]*$/u),title:n.string().min(1),description:n.string().min(1),inputSchema:n.record(n.string(),n.unknown()),annotations:n.object({readOnlyHint:n.boolean(),destructiveHint:n.boolean(),idempotentHint:n.boolean(),openWorldHint:n.boolean()}).partial().optional()});export const WINDOW_TOOL_POINT=definePoint({id:"windowTools",about:"Tools an agent calls that act in the person's window, during its own turn: a name, a description, a JSON Schema of the input.",entry:Q,key:e=>e.name,check:e=>{const t=I(e.inputSchema);return[...t===void 0?[]:[`${e.name}'s inputSchema ${t}`],`the window tool ${e.name} is not given: Studio's MCP server gives the core's tools alone yet.`]}});const ee=n.object({name:n.string().regex(/^[a-z0-9][a-z0-9-]*( [a-z0-9][a-z0-9-]*){0,2}$/u),summary:n.string().min(1),work:n.string().min(1).optional(),module:n.string().min(1)});export const CLI_COMMANDS=definePoint({id:"cliCommands",about:"Commands the agent runs, `allyhub <name>`, listed in `allyhub help` before their module is loaded.",entry:ee,key:e=>e.name});const ne=n.object({name:n.string().regex(/^[a-z0-9][a-z0-9.-]*\/[a-z][a-z0-9-]*$/u),source:n.enum(["project","asleep","machine"]),does:n.union([n.object({command:n.string().min(1)}),n.object({files:n.string().min(1)}),n.object({person:n.string().min(1)})]),module:n.string().min(1),readView:h.optional()});export const PROJECT_TOOL_POINT=definePoint({id:"projectTools",about:"Project tools: what an editor asks of a project through tools/call, each with the command or files that do the same for the agent.",entry:ne,key:e=>e.name,check:(e,t)=>{if(Object.hasOwn(A,e.name))return[`${e.name} is the core's own project tool.`];const i=e.name.slice(0,e.name.lastIndexOf("/"));return z(t)||i===t?[]:[`the project tool ${e.name} does not start with its extension's id (${t}/…).`]}});const te=n.object({folder:M,loads:n.array(W),module:n.string().min(1)});export const STAGE_ROUTE_POINT=definePoint({id:"stageRoutes",about:"Stage routes: a folder of the stage's tree an extension answers, what the stage's pages load from it, and what a snapshot records of it.",entry:te,key:e=>e.folder});const oe=n.object({name:n.string().min(1),only:n.array(n.string().min(1)).min(1),values:n.array(n.string().min(1)).optional()}),ie=n.object({files:n.record(n.string().min(1),n.string()),entry:n.string().min(1)}),w=e=>!e.startsWith("/")&&!e.includes("\\")&&e.split("/").every(t=>t!==""&&t!=="."&&t!==".."),se=n.object({id:n.string().regex(/^[a-z][a-z0-9-]*$/u),name:WordsSchema,plural:WordsSchema.optional(),noun:n.string().min(1),part:n.object({noun:n.string().min(1),plural:n.string().min(1)}).optional(),pages:n.boolean().optional(),editor:n.string().min(1).optional(),icon:n.string().min(1).optional(),color:n.string().min(1).optional(),exports:n.object({types:n.array(n.string().min(1)).min(1),extras:n.array(n.string().min(1)).default([]),options:n.array(oe).default([]),names:n.record(n.string().min(1),WordsSchema).default({})}).optional(),renders:n.object({types:n.array(n.string().min(1)).min(1),defaults:n.array(n.string().min(1)).min(1)}).optional(),starter:ie.optional(),share:n.boolean().optional(),build:n.string().min(1).optional()});export const KIND_POINT=definePoint({id:"kinds",about:"Kinds of item: their names, their editor, their icon and colour, what they export and render, what a new one starts as, whether one is shared alone.",entry:se,key:e=>e.id,activation:(e,t)=>t==="workspace"?[`onKind:${e.id}`]:[],check:e=>{const t=[],i=missingLocales(e.name);i.length>0&&t.push(`${e.id}'s name has no words in ${i.join(", ")}.`);const o=e.plural&&missingLocales(e.plural);o&&o.length>0&&t.push(`${e.id}'s plural has no words in ${o.join(", ")}.`);for(const[a,d]of Object.entries(e.exports?.names??{})){const u=missingLocales(d);u.length>0&&t.push(`${e.id}'s name for its export ${a} has no words in ${u.join(", ")}.`)}const s=Object.keys(e.starter?.files??{});for(const a of s.filter(d=>!w(d)))t.push(`${e.id}'s starter file ${a} is not inside the new item's folder.`);return e.starter&&!s.includes(e.starter.entry)&&t.push(`${e.id}'s starter's entry ${e.starter.entry} is none of its files.`),t}});const ae=n.object({id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),kinds:n.array(n.string().min(1)).default([]),files:n.array(n.string().min(1)).default([]),noun:n.string().min(1).optional(),name:WordsSchema.optional(),plural:WordsSchema.optional(),icon:n.string().min(1).optional(),color:n.string().min(1).optional(),check:n.string().min(1).optional(),priority:n.enum(["default","option"]).default("default"),module:h.optional(),place:n.record(n.string(),n.unknown()).optional()});function I(e){if(e.type!=="object")return'is not of "type": "object".';try{n.fromJSONSchema(e)}catch(t){return`is not a JSON Schema zod reads: ${t instanceof Error?t.message:String(t)}.`}}export const EDITOR_POINT=definePoint({id:"editors",about:"Editors: the kinds each opens, or the files it opens by their names (glob patterns, with their name, sign and check), whether it is their default, the module a page imports for it, and the schema of where a person is in what it opens.",entry:ae,key:e=>e.id,activation:(e,t)=>t==="ui"?[`onEditor:${e.id}`]:[],check:e=>{const t=[],i=e.place&&I(e.place);if(i!==void 0&&t.push(`${e.id}'s place ${i}`),e.kinds.length===0&&e.files.length===0&&t.push(`${e.id} opens no kind and no files.`),e.kinds.length>0&&e.files.length>0&&t.push(`${e.id} opens kinds and files: an editor opens one or the other.`),e.files.length>0){e.noun===void 0&&t.push(`${e.id} opens files and has no noun for them.`),e.name===void 0&&t.push(`${e.id} opens files and has no name for them.`);for(const[o,s]of[["name",e.name],["plural",e.plural]]){const a=s===void 0?[]:missingLocales(s);a.length>0&&t.push(`${e.id}'s ${o} has no words in ${a.join(", ")}.`)}for(const o of e.files)(o.startsWith("/")||o.split("/").includes(".."))&&t.push(`${e.id}'s pattern ${o} is not of project paths (no leading /, no ..).`)}else e.check!==void 0&&t.push(`${e.id} has a check and opens no files: a kind's items are checked by its build.`);return t}});export function fileEditorTable(e,t=(i,o)=>o){return e.flatMap(({extension:i,entry:o})=>o.files.length===0||o.name===void 0||o.noun===void 0?[]:[{id:o.id,files:[...o.files],noun:o.noun,name:{...o.name},...o.plural===void 0?{}:{plural:{...o.plural}},...o.icon===void 0?{}:{icon:o.icon},...o.color===void 0?{}:{color:o.color},...o.check===void 0?{}:{check:t(i,o.check)},extension:i}])}const re=n.object({id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),types:n.array(n.string().regex(/^[a-z]+\/(?:\*|[\w.+-]+)$/u)).min(1),module:h});export const PREVIEW_RENDERER_POINT=definePoint({id:"previewRenderers",about:"Preview renderers: how a file of a media type is drawn wherever one is shown (a canvas's node); each its media types and the module a page imports for it.",entry:re,key:e=>e.id});const z=e=>e.startsWith("allyhub.");function $(e,t,i){return z(e)||t.startsWith(`${e}/`)?[]:[`the ${i} ${t} does not start with its extension's id (${e}/…).`]}const de=n.object({code:n.string().regex(/^(AK-[A-Z]\d{3}|[a-z0-9][a-z0-9-]*\.[a-z0-9][a-z0-9-]*\/[A-Za-z0-9][\w.-]*)$/u),level:n.enum(["error","warn"]),rule:n.string().min(1)});export const RULE_POINT=definePoint({id:"rules",about:"Rules: the codes an extension reports problems under, each with its level and what it says.",entry:de,key:e=>e.code,check:(e,t)=>{const i=v(e.code);return[...$(t,e.code,"rule"),...i&&i.extension!==t?[`${e.code} is ${i.extension===N?"the core's":`${i.extension}'s`} rule already.`]:[]]},added:(e,t)=>_(t,[e])});const le=n.object({kind:n.string().regex(/^([a-z][a-z0-9-]*|[a-z0-9][a-z0-9-]*\.[a-z0-9][a-z0-9-]*\/[a-z][a-z0-9-]*)$/u),about:n.string().min(1)});export const FACT_POINT=definePoint({id:"facts",about:"Kinds of fact: what an extension measures for the agent to judge, each with what it says.",entry:le,key:e=>e.kind,check:(e,t)=>$(t,e.kind,"kind of fact")});const ce=n.object({module:n.string().min(1)});export const BUILD_PLUGINS_POINT=definePoint({id:"buildPlugins",about:"Build plugins: a module whose Vite plugins and lent packages every stage bundle of a project takes.",entry:ce});const k=n.string().min(1),ue=n.object({name:n.string().regex(/^[a-z][a-z0-9-]*$/u),summary:n.string().min(1),module:k});export const INSPECT_VIEW_POINT=definePoint({id:"inspectViews",about:"Views of `allyhub inspect <name>`: a measurement now, listed in `allyhub help` before its module is loaded.",entry:ue,key:e=>e.name});const me=n.object({id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),types:n.array(n.string().min(1)).min(1),module:k});export const EXPORT_PROCESSOR_POINT=definePoint({id:"exportProcessors",about:"Export processors: a step run on every file of the types it names that an export makes.",entry:me,key:e=>e.id,check:(e,t)=>e.id.startsWith(`${t}.`)?[]:[`the processor ${e.id} does not start with its extension's id (${t}.…).`]});const pe=n.object({id:n.string().regex(/^([a-z][a-z0-9-]*|[a-z0-9][a-z0-9-]*\.[a-z0-9][a-z0-9-]*\/[a-z][a-z0-9-]*)$/u),about:n.string().min(1),what:n.string().min(1),media:n.array(n.enum(["image","audio","video"])).min(1),runtimes:n.array(n.string().regex(/^[a-z0-9][a-z0-9-]*$/u)).default([]),module:k});export const MEDIA_ANALYSIS_POINT=definePoint({id:"mediaAnalyses",about:"Media analyses: what the media index measures of a file once, by its content, when a version needs it.",entry:pe,key:e=>e.id,check:(e,t)=>$(t,e.id,"media analysis")});const he=n.object({id:n.string().regex(/^[a-z0-9][a-z0-9-]*$/u),...L.shape});export const RUNTIME_POINT=definePoint({id:"runtimes",about:"Runtimes: a tool's pinned download (a program, a model), fetched when first needed, checked, cached.",entry:he,key:e=>e.id}),SKILL_NAME=/^(?=.{1,64}$)[a-z0-9]+(-[a-z0-9]+)*$/u;const g=e=>e.replace(/^\.\//u,"").replace(/\/+$/u,""),fe=n.object({path:n.string().min(1)});export const SKILL_POINT=definePoint({id:"skills",about:"Skills for the agent: a folder laid out as an Agent Skill's, a skill of its own or files of the skill of its name.",entry:fe,check:e=>{const t=g(e.path);if(!w(t))return[`the skill folder ${e.path} is not a folder inside its package.`];const i=t.slice(t.lastIndexOf("/")+1);return SKILL_NAME.test(i)?[]:[`the skill folder ${e.path} is not named as a skill is (lower-case letters, digits and hyphens, at most 64).`]}});const T=n.record(n.string(),n.string()),ge=n.union([n.object({name:n.string().regex(/^[a-z0-9][a-z0-9_-]*$/u),command:n.string().min(1),args:n.array(n.string()).default([]),env:T.default({}),cwd:n.string().min(1).optional()}),n.object({name:n.string().regex(/^[a-z0-9][a-z0-9_-]*$/u),url:n.url(),headers:T.default({})})]);export const MCP_SERVER_POINT=definePoint({id:"mcpServers",about:"MCP servers: a local program or an address that gives an agent tools, defined as .mcp.json defines one.",entry:ge,key:e=>e.name,check:e=>"cwd"in e&&e.cwd!==void 0&&!w(g(e.cwd))?[`the MCP server ${e.name}'s cwd is not a folder inside its package.`]:[]}),CORE_POINTS=[COMMANDS,KEYBINDING_POINT,MENU_POINT,VIEW_CONTAINER_POINT,VIEW_POINT,CONFIGURATION_POINT,WINDOW_TOOL_POINT,CLI_COMMANDS,KIND_POINT,EDITOR_POINT,PREVIEW_RENDERER_POINT,RULE_POINT,FACT_POINT,BUILD_PLUGINS_POINT,PROJECT_TOOL_POINT,STAGE_ROUTE_POINT,INSPECT_VIEW_POINT,EXPORT_PROCESSOR_POINT,MEDIA_ANALYSIS_POINT,RUNTIME_POINT,SKILL_POINT,MCP_SERVER_POINT];export function kindTable(e,t=(d,u)=>u,i=[],o=[],s=[],a=()=>{}){const d=c=>{const r=i.filter(l=>l.extension===c).map(l=>t(c,l.entry.module));return r.length>0?r:void 0},u=c=>{const r=o.filter(l=>l.extension===c).map(({entry:l})=>({name:l.name,source:l.source,does:l.does,module:t(c,l.module),extension:c}));return r.length>0?r:void 0},m=c=>{const r=s.filter(l=>l.extension===c).map(({entry:l})=>({folder:l.folder,loads:l.loads.filter(P=>V(C,P)),module:t(c,l.module),extension:c}));return r.length>0?r:void 0};return e.map(({extension:c,entry:r})=>({id:r.id,editor:r.editor,noun:r.noun,part:r.part,...r.pages===!0?{pages:!0}:{},name:r.name,plural:r.plural,icon:r.icon,color:r.color,exports:r.exports&&{types:r.exports.types,extras:r.exports.extras,options:r.exports.options.map(l=>({name:l.name,only:l.only,...l.values===void 0?{}:{values:l.values}})),...Object.keys(r.exports.names).length===0?{}:{names:r.exports.names}},renders:r.renders&&{types:r.renders.types,defaults:r.renders.defaults},starter:r.starter&&{files:{...r.starter.files},entry:r.starter.entry},share:r.share,build:r.build===void 0?void 0:t(c,r.build),buildPlugins:d(c),projectTools:u(c),stageRoutes:m(c),points:a(c),extension:c}))}export const inspectViewTable=(e,t)=>e.map(({extension:i,entry:o})=>({name:o.name,summary:o.summary,module:t(i,o.module),extension:i})),cliCommandTable=(e,t)=>e.map(({extension:i,entry:o})=>({name:o.name,summary:o.summary,...o.work===void 0?{}:{work:o.work},module:t(i,o.module),extension:i})),processorTable=(e,t)=>e.map(({extension:i,entry:o})=>({id:o.id,types:o.types,module:t(i,o.module),extension:i})),analysisTable=(e,t)=>e.map(({extension:i,entry:o})=>({id:o.id,about:o.about,what:o.what,media:o.media,runtimes:o.runtimes,module:t(i,o.module),extension:i})),skillTable=(e,t)=>e.map(({extension:i,entry:o})=>{const s=g(o.path);return{name:s.slice(s.lastIndexOf("/")+1),folder:t(i,s),extension:i}});const E=(e,t)=>e.replaceAll("${PLUGIN_ROOT}",t);export const mcpServerTable=(e,t,i)=>e.map(({extension:o,entry:s})=>{if("url"in s)return{name:s.name,url:s.url,headers:{...s.headers},extension:o};const a=t(o);return{name:s.name,command:E(s.command,a),args:s.args.map(d=>E(d,a)),env:Object.fromEntries(Object.entries(s.env).map(([d,u])=>[d,E(u,a)])),cwd:s.cwd===void 0?a:i(o,g(s.cwd)),extension:o}});
|
|
2
|
+
import{CORE as _,declareRules as v,ruleOf as C}from"@allyhub/diagnostics";import{STAGE_LOADS as R}from"@allyhub/formats";import{LOCALES as A}from"@allyhub/i18n";import{PROJECT_TOOLS as L,RuntimeSchema as M,StageFolderSchema as W,StageLoadSchema as V,known as D}from"@allyhub/protocol";import{z as n}from"zod";import{KEY as K,MENUS as U,SETTING_TYPES as E,VIEW_CONTAINERS as p,inMenuBar as G,settingProblem as O,whenProblem as H}from"./shell.js";export const definePoint=e=>e,WordsSchema=n.record(n.string(),n.string().min(1));export function missingLocales(e){return A.filter(t=>!(t in e))}export const wordIn=(e,t)=>e[t]??e.en??Object.values(e)[0]??"";const h=n.string().regex(/^(@[a-z0-9][\w.-]*\/)?[a-z0-9][\w.-]*(\/[\w.-]+)*$/u);function b(e,t,i){if(typeof e!="object"||e===null||Array.isArray(e))return`is not an object of ${t}.`;const o=[];for(const[s,a]of Object.entries(e)){if(!Array.isArray(a))return`.${s} is not a list.`;a.forEach((d,u)=>{o.push([`.${s}[${String(u)}]`,typeof d=="object"&&d!==null?{...d,[i]:s}:d])})}return o}const y=n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),f=n.string().superRefine((e,t)=>{const i=H(e);i!==void 0&&t.addIssue({code:"custom",message:i})}),J=n.object({id:y,title:WordsSchema,enablement:f.optional(),place:n.enum(["workspace","ui"]).default("workspace")});export const COMMANDS=definePoint({id:"commands",about:"Commands a person runs from the palette, the menus and the keys.",entry:J,key:e=>e.id,activation:(e,t)=>e.place===t?[`onCommand:${e.id}`]:[],check:e=>{const t=missingLocales(e.title);return t.length>0?[`${e.id}'s title has no words in ${t.join(", ")}.`]:[]}});const B=n.object({command:y,key:n.string().regex(K,{message:"A key is modifiers among Mod, Shift and Alt, then a capital letter, a digit, a sign or a key's name (Mod+Shift+H)."}),when:f.optional()});export const KEYBINDING_POINT=definePoint({id:"keybindings",about:"Keys that run commands, each while its when clause holds.",entry:B});const F=n.object({menu:n.string().min(1),command:y,when:f.optional(),group:n.string().min(1).optional()});export const MENU_POINT=definePoint({id:"menus",about:`Commands in menus, by menu (${U.join(", ")}), each while its when clause holds.`,entry:F,entries:e=>b(e,"menus","menu"),check:e=>G(e.menu)?[`${e.command} is not placed in ${e.menu}: Studio's menu bar shows the core's entries alone yet.`]:[]});const x="Studio places no extension's view yet; its work card and its sidebar show the core's alone.",Y=n.object({location:n.string().min(1),id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),title:WordsSchema,icon:n.string().min(1).optional()});export const VIEW_CONTAINER_POINT=definePoint({id:"viewsContainers",about:`Containers of views, by where each goes; the shell gives its own (${p.join(", ")}) and takes none of an extension's yet.`,entry:Y,entries:e=>b(e,"places","location"),key:e=>e.id,check:e=>{const t=missingLocales(e.title);return[...t.length>0?[`${e.id}'s title has no words in ${t.join(", ")}.`]:[],`the container ${e.id} is not placed: ${x}`]}});const Z=n.object({container:n.string().min(1),id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),name:WordsSchema,when:f.optional(),icon:n.string().min(1).optional(),module:h.optional()});export const VIEW_POINT=definePoint({id:"views",about:`Views, by the container each is in (${p.join(", ")}): a page in a frame, as an editor is.`,entry:Z,entries:e=>b(e,"containers","container"),key:e=>e.id,check:e=>{const t=missingLocales(e.name);return[...p.includes(e.container)?[]:[`${e.container} is not a container: a view goes in ${p.join(" or ")}.`],...t.length>0?[`${e.id}'s name has no words in ${t.join(", ")}.`]:[],...e.module===void 0?[`${e.id} names no module: a view is a page's module, as an editor is.`]:[],`the view ${e.id} is not placed: ${x}`]}});const S=n.union([n.string(),n.boolean(),n.number()]),X=n.object({type:n.string().min(1),default:S.optional(),title:WordsSchema,description:WordsSchema.optional(),enum:n.array(S).min(1).optional(),enumItemLabels:n.array(WordsSchema).optional(),enumDescriptions:n.array(WordsSchema).optional(),minimum:n.number().optional(),maximum:n.number().optional(),minLength:n.number().int().min(0).optional(),order:n.number().int().optional()}),q=n.object({title:WordsSchema,order:n.number().int().optional(),properties:n.record(n.string(),X)});function Q(e,t){const i=[],o=(s,a)=>{const d=missingLocales(a);d.length>0&&i.push(`${e}'s ${s} has no words in ${d.join(", ")}.`)};return o("title",t.title),t.description!==void 0&&o("description",t.description),t.enumItemLabels?.forEach((s,a)=>{o(`label of choice ${String(a+1)}`,s)}),t.enumDescriptions?.forEach((s,a)=>{o(`description of choice ${String(a+1)}`,s)}),i}export const CONFIGURATION_POINT=definePoint({id:"configuration",about:"Settings: a title and JSON Schema properties by key, drawn as rows in the shell and read through allyhub.settings.",entry:q,entries:e=>Array.isArray(e)?e.map((t,i)=>[`[${String(i)}]`,t]):typeof e=="object"&&e!==null?[["",e]]:"is not a configuration or a list of them.",check:(e,t)=>{const i=[],o=missingLocales(e.title);o.length>0&&i.push(`a configuration's title has no words in ${o.join(", ")}.`);for(const[s,a]of Object.entries(e.properties)){if((!s.startsWith(`${t}.`)||s===`${t}.`)&&i.push(`${s} is not named by its extension: a setting's key is ${t}. and a name.`),i.push(...Q(s,a)),!E.includes(a.type)){i.push(`${s} is of type ${a.type}: a shell draws ${E.join(", ")}.`);continue}const d={...a,type:a.type};for(const[u,m]of(a.enum??[]).entries()){const c=O({type:d.type},m);c!==void 0&&i.push(`${s}'s choice ${String(u+1)}: ${c}`)}if(a.default!==void 0){const u=O(d,a.default);u!==void 0&&i.push(`${s}'s default: ${u}`)}for(const u of["enumItemLabels","enumDescriptions"]){const m=a[u];m!==void 0&&m.length!==(a.enum?.length??0)&&i.push(`${s}'s ${u} are ${String(m.length)}, and its choices ${String(a.enum?.length??0)}.`)}}return i}});const ee=n.object({name:n.string().regex(/^[a-z0-9][a-z0-9_-]*$/u),title:n.string().min(1),description:n.string().min(1),inputSchema:n.record(n.string(),n.unknown()),annotations:n.object({readOnlyHint:n.boolean(),destructiveHint:n.boolean(),idempotentHint:n.boolean(),openWorldHint:n.boolean()}).partial().optional()});export const WINDOW_TOOL_POINT=definePoint({id:"windowTools",about:"Tools an agent calls that act in the person's window, during its own turn: a name, a description, a JSON Schema of the input.",entry:ee,key:e=>e.name,check:e=>{const t=z(e.inputSchema);return[...t===void 0?[]:[`${e.name}'s inputSchema ${t}`],`the window tool ${e.name} is not given: Studio's MCP server gives the core's tools alone yet.`]}});const ne=n.object({name:n.string().regex(/^[a-z0-9][a-z0-9-]*( [a-z0-9][a-z0-9-]*){0,2}$/u),summary:n.string().min(1),work:n.string().min(1).optional(),module:n.string().min(1)});export const CLI_COMMANDS=definePoint({id:"cliCommands",about:"Commands the agent runs, `allyhub <name>`, listed in `allyhub help` before their module is loaded.",entry:ne,key:e=>e.name});const te=n.object({name:n.string().regex(/^[a-z0-9][a-z0-9.-]*\/[a-z][a-z0-9-]*$/u),source:n.enum(["project","asleep","machine"]),does:n.union([n.object({command:n.string().min(1)}),n.object({files:n.string().min(1)}),n.object({person:n.string().min(1)})]),module:n.string().min(1),readView:h.optional()});export const PROJECT_TOOL_POINT=definePoint({id:"projectTools",about:"Project tools: what an editor asks of a project through tools/call, each with the command or files that do the same for the agent.",entry:te,key:e=>e.name,check:(e,t)=>{if(Object.hasOwn(L,e.name))return[`${e.name} is the core's own project tool.`];const i=e.name.slice(0,e.name.lastIndexOf("/"));return T(t)||i===t?[]:[`the project tool ${e.name} does not start with its extension's id (${t}/…).`]}});const oe=n.object({folder:W,loads:n.array(V),module:n.string().min(1)});export const STAGE_ROUTE_POINT=definePoint({id:"stageRoutes",about:"Stage routes: a folder of the stage's tree an extension answers, what the stage's pages load from it, and what a snapshot records of it.",entry:oe,key:e=>e.folder});const ie=n.object({name:n.string().min(1),only:n.array(n.string().min(1)).min(1),values:n.array(n.string().min(1)).optional()}),se=n.object({files:n.record(n.string().min(1),n.string()),entry:n.string().min(1)}),w=e=>!e.startsWith("/")&&!e.includes("\\")&&e.split("/").every(t=>t!==""&&t!=="."&&t!==".."),ae=n.object({id:n.string().regex(/^[a-z][a-z0-9-]*$/u),name:WordsSchema,plural:WordsSchema.optional(),noun:n.string().min(1),part:n.object({noun:n.string().min(1),plural:n.string().min(1)}).optional(),pages:n.boolean().optional(),editor:n.string().min(1).optional(),shown:n.object({line:WordsSchema,order:n.number()}).optional(),icon:n.string().min(1).optional(),color:n.string().min(1).optional(),exports:n.object({types:n.array(n.string().min(1)).min(1),extras:n.array(n.string().min(1)).default([]),options:n.array(ie).default([]),names:n.record(n.string().min(1),WordsSchema).default({})}).optional(),renders:n.object({types:n.array(n.string().min(1)).min(1),defaults:n.array(n.string().min(1)).min(1)}).optional(),starter:se.optional(),share:n.boolean().optional(),build:n.string().min(1).optional()});export const KIND_POINT=definePoint({id:"kinds",about:"Kinds of item: their names, their editor, their icon and colour, what they export and render, what a new one starts as, whether one is shared alone.",entry:ae,key:e=>e.id,activation:(e,t)=>t==="workspace"?[`onKind:${e.id}`]:[],check:e=>{const t=[],i=missingLocales(e.name);i.length>0&&t.push(`${e.id}'s name has no words in ${i.join(", ")}.`);const o=e.plural&&missingLocales(e.plural);o&&o.length>0&&t.push(`${e.id}'s plural has no words in ${o.join(", ")}.`);for(const[a,d]of Object.entries(e.exports?.names??{})){const u=missingLocales(d);u.length>0&&t.push(`${e.id}'s name for its export ${a} has no words in ${u.join(", ")}.`)}const s=Object.keys(e.starter?.files??{});for(const a of s.filter(d=>!w(d)))t.push(`${e.id}'s starter file ${a} is not inside the new item's folder.`);return e.starter&&!s.includes(e.starter.entry)&&t.push(`${e.id}'s starter's entry ${e.starter.entry} is none of its files.`),t}});const I=n.union([n.string().min(1),n.array(n.string().min(1)).min(1)]),re=n.object({id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),markup:I.optional(),kinds:n.array(n.string().min(1)).default([]),files:n.array(n.string().min(1)).default([]),noun:n.string().min(1).optional(),name:WordsSchema.optional(),plural:WordsSchema.optional(),icon:n.string().min(1).optional(),color:n.string().min(1).optional(),check:n.string().min(1).optional(),priority:n.enum(["default","option"]).default("default"),module:h.optional(),place:n.record(n.string(),n.unknown()).optional()});function z(e){if(e.type!=="object")return'is not of "type": "object".';try{n.fromJSONSchema(e)}catch(t){return`is not a JSON Schema zod reads: ${t instanceof Error?t.message:String(t)}.`}}export const EDITOR_POINT=definePoint({id:"editors",about:"Editors: the kinds each opens, or the files it opens by their names (glob patterns, with their name, sign and check), whether it is their default, the module a page imports for it, and the schema of where a person is in what it opens.",entry:re,key:e=>e.id,activation:(e,t)=>t==="ui"?[`onEditor:${e.id}`]:[],check:e=>{const t=[],i=e.place&&z(e.place);if(i!==void 0&&t.push(`${e.id}'s place ${i}`),e.kinds.length===0&&e.files.length===0&&t.push(`${e.id} opens no kind and no files.`),e.kinds.length>0&&e.files.length>0&&t.push(`${e.id} opens kinds and files: an editor opens one or the other.`),e.files.length>0){e.noun===void 0&&t.push(`${e.id} opens files and has no noun for them.`),e.name===void 0&&t.push(`${e.id} opens files and has no name for them.`);for(const[o,s]of[["name",e.name],["plural",e.plural]]){const a=s===void 0?[]:missingLocales(s);a.length>0&&t.push(`${e.id}'s ${o} has no words in ${a.join(", ")}.`)}for(const o of e.files)(o.startsWith("/")||o.split("/").includes(".."))&&t.push(`${e.id}'s pattern ${o} is not of project paths (no leading /, no ..).`)}else e.check!==void 0&&t.push(`${e.id} has a check and opens no files: a kind's items are checked by its build.`);return t}});export function fileEditorTable(e,t=(i,o)=>o){return e.flatMap(({extension:i,entry:o})=>o.files.length===0||o.name===void 0||o.noun===void 0?[]:[{id:o.id,files:[...o.files],noun:o.noun,name:{...o.name},...o.plural===void 0?{}:{plural:{...o.plural}},...o.icon===void 0?{}:{icon:o.icon},...o.color===void 0?{}:{color:o.color},...o.check===void 0?{}:{check:t(i,o.check)},extension:i}])}const de=n.object({id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),markup:I.optional(),types:n.array(n.string().regex(/^[a-z]+\/(?:\*|[\w.+-]+)$/u)).min(1),module:h});export const PREVIEW_RENDERER_POINT=definePoint({id:"previewRenderers",about:"Preview renderers: how a file of a media type is drawn wherever one is shown (a canvas's node); each its media types and the module a page imports for it.",entry:de,key:e=>e.id});const T=e=>e.startsWith("allyhub.");function $(e,t,i){return T(e)||t.startsWith(`${e}/`)?[]:[`the ${i} ${t} does not start with its extension's id (${e}/…).`]}const le=n.object({code:n.string().regex(/^(AK-[A-Z]\d{3}|[a-z0-9][a-z0-9-]*\.[a-z0-9][a-z0-9-]*\/[A-Za-z0-9][\w.-]*)$/u),level:n.enum(["error","warn"]),rule:n.string().min(1)});export const RULE_POINT=definePoint({id:"rules",about:"Rules: the codes an extension reports problems under, each with its level and what it says.",entry:le,key:e=>e.code,check:(e,t)=>{const i=C(e.code);return[...$(t,e.code,"rule"),...i&&i.extension!==t?[`${e.code} is ${i.extension===_?"the core's":`${i.extension}'s`} rule already.`]:[]]},added:(e,t)=>v(t,[e])});const ce=n.object({kind:n.string().regex(/^([a-z][a-z0-9-]*|[a-z0-9][a-z0-9-]*\.[a-z0-9][a-z0-9-]*\/[a-z][a-z0-9-]*)$/u),about:n.string().min(1)});export const FACT_POINT=definePoint({id:"facts",about:"Kinds of fact: what an extension measures for the agent to judge, each with what it says.",entry:ce,key:e=>e.kind,check:(e,t)=>$(t,e.kind,"kind of fact")});const ue=n.object({module:n.string().min(1)});export const BUILD_PLUGINS_POINT=definePoint({id:"buildPlugins",about:"Build plugins: a module whose Vite plugins and lent packages every stage bundle of a project takes.",entry:ue});const k=n.string().min(1),me=n.object({name:n.string().regex(/^[a-z][a-z0-9-]*$/u),summary:n.string().min(1),module:k});export const INSPECT_VIEW_POINT=definePoint({id:"inspectViews",about:"Views of `allyhub inspect <name>`: a measurement now, listed in `allyhub help` before its module is loaded.",entry:me,key:e=>e.name});const pe=n.object({id:n.string().regex(/^[a-z0-9][\w-]*(\.[\w-]+)+$/u),types:n.array(n.string().min(1)).min(1),module:k});export const EXPORT_PROCESSOR_POINT=definePoint({id:"exportProcessors",about:"Export processors: a step run on every file of the types it names that an export makes.",entry:pe,key:e=>e.id,check:(e,t)=>e.id.startsWith(`${t}.`)?[]:[`the processor ${e.id} does not start with its extension's id (${t}.…).`]});const he=n.object({id:n.string().regex(/^([a-z][a-z0-9-]*|[a-z0-9][a-z0-9-]*\.[a-z0-9][a-z0-9-]*\/[a-z][a-z0-9-]*)$/u),about:n.string().min(1),what:n.string().min(1),media:n.array(n.enum(["image","audio","video"])).min(1),runtimes:n.array(n.string().regex(/^[a-z0-9][a-z0-9-]*$/u)).default([]),module:k});export const MEDIA_ANALYSIS_POINT=definePoint({id:"mediaAnalyses",about:"Media analyses: what the media index measures of a file once, by its content, when a version needs it.",entry:he,key:e=>e.id,check:(e,t)=>$(t,e.id,"media analysis")});const fe=n.object({id:n.string().regex(/^[a-z0-9][a-z0-9-]*$/u),...M.shape});export const RUNTIME_POINT=definePoint({id:"runtimes",about:"Runtimes: a tool's pinned download (a program, a model), fetched when first needed, checked, cached.",entry:fe,key:e=>e.id}),SKILL_NAME=/^(?=.{1,64}$)[a-z0-9]+(-[a-z0-9]+)*$/u;const g=e=>e.replace(/^\.\//u,"").replace(/\/+$/u,""),ge=n.object({path:n.string().min(1)});export const SKILL_POINT=definePoint({id:"skills",about:"Skills for the agent: a folder laid out as an Agent Skill's, a skill of its own or files of the skill of its name.",entry:ge,check:e=>{const t=g(e.path);if(!w(t))return[`the skill folder ${e.path} is not a folder inside its package.`];const i=t.slice(t.lastIndexOf("/")+1);return SKILL_NAME.test(i)?[]:[`the skill folder ${e.path} is not named as a skill is (lower-case letters, digits and hyphens, at most 64).`]}});const P=n.record(n.string(),n.string()),be=n.union([n.object({name:n.string().regex(/^[a-z0-9][a-z0-9_-]*$/u),command:n.string().min(1),args:n.array(n.string()).default([]),env:P.default({}),cwd:n.string().min(1).optional()}),n.object({name:n.string().regex(/^[a-z0-9][a-z0-9_-]*$/u),url:n.url(),headers:P.default({})})]);export const MCP_SERVER_POINT=definePoint({id:"mcpServers",about:"MCP servers: a local program or an address that gives an agent tools, defined as .mcp.json defines one.",entry:be,key:e=>e.name,check:e=>"cwd"in e&&e.cwd!==void 0&&!w(g(e.cwd))?[`the MCP server ${e.name}'s cwd is not a folder inside its package.`]:[]}),CORE_POINTS=[COMMANDS,KEYBINDING_POINT,MENU_POINT,VIEW_CONTAINER_POINT,VIEW_POINT,CONFIGURATION_POINT,WINDOW_TOOL_POINT,CLI_COMMANDS,KIND_POINT,EDITOR_POINT,PREVIEW_RENDERER_POINT,RULE_POINT,FACT_POINT,BUILD_PLUGINS_POINT,PROJECT_TOOL_POINT,STAGE_ROUTE_POINT,INSPECT_VIEW_POINT,EXPORT_PROCESSOR_POINT,MEDIA_ANALYSIS_POINT,RUNTIME_POINT,SKILL_POINT,MCP_SERVER_POINT];export function kindTable(e,t=(d,u)=>u,i=[],o=[],s=[],a=()=>{}){const d=c=>{const r=i.filter(l=>l.extension===c).map(l=>t(c,l.entry.module));return r.length>0?r:void 0},u=c=>{const r=o.filter(l=>l.extension===c).map(({entry:l})=>({name:l.name,source:l.source,does:l.does,module:t(c,l.module),extension:c}));return r.length>0?r:void 0},m=c=>{const r=s.filter(l=>l.extension===c).map(({entry:l})=>({folder:l.folder,loads:l.loads.filter(N=>D(R,N)),module:t(c,l.module),extension:c}));return r.length>0?r:void 0};return e.map(({extension:c,entry:r})=>({id:r.id,editor:r.editor,noun:r.noun,part:r.part,...r.pages===!0?{pages:!0}:{},name:r.name,plural:r.plural,icon:r.icon,color:r.color,exports:r.exports&&{types:r.exports.types,extras:r.exports.extras,options:r.exports.options.map(l=>({name:l.name,only:l.only,...l.values===void 0?{}:{values:l.values}})),...Object.keys(r.exports.names).length===0?{}:{names:r.exports.names}},renders:r.renders&&{types:r.renders.types,defaults:r.renders.defaults},starter:r.starter&&{files:{...r.starter.files},entry:r.starter.entry},share:r.share,build:r.build===void 0?void 0:t(c,r.build),buildPlugins:d(c),projectTools:u(c),stageRoutes:m(c),points:a(c),extension:c}))}export const inspectViewTable=(e,t)=>e.map(({extension:i,entry:o})=>({name:o.name,summary:o.summary,module:t(i,o.module),extension:i})),cliCommandTable=(e,t)=>e.map(({extension:i,entry:o})=>({name:o.name,summary:o.summary,...o.work===void 0?{}:{work:o.work},module:t(i,o.module),extension:i})),processorTable=(e,t)=>e.map(({extension:i,entry:o})=>({id:o.id,types:o.types,module:t(i,o.module),extension:i})),analysisTable=(e,t)=>e.map(({extension:i,entry:o})=>({id:o.id,about:o.about,what:o.what,media:o.media,runtimes:o.runtimes,module:t(i,o.module),extension:i})),skillTable=(e,t)=>e.map(({extension:i,entry:o})=>{const s=g(o.path);return{name:s.slice(s.lastIndexOf("/")+1),folder:t(i,s),extension:i}});const j=(e,t)=>e.replaceAll("${PLUGIN_ROOT}",t);export const mcpServerTable=(e,t,i)=>e.map(({extension:o,entry:s})=>{if("url"in s)return{name:s.name,url:s.url,headers:{...s.headers},extension:o};const a=t(o);return{name:s.name,command:j(s.command,a),args:s.args.map(d=>j(d,a)),env:Object.fromEntries(Object.entries(s.env).map(([d,u])=>[d,j(u,a)])),cwd:s.cwd===void 0?a:i(o,g(s.cwd)),extension:o}});
|
|
@@ -18,7 +18,7 @@ export interface TrackedFace {
|
|
|
18
18
|
*/
|
|
19
19
|
export interface FaceTrack {
|
|
20
20
|
version: 2;
|
|
21
|
-
/** What found the faces: the cloud tool ("
|
|
21
|
+
/** What found the faces: the cloud tool ("detect-faces"), never the model behind it. */
|
|
22
22
|
model: string;
|
|
23
23
|
/** The displayed picture's pixels the boxes are in. */
|
|
24
24
|
width: number;
|
|
@@ -175,6 +175,7 @@ declare const CellEntry: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber,
|
|
|
175
175
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
|
|
176
176
|
formula: z.ZodOptional<z.ZodString>;
|
|
177
177
|
name: z.ZodOptional<z.ZodString>;
|
|
178
|
+
start: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
|
|
178
179
|
}, z.core.$strict>]>;
|
|
179
180
|
export type SheetCell = z.output<typeof CellEntry>;
|
|
180
181
|
declare const FormatEntry: z.ZodObject<{
|
|
@@ -1639,7 +1640,6 @@ declare const Validation: z.ZodObject<{
|
|
|
1639
1640
|
}, z.core.$strict>>;
|
|
1640
1641
|
}, z.core.$strict>;
|
|
1641
1642
|
export type SheetValidation = z.output<typeof Validation>;
|
|
1642
|
-
/** A chart's series: where its numbers are read from, and its look. */
|
|
1643
1643
|
declare const ChartSeries: z.ZodObject<{
|
|
1644
1644
|
values: z.ZodString;
|
|
1645
1645
|
x: z.ZodOptional<z.ZodString>;
|
|
@@ -1649,6 +1649,17 @@ declare const ChartSeries: z.ZodObject<{
|
|
|
1649
1649
|
smooth: z.ZodOptional<z.ZodBoolean>;
|
|
1650
1650
|
line_width: z.ZodOptional<z.ZodNumber>;
|
|
1651
1651
|
marker_size: z.ZodOptional<z.ZodNumber>;
|
|
1652
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1653
|
+
line: "line";
|
|
1654
|
+
"column-clustered": "column-clustered";
|
|
1655
|
+
"column-stacked": "column-stacked";
|
|
1656
|
+
"column-stacked-100": "column-stacked-100";
|
|
1657
|
+
"line-markers": "line-markers";
|
|
1658
|
+
area: "area";
|
|
1659
|
+
"area-stacked": "area-stacked";
|
|
1660
|
+
"area-stacked-100": "area-stacked-100";
|
|
1661
|
+
}>>;
|
|
1662
|
+
secondary: z.ZodOptional<z.ZodBoolean>;
|
|
1652
1663
|
}, z.core.$strict>;
|
|
1653
1664
|
export type SheetChartSeries = z.output<typeof ChartSeries>;
|
|
1654
1665
|
declare const ChartAxis: z.ZodObject<{
|
|
@@ -1698,6 +1709,17 @@ declare const Chart: z.ZodObject<{
|
|
|
1698
1709
|
smooth: z.ZodOptional<z.ZodBoolean>;
|
|
1699
1710
|
line_width: z.ZodOptional<z.ZodNumber>;
|
|
1700
1711
|
marker_size: z.ZodOptional<z.ZodNumber>;
|
|
1712
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1713
|
+
line: "line";
|
|
1714
|
+
"column-clustered": "column-clustered";
|
|
1715
|
+
"column-stacked": "column-stacked";
|
|
1716
|
+
"column-stacked-100": "column-stacked-100";
|
|
1717
|
+
"line-markers": "line-markers";
|
|
1718
|
+
area: "area";
|
|
1719
|
+
"area-stacked": "area-stacked";
|
|
1720
|
+
"area-stacked-100": "area-stacked-100";
|
|
1721
|
+
}>>;
|
|
1722
|
+
secondary: z.ZodOptional<z.ZodBoolean>;
|
|
1701
1723
|
}, z.core.$strict>>;
|
|
1702
1724
|
legend: z.ZodOptional<z.ZodEnum<{
|
|
1703
1725
|
left: "left";
|
|
@@ -1762,6 +1784,16 @@ declare const Chart: z.ZodObject<{
|
|
|
1762
1784
|
format: z.ZodOptional<z.ZodString>;
|
|
1763
1785
|
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
1764
1786
|
}, z.core.$strict>>;
|
|
1787
|
+
secondary_axis: z.ZodOptional<z.ZodObject<{
|
|
1788
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1789
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1790
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1791
|
+
major: z.ZodOptional<z.ZodNumber>;
|
|
1792
|
+
gridlines: z.ZodOptional<z.ZodBoolean>;
|
|
1793
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
1794
|
+
format: z.ZodOptional<z.ZodString>;
|
|
1795
|
+
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
1796
|
+
}, z.core.$strict>>;
|
|
1765
1797
|
size: z.ZodOptional<z.ZodNumber>;
|
|
1766
1798
|
title_size: z.ZodOptional<z.ZodNumber>;
|
|
1767
1799
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -2451,6 +2483,7 @@ declare const Worksheet: z.ZodObject<{
|
|
|
2451
2483
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
|
|
2452
2484
|
formula: z.ZodOptional<z.ZodString>;
|
|
2453
2485
|
name: z.ZodOptional<z.ZodString>;
|
|
2486
|
+
start: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
|
|
2454
2487
|
}, z.core.$strict>]>>>;
|
|
2455
2488
|
format: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2456
2489
|
format: z.ZodOptional<z.ZodString>;
|
|
@@ -3317,6 +3350,17 @@ declare const Worksheet: z.ZodObject<{
|
|
|
3317
3350
|
smooth: z.ZodOptional<z.ZodBoolean>;
|
|
3318
3351
|
line_width: z.ZodOptional<z.ZodNumber>;
|
|
3319
3352
|
marker_size: z.ZodOptional<z.ZodNumber>;
|
|
3353
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3354
|
+
line: "line";
|
|
3355
|
+
"column-clustered": "column-clustered";
|
|
3356
|
+
"column-stacked": "column-stacked";
|
|
3357
|
+
"column-stacked-100": "column-stacked-100";
|
|
3358
|
+
"line-markers": "line-markers";
|
|
3359
|
+
area: "area";
|
|
3360
|
+
"area-stacked": "area-stacked";
|
|
3361
|
+
"area-stacked-100": "area-stacked-100";
|
|
3362
|
+
}>>;
|
|
3363
|
+
secondary: z.ZodOptional<z.ZodBoolean>;
|
|
3320
3364
|
}, z.core.$strict>>;
|
|
3321
3365
|
legend: z.ZodOptional<z.ZodEnum<{
|
|
3322
3366
|
left: "left";
|
|
@@ -3381,6 +3425,16 @@ declare const Worksheet: z.ZodObject<{
|
|
|
3381
3425
|
format: z.ZodOptional<z.ZodString>;
|
|
3382
3426
|
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
3383
3427
|
}, z.core.$strict>>;
|
|
3428
|
+
secondary_axis: z.ZodOptional<z.ZodObject<{
|
|
3429
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3430
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
3431
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
3432
|
+
major: z.ZodOptional<z.ZodNumber>;
|
|
3433
|
+
gridlines: z.ZodOptional<z.ZodBoolean>;
|
|
3434
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
3435
|
+
format: z.ZodOptional<z.ZodString>;
|
|
3436
|
+
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
3437
|
+
}, z.core.$strict>>;
|
|
3384
3438
|
size: z.ZodOptional<z.ZodNumber>;
|
|
3385
3439
|
title_size: z.ZodOptional<z.ZodNumber>;
|
|
3386
3440
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -3456,6 +3510,12 @@ declare const Check: z.ZodObject<{
|
|
|
3456
3510
|
formula: z.ZodString;
|
|
3457
3511
|
}, z.core.$strict>;
|
|
3458
3512
|
export type SheetCheck = z.output<typeof Check>;
|
|
3513
|
+
/** Excel's iterative calculation: `true`, or its limits. */
|
|
3514
|
+
declare const Iteration: z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
|
|
3515
|
+
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
3516
|
+
max_change: z.ZodOptional<z.ZodNumber>;
|
|
3517
|
+
}, z.core.$strict>]>;
|
|
3518
|
+
export type SheetIteration = z.output<typeof Iteration>;
|
|
3459
3519
|
/** A sheet's file. */
|
|
3460
3520
|
export declare const SheetFileSchema: z.ZodObject<{
|
|
3461
3521
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -4051,6 +4111,7 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
4051
4111
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
|
|
4052
4112
|
formula: z.ZodOptional<z.ZodString>;
|
|
4053
4113
|
name: z.ZodOptional<z.ZodString>;
|
|
4114
|
+
start: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
|
|
4054
4115
|
}, z.core.$strict>]>>>;
|
|
4055
4116
|
format: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4056
4117
|
format: z.ZodOptional<z.ZodString>;
|
|
@@ -4917,6 +4978,17 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
4917
4978
|
smooth: z.ZodOptional<z.ZodBoolean>;
|
|
4918
4979
|
line_width: z.ZodOptional<z.ZodNumber>;
|
|
4919
4980
|
marker_size: z.ZodOptional<z.ZodNumber>;
|
|
4981
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
4982
|
+
line: "line";
|
|
4983
|
+
"column-clustered": "column-clustered";
|
|
4984
|
+
"column-stacked": "column-stacked";
|
|
4985
|
+
"column-stacked-100": "column-stacked-100";
|
|
4986
|
+
"line-markers": "line-markers";
|
|
4987
|
+
area: "area";
|
|
4988
|
+
"area-stacked": "area-stacked";
|
|
4989
|
+
"area-stacked-100": "area-stacked-100";
|
|
4990
|
+
}>>;
|
|
4991
|
+
secondary: z.ZodOptional<z.ZodBoolean>;
|
|
4920
4992
|
}, z.core.$strict>>;
|
|
4921
4993
|
legend: z.ZodOptional<z.ZodEnum<{
|
|
4922
4994
|
left: "left";
|
|
@@ -4981,6 +5053,16 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
4981
5053
|
format: z.ZodOptional<z.ZodString>;
|
|
4982
5054
|
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
4983
5055
|
}, z.core.$strict>>;
|
|
5056
|
+
secondary_axis: z.ZodOptional<z.ZodObject<{
|
|
5057
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5058
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
5059
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
5060
|
+
major: z.ZodOptional<z.ZodNumber>;
|
|
5061
|
+
gridlines: z.ZodOptional<z.ZodBoolean>;
|
|
5062
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
5063
|
+
format: z.ZodOptional<z.ZodString>;
|
|
5064
|
+
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
5065
|
+
}, z.core.$strict>>;
|
|
4984
5066
|
size: z.ZodOptional<z.ZodNumber>;
|
|
4985
5067
|
title_size: z.ZodOptional<z.ZodNumber>;
|
|
4986
5068
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -5055,6 +5137,10 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
5055
5137
|
formula: z.ZodString;
|
|
5056
5138
|
}, z.core.$strict>>>;
|
|
5057
5139
|
scenarios: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>>>;
|
|
5140
|
+
iteration: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
|
|
5141
|
+
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
5142
|
+
max_change: z.ZodOptional<z.ZodNumber>;
|
|
5143
|
+
}, z.core.$strict>]>>;
|
|
5058
5144
|
}, z.core.$strict>;
|
|
5059
5145
|
export type SheetFile = z.output<typeof SheetFileSchema>;
|
|
5060
5146
|
/** What a sheet's code makes, beside what its file holds: sheets as sheet.yaml would hold them, with their tables' rows as CSV text, and names. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as o}from"zod";import{CHART_LEGEND_POSITIONS as h,ChartSchema as e,SHEET_CHART_TYPES as y}from"./slides.js";export const SHEET_FILE="sheet.yaml",SHEET_SEPARATOR=", ",SHEET_PICTURE_HEIGHT=60;const t=o.string().regex(/^#[0-9a-fA-F]{6}$/u,"A colour is #RRGGBB.");export const SHEET_ALIGNS=["general","left","center","right","fill","justify","centerContinuous","distributed"],SHEET_VALIGNS=["top","center","bottom","justify","distributed"],SHEET_UNDERLINES=["single","double","singleAccounting","doubleAccounting"],SHEET_BORDERS=["none","thin","medium","thick","double","hair","dotted","dashed","dashDot","dashDotDot","mediumDashed","mediumDashDot","mediumDashDotDot","slantDashDot"],SHEET_PATTERNS=["solid","darkDown","darkGray","darkGrid","darkHorizontal","darkTrellis","darkUp","darkVertical","gray0625","gray125","lightDown","lightGray","lightGrid","lightHorizontal","lightTrellis","lightUp","lightVertical","mediumGray"];const l=o.strictObject({style:o.enum(SHEET_BORDERS),color:t.optional()}),m={bold:o.boolean().optional(),italic:o.boolean().optional(),underline:o.union([o.boolean(),o.enum(SHEET_UNDERLINES)]).optional(),strike:o.boolean().optional(),font:o.string().min(1).optional(),size:o.number().positive().optional(),color:t.optional(),fill:o.union([t,o.strictObject({pattern:o.enum(SHEET_PATTERNS),color:t.optional(),background:t.optional()})]).optional(),align:o.enum(SHEET_ALIGNS).optional(),valign:o.enum(SHEET_VALIGNS).optional(),wrap:o.boolean().optional(),shrink:o.boolean().optional(),indent:o.number().int().min(0).optional(),rotation:o.number().int().min(-90).max(180).optional(),border:o.strictObject({left:l.optional(),right:l.optional(),top:l.optional(),bottom:l.optional()}).optional()},a={...m,format:o.string().min(1).optional()},r=o.union([o.number(),o.boolean(),o.string(),o.null()]),O=o.strictObject({value:r.optional(),formula:o.string().min(1).optional(),name:o.string().min(1).optional(),...a}).refine(c=>c.value===void 0||c.formula===void 0,{message:"A cell has a value or a formula, not both."}),E=o.union([r,O]),f=o.strictObject({range:o.string().min(1),...a}),b=o.union([o.literal(!0),o.strictObject({separator:o.string().min(1).optional(),height:o.number().positive().optional()})]),j=o.strictObject({formula:o.string().min(1).optional(),...a,width:o.number().positive().optional(),files:b.optional()}),g=o.strictObject({values:o.array(o.string()).optional(),blanks:o.boolean().optional()}),x=o.strictObject({name:o.string().min(1),at:o.string().min(1),rows:o.string().min(1),key:o.string().min(1).optional(),style:o.string().min(1).optional(),columns:o.record(o.string(),j).optional(),filter:o.union([o.literal(!1),o.strictObject({columns:o.record(o.string(),g)})]).optional()}),S=o.strictObject({at:o.string().min(1),rows:o.string().min(1)}),T=o.strictObject({width:o.number().positive().optional(),hidden:o.boolean().optional(),level:o.number().int().min(1).max(7).optional(),...a,files:b.optional()}),_=o.strictObject({height:o.number().positive().optional(),hidden:o.boolean().optional(),level:o.number().int().min(1).max(7).optional(),...a}),v=o.strictObject({range:o.string().min(1),columns:o.record(o.string(),g).optional()});export const SHEET_OPERATORS=["between","notBetween","equal","notEqual","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual"];const p=o.union([o.number(),o.string()]),i={bold:o.boolean().optional(),italic:o.boolean().optional(),underline:o.boolean().optional(),strike:o.boolean().optional(),color:t.optional(),fill:t.optional(),border:m.border},n={range:o.string().min(1),stop:o.boolean().optional()},s=o.strictObject({at:o.enum(["min","max","num","percent","percentile","formula"]),value:p.optional()});export const SHEET_ICONS=["3Arrows","3ArrowsGray","3Flags","3TrafficLights1","3TrafficLights2","3Signs","3Symbols","3Symbols2","4Arrows","4ArrowsGray","4RedToBlack","4Rating","4TrafficLights","5Arrows","5ArrowsGray","5Rating","5Quarters"];const w=o.discriminatedUnion("type",[o.strictObject({...n,...i,type:o.literal("cellIs"),operator:o.enum(SHEET_OPERATORS),formula:o.array(p).min(1).max(2)}),o.strictObject({...n,...i,type:o.literal("containsText"),operator:o.enum(["contains","notContains","beginsWith","endsWith"]).optional(),text:o.string()}),o.strictObject({...n,...i,type:o.enum(["duplicateValues","uniqueValues"])}),o.strictObject({...n,...i,type:o.literal("top10"),rank:o.number().int().positive(),percent:o.boolean().optional(),bottom:o.boolean().optional()}),o.strictObject({...n,...i,type:o.literal("aboveAverage"),below:o.boolean().optional(),equal:o.boolean().optional()}),o.strictObject({...n,...i,type:o.literal("expression"),formula:o.string().min(1)}),o.strictObject({...n,type:o.literal("dataBar"),color:t,min:s.optional(),max:s.optional(),show:o.boolean().optional()}),o.strictObject({...n,type:o.literal("colorScale"),stops:o.array(o.strictObject({...s.shape,color:t})).min(2).max(3)}),o.strictObject({...n,type:o.literal("iconSet"),icons:o.enum(SHEET_ICONS),stops:o.array(s).min(3).max(5).optional(),reverse:o.boolean().optional(),show:o.boolean().optional()})]);export const SHEET_VALIDATIONS=["whole","decimal","list","date","time","textLength","custom"];const A=o.strictObject({range:o.string().min(1),type:o.enum(SHEET_VALIDATIONS),operator:o.enum(SHEET_OPERATORS).optional(),formula:o.array(p).max(2).optional(),values:o.array(o.string()).optional(),multiple:o.boolean().optional(),separator:o.string().min(1).optional(),blank:o.boolean().optional(),dropdown:o.boolean().optional(),prompt:o.strictObject({title:o.string().optional(),message:o.string().optional(),show:o.boolean().optional()}).optional(),error:o.strictObject({style:o.enum(["stop","warning","information"]).optional(),title:o.string().optional(),message:o.string().optional(),show:o.boolean().optional()}).optional()}),k=o.strictObject({values:o.string().min(1),x:o.string().min(1).optional(),name:o.string().optional(),color:t.optional(),format:o.string().min(1).optional(),smooth:o.boolean().optional(),line_width:o.number().positive().optional(),marker_size:o.number().int().min(2).max(72).optional()}),u=o.strictObject({title:o.string().optional(),min:o.number().optional(),max:o.number().optional(),major:o.number().positive().optional(),gridlines:o.boolean().optional(),visible:o.boolean().optional(),format:o.string().min(1).optional(),reverse:o.boolean().optional()}),H=o.strictObject({type:o.enum(y),at:o.string().min(1),x:o.number().min(0).optional(),y:o.number().min(0).optional(),width:o.number().positive().optional(),height:o.number().positive().optional(),title:o.string().optional(),categories:o.string().min(1).optional(),series:o.array(k).min(1),legend:o.enum(h).optional(),labels:e.shape.labels,gap_width:e.shape.gap_width,overlap:e.shape.overlap,vary_by_categories:e.shape.vary_by_categories,hole_size:e.shape.hole_size,value_axis:u.optional(),category_axis:u.optional(),size:o.number().positive().optional(),title_size:o.number().positive().optional(),color:t.optional()});export const SHEET_PAPERS={letter:1,tabloid:3,ledger:4,legal:5,executive:7,a3:8,a4:9,a5:11,b4:12,b5:13},SHEET_MARGINS={left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},SHEET_NOTE_AUTHOR="AllyHub";const d=o.strictObject({left:o.string().optional(),center:o.string().optional(),right:o.string().optional()}),R=o.strictObject({area:o.string().min(1).optional(),title_rows:o.string().regex(/^\d+:\d+$/u).optional(),title_cols:o.string().regex(/^[A-Za-z]+:[A-Za-z]+$/u).optional(),orientation:o.enum(["portrait","landscape"]).optional(),paper:o.enum(Object.keys(SHEET_PAPERS)).optional(),fit:o.strictObject({width:o.number().int().min(0).optional(),height:o.number().int().min(0).optional()}).optional(),scale:o.number().int().min(10).max(400).optional(),breaks:o.strictObject({rows:o.array(o.number().int().min(2)).optional(),cols:o.array(o.string().regex(/^[A-Za-z]+$/u)).optional()}).optional(),margins:o.strictObject({left:o.number().min(0).optional(),right:o.number().min(0).optional(),top:o.number().min(0).optional(),bottom:o.number().min(0).optional(),header:o.number().min(0).optional(),footer:o.number().min(0).optional()}).optional(),header:d.optional(),footer:d.optional()}),C=o.strictObject({file:o.string().min(1),at:o.string().min(1),x:o.number().min(0).optional(),y:o.number().min(0).optional(),width:o.number().positive().optional(),height:o.number().positive().optional()}),D=o.union([o.string().min(1),o.strictObject({text:o.string().min(1),author:o.string().optional()})]),G=o.strictObject({name:o.string().min(1),hidden:o.boolean().optional(),gridlines:o.boolean().optional(),tab:t.optional(),freeze:o.string().min(1).optional(),tables:o.array(x).optional(),columns:o.record(o.string(),T).optional(),rows:o.record(o.string(),_).optional(),cells:o.record(o.string(),E).optional(),format:o.array(f).optional(),merges:o.array(o.string().min(1)).optional(),blocks:o.array(S).optional(),filter:v.optional(),conditional:o.array(w).optional(),validations:o.array(A).optional(),charts:o.array(H).optional(),pictures:o.array(C).optional(),links:o.record(o.string(),o.string().min(1)).optional(),notes:o.record(o.string(),D).optional(),print:R.optional(),protect:o.boolean().optional(),names:o.record(o.string(),r).optional(),hidden_names:o.array(o.string().min(1)).optional()}),z=o.strictObject({name:o.string().min(1),formula:o.string().min(1)});export const SheetFileSchema=o.strictObject({title:o.string().optional(),code:o.string().min(1).optional(),names:o.record(o.string(),r).optional(),hidden_names:o.array(o.string().min(1)).optional(),sheets:o.array(G).min(1),checks:o.array(z).optional(),scenarios:o.record(o.string(),o.record(o.string(),r)).optional()});
|
|
2
|
+
import{z as t}from"zod";import{CHART_LEGEND_POSITIONS as h,ChartSchema as r,SHEET_CHART_TYPES as y}from"./slides.js";export const SHEET_FILE="sheet.yaml",SHEET_SEPARATOR=", ",SHEET_PICTURE_HEIGHT=60;const o=t.string().regex(/^#[0-9a-fA-F]{6}$/u,"A colour is #RRGGBB.");export const SHEET_ALIGNS=["general","left","center","right","fill","justify","centerContinuous","distributed"],SHEET_VALIGNS=["top","center","bottom","justify","distributed"],SHEET_UNDERLINES=["single","double","singleAccounting","doubleAccounting"],SHEET_BORDERS=["none","thin","medium","thick","double","hair","dotted","dashed","dashDot","dashDotDot","mediumDashed","mediumDashDot","mediumDashDotDot","slantDashDot"],SHEET_PATTERNS=["solid","darkDown","darkGray","darkGrid","darkHorizontal","darkTrellis","darkUp","darkVertical","gray0625","gray125","lightDown","lightGray","lightGrid","lightHorizontal","lightTrellis","lightUp","lightVertical","mediumGray"];const s=t.strictObject({style:t.enum(SHEET_BORDERS),color:o.optional()}),b={bold:t.boolean().optional(),italic:t.boolean().optional(),underline:t.union([t.boolean(),t.enum(SHEET_UNDERLINES)]).optional(),strike:t.boolean().optional(),font:t.string().min(1).optional(),size:t.number().positive().optional(),color:o.optional(),fill:t.union([o,t.strictObject({pattern:t.enum(SHEET_PATTERNS),color:o.optional(),background:o.optional()})]).optional(),align:t.enum(SHEET_ALIGNS).optional(),valign:t.enum(SHEET_VALIGNS).optional(),wrap:t.boolean().optional(),shrink:t.boolean().optional(),indent:t.number().int().min(0).optional(),rotation:t.number().int().min(-90).max(180).optional(),border:t.strictObject({left:s.optional(),right:s.optional(),top:s.optional(),bottom:s.optional()}).optional()},l={...b,format:t.string().min(1).optional()},i=t.union([t.number(),t.boolean(),t.string(),t.null()]),O=t.strictObject({value:i.optional(),formula:t.string().min(1).optional(),name:t.string().min(1).optional(),start:i.optional(),...l}).refine(a=>a.value===void 0||a.formula===void 0,{message:"A cell has a value or a formula, not both."}).refine(a=>a.start===void 0||a.formula!==void 0,{message:"A cell's start is a formula's."}),E=t.union([i,O]),f=t.strictObject({range:t.string().min(1),...l}),u=t.union([t.literal(!0),t.strictObject({separator:t.string().min(1).optional(),height:t.number().positive().optional()})]),x=t.strictObject({formula:t.string().min(1).optional(),...l,width:t.number().positive().optional(),files:u.optional()}),g=t.strictObject({values:t.array(t.string()).optional(),blanks:t.boolean().optional()}),j=t.strictObject({name:t.string().min(1),at:t.string().min(1),rows:t.string().min(1),key:t.string().min(1).optional(),style:t.string().min(1).optional(),columns:t.record(t.string(),x).optional(),filter:t.union([t.literal(!1),t.strictObject({columns:t.record(t.string(),g)})]).optional()}),S=t.strictObject({at:t.string().min(1),rows:t.string().min(1)}),T=t.strictObject({width:t.number().positive().optional(),hidden:t.boolean().optional(),level:t.number().int().min(1).max(7).optional(),...l,files:u.optional()}),_=t.strictObject({height:t.number().positive().optional(),hidden:t.boolean().optional(),level:t.number().int().min(1).max(7).optional(),...l}),v=t.strictObject({range:t.string().min(1),columns:t.record(t.string(),g).optional()});export const SHEET_OPERATORS=["between","notBetween","equal","notEqual","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual"];const c=t.union([t.number(),t.string()]),e={bold:t.boolean().optional(),italic:t.boolean().optional(),underline:t.boolean().optional(),strike:t.boolean().optional(),color:o.optional(),fill:o.optional(),border:b.border},n={range:t.string().min(1),stop:t.boolean().optional()},p=t.strictObject({at:t.enum(["min","max","num","percent","percentile","formula"]),value:c.optional()});export const SHEET_ICONS=["3Arrows","3ArrowsGray","3Flags","3TrafficLights1","3TrafficLights2","3Signs","3Symbols","3Symbols2","4Arrows","4ArrowsGray","4RedToBlack","4Rating","4TrafficLights","5Arrows","5ArrowsGray","5Rating","5Quarters"];const k=t.discriminatedUnion("type",[t.strictObject({...n,...e,type:t.literal("cellIs"),operator:t.enum(SHEET_OPERATORS),formula:t.array(c).min(1).max(2)}),t.strictObject({...n,...e,type:t.literal("containsText"),operator:t.enum(["contains","notContains","beginsWith","endsWith"]).optional(),text:t.string()}),t.strictObject({...n,...e,type:t.enum(["duplicateValues","uniqueValues"])}),t.strictObject({...n,...e,type:t.literal("top10"),rank:t.number().int().positive(),percent:t.boolean().optional(),bottom:t.boolean().optional()}),t.strictObject({...n,...e,type:t.literal("aboveAverage"),below:t.boolean().optional(),equal:t.boolean().optional()}),t.strictObject({...n,...e,type:t.literal("expression"),formula:t.string().min(1)}),t.strictObject({...n,type:t.literal("dataBar"),color:o,min:p.optional(),max:p.optional(),show:t.boolean().optional()}),t.strictObject({...n,type:t.literal("colorScale"),stops:t.array(t.strictObject({...p.shape,color:o})).min(2).max(3)}),t.strictObject({...n,type:t.literal("iconSet"),icons:t.enum(SHEET_ICONS),stops:t.array(p).min(3).max(5).optional(),reverse:t.boolean().optional(),show:t.boolean().optional()})]);export const SHEET_VALIDATIONS=["whole","decimal","list","date","time","textLength","custom"];const w=t.strictObject({range:t.string().min(1),type:t.enum(SHEET_VALIDATIONS),operator:t.enum(SHEET_OPERATORS).optional(),formula:t.array(c).max(2).optional(),values:t.array(t.string()).optional(),multiple:t.boolean().optional(),separator:t.string().min(1).optional(),blank:t.boolean().optional(),dropdown:t.boolean().optional(),prompt:t.strictObject({title:t.string().optional(),message:t.string().optional(),show:t.boolean().optional()}).optional(),error:t.strictObject({style:t.enum(["stop","warning","information"]).optional(),title:t.string().optional(),message:t.string().optional(),show:t.boolean().optional()}).optional()}),A=["column-clustered","column-stacked","column-stacked-100","line","line-markers","area","area-stacked","area-stacked-100"],H=t.strictObject({values:t.string().min(1),x:t.string().min(1).optional(),name:t.string().optional(),color:o.optional(),format:t.string().min(1).optional(),smooth:t.boolean().optional(),line_width:t.number().positive().optional(),marker_size:t.number().int().min(2).max(72).optional(),type:t.enum(A).optional(),secondary:t.boolean().optional()}),m=t.strictObject({title:t.string().optional(),min:t.number().optional(),max:t.number().optional(),major:t.number().positive().optional(),gridlines:t.boolean().optional(),visible:t.boolean().optional(),format:t.string().min(1).optional(),reverse:t.boolean().optional()}),R=t.strictObject({type:t.enum(y),at:t.string().min(1),x:t.number().min(0).optional(),y:t.number().min(0).optional(),width:t.number().positive().optional(),height:t.number().positive().optional(),title:t.string().optional(),categories:t.string().min(1).optional(),series:t.array(H).min(1),legend:t.enum(h).optional(),labels:r.shape.labels,gap_width:r.shape.gap_width,overlap:r.shape.overlap,vary_by_categories:r.shape.vary_by_categories,hole_size:r.shape.hole_size,value_axis:m.optional(),category_axis:m.optional(),secondary_axis:m.optional(),size:t.number().positive().optional(),title_size:t.number().positive().optional(),color:o.optional()});export const SHEET_PAPERS={letter:1,tabloid:3,ledger:4,legal:5,executive:7,a3:8,a4:9,a5:11,b4:12,b5:13},SHEET_MARGINS={left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},SHEET_NOTE_AUTHOR="AllyHub";const d=t.strictObject({left:t.string().optional(),center:t.string().optional(),right:t.string().optional()}),C=t.strictObject({area:t.string().min(1).optional(),title_rows:t.string().regex(/^\d+:\d+$/u).optional(),title_cols:t.string().regex(/^[A-Za-z]+:[A-Za-z]+$/u).optional(),orientation:t.enum(["portrait","landscape"]).optional(),paper:t.enum(Object.keys(SHEET_PAPERS)).optional(),fit:t.strictObject({width:t.number().int().min(0).optional(),height:t.number().int().min(0).optional()}).optional(),scale:t.number().int().min(10).max(400).optional(),breaks:t.strictObject({rows:t.array(t.number().int().min(2)).optional(),cols:t.array(t.string().regex(/^[A-Za-z]+$/u)).optional()}).optional(),margins:t.strictObject({left:t.number().min(0).optional(),right:t.number().min(0).optional(),top:t.number().min(0).optional(),bottom:t.number().min(0).optional(),header:t.number().min(0).optional(),footer:t.number().min(0).optional()}).optional(),header:d.optional(),footer:d.optional()}),D=t.strictObject({file:t.string().min(1),at:t.string().min(1),x:t.number().min(0).optional(),y:t.number().min(0).optional(),width:t.number().positive().optional(),height:t.number().positive().optional()}),G=t.union([t.string().min(1),t.strictObject({text:t.string().min(1),author:t.string().optional()})]),I=t.strictObject({name:t.string().min(1),hidden:t.boolean().optional(),gridlines:t.boolean().optional(),tab:o.optional(),freeze:t.string().min(1).optional(),tables:t.array(j).optional(),columns:t.record(t.string(),T).optional(),rows:t.record(t.string(),_).optional(),cells:t.record(t.string(),E).optional(),format:t.array(f).optional(),merges:t.array(t.string().min(1)).optional(),blocks:t.array(S).optional(),filter:v.optional(),conditional:t.array(k).optional(),validations:t.array(w).optional(),charts:t.array(R).optional(),pictures:t.array(D).optional(),links:t.record(t.string(),t.string().min(1)).optional(),notes:t.record(t.string(),G).optional(),print:C.optional(),protect:t.boolean().optional(),names:t.record(t.string(),i).optional(),hidden_names:t.array(t.string().min(1)).optional()}),z=t.strictObject({name:t.string().min(1),formula:t.string().min(1)}),L=t.union([t.literal(!0),t.strictObject({max_iterations:t.number().int().min(1).max(32767).optional(),max_change:t.number().min(0).optional()})]);export const SheetFileSchema=t.strictObject({title:t.string().optional(),code:t.string().min(1).optional(),names:t.record(t.string(),i).optional(),hidden_names:t.array(t.string().min(1)).optional(),sheets:t.array(I).min(1),checks:t.array(z).optional(),scenarios:t.record(t.string(),t.record(t.string(),i)).optional(),iteration:L.optional()});
|
|
@@ -29,6 +29,23 @@ export type LineDash = (typeof LINE_DASHES)[number];
|
|
|
29
29
|
/** A line's end, as PresentationML names it (`a:headEnd/@type`, `a:tailEnd/@type`). */
|
|
30
30
|
export declare const LINE_ENDS: readonly ["none", "triangle", "arrow", "stealth", "diamond", "oval"];
|
|
31
31
|
export type LineEnd = (typeof LINE_ENDS)[number];
|
|
32
|
+
/** A line end's width or length, small, medium or large, as PresentationML names them (`a:headEnd/@w`, `@len`). */
|
|
33
|
+
export declare const ARROW_SIZES: readonly ["sm", "med", "lg"];
|
|
34
|
+
export type ArrowSize = (typeof ARROW_SIZES)[number];
|
|
35
|
+
/** A line end's size: its width across the line and its length along it; what it leaves out is medium. */
|
|
36
|
+
export declare const LineEndSizeSchema: z.ZodObject<{
|
|
37
|
+
w: z.ZodOptional<z.ZodEnum<{
|
|
38
|
+
sm: "sm";
|
|
39
|
+
med: "med";
|
|
40
|
+
lg: "lg";
|
|
41
|
+
}>>;
|
|
42
|
+
len: z.ZodOptional<z.ZodEnum<{
|
|
43
|
+
sm: "sm";
|
|
44
|
+
med: "med";
|
|
45
|
+
lg: "lg";
|
|
46
|
+
}>>;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
export type LineEndSize = z.infer<typeof LineEndSizeSchema>;
|
|
32
49
|
/** A shape's frame: its offset and extents (`a:xfrm`), in points. */
|
|
33
50
|
export declare const FrameSchema: z.ZodObject<{
|
|
34
51
|
x: z.ZodNumber;
|
|
@@ -543,6 +560,30 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
543
560
|
stealth: "stealth";
|
|
544
561
|
oval: "oval";
|
|
545
562
|
}>>;
|
|
563
|
+
line_begin_size: z.ZodOptional<z.ZodObject<{
|
|
564
|
+
w: z.ZodOptional<z.ZodEnum<{
|
|
565
|
+
sm: "sm";
|
|
566
|
+
med: "med";
|
|
567
|
+
lg: "lg";
|
|
568
|
+
}>>;
|
|
569
|
+
len: z.ZodOptional<z.ZodEnum<{
|
|
570
|
+
sm: "sm";
|
|
571
|
+
med: "med";
|
|
572
|
+
lg: "lg";
|
|
573
|
+
}>>;
|
|
574
|
+
}, z.core.$strict>>;
|
|
575
|
+
line_end_size: z.ZodOptional<z.ZodObject<{
|
|
576
|
+
w: z.ZodOptional<z.ZodEnum<{
|
|
577
|
+
sm: "sm";
|
|
578
|
+
med: "med";
|
|
579
|
+
lg: "lg";
|
|
580
|
+
}>>;
|
|
581
|
+
len: z.ZodOptional<z.ZodEnum<{
|
|
582
|
+
sm: "sm";
|
|
583
|
+
med: "med";
|
|
584
|
+
lg: "lg";
|
|
585
|
+
}>>;
|
|
586
|
+
}, z.core.$strict>>;
|
|
546
587
|
text: z.ZodOptional<z.ZodObject<{
|
|
547
588
|
size: z.ZodOptional<z.ZodNumber>;
|
|
548
589
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1250,6 +1291,30 @@ export declare const SlideSchema: z.ZodObject<{
|
|
|
1250
1291
|
stealth: "stealth";
|
|
1251
1292
|
oval: "oval";
|
|
1252
1293
|
}>>;
|
|
1294
|
+
line_begin_size: z.ZodOptional<z.ZodObject<{
|
|
1295
|
+
w: z.ZodOptional<z.ZodEnum<{
|
|
1296
|
+
sm: "sm";
|
|
1297
|
+
med: "med";
|
|
1298
|
+
lg: "lg";
|
|
1299
|
+
}>>;
|
|
1300
|
+
len: z.ZodOptional<z.ZodEnum<{
|
|
1301
|
+
sm: "sm";
|
|
1302
|
+
med: "med";
|
|
1303
|
+
lg: "lg";
|
|
1304
|
+
}>>;
|
|
1305
|
+
}, z.core.$strict>>;
|
|
1306
|
+
line_end_size: z.ZodOptional<z.ZodObject<{
|
|
1307
|
+
w: z.ZodOptional<z.ZodEnum<{
|
|
1308
|
+
sm: "sm";
|
|
1309
|
+
med: "med";
|
|
1310
|
+
lg: "lg";
|
|
1311
|
+
}>>;
|
|
1312
|
+
len: z.ZodOptional<z.ZodEnum<{
|
|
1313
|
+
sm: "sm";
|
|
1314
|
+
med: "med";
|
|
1315
|
+
lg: "lg";
|
|
1316
|
+
}>>;
|
|
1317
|
+
}, z.core.$strict>>;
|
|
1253
1318
|
text: z.ZodOptional<z.ZodObject<{
|
|
1254
1319
|
size: z.ZodOptional<z.ZodNumber>;
|
|
1255
1320
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1989,6 +2054,30 @@ export declare const SlidesFileSchema: z.ZodObject<{
|
|
|
1989
2054
|
stealth: "stealth";
|
|
1990
2055
|
oval: "oval";
|
|
1991
2056
|
}>>;
|
|
2057
|
+
line_begin_size: z.ZodOptional<z.ZodObject<{
|
|
2058
|
+
w: z.ZodOptional<z.ZodEnum<{
|
|
2059
|
+
sm: "sm";
|
|
2060
|
+
med: "med";
|
|
2061
|
+
lg: "lg";
|
|
2062
|
+
}>>;
|
|
2063
|
+
len: z.ZodOptional<z.ZodEnum<{
|
|
2064
|
+
sm: "sm";
|
|
2065
|
+
med: "med";
|
|
2066
|
+
lg: "lg";
|
|
2067
|
+
}>>;
|
|
2068
|
+
}, z.core.$strict>>;
|
|
2069
|
+
line_end_size: z.ZodOptional<z.ZodObject<{
|
|
2070
|
+
w: z.ZodOptional<z.ZodEnum<{
|
|
2071
|
+
sm: "sm";
|
|
2072
|
+
med: "med";
|
|
2073
|
+
lg: "lg";
|
|
2074
|
+
}>>;
|
|
2075
|
+
len: z.ZodOptional<z.ZodEnum<{
|
|
2076
|
+
sm: "sm";
|
|
2077
|
+
med: "med";
|
|
2078
|
+
lg: "lg";
|
|
2079
|
+
}>>;
|
|
2080
|
+
}, z.core.$strict>>;
|
|
1992
2081
|
text: z.ZodOptional<z.ZodObject<{
|
|
1993
2082
|
size: z.ZodOptional<z.ZodNumber>;
|
|
1994
2083
|
bold: z.ZodOptional<z.ZodBoolean>;
|