@nahisaho/katashiro-generator 0.1.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 (61) hide show
  1. package/dist/citation/citation-generator.d.ts +68 -0
  2. package/dist/citation/citation-generator.d.ts.map +1 -0
  3. package/dist/citation/citation-generator.js +134 -0
  4. package/dist/citation/citation-generator.js.map +1 -0
  5. package/dist/citation/index.d.ts +6 -0
  6. package/dist/citation/index.d.ts.map +1 -0
  7. package/dist/citation/index.js +5 -0
  8. package/dist/citation/index.js.map +1 -0
  9. package/dist/export/export-service.d.ts +96 -0
  10. package/dist/export/export-service.d.ts.map +1 -0
  11. package/dist/export/export-service.js +278 -0
  12. package/dist/export/export-service.js.map +1 -0
  13. package/dist/export/index.d.ts +7 -0
  14. package/dist/export/index.d.ts.map +1 -0
  15. package/dist/export/index.js +7 -0
  16. package/dist/export/index.js.map +1 -0
  17. package/dist/index.d.ts +16 -0
  18. package/dist/index.d.ts.map +1 -0
  19. package/dist/index.js +15 -0
  20. package/dist/index.js.map +1 -0
  21. package/dist/interfaces.d.ts +28 -0
  22. package/dist/interfaces.d.ts.map +1 -0
  23. package/dist/interfaces.js +5 -0
  24. package/dist/interfaces.js.map +1 -0
  25. package/dist/presentation/index.d.ts +7 -0
  26. package/dist/presentation/index.d.ts.map +1 -0
  27. package/dist/presentation/index.js +7 -0
  28. package/dist/presentation/index.js.map +1 -0
  29. package/dist/presentation/presentation-generator.d.ts +106 -0
  30. package/dist/presentation/presentation-generator.d.ts.map +1 -0
  31. package/dist/presentation/presentation-generator.js +250 -0
  32. package/dist/presentation/presentation-generator.js.map +1 -0
  33. package/dist/report/index.d.ts +6 -0
  34. package/dist/report/index.d.ts.map +1 -0
  35. package/dist/report/index.js +5 -0
  36. package/dist/report/index.js.map +1 -0
  37. package/dist/report/report-generator.d.ts +82 -0
  38. package/dist/report/report-generator.d.ts.map +1 -0
  39. package/dist/report/report-generator.js +262 -0
  40. package/dist/report/report-generator.js.map +1 -0
  41. package/dist/summary/index.d.ts +6 -0
  42. package/dist/summary/index.d.ts.map +1 -0
  43. package/dist/summary/index.js +5 -0
  44. package/dist/summary/index.js.map +1 -0
  45. package/dist/summary/summary-generator.d.ts +42 -0
  46. package/dist/summary/summary-generator.d.ts.map +1 -0
  47. package/dist/summary/summary-generator.js +140 -0
  48. package/dist/summary/summary-generator.js.map +1 -0
  49. package/dist/template/index.d.ts +6 -0
  50. package/dist/template/index.d.ts.map +1 -0
  51. package/dist/template/index.js +5 -0
  52. package/dist/template/index.js.map +1 -0
  53. package/dist/template/template-engine.d.ts +76 -0
  54. package/dist/template/template-engine.d.ts.map +1 -0
  55. package/dist/template/template-engine.js +165 -0
  56. package/dist/template/template-engine.js.map +1 -0
  57. package/dist/types.d.ts +42 -0
  58. package/dist/types.d.ts.map +1 -0
  59. package/dist/types.js +5 -0
  60. package/dist/types.js.map +1 -0
  61. package/package.json +39 -0
@@ -0,0 +1,165 @@
1
+ /**
2
+ * TemplateEngine - テンプレートエンジン
3
+ *
4
+ * @requirement REQ-GEN-004
5
+ * @design DES-KATASHIRO-001 §2.3 Generator Container
6
+ * @task TSK-034
7
+ */
8
+ /**
9
+ * テンプレートエンジン実装
10
+ */
11
+ export class TemplateEngine {
12
+ templates = new Map();
13
+ helpers = new Map();
14
+ constructor() {
15
+ this.registerBuiltInHelpers();
16
+ this.registerBuiltInTemplates();
17
+ }
18
+ /**
19
+ * テンプレートをレンダリング
20
+ */
21
+ render(template, data) {
22
+ let result = template;
23
+ // Process conditionals first
24
+ result = this.processConditionals(result, data);
25
+ // Process each loops
26
+ result = this.processEachLoops(result, data);
27
+ // Process helpers
28
+ result = this.processHelpers(result, data);
29
+ // Process simple variables
30
+ result = this.processVariables(result, data);
31
+ return result;
32
+ }
33
+ /**
34
+ * 名前付きテンプレートをレンダリング
35
+ */
36
+ renderNamed(name, data) {
37
+ const template = this.templates.get(name);
38
+ if (!template) {
39
+ throw new Error(`Template not found: ${name}`);
40
+ }
41
+ return this.render(template, data);
42
+ }
43
+ /**
44
+ * テンプレートを登録
45
+ */
46
+ registerTemplate(name, content) {
47
+ this.templates.set(name, content);
48
+ }
49
+ /**
50
+ * ヘルパーを登録
51
+ */
52
+ registerHelper(name, fn) {
53
+ this.helpers.set(name, fn);
54
+ }
55
+ /**
56
+ * ビルトインテンプレート一覧
57
+ */
58
+ getBuiltInTemplates() {
59
+ return [
60
+ {
61
+ name: 'report',
62
+ content: '# {{title}}\n\n{{body}}\n\n## 参考文献\n{{references}}',
63
+ description: 'Basic report template',
64
+ },
65
+ {
66
+ name: 'summary',
67
+ content: '## {{title}}\n\n{{summary}}',
68
+ description: 'Summary template',
69
+ },
70
+ {
71
+ name: 'bullet-list',
72
+ content: '{{#each items}}• {{this}}\n{{/each}}',
73
+ description: 'Bullet list template',
74
+ },
75
+ ];
76
+ }
77
+ /**
78
+ * 条件分岐を処理
79
+ */
80
+ processConditionals(template, data) {
81
+ const ifRegex = /\{\{#if\s+(\w+)\}\}([\s\S]*?)\{\{\/if\}\}/g;
82
+ return template.replace(ifRegex, (_, key, content) => {
83
+ const value = this.getValue(data, key);
84
+ return value ? content : '';
85
+ });
86
+ }
87
+ /**
88
+ * eachループを処理
89
+ */
90
+ processEachLoops(template, data) {
91
+ const eachRegex = /\{\{#each\s+(\w+)\}\}([\s\S]*?)\{\{\/each\}\}/g;
92
+ return template.replace(eachRegex, (_, key, content) => {
93
+ const array = this.getValue(data, key);
94
+ if (!Array.isArray(array)) {
95
+ return '';
96
+ }
97
+ return array.map(item => {
98
+ let itemContent = content;
99
+ // Replace {{this}} with current item
100
+ itemContent = itemContent.replace(/\{\{this\}\}/g, String(item));
101
+ // Replace {{@index}} with current index
102
+ return itemContent;
103
+ }).join('');
104
+ });
105
+ }
106
+ /**
107
+ * ヘルパーを処理
108
+ */
109
+ processHelpers(template, data) {
110
+ const helperRegex = /\{\{(\w+)\s+(\w+(?:\.\w+)*)\}\}/g;
111
+ return template.replace(helperRegex, (match, helperName, key) => {
112
+ const helper = this.helpers.get(helperName);
113
+ if (!helper) {
114
+ return match; // Not a helper, leave as is
115
+ }
116
+ const value = this.getValue(data, key);
117
+ return helper(value);
118
+ });
119
+ }
120
+ /**
121
+ * 変数を処理
122
+ */
123
+ processVariables(template, data) {
124
+ const varRegex = /\{\{(\w+(?:\.\w+)*)\}\}/g;
125
+ return template.replace(varRegex, (_, key) => {
126
+ const value = this.getValue(data, key);
127
+ return value !== undefined ? String(value) : '';
128
+ });
129
+ }
130
+ /**
131
+ * ネストしたオブジェクトから値を取得
132
+ */
133
+ getValue(data, path) {
134
+ const keys = path.split('.');
135
+ let value = data;
136
+ for (const key of keys) {
137
+ if (value === null || value === undefined) {
138
+ return undefined;
139
+ }
140
+ value = value[key];
141
+ }
142
+ return value;
143
+ }
144
+ /**
145
+ * ビルトインヘルパーを登録
146
+ */
147
+ registerBuiltInHelpers() {
148
+ this.helpers.set('upper', (v) => String(v).toUpperCase());
149
+ this.helpers.set('lower', (v) => String(v).toLowerCase());
150
+ this.helpers.set('capitalize', (v) => {
151
+ const s = String(v);
152
+ return s.charAt(0).toUpperCase() + s.slice(1);
153
+ });
154
+ this.helpers.set('trim', (v) => String(v).trim());
155
+ }
156
+ /**
157
+ * ビルトインテンプレートを登録
158
+ */
159
+ registerBuiltInTemplates() {
160
+ for (const t of this.getBuiltInTemplates()) {
161
+ this.templates.set(t.name, t.content);
162
+ }
163
+ }
164
+ }
165
+ //# sourceMappingURL=template-engine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-engine.js","sourceRoot":"","sources":["../../src/template/template-engine.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAgBH;;GAEG;AACH,MAAM,OAAO,cAAc;IACjB,SAAS,GAAwB,IAAI,GAAG,EAAE,CAAC;IAC3C,OAAO,GAAgC,IAAI,GAAG,EAAE,CAAC;IAEzD;QACE,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAC9B,IAAI,CAAC,wBAAwB,EAAE,CAAC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C;YACnB,CAAC;YACD,KAAK,GAAI,KAAiC,CAAC,GAAG,CAAC,CAAC;QAClD,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;OAEG;IACK,sBAAsB;QAC5B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QAC1D,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QAC1D,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,EAAE;YACnC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;YACpB,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACK,wBAAwB;QAC9B,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,mBAAmB,EAAE,EAAE,CAAC;YAC3C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Generator型定義
3
+ */
4
+ import type { ContentType, URL } from '@nahisaho/katashiro-core';
5
+ export interface GenerationOptions {
6
+ readonly type: ContentType;
7
+ readonly maxLength?: number;
8
+ readonly style?: string;
9
+ readonly tone?: 'formal' | 'casual' | 'technical';
10
+ readonly includeImages?: boolean;
11
+ readonly includeToc?: boolean;
12
+ }
13
+ export interface Outline {
14
+ readonly title: string;
15
+ readonly sections: OutlineSection[];
16
+ }
17
+ export interface OutlineSection {
18
+ readonly heading: string;
19
+ readonly level: number;
20
+ readonly points?: string[];
21
+ readonly subsections?: OutlineSection[];
22
+ }
23
+ export interface Citation {
24
+ readonly id: string;
25
+ readonly source: URL;
26
+ readonly title: string;
27
+ readonly author?: string;
28
+ readonly date?: string;
29
+ readonly accessedAt: string;
30
+ readonly formatted: string;
31
+ }
32
+ export interface ChartConfig {
33
+ readonly type: 'bar' | 'line' | 'pie' | 'scatter' | 'mermaid';
34
+ readonly title?: string;
35
+ readonly xLabel?: string;
36
+ readonly yLabel?: string;
37
+ readonly colors?: string[];
38
+ readonly width?: number;
39
+ readonly height?: number;
40
+ }
41
+ export type PlatformFormat = 'markdown' | 'html' | 'qiita' | 'zenn' | 'note' | 'medium';
42
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAEjE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,WAAW,CAAC;IAClD,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,Q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ingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@nahisaho/katashiro-generator",
3
+ "version": "0.1.0",
4
+ "description": "KATASHIRO Generator - コンテンツ生成パッケージ",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "scripts": {
18
+ "build": "tsc",
19
+ "clean": "rm -rf dist",
20
+ "test": "vitest run"
21
+ },
22
+ "dependencies": {
23
+ "@nahisaho/katashiro-core": "*"
24
+ },
25
+ "author": "nahisaho",
26
+ "license": "MIT",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "https://github.com/nahisaho/katashiro.git",
30
+ "directory": "packages/generator"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public"
34
+ },
35
+ "homepage": "https://github.com/nahisaho/katashiro#readme",
36
+ "bugs": {
37
+ "url": "https://github.com/nahisaho/katashiro/issues"
38
+ }
39
+ }