dsh-ppt 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.en.md +13 -13
  3. package/README.md +13 -13
  4. package/docs/DATA.md +2 -2
  5. package/docs/REFERENCE.en.md +8 -8
  6. package/docs/REFERENCE.zh.md +8 -8
  7. package/docs/USAGE.en.md +11 -7
  8. package/docs/USAGE.md +11 -7
  9. package/docs/VALIDATION.md +4 -0
  10. package/docs/WORKBENCH.md +4 -4
  11. package/docs/assets/intro/workflow-en-dark.svg +1 -1
  12. package/docs/assets/intro/workflow-en-light.svg +1 -1
  13. package/docs/assets/intro/workflow-en-mobile-dark.svg +1 -1
  14. package/docs/assets/intro/workflow-en-mobile-light.svg +1 -1
  15. package/docs/assets/intro/workflow-zh-dark.svg +1 -1
  16. package/docs/assets/intro/workflow-zh-light.svg +1 -1
  17. package/docs/assets/intro/workflow-zh-mobile-dark.svg +1 -1
  18. package/docs/assets/intro/workflow-zh-mobile-light.svg +1 -1
  19. package/lib/client.js +230 -76
  20. package/lib/ecosystem.d.ts +73 -0
  21. package/lib/ecosystem.js +1352 -0
  22. package/lib/execution.d.ts +6 -1
  23. package/lib/execution.js +69 -0
  24. package/lib/tools.js +77 -0
  25. package/lib/types.d.ts +57 -1
  26. package/lib/workbench-language.js +4 -0
  27. package/lib/workbench.d.ts +2 -0
  28. package/lib/workbench.js +331 -8
  29. package/package.json +1 -1
  30. package/skills/dsh-ppt/SKILL.md +3 -3
  31. package/skills/dsh-ppt/package.json +1 -1
  32. package/skills/dsh-ppt/references/advanced.md +10 -5
  33. package/skills/dsh-ppt/references/syntax.md +1 -0
  34. package/skills/dsh-ppt/scripts/build-deck.mjs +39 -8
  35. package/skills/dsh-ppt/scripts/deck-advanced.mjs +50 -13
  36. package/skills/dsh-ppt/scripts/deck-chrome.mjs +1706 -0
  37. package/skills/dsh-ppt/scripts/deck-core.mjs +116 -6
  38. package/skills/dsh-ppt/scripts/deck-delivery.mjs +636 -41
  39. package/skills/dsh-ppt/scripts/deck-diagrams.mjs +2842 -0
  40. package/skills/dsh-ppt/scripts/deck-director.mjs +49 -3
  41. package/skills/dsh-ppt/scripts/deck-layouts.mjs +482 -5270
  42. package/skills/dsh-ppt/scripts/deck-mermaid.mjs +2737 -0
  43. package/skills/dsh-ppt/scripts/deck-office.mjs +1541 -0
@@ -0,0 +1,73 @@
1
+ import type { DeckEngine, PptCitationStyle, PptCiteArgs, PptCiteResult, PptRemotionArgs, PptRemotionResult } from './types.js';
2
+ export interface NormalizedAuthor {
3
+ given: string;
4
+ family: string;
5
+ name: string;
6
+ }
7
+ export interface NormalizedCitation {
8
+ id: string;
9
+ bibKey: string;
10
+ doi: string;
11
+ title: string;
12
+ authors: NormalizedAuthor[];
13
+ containerTitle: string;
14
+ publisher: string;
15
+ year: number;
16
+ volume: string;
17
+ issue: string;
18
+ page: string;
19
+ url: string;
20
+ type: string;
21
+ }
22
+ export interface PaceSlideBudget {
23
+ slide: number;
24
+ slideId?: string;
25
+ title: string;
26
+ layout: string;
27
+ seconds: number;
28
+ minutes: number;
29
+ status: 'ok' | 'over-budget' | 'under-budget';
30
+ }
31
+ export interface PaceBudgetReport {
32
+ slideCount: number;
33
+ estimatedSeconds: number;
34
+ estimatedMinutes: number;
35
+ targetMinutes: number | null;
36
+ deltaMinutes: number;
37
+ deltaSeconds?: number;
38
+ overBudget: boolean;
39
+ status?: 'on-track' | 'over-budget' | 'under-budget';
40
+ overrunSlides: number[];
41
+ overBudgetSlides?: number[];
42
+ slides: PaceSlideBudget[];
43
+ }
44
+ export declare function normalizeDoi(raw: unknown): string;
45
+ export declare function parseBibtexEntries(text: string): NormalizedCitation[];
46
+ export declare function loadCitationEntriesFromFile(filePath: string): NormalizedCitation[];
47
+ export declare function discoverCitationStorePath(cwd: string): string | undefined;
48
+ export declare function formatShortSourceCitation(entry: NormalizedCitation, num: number, includeDoi?: boolean): string;
49
+ export declare function formatReferenceEntry(entry: NormalizedCitation, num: number, style?: PptCitationStyle): string;
50
+ export declare function attachCitationsToDeck(options: PptCiteArgs & {
51
+ cwd?: string;
52
+ signal?: AbortSignal;
53
+ engine: DeckEngine;
54
+ }): Promise<PptCiteResult>;
55
+ export declare function computePaceBudgetFallback(manifest: any, targetMinutesOverride?: number): PaceBudgetReport;
56
+ export declare function renderOnePagerHtmlFallback(manifest: any, lang?: string): string;
57
+ export declare function buildRemotionBundleFiles(manifest: any, options?: {
58
+ fps?: number;
59
+ format?: 'landscape' | 'portrait' | 'square';
60
+ themeTokens?: Record<string, string>;
61
+ paceBudget?: PaceBudgetReport;
62
+ }): {
63
+ files: Record<string, string>;
64
+ storyboard: Record<string, unknown>;
65
+ fps: number;
66
+ totalFrames: number;
67
+ totalSeconds: number;
68
+ };
69
+ export declare function exportRemotionBundle(options: PptRemotionArgs & {
70
+ cwd?: string;
71
+ signal?: AbortSignal;
72
+ engine: DeckEngine;
73
+ }): Promise<PptRemotionResult>;