@taloswork/ose-shared 0.1.12 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/package.json +3 -3
  2. package/skills/document/SKILL.md +33 -45
  3. package/skills/document/bin/deck-build.cjs +10482 -272
  4. package/skills/document/bin/deck-chart.cjs +21 -12
  5. package/skills/document/bin/deck-plan.cjs +11654 -42
  6. package/skills/document/bin/deck-qa.cjs +107 -23
  7. package/skills/document/bin/deck-scenario.cjs +20 -3
  8. package/skills/document/bin/deck-styles.cjs +1604 -0
  9. package/skills/document/bin/doc-convert.cjs +200 -260
  10. package/skills/document/bin/doc-fill.cjs +140 -19
  11. package/skills/document/bin/doc-gen.cjs +1909 -282
  12. package/skills/document/bin/doc-scan.cjs +6 -1
  13. package/skills/document/bin/doc-text.cjs +6 -1
  14. package/skills/document/bin/doc-validate.cjs +139 -54
  15. package/skills/document/bin/docx-defaults.cjs +9907 -0
  16. package/skills/document/bin/html2pptx.cjs +35960 -31973
  17. package/skills/document/bin/pdf-form.cjs +14 -1
  18. package/skills/document/bin/pdf-images.cjs +6 -1
  19. package/skills/document/bin/pdf-ops.cjs +14 -1
  20. package/skills/document/bin/pdf-render.cjs +6 -1
  21. package/skills/document/bin/pdf-tables.cjs +6 -1
  22. package/skills/document/bin/pptx-notes.cjs +10038 -0
  23. package/skills/document/bin/pptx-tokenize.cjs +19 -4
  24. package/skills/document/bin/template-skin.cjs +10915 -0
  25. package/skills/document/bin-reference.md +15 -10
  26. package/skills/document/catalog.json +33 -32
  27. package/skills/document/content-pipeline.md +79 -44
  28. package/skills/document/deck-design.md +55 -32
  29. package/skills/document/generated-visuals.md +99 -0
  30. package/skills/document/layouts/MAINTAINERS.md +33 -0
  31. package/skills/document/layouts/README.md +20 -20
  32. package/skills/document/layouts/big-stat.tpl +1 -1
  33. package/skills/document/layouts/capacity.json +1 -1
  34. package/skills/document/layouts/cards-3.tpl +1 -1
  35. package/skills/document/layouts/chart-full.tpl +1 -1
  36. package/skills/document/layouts/chart-kpi.tpl +1 -1
  37. package/skills/document/layouts/comparison.tpl +1 -1
  38. package/skills/document/layouts/data-table.tpl +1 -1
  39. package/skills/document/layouts/funnel.tpl +1 -1
  40. package/skills/document/layouts/gantt.tpl +1 -1
  41. package/skills/document/layouts/hub-flow.tpl +4 -0
  42. package/skills/document/layouts/icon-row.tpl +1 -1
  43. package/skills/document/layouts/image-grid.tpl +1 -1
  44. package/skills/document/layouts/matrix-2x2.tpl +1 -1
  45. package/skills/document/layouts/mock-qa.tpl +4 -0
  46. package/skills/document/layouts/profiles.json +2 -2
  47. package/skills/document/layouts/pyramid.tpl +1 -1
  48. package/skills/document/layouts/radar.tpl +1 -1
  49. package/skills/document/layouts/ring-progress.tpl +1 -1
  50. package/skills/document/layouts/slots.json +1 -1
  51. package/skills/document/layouts/steps-vertical.tpl +1 -1
  52. package/skills/document/layouts/steps.tpl +1 -1
  53. package/skills/document/layouts/three-kpi.tpl +1 -1
  54. package/skills/document/layouts/timeline.tpl +1 -1
  55. package/skills/document/layouts/toc-panel.tpl +1 -1
  56. package/skills/document/layouts/two-kpi.tpl +2 -2
  57. package/skills/document/layouts/versus.tpl +1 -1
  58. package/skills/document/packs/README.md +1 -1
  59. package/skills/document/pdf.md +13 -0
  60. package/skills/document/rewrite.md +23 -8
  61. package/skills/document/scenarios.json +19 -2
  62. package/skills/document/scenarios.schema.json +1 -0
  63. package/skills/document/styles/_backdrops/rimlight.html +3 -2
  64. package/skills/document/styles/_contract-defaults.css +6 -1
  65. package/skills/document/styles/_samples/_groups/biz-premium.webp +0 -0
  66. package/skills/document/styles/_samples/mckinsey.webp +0 -0
  67. package/skills/document/styles/mckinsey/backdrop.html +7 -5
  68. package/skills/grill-me/SKILL.md +6 -0
  69. package/skills/grill-me/agents/openai.yaml +5 -0
  70. package/skills/grilling/SKILL.md +28 -0
  71. package/skills/grilling/agents/openai.yaml +3 -0
@@ -22043,6 +22043,7 @@ __export(pdf_extract_exports, {
22043
22043
  extractPdfText: () => extractPdfText,
22044
22044
  extractPdfTextLines: () => extractPdfTextLines,
22045
22045
  pdfNeedsPassword: () => pdfNeedsPassword,
22046
+ pngPixels: () => pngPixels,
22046
22047
  renderPdfPages: () => renderPdfPages,
22047
22048
  scanPdfSignals: () => scanPdfSignals,
22048
22049
  textMathHint: () => textMathHint,
@@ -22052,7 +22053,12 @@ function loadMupdf() {
22052
22053
  if (!_mupdf) {
22053
22054
  const deps = process.env.TALOS_SKILL_DEPS;
22054
22055
  const spec = deps ? (0, import_node_url.pathToFileURL)((0, import_node_path.join)(deps, "mupdf", "dist", "mupdf.js")).href : "mupdf";
22055
- _mupdf = import(spec);
22056
+ const loading = import(spec);
22057
+ _mupdf = loading;
22058
+ loading.catch(() => {
22059
+ if (_mupdf === loading)
22060
+ _mupdf = null;
22061
+ });
22056
22062
  }
22057
22063
  return _mupdf;
22058
22064
  }
@@ -22336,6 +22342,13 @@ async function renderPdfPages(bytes, pages, scale = 2, maxEdge) {
22336
22342
  }
22337
22343
  return out;
22338
22344
  }
22345
+ async function pngPixels(png) {
22346
+ const mupdf = await loadMupdf();
22347
+ const pix = new mupdf.Image(png).toPixmap();
22348
+ const width = pix.getWidth(), height = pix.getHeight();
22349
+ const channels = pix.getStride() / width;
22350
+ return { width, height, channels, data: pix.getPixels() };
22351
+ }
22339
22352
  async function extractPdfImages(bytes, pages) {
22340
22353
  const { doc } = await openDoc(bytes);
22341
22354
  const total = doc.countPages();
@@ -24,7 +24,12 @@ function loadMupdf() {
24
24
  if (!_mupdf) {
25
25
  const deps = process.env.TALOS_SKILL_DEPS;
26
26
  const spec = deps ? (0, import_node_url.pathToFileURL)((0, import_node_path.join)(deps, "mupdf", "dist", "mupdf.js")).href : "mupdf";
27
- _mupdf = import(spec);
27
+ const loading = import(spec);
28
+ _mupdf = loading;
29
+ loading.catch(() => {
30
+ if (_mupdf === loading)
31
+ _mupdf = null;
32
+ });
28
33
  }
29
34
  return _mupdf;
30
35
  }
@@ -22043,6 +22043,7 @@ __export(pdf_extract_exports, {
22043
22043
  extractPdfText: () => extractPdfText,
22044
22044
  extractPdfTextLines: () => extractPdfTextLines,
22045
22045
  pdfNeedsPassword: () => pdfNeedsPassword,
22046
+ pngPixels: () => pngPixels,
22046
22047
  renderPdfPages: () => renderPdfPages,
22047
22048
  scanPdfSignals: () => scanPdfSignals,
22048
22049
  textMathHint: () => textMathHint,
@@ -22052,7 +22053,12 @@ function loadMupdf() {
22052
22053
  if (!_mupdf) {
22053
22054
  const deps = process.env.TALOS_SKILL_DEPS;
22054
22055
  const spec = deps ? (0, import_node_url.pathToFileURL)((0, import_node_path.join)(deps, "mupdf", "dist", "mupdf.js")).href : "mupdf";
22055
- _mupdf = import(spec);
22056
+ const loading = import(spec);
22057
+ _mupdf = loading;
22058
+ loading.catch(() => {
22059
+ if (_mupdf === loading)
22060
+ _mupdf = null;
22061
+ });
22056
22062
  }
22057
22063
  return _mupdf;
22058
22064
  }
@@ -22336,6 +22342,13 @@ async function renderPdfPages(bytes, pages, scale = 2, maxEdge) {
22336
22342
  }
22337
22343
  return out;
22338
22344
  }
22345
+ async function pngPixels(png) {
22346
+ const mupdf = await loadMupdf();
22347
+ const pix = new mupdf.Image(png).toPixmap();
22348
+ const width = pix.getWidth(), height = pix.getHeight();
22349
+ const channels = pix.getStride() / width;
22350
+ return { width, height, channels, data: pix.getPixels() };
22351
+ }
22339
22352
  async function extractPdfImages(bytes, pages) {
22340
22353
  const { doc } = await openDoc(bytes);
22341
22354
  const total = doc.countPages();
@@ -24,7 +24,12 @@ function loadMupdf() {
24
24
  if (!_mupdf) {
25
25
  const deps = process.env.TALOS_SKILL_DEPS;
26
26
  const spec = deps ? (0, import_node_url.pathToFileURL)((0, import_node_path.join)(deps, "mupdf", "dist", "mupdf.js")).href : "mupdf";
27
- _mupdf = import(spec);
27
+ const loading = import(spec);
28
+ _mupdf = loading;
29
+ loading.catch(() => {
30
+ if (_mupdf === loading)
31
+ _mupdf = null;
32
+ });
28
33
  }
29
34
  return _mupdf;
30
35
  }
@@ -24,7 +24,12 @@ function loadMupdf() {
24
24
  if (!_mupdf) {
25
25
  const deps = process.env.TALOS_SKILL_DEPS;
26
26
  const spec = deps ? (0, import_node_url.pathToFileURL)((0, import_node_path.join)(deps, "mupdf", "dist", "mupdf.js")).href : "mupdf";
27
- _mupdf = import(spec);
27
+ const loading = import(spec);
28
+ _mupdf = loading;
29
+ loading.catch(() => {
30
+ if (_mupdf === loading)
31
+ _mupdf = null;
32
+ });
28
33
  }
29
34
  return _mupdf;
30
35
  }