@intelligentgraphics/ig.gfx.packager 3.0.6 → 3.0.8

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.
@@ -3,7 +3,7 @@ import 'path';
3
3
  import 'fs';
4
4
  import 'resolve';
5
5
  import 'write-pkg';
6
- import { h as getPackageTypescriptFiles, b as readPackageCreatorIndex, j as writePackageCreatorIndex } from './cli-0844c1bd.js';
6
+ import { h as getPackageTypescriptFiles, b as readPackageCreatorIndex, j as writePackageCreatorIndex } from './cli-fbbf208b.js';
7
7
  import 'node:path';
8
8
  import 'node:fs';
9
9
  import 'axios';
@@ -16,6 +16,76 @@ import 'events';
16
16
  import 'util';
17
17
  import 'inquirer';
18
18
 
19
+ /**
20
+ * Extracts and returns script array for _Index.json from a src folder
21
+ *
22
+ * @param folderPath path to a src folder
23
+ */
24
+ function generateIndex({
25
+ location,
26
+ ignore = []
27
+ }) {
28
+ const files = getPackageTypescriptFiles(location);
29
+ const filtered = files.filter(path => {
30
+ return !ignore.some(suffix => path.endsWith(suffix));
31
+ });
32
+ const arr = [];
33
+ const existingIndex = readPackageCreatorIndex(location) ?? [];
34
+ const program = ts.createProgram(filtered, {
35
+ allowJs: true
36
+ });
37
+ const typeChecker = program.getTypeChecker();
38
+ filtered.forEach(file => {
39
+ // Create a Program to represent the project, then pull out the
40
+ // source file to parse its AST.
41
+ const sourceFile = program.getSourceFile(file);
42
+
43
+ // Loop through the root AST nodes of the file
44
+ ts.forEachChild(sourceFile, node => {
45
+ for (const scriptingClass of findScriptingClasses(node)) {
46
+ if (scriptingClass.node.name === undefined) {
47
+ throw new Error(`Expected ${scriptingClass.type} class to have a name`);
48
+ }
49
+ const name = typeChecker.getFullyQualifiedName(typeChecker.getSymbolAtLocation(scriptingClass.node.name));
50
+ if (name.length > 45) {
51
+ throw new Error(`Package name length >45 '${name}'`);
52
+ }
53
+ const parameterDeclaration = getScriptingClassParameterdeclaration(scriptingClass);
54
+ const parametersType = parameterDeclaration === undefined ? undefined : typeChecker.getTypeAtLocation(parameterDeclaration);
55
+ if (parametersType === undefined) {
56
+ console.log(`Failed to find parameters type declaration for ${scriptingClass.type} ${name}. Skipping parameter list generation`);
57
+ }
58
+ const existingIndexEntry = existingIndex.find(entry => entry.Name === name);
59
+ const obj = {
60
+ Name: name,
61
+ Description: existingIndexEntry === null || existingIndexEntry === void 0 ? void 0 : existingIndexEntry.Description,
62
+ Type: scriptingClass.type === "evaluator" ? "Evaluator" : "Interactor",
63
+ Parameters: []
64
+ };
65
+ const rawDocTags = ts.getJSDocTags(scriptingClass.node);
66
+ const dict = getTagDict(rawDocTags);
67
+ if (dict.summary) {
68
+ obj.Description = dict.summary;
69
+ } else {
70
+ const comment = typeChecker.getTypeAtLocation(scriptingClass.node).symbol.getDocumentationComment(typeChecker).map(comment => comment.text).join(" ");
71
+ if (comment) {
72
+ obj.Description = comment;
73
+ }
74
+ }
75
+ if (parametersType !== undefined) {
76
+ obj.Parameters = genParameters(typeChecker.getPropertiesOfType(parametersType));
77
+ if (obj.Parameters.length === 0 && parametersType.getStringIndexType() !== undefined) {
78
+ obj.Parameters = (existingIndexEntry === null || existingIndexEntry === void 0 ? void 0 : existingIndexEntry.Parameters) ?? [];
79
+ }
80
+ } else if (existingIndexEntry !== undefined) {
81
+ obj.Parameters = existingIndexEntry.Parameters;
82
+ }
83
+ arr.push(obj);
84
+ }
85
+ });
86
+ });
87
+ writePackageCreatorIndex(location, arr);
88
+ }
19
89
  function capitalizeFirstLetter(string) {
20
90
  return (string === null || string === void 0 ? void 0 : string.charAt(0).toUpperCase()) + (string === null || string === void 0 ? void 0 : string.slice(1));
21
91
  }
@@ -40,55 +110,6 @@ function parseDefault(value, type) {
40
110
  return value.replace(/^"/, "").replace(/"$/, "");
41
111
  }
42
112
  }
43
- const findEvaluatorNodes = node => {
44
- let body;
45
- if (ts.isModuleDeclaration(node)) {
46
- body = node.body;
47
- }
48
- if (body !== undefined && ts.isModuleDeclaration(body)) {
49
- body = body.body;
50
- }
51
- const evaluators = [];
52
- if (body !== undefined) {
53
- ts.forEachChild(body, child => {
54
- var _child$heritageClause;
55
- if (!ts.isClassDeclaration(child)) {
56
- return;
57
- }
58
- const isEvaluator = (_child$heritageClause = child.heritageClauses) === null || _child$heritageClause === void 0 ? void 0 : _child$heritageClause.some(clause => {
59
- if (clause.token !== ts.SyntaxKind.ExtendsKeyword && clause.token !== ts.SyntaxKind.ImplementsKeyword) {
60
- return false;
61
- }
62
- return clause.types.some(type => type.getText().includes("Evaluator"));
63
- });
64
- if (isEvaluator) {
65
- evaluators.push(child);
66
- }
67
- });
68
- }
69
- return evaluators;
70
- };
71
- function getParameterDeclaration(evaluatorNode) {
72
- var _evaluatorNode$member;
73
- let memb = (_evaluatorNode$member = evaluatorNode.members) === null || _evaluatorNode$member === void 0 ? void 0 : _evaluatorNode$member.find(member => {
74
- var _member$name;
75
- return (member === null || member === void 0 ? void 0 : (_member$name = member.name) === null || _member$name === void 0 ? void 0 : _member$name.getText()) == "Create";
76
- });
77
- if (memb && ts.isMethodDeclaration(memb)) {
78
- return memb.parameters[2];
79
- }
80
- }
81
- function getModuleName(sourceFile) {
82
- let fullName = "";
83
- if (ts.isModuleDeclaration(sourceFile)) {
84
- fullName += sourceFile.name.getText();
85
- let packageB = sourceFile.body;
86
- if (ts.isModuleDeclaration(packageB)) {
87
- fullName += "." + packageB.name.getText();
88
- }
89
- }
90
- return fullName;
91
- }
92
113
  function genParameters(properties) {
93
114
  return properties.map((symbol, i) => {
94
115
  var _symbol$getDeclaratio;
@@ -140,8 +161,8 @@ function genParameters(properties) {
140
161
  if (dict.creatorType) {
141
162
  parameter.Type = dict.creatorType;
142
163
  }
143
- if (dict.default && dict.creatorType) {
144
- parameter.Default = parseDefault(dict.default, dict.creatorType);
164
+ if (dict.default) {
165
+ parameter.Default = parseDefault(dict.default, parameter.Type);
145
166
  }
146
167
  }
147
168
  return parameter;
@@ -154,78 +175,91 @@ function getTagDict(tags) {
154
175
  }
155
176
  return dict;
156
177
  }
157
-
178
+ const getScriptingClassParameterdeclaration = scriptingClass => {
179
+ for (const member of scriptingClass.node.members) {
180
+ if (ts.isMethodDeclaration(member)) {
181
+ for (let index = 0; index < member.parameters.length; index++) {
182
+ const parameter = member.parameters[index];
183
+ if (isScriptingClassParameterDeclaration(scriptingClass, member, index)) {
184
+ return parameter;
185
+ }
186
+ }
187
+ }
188
+ if (ts.isConstructorDeclaration(member)) {
189
+ for (let index = 0; index < member.parameters.length; index++) {
190
+ const parameter = member.parameters[index];
191
+ if (isScriptingClassParameterDeclaration(scriptingClass, member, index)) {
192
+ return parameter;
193
+ }
194
+ }
195
+ }
196
+ }
197
+ };
198
+ const isScriptingClassParameterDeclaration = (scriptingClass, memberNode, parameterIndex) => {
199
+ if (scriptingClass.type === "evaluator") {
200
+ var _memberNode$name;
201
+ return (memberNode === null || memberNode === void 0 ? void 0 : (_memberNode$name = memberNode.name) === null || _memberNode$name === void 0 ? void 0 : _memberNode$name.getText()) == "Create" && parameterIndex === 2;
202
+ }
203
+ if (scriptingClass.type === "interactor") {
204
+ return memberNode.kind === ts.SyntaxKind.Constructor && parameterIndex === 0;
205
+ }
206
+ return false;
207
+ };
158
208
  /**
159
- * Extracts and returns script array for _Index.json from a src folder
209
+ * Finds interactors and evaluators within a script file
160
210
  *
161
- * @param folderPath path to a src folder
211
+ * @param {ts.Node} node
212
+ * @return {*}
162
213
  */
163
- function extract(location, ignore = []) {
164
- const files = getPackageTypescriptFiles(location);
165
- const filtered = files.filter(path => {
166
- return !ignore.some(suffix => path.endsWith(suffix));
167
- });
168
- const arr = [];
169
- const existingIndex = readPackageCreatorIndex(location) ?? [];
170
- const program = ts.createProgram(filtered, {
171
- allowJs: true
172
- });
173
- const typeChecker = program.getTypeChecker();
174
- filtered.forEach(file => {
175
- // Create a Program to represent the project, then pull out the
176
- // source file to parse its AST.
177
- const sourceFile = program.getSourceFile(file);
178
-
179
- // Loop through the root AST nodes of the file
180
- ts.forEachChild(sourceFile, node => {
181
- for (const evalNode of findEvaluatorNodes(node)) {
182
- const moduleName = getModuleName(node);
183
- if (evalNode.name === undefined) {
184
- throw new Error(`Expected evaluator class to have a name`);
185
- }
186
- const name = moduleName + "." + evalNode.name.getText();
187
- if (name.length > 45) {
188
- throw new Error(`Package name length >45 '${name}'`);
189
- }
190
- const parameterDeclaration = getParameterDeclaration(evalNode);
191
- const parametersType = parameterDeclaration === undefined ? undefined : typeChecker.getTypeAtLocation(parameterDeclaration);
192
- if (parametersType === undefined) {
193
- console.log(`Failed to find parameters type declaration for evaluator ${evalNode.name.getText()}. Skipping parameter list generation`);
194
- }
195
- const existingIndexEntry = existingIndex.find(entry => entry.Name === name);
196
- const obj = {
197
- Name: name,
198
- Description: existingIndexEntry === null || existingIndexEntry === void 0 ? void 0 : existingIndexEntry.Description,
199
- Type: "Evaluator",
200
- Parameters: []
201
- };
202
- const rawDocTags = ts.getJSDocTags(evalNode);
203
- const dict = getTagDict(rawDocTags);
204
- if (dict.summary) {
205
- obj.Description = dict.summary;
206
- } else {
207
- const comment = typeChecker.getTypeAtLocation(evalNode).symbol.getDocumentationComment(typeChecker).map(comment => comment.text).join(" ");
208
- if (comment) {
209
- obj.Description = comment;
210
- }
211
- }
212
- if (dict.creatorType) {
213
- obj.Type = dict.creatorType;
214
- }
215
- if (parametersType !== undefined) {
216
- obj.Parameters = genParameters(typeChecker.getPropertiesOfType(parametersType));
217
- if (obj.Parameters.length === 0 && parametersType.getStringIndexType() !== undefined) {
218
- obj.Parameters = (existingIndexEntry === null || existingIndexEntry === void 0 ? void 0 : existingIndexEntry.Parameters) ?? [];
219
- }
220
- } else if (existingIndexEntry !== undefined) {
221
- obj.Parameters = existingIndexEntry.Parameters;
222
- }
223
- arr.push(obj);
214
+ const findScriptingClasses = node => {
215
+ let body;
216
+ if (ts.isModuleDeclaration(node)) {
217
+ body = node.body;
218
+ }
219
+ if (body !== undefined && ts.isModuleDeclaration(body)) {
220
+ body = body.body;
221
+ }
222
+ const classes = [];
223
+ if (body !== undefined) {
224
+ ts.forEachChild(body, child => {
225
+ if (!ts.isClassDeclaration(child)) {
226
+ return;
227
+ }
228
+ const scriptingClass = detectScriptingClass(child);
229
+ if (scriptingClass !== undefined) {
230
+ classes.push(scriptingClass);
224
231
  }
225
232
  });
233
+ }
234
+ return classes;
235
+ };
236
+ const detectScriptingClass = node => {
237
+ var _node$heritageClauses, _node$heritageClauses2;
238
+ const isEvaluator = (_node$heritageClauses = node.heritageClauses) === null || _node$heritageClauses === void 0 ? void 0 : _node$heritageClauses.some(clause => {
239
+ if (clause.token !== ts.SyntaxKind.ExtendsKeyword && clause.token !== ts.SyntaxKind.ImplementsKeyword) {
240
+ return false;
241
+ }
242
+ return clause.types.some(type => type.getText().includes("Evaluator"));
226
243
  });
227
- writePackageCreatorIndex(location, arr);
228
- }
244
+ if (isEvaluator) {
245
+ return {
246
+ node,
247
+ type: "evaluator"
248
+ };
249
+ }
250
+ const isInteractor = (_node$heritageClauses2 = node.heritageClauses) === null || _node$heritageClauses2 === void 0 ? void 0 : _node$heritageClauses2.some(clause => {
251
+ if (clause.token !== ts.SyntaxKind.ExtendsKeyword) {
252
+ return false;
253
+ }
254
+ return clause.types.some(type => type.getText().includes("Interactor"));
255
+ });
256
+ if (isInteractor) {
257
+ return {
258
+ node,
259
+ type: "interactor"
260
+ };
261
+ }
262
+ };
229
263
 
230
- export { extract };
231
- //# sourceMappingURL=generate-3019231d.js.map
264
+ export { generateIndex, isScriptingClassParameterDeclaration };
265
+ //# sourceMappingURL=generateIndex-eb975b01.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateIndex-eb975b01.js","sources":["../src/commands/generateIndex.ts"],"sourcesContent":["import ts from \"typescript\";\n\nimport {\n\tPackageLocation,\n\twritePackageCreatorIndex,\n\treadPackageCreatorIndex,\n} from \"../lib/package\";\nimport { getPackageTypescriptFiles } from \"../lib/scripts\";\nimport {\n\tCreatorIndexEntry,\n\tCreatorIndexParameter,\n\tCreatorIndexParameterType,\n} from \"../lib/package\";\n\nexport interface GenerateIndexOptions {\n\tignore?: string[];\n\tlocation: PackageLocation;\n}\n\n/**\n * Extracts and returns script array for _Index.json from a src folder\n *\n * @param folderPath path to a src folder\n */\nexport function generateIndex({ location, ignore = [] }: GenerateIndexOptions) {\n\tconst files = getPackageTypescriptFiles(location);\n\tconst filtered = files.filter((path) => {\n\t\treturn !ignore.some((suffix) => path.endsWith(suffix));\n\t});\n\tconst arr: CreatorIndexEntry[] = [];\n\n\tconst existingIndex = readPackageCreatorIndex(location) ?? [];\n\n\tconst program = ts.createProgram(filtered, { allowJs: true });\n\tconst typeChecker = program.getTypeChecker();\n\tfiltered.forEach((file) => {\n\t\t// Create a Program to represent the project, then pull out the\n\t\t// source file to parse its AST.\n\t\tconst sourceFile = program.getSourceFile(file);\n\n\t\t// Loop through the root AST nodes of the file\n\t\tts.forEachChild(sourceFile!, (node) => {\n\t\t\tfor (const scriptingClass of findScriptingClasses(node)) {\n\t\t\t\tif (scriptingClass.node.name === undefined) {\n\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t`Expected ${scriptingClass.type} class to have a name`,\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tconst name = typeChecker.getFullyQualifiedName(\n\t\t\t\t\ttypeChecker.getSymbolAtLocation(scriptingClass.node.name)!,\n\t\t\t\t);\n\n\t\t\t\tif (name.length > 45) {\n\t\t\t\t\tthrow new Error(`Package name length >45 '${name}'`);\n\t\t\t\t}\n\n\t\t\t\tconst parameterDeclaration =\n\t\t\t\t\tgetScriptingClassParameterdeclaration(scriptingClass);\n\n\t\t\t\tconst parametersType =\n\t\t\t\t\tparameterDeclaration === undefined\n\t\t\t\t\t\t? undefined\n\t\t\t\t\t\t: typeChecker.getTypeAtLocation(parameterDeclaration);\n\n\t\t\t\tif (parametersType === undefined) {\n\t\t\t\t\tconsole.log(\n\t\t\t\t\t\t`Failed to find parameters type declaration for ${scriptingClass.type} ${name}. Skipping parameter list generation`,\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tconst existingIndexEntry = existingIndex.find(\n\t\t\t\t\t(entry) => entry.Name === name,\n\t\t\t\t);\n\n\t\t\t\tconst obj: CreatorIndexEntry = {\n\t\t\t\t\tName: name,\n\t\t\t\t\tDescription: existingIndexEntry?.Description,\n\t\t\t\t\tType:\n\t\t\t\t\t\tscriptingClass.type === \"evaluator\"\n\t\t\t\t\t\t\t? \"Evaluator\"\n\t\t\t\t\t\t\t: \"Interactor\",\n\t\t\t\t\tParameters: [],\n\t\t\t\t};\n\n\t\t\t\tconst rawDocTags = ts.getJSDocTags(scriptingClass.node);\n\n\t\t\t\tconst dict = getTagDict(rawDocTags);\n\t\t\t\tif (dict.summary) {\n\t\t\t\t\tobj.Description = dict.summary;\n\t\t\t\t} else {\n\t\t\t\t\tconst comment = typeChecker\n\t\t\t\t\t\t.getTypeAtLocation(scriptingClass.node)\n\t\t\t\t\t\t.symbol.getDocumentationComment(typeChecker)\n\t\t\t\t\t\t.map((comment) => comment.text)\n\t\t\t\t\t\t.join(\" \");\n\n\t\t\t\t\tif (comment) {\n\t\t\t\t\t\tobj.Description = comment;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (parametersType !== undefined) {\n\t\t\t\t\tobj.Parameters = genParameters(\n\t\t\t\t\t\ttypeChecker.getPropertiesOfType(parametersType),\n\t\t\t\t\t);\n\n\t\t\t\t\tif (\n\t\t\t\t\t\tobj.Parameters.length === 0 &&\n\t\t\t\t\t\tparametersType.getStringIndexType() !== undefined\n\t\t\t\t\t) {\n\t\t\t\t\t\tobj.Parameters = existingIndexEntry?.Parameters ?? [];\n\t\t\t\t\t}\n\t\t\t\t} else if (existingIndexEntry !== undefined) {\n\t\t\t\t\tobj.Parameters = existingIndexEntry.Parameters;\n\t\t\t\t}\n\n\t\t\t\tarr.push(obj);\n\t\t\t}\n\t\t});\n\t});\n\n\twritePackageCreatorIndex(location, arr);\n}\n\nfunction capitalizeFirstLetter(string: string) {\n\treturn string?.charAt(0).toUpperCase() + string?.slice(1);\n}\n\nfunction parseDefault(value: string, type: string) {\n\tconst uType: CreatorIndexParameterType = capitalizeFirstLetter(\n\t\ttype,\n\t) as CreatorIndexParameterType;\n\tif (value === \"null\") return null;\n\tswitch (uType) {\n\t\tcase \"LengthM\":\n\t\tcase \"ArcDEG\":\n\t\tcase \"Float\":\n\t\t\treturn parseFloat(value);\n\t\tcase \"Integer\":\n\t\tcase \"Int\":\n\t\t\treturn parseInt(value);\n\t\tcase \"Boolean\":\n\t\tcase \"Bool\":\n\t\t\treturn value === \"true\";\n\t\tcase \"Material\":\n\t\tcase \"String\":\n\t\tcase \"Geometry\":\n\t\tdefault:\n\t\t\treturn value.replace(/^\"/, \"\").replace(/\"$/, \"\");\n\t}\n}\n\nfunction genParameters(properties: ts.Symbol[]): CreatorIndexParameter[] {\n\treturn properties.map((symbol, i) => {\n\t\tconst parameter: CreatorIndexParameter = {\n\t\t\tName: symbol.name,\n\t\t\tDescription: undefined,\n\t\t\tType: \"String\",\n\t\t\tDefault: undefined,\n\t\t\tDisplayIndex: i + 1,\n\t\t};\n\n\t\tif (parameter.Name.length > 45) {\n\t\t\tthrow new Error(`Parameter name length >45 '${parameter.Name}'`);\n\t\t}\n\n\t\tlet declaration: ts.Declaration | undefined =\n\t\t\tsymbol.getDeclarations()?.[0];\n\t\tlet documentationComment = symbol.getDocumentationComment(undefined);\n\n\t\tlet checkLinksSymbol: ts.Symbol | undefined = symbol;\n\n\t\twhile (checkLinksSymbol !== undefined && declaration === undefined) {\n\t\t\tconst links = (\n\t\t\t\tcheckLinksSymbol as {\n\t\t\t\t\tlinks?: {\n\t\t\t\t\t\tmappedType?: ts.Type;\n\t\t\t\t\t\tsyntheticOrigin?: ts.Symbol;\n\t\t\t\t\t};\n\t\t\t\t} & ts.Symbol\n\t\t\t).links;\n\n\t\t\tif (links?.syntheticOrigin) {\n\t\t\t\tdeclaration = links.syntheticOrigin.getDeclarations()?.[0];\n\n\t\t\t\tif (documentationComment.length === 0) {\n\t\t\t\t\tdocumentationComment =\n\t\t\t\t\t\tlinks.syntheticOrigin.getDocumentationComment(\n\t\t\t\t\t\t\tundefined,\n\t\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tcheckLinksSymbol = links.syntheticOrigin;\n\t\t\t}\n\t\t}\n\n\t\tif (declaration === undefined) {\n\t\t\tconst links = (\n\t\t\t\tsymbol as {\n\t\t\t\t\tlinks?: {\n\t\t\t\t\t\tmappedType?: ts.Type;\n\t\t\t\t\t\tsyntheticOrigin?: ts.Symbol;\n\t\t\t\t\t};\n\t\t\t\t} & ts.Symbol\n\t\t\t).links;\n\n\t\t\tif (links?.syntheticOrigin) {\n\t\t\t\tdeclaration = links.syntheticOrigin.getDeclarations()?.[0];\n\n\t\t\t\tif (documentationComment.length === 0) {\n\t\t\t\t\tdocumentationComment =\n\t\t\t\t\t\tlinks.syntheticOrigin.getDocumentationComment(\n\t\t\t\t\t\t\tundefined,\n\t\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (declaration !== undefined) {\n\t\t\tconst rawDocTags = ts.getJSDocTags(declaration);\n\n\t\t\tconst dict = getTagDict(rawDocTags);\n\n\t\t\tif (dict.summary) {\n\t\t\t\tparameter.Description = dict.summary;\n\t\t\t} else {\n\t\t\t\tconst comment = documentationComment\n\t\t\t\t\t.map((comment) => comment.text)\n\t\t\t\t\t.join(\" \");\n\n\t\t\t\tif (comment) {\n\t\t\t\t\tparameter.Description = comment;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (dict.creatorType) {\n\t\t\t\tparameter.Type = dict.creatorType as CreatorIndexParameterType;\n\t\t\t}\n\t\t\tif (dict.default) {\n\t\t\t\tparameter.Default = parseDefault(dict.default, parameter.Type);\n\t\t\t}\n\t\t}\n\t\treturn parameter;\n\t});\n}\n\ninterface IDocTags {\n\tdefault?: string;\n\tcreatorType?: string;\n\tsummary?: string;\n}\n\nfunction getTagDict(tags: readonly ts.JSDocTag[]): IDocTags {\n\tconst dict: IDocTags = {};\n\n\tfor (const tag of tags) {\n\t\tdict[tag.tagName.text] = tag.comment;\n\t}\n\n\treturn dict;\n}\n\nconst getScriptingClassParameterdeclaration = (\n\tscriptingClass: ScriptingClass,\n) => {\n\tfor (const member of scriptingClass.node.members) {\n\t\tif (ts.isMethodDeclaration(member)) {\n\t\t\tfor (let index = 0; index < member.parameters.length; index++) {\n\t\t\t\tconst parameter = member.parameters[index];\n\t\t\t\tif (\n\t\t\t\t\tisScriptingClassParameterDeclaration(\n\t\t\t\t\t\tscriptingClass,\n\t\t\t\t\t\tmember,\n\t\t\t\t\t\tindex,\n\t\t\t\t\t)\n\t\t\t\t) {\n\t\t\t\t\treturn parameter;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (ts.isConstructorDeclaration(member)) {\n\t\t\tfor (let index = 0; index < member.parameters.length; index++) {\n\t\t\t\tconst parameter = member.parameters[index];\n\t\t\t\tif (\n\t\t\t\t\tisScriptingClassParameterDeclaration(\n\t\t\t\t\t\tscriptingClass,\n\t\t\t\t\t\tmember,\n\t\t\t\t\t\tindex,\n\t\t\t\t\t)\n\t\t\t\t) {\n\t\t\t\t\treturn parameter;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\nexport const isScriptingClassParameterDeclaration = (\n\tscriptingClass: ScriptingClass,\n\tmemberNode: ts.ClassElement,\n\tparameterIndex: number,\n) => {\n\tif (scriptingClass.type === \"evaluator\") {\n\t\treturn memberNode?.name?.getText() == \"Create\" && parameterIndex === 2;\n\t}\n\tif (scriptingClass.type === \"interactor\") {\n\t\treturn (\n\t\t\tmemberNode.kind === ts.SyntaxKind.Constructor &&\n\t\t\tparameterIndex === 0\n\t\t);\n\t}\n\treturn false;\n};\n\ninterface ScriptingClass {\n\tnode: ts.ClassDeclaration;\n\ttype: \"interactor\" | \"evaluator\";\n}\n\n/**\n * Finds interactors and evaluators within a script file\n *\n * @param {ts.Node} node\n * @return {*}\n */\nconst findScriptingClasses = (node: ts.Node) => {\n\tlet body: ts.NamespaceBody | ts.JSDocNamespaceBody | undefined;\n\n\tif (ts.isModuleDeclaration(node)) {\n\t\tbody = node.body;\n\t}\n\tif (body !== undefined && ts.isModuleDeclaration(body)) {\n\t\tbody = body.body;\n\t}\n\n\tconst classes: ScriptingClass[] = [];\n\n\tif (body !== undefined) {\n\t\tts.forEachChild(body, (child) => {\n\t\t\tif (!ts.isClassDeclaration(child)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst scriptingClass = detectScriptingClass(child);\n\n\t\t\tif (scriptingClass !== undefined) {\n\t\t\t\tclasses.push(scriptingClass);\n\t\t\t}\n\t\t});\n\t}\n\n\treturn classes;\n};\n\nconst detectScriptingClass = (\n\tnode: ts.ClassDeclaration,\n): ScriptingClass | undefined => {\n\tconst isEvaluator = node.heritageClauses?.some((clause) => {\n\t\tif (\n\t\t\tclause.token !== ts.SyntaxKind.ExtendsKeyword &&\n\t\t\tclause.token !== ts.SyntaxKind.ImplementsKeyword\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn clause.types.some((type) =>\n\t\t\ttype.getText().includes(\"Evaluator\"),\n\t\t);\n\t});\n\n\tif (isEvaluator) {\n\t\treturn {\n\t\t\tnode,\n\t\t\ttype: \"evaluator\",\n\t\t};\n\t}\n\n\tconst isInteractor = node.heritageClauses?.some((clause) => {\n\t\tif (clause.token !== ts.SyntaxKind.ExtendsKeyword) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn clause.types.some((type) =>\n\t\t\ttype.getText().includes(\"Interactor\"),\n\t\t);\n\t});\n\n\tif (isInteractor) {\n\t\treturn {\n\t\t\tnode,\n\t\t\ttype: \"interactor\",\n\t\t};\n\t}\n};\n"],"names":["generateIndex","location","ignore","files","getPackageTypescriptFiles","filtered","filter","path","some","suffix","endsWith","arr","existingIndex","readPackageCreatorIndex","program","ts","createProgram","allowJs","typeChecker","getTypeChecker","forEach","file","sourceFile","getSourceFile","forEachChild","node","scriptingClass","findScriptingClasses","name","undefined","Error","type","getFullyQualifiedName","getSymbolAtLocation","length","parameterDeclaration","getScriptingClassParameterdeclaration","parametersType","getTypeAtLocation","console","log","existingIndexEntry","find","entry","Name","obj","Description","Type","Parameters","rawDocTags","getJSDocTags","dict","getTagDict","summary","comment","symbol","getDocumentationComment","map","text","join","genParameters","getPropertiesOfType","getStringIndexType","push","writePackageCreatorIndex","capitalizeFirstLetter","string","charAt","toUpperCase","slice","parseDefault","value","uType","parseFloat","parseInt","replace","properties","i","_symbol$getDeclaratio","parameter","Default","DisplayIndex","declaration","getDeclarations","documentationComment","checkLinksSymbol","links","syntheticOrigin","_links$syntheticOrigi","_links$syntheticOrigi2","creatorType","default","tags","tag","tagName","member","members","isMethodDeclaration","index","parameters","isScriptingClassParameterDeclaration","isConstructorDeclaration","memberNode","parameterIndex","_memberNode$name","getText","kind","SyntaxKind","Constructor","body","isModuleDeclaration","classes","child","isClassDeclaration","detectScriptingClass","_node$heritageClauses","_node$heritageClauses2","isEvaluator","heritageClauses","clause","token","ExtendsKeyword","ImplementsKeyword","types","includes","isInteractor"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA;AACA;AACA;AACA;AACA;AACO,SAASA,aAAaA,CAAC;EAAEC,QAAQ;AAAEC,EAAAA,MAAM,GAAG,EAAA;AAAyB,CAAC,EAAE;AAC9E,EAAA,MAAMC,KAAK,GAAGC,yBAAyB,CAACH,QAAQ,CAAC,CAAA;AACjD,EAAA,MAAMI,QAAQ,GAAGF,KAAK,CAACG,MAAM,CAAEC,IAAI,IAAK;AACvC,IAAA,OAAO,CAACL,MAAM,CAACM,IAAI,CAAEC,MAAM,IAAKF,IAAI,CAACG,QAAQ,CAACD,MAAM,CAAC,CAAC,CAAA;AACvD,GAAC,CAAC,CAAA;EACF,MAAME,GAAwB,GAAG,EAAE,CAAA;AAEnC,EAAA,MAAMC,aAAa,GAAGC,uBAAuB,CAACZ,QAAQ,CAAC,IAAI,EAAE,CAA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AACmB,QAAQ,CAAC,YAAY,CAAC,CACrC,CAAA;AACF,GAAC,CAAC,CAAA;AAEF,EAAA,IAAIC,YAAY,EAAE;IACjB,OAAO;MACNpG,IAAI;AACJM,MAAAA,IAAI,EAAE,YAAA;KACN,CAAA;AACF,GAAA;AACD,CAAC;;;;"}
@@ -0,0 +1,74 @@
1
+ import ts from 'typescript';
2
+ import * as fs from 'fs';
3
+ import * as path from 'path';
4
+ import * as os from 'os';
5
+ import 'resolve';
6
+ import 'write-pkg';
7
+ import { b as readPackageCreatorIndex, r as readPackageCreatorManifest, k as getCreatorIndexParameterPrimaryJSType } from './cli-fbbf208b.js';
8
+ import 'glob';
9
+ import 'node:path';
10
+ import 'node:fs';
11
+ import 'axios';
12
+ import 'update-notifier';
13
+ import 'yargs/yargs';
14
+ import 'url';
15
+ import 'assert';
16
+ import 'events';
17
+ import 'util';
18
+ import 'inquirer';
19
+
20
+ const generateParameterType = ({
21
+ location,
22
+ name
23
+ }) => {
24
+ const index = readPackageCreatorIndex(location);
25
+ const manifest = readPackageCreatorManifest(location);
26
+ if (index === undefined) {
27
+ throw new Error(`Could not find the _Index.json file`);
28
+ }
29
+ let qualifiedName = name;
30
+ let className = name;
31
+ const scope = manifest.Scope ?? manifest.Package;
32
+ if (name.startsWith(scope)) {
33
+ className = name.slice(scope.length + 1);
34
+ } else {
35
+ qualifiedName = `${scope}.${name}`;
36
+ }
37
+ const informations = index.find(item => item.Name === qualifiedName);
38
+ if (informations === undefined) {
39
+ throw new Error(`Could not find an index entry for ${name}`);
40
+ }
41
+ const members = [];
42
+ if (informations.Parameters !== undefined) {
43
+ const sortedList = informations.Parameters.slice();
44
+ sortedList.sort((a, b) => a.DisplayIndex - b.DisplayIndex);
45
+ for (const parameter of sortedList) {
46
+ const jsType = getCreatorIndexParameterPrimaryJSType(parameter.Type);
47
+ const type = jsType === "string" ? ts.factory.createTypeReferenceNode("string") : ts.factory.createUnionTypeNode([ts.factory.createTypeReferenceNode(jsType), ts.factory.createTypeReferenceNode("string")]);
48
+ let propertySignature = ts.factory.createPropertySignature(undefined, parameter.Name, ts.factory.createToken(ts.SyntaxKind.QuestionToken), type);
49
+ const jsdocParts = [];
50
+ if (parameter.Description !== undefined) {
51
+ jsdocParts.push(parameter.Description, "");
52
+ }
53
+ jsdocParts.push(`@creatorType ${parameter.Type}`);
54
+ if (jsType === "string") {
55
+ jsdocParts.push(`@default "${parameter.Default}"`);
56
+ } else {
57
+ jsdocParts.push(`@default ${parameter.Default}`);
58
+ }
59
+ const jsdocContent = jsdocParts.map(part => `* ${part}`).join("\n ");
60
+ propertySignature = ts.addSyntheticLeadingComment(propertySignature, ts.SyntaxKind.MultiLineCommentTrivia, `*\n ${jsdocContent}\n `, true);
61
+ members.push(propertySignature);
62
+ }
63
+ }
64
+ const interfaceName = `${className}Params`;
65
+ let interfaceDeclaration = ts.factory.createInterfaceDeclaration(undefined, interfaceName, undefined, undefined, members);
66
+ interfaceDeclaration = ts.addSyntheticLeadingComment(interfaceDeclaration, ts.SyntaxKind.MultiLineCommentTrivia, `*\n * Parameters for the ${className} class\n `, true);
67
+ const printer = ts.createPrinter();
68
+ const content = printer.printNode(ts.EmitHint.Unspecified, interfaceDeclaration, ts.createSourceFile("index.ts", "", ts.ScriptTarget.Latest)).replace(/ /g, "\t");
69
+ const outFile = path.join(location.scriptsDir, `${interfaceName}.txt`);
70
+ fs.writeFileSync(outFile, `Generated parameters interface for ${className}. Insert the interface declaration next to the class and use it as the type for the parameters. Afterwards you can delete this file.` + os.EOL + os.EOL + content);
71
+ };
72
+
73
+ export { generateParameterType };
74
+ //# sourceMappingURL=generateParameterType-e49e4ba0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateParameterType-e49e4ba0.js","sources":["../src/commands/generateParameterType.ts"],"sourcesContent":["import ts from \"typescript\";\nimport * as fs from \"fs\";\nimport * as path from \"path\";\nimport * as os from \"os\";\n\nimport {\n\tPackageLocation,\n\tgetCreatorIndexParameterPrimaryJSType,\n\treadPackageCreatorIndex,\n\treadPackageCreatorManifest,\n} from \"@intelligentgraphics/ig.gfx.tools.core\";\n\nexport interface GenerateParameterTypeOptions {\n\tlocation: PackageLocation;\n\tname: string;\n}\n\nexport const generateParameterType = ({\n\tlocation,\n\tname,\n}: GenerateParameterTypeOptions) => {\n\tconst index = readPackageCreatorIndex(location);\n\tconst manifest = readPackageCreatorManifest(location);\n\n\tif (index === undefined) {\n\t\tthrow new Error(`Could not find the _Index.json file`);\n\t}\n\n\tlet qualifiedName = name;\n\tlet className = name;\n\n\tconst scope = manifest.Scope ?? manifest.Package;\n\n\tif (name.startsWith(scope)) {\n\t\tclassName = name.slice(scope.length + 1);\n\t} else {\n\t\tqualifiedName = `${scope}.${name}`;\n\t}\n\n\tconst informations = index.find((item) => item.Name === qualifiedName);\n\n\tif (informations === undefined) {\n\t\tthrow new Error(`Could not find an index entry for ${name}`);\n\t}\n\n\tconst members: ts.TypeElement[] = [];\n\n\tif (informations.Parameters !== undefined) {\n\t\tconst sortedList = informations.Parameters.slice();\n\t\tsortedList.sort((a, b) => a.DisplayIndex - b.DisplayIndex);\n\n\t\tfor (const parameter of sortedList) {\n\t\t\tconst jsType = getCreatorIndexParameterPrimaryJSType(\n\t\t\t\tparameter.Type,\n\t\t\t);\n\n\t\t\tconst type =\n\t\t\t\tjsType === \"string\"\n\t\t\t\t\t? ts.factory.createTypeReferenceNode(\"string\")\n\t\t\t\t\t: ts.factory.createUnionTypeNode([\n\t\t\t\t\t\t\tts.factory.createTypeReferenceNode(jsType),\n\t\t\t\t\t\t\tts.factory.createTypeReferenceNode(\"string\"),\n\t\t\t\t\t ]);\n\n\t\t\tlet propertySignature = ts.factory.createPropertySignature(\n\t\t\t\tundefined,\n\t\t\t\tparameter.Name,\n\t\t\t\tts.factory.createToken(ts.SyntaxKind.QuestionToken),\n\t\t\t\ttype,\n\t\t\t);\n\n\t\t\tconst jsdocParts: string[] = [];\n\n\t\t\tif (parameter.Description !== undefined) {\n\t\t\t\tjsdocParts.push(parameter.Description, \"\");\n\t\t\t}\n\n\t\t\tjsdocParts.push(`@creatorType ${parameter.Type}`);\n\n\t\t\tif (jsType === \"string\") {\n\t\t\t\tjsdocParts.push(`@default \"${parameter.Default}\"`);\n\t\t\t} else {\n\t\t\t\tjsdocParts.push(`@default ${parameter.Default}`);\n\t\t\t}\n\n\t\t\tconst jsdocContent = jsdocParts\n\t\t\t\t.map((part) => `* ${part}`)\n\t\t\t\t.join(\"\\n \");\n\t\t\tpropertySignature = ts.addSyntheticLeadingComment(\n\t\t\t\tpropertySignature,\n\t\t\t\tts.SyntaxKind.MultiLineCommentTrivia,\n\t\t\t\t`*\\n ${jsdocContent}\\n `,\n\t\t\t\ttrue,\n\t\t\t);\n\n\t\t\tmembers.push(propertySignature);\n\t\t}\n\t}\n\n\tconst interfaceName = `${className}Params`;\n\n\tlet interfaceDeclaration = ts.factory.createInterfaceDeclaration(\n\t\tundefined,\n\t\tinterfaceName,\n\t\tundefined,\n\t\tundefined,\n\t\tmembers,\n\t);\n\n\tinterfaceDeclaration = ts.addSyntheticLeadingComment(\n\t\tinterfaceDeclaration,\n\t\tts.SyntaxKind.MultiLineCommentTrivia,\n\t\t`*\\n * Parameters for the ${className} class\\n `,\n\t\ttrue,\n\t);\n\n\tconst printer = ts.createPrinter();\n\tconst content = printer\n\t\t.printNode(\n\t\t\tts.EmitHint.Unspecified,\n\t\t\tinterfaceDeclaration,\n\t\t\tts.createSourceFile(\"index.ts\", \"\", ts.ScriptTarget.Latest),\n\t\t)\n\t\t.replace(/ /g, \"\\t\");\n\n\tconst outFile = path.join(location.scriptsDir, `${interfaceName}.txt`);\n\n\tfs.writeFileSync(\n\t\toutFile,\n\t\t`Generated parameters interface for ${className}. Insert the interface declaration next to the class and use it as the type for the parameters. Afterwards you can delete this file.` +\n\t\t\tos.EOL +\n\t\t\tos.EOL +\n\t\t\tcontent,\n\t);\n};\n"],"names":["generateParameterType","location","name","index","readPackageCreatorIndex","manifest","readPackageCreatorManifest","undefined","Error","qualifiedName","className","scope","Scope","Package","startsWith","slice","length","informations","find","item","Name","members","Parameters","sortedList","sort","a","b","DisplayIndex","parameter","jsType","getCreatorIndexParameterPrimaryJSType","Type","type","ts","factory","createTypeReferenceNode","createUnionTypeNode","propertySignature","createPropertySignature","createToken","SyntaxKind","QuestionToken","jsdocParts","Description","push","Default","jsdocContent","map","part","join","addSyntheticLeadingComment","MultiLineCommentTrivia","interfaceName","interfaceDeclaration","createInterfaceDeclaration","printer","createPrinter","content","printNode","EmitHint","Unspecified","createSourceFile","ScriptTarget","Latest","replace","outFile","path","scriptsDir","fs","writeFileSync","os","EOL"],"mappings":";;;;;;;;;;;;;;;;;;;AAiBO,MAAMA,qBAAqB,GAAGA,CAAC;EACrCC,QAAQ;AACRC,EAAAA,IAAAA;AAC6B,CAAC,KAAK;AACnC,EAAA,MAAMC,KAAK,GAAGC,uBAAuB,CAACH,QAAQ,CAAC,CAAA;AAC/C,EAAA,MAAMI,QAAQ,GAAGC,0BAA0B,CAACL,QAAQ,CAAC,CAAA;EAErD,IAAIE,KAAK,KAAKI,SAAS,EAAE;AACxB,IAAA,MAAM,IAAIC,KAAK,CAAE,CAAA,mCAAA,CAAoC,CAAC,CAAA;AACvD,GAAA;EAEA,IAAIC,aAAa,GAAGP,IAAI,CAAA;EACxB,IAAIQ,SAAS,GAAGR,IAAI,CAAA;EAEpB,MAAMS,KAAK,GAAGN,QAAQ,CAACO,KAAK,IAAIP,QAAQ,CAACQ,OAAO,CAAA;AAEhD,EAAA,IAAIX,IAAI,CAACY,UAAU,CAACH,KAAK,CAAC,EAAE;IAC3BD,SAAS,GAAGR,IAAI,CAACa,KAAK,CAACJ,KAAK,CAACK,MAAM,GAAG,CAAC,CAAC,CAAA;AACzC,GAAC,MAAM;AACNP,IAAAA,aAAa,GAAI,CAAA,EAAEE,KAAM,CAAA,CAAA,EAAGT,IAAK,CAAC,CAAA,CAAA;AACnC,GAAA;AAEA,EAAA,MAAMe,YAAY,GAAGd,KAAK,C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U,SAAA,CAAA,EAChD,IAAI,CACJ,CAAA;AAED,EAAA,MAAM6C,OAAO,GAAGtB,EAAE,CAACuB,aAAa,EAAE,CAAA;AAClC,EAAA,MAAMC,OAAO,GAAGF,OAAO,CACrBG,SAAS,CACTzB,EAAE,CAAC0B,QAAQ,CAACC,WAAW,EACvBP,oBAAoB,EACpBpB,EAAE,CAAC4B,gBAAgB,CAAC,UAAU,EAAE,EAAE,EAAE5B,EAAE,CAAC6B,YAAY,CAACC,MAAM,CAAC,CAC3D,CACAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AAExB,EAAA,MAAMC,OAAO,GAAGC,IAAI,CAACjB,IAAI,CAAChD,QAAQ,CAACkE,UAAU,EAAG,CAAEf,EAAAA,aAAc,MAAK,CAAC,CAAA;AAEtEgB,EAAAA,EAAE,CAACC,aAAa,CACfJ,OAAO,EACN,CAAA,mCAAA,EAAqCvD,SAAU,CAAqI,oIAAA,CAAA,GACpL4D,EAAE,CAACC,GAAG,GACND,EAAE,CAACC,GAAG,GACNd,OAAO,CACR,CAAA;AACF;;;;"}
@@ -2,16 +2,16 @@ import * as path from 'path';
2
2
  import * as fs from 'fs';
3
3
  import { pipeline } from 'stream/promises';
4
4
  import { execSync } from 'child_process';
5
- import { r as readPublishedPackageCreatorIndex, d as determineWorkspaceIGLibraries, a as readPublishedPackageNpmManifest, b as readPublishedPackageCreatorManifest } from './dependencies-aa561191.js';
6
- import { P as PACKAGE_FILE, I as INDEX_FILE, p as parseCreatorPackageName, g as getWorkspaceOutputPath, r as readPackageCreatorManifest, w as writePackageCreatorManifest, a as readPackageAnimationList, i as isErrorENOENT, b as readPackageCreatorIndex, c as readWorkspaceNpmManifest, u as uploadPackage, d as getPackageReleasesDirectory, e as getExistingPackages, s as startSession, f as closeSession } from './cli-0844c1bd.js';
7
- import { l as logPackageMessage, b as buildFolders } from './index-e2dc4a57.js';
5
+ import { r as readPublishedPackageCreatorIndex, d as determineWorkspaceIGLibraries, a as readPublishedPackageNpmManifest, b as readPublishedPackageCreatorManifest } from './dependencies-435193d1.js';
6
+ import { P as PACKAGE_FILE, I as INDEX_FILE, p as parseCreatorPackageName, g as getWorkspaceOutputPath, r as readPackageCreatorManifest, w as writePackageCreatorManifest, a as readPackageAnimationList, i as isErrorENOENT, b as readPackageCreatorIndex, c as readWorkspaceNpmManifest, u as uploadPackage, d as getPackageReleasesDirectory, e as getExistingPackages, s as startSession, f as closeSession } from './cli-fbbf208b.js';
7
+ import { l as logPackageMessage, b as buildFolders } from './index-c1b42e4c.js';
8
8
  import 'write-pkg';
9
9
  import 'glob';
10
10
  import 'node:path';
11
11
  import 'node:fs';
12
- import { g as getVersionFileHandler, p as parseVersionFromString, a as getVersionInformationFromGit, b as getWorkspaceBannerText, c as parseVersionFromNumericVersion, P as PackageVersion } from './versionFile-c4057cb5.js';
13
- import Ajv from 'ajv';
14
12
  import axios from 'axios';
13
+ import { g as getVersionFileHandler, p as parseVersionFromString, a as getVersionInformationFromGit, b as getWorkspaceBannerText, c as parseVersionFromNumericVersion, P as PackageVersion } from './versionFile-13099b85.js';
14
+ import Ajv from 'ajv';
15
15
  import JSZip from 'jszip';
16
16
  import * as terser from 'terser';
17
17
  import 'resolve';
@@ -477,4 +477,4 @@ const createSessionManager = async params => {
477
477
  };
478
478
 
479
479
  export { releaseFolder };
480
- //# sourceMappingURL=index-fb306868.js.map
480
+ //# sourceMappingURL=index-66de4fea.js.map