@interopio/iocd-cli 0.0.24 → 0.0.26
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/dist/cli.js +2 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/dev.command.js +1 -9
- package/dist/commands/dev.command.js.map +1 -1
- package/dist/commands/test.command.js +18 -0
- package/dist/commands/test.command.js.map +1 -0
- package/dist/schemas/iocd.cli.config.schema.json +323 -0
- package/dist/services/components/components.registry.js +7 -7
- package/dist/services/components/components.registry.js.map +1 -1
- package/dist/services/components/stores/github.store.js +8 -2
- package/dist/services/components/stores/github.store.js.map +1 -1
- package/dist/services/create.service.js +36 -43
- package/dist/services/create.service.js.map +1 -1
- package/dist/services/dev.service.js +3 -1
- package/dist/services/dev.service.js.map +1 -1
- package/dist/services/installer/installer.service.js +3 -0
- package/dist/services/installer/installer.service.js.map +1 -1
- package/dist/services/installer/macOS.helper.js +5 -10
- package/dist/services/installer/macOS.helper.js.map +1 -1
- package/dist/services/license-file.service.js +46 -0
- package/dist/services/license-file.service.js.map +1 -0
- package/dist/services/license.service.js +12 -4
- package/dist/services/license.service.js.map +1 -1
- package/dist/services/template.service.js.map +1 -1
- package/dist/services/test.service.js +160 -0
- package/dist/services/test.service.js.map +1 -0
- package/dist/templates/ioconnect-desktop/config/iocd.cli.config.json +2 -1
- package/dist/templates/ioconnect-desktop/package.json +1 -1
- package/dist/templates/{auto-tests → tests}/template.json +2 -6
- package/dist/templates/tests/tests/interopio-wdio-iocd-service-0.1.0.tgz +0 -0
- package/dist/templates/tests/tests/package-lock.json +7283 -0
- package/dist/templates/tests/tests/package.json +23 -0
- package/dist/templates/tests/tests/tests/sample.spec.ts +30 -0
- package/dist/templates/tests/tests/tsconfig.json +11 -0
- package/dist/templates/tests/tests/wdio.config.ts +33 -0
- package/package.json +5 -3
- package/scripts/generate-schema.js +50 -0
- package/dist/templates/auto-tests/tests/basic.test.js +0 -15
package/dist/cli.js
CHANGED
|
@@ -45,6 +45,7 @@ const license_command_1 = require("./commands/license.command");
|
|
|
45
45
|
const modifications_command_1 = require("./commands/modifications.command");
|
|
46
46
|
const build_command_1 = require("./commands/build.command");
|
|
47
47
|
const dev_command_1 = require("./commands/dev.command");
|
|
48
|
+
const test_command_1 = require("./commands/test.command");
|
|
48
49
|
const setup_command_1 = require("./commands/setup.command");
|
|
49
50
|
const clack = __importStar(require("@clack/prompts"));
|
|
50
51
|
const colors_1 = require("./utils/colors");
|
|
@@ -78,7 +79,7 @@ program
|
|
|
78
79
|
program.addCommand(create_command_1.createCommand);
|
|
79
80
|
program.addCommand(setup_command_1.setupCommand);
|
|
80
81
|
program.addCommand(dev_command_1.devCommand);
|
|
81
|
-
program.addCommand(
|
|
82
|
+
program.addCommand(test_command_1.testCommand);
|
|
82
83
|
program.addCommand(build_command_1.buildCommand);
|
|
83
84
|
program.addCommand(components_command_1.componentsCommand);
|
|
84
85
|
program.addCommand(apps_command_1.appsCommand);
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AAE1D,yCAAoC;AACpC,2CAAwC;AACxC,yDAAqD;AACrD,8DAA0D;AAC1D,sEAAkE;AAClE,0DAAsD;AACtD,gEAA4D;AAC5D,4EAAwE;AACxE,4DAAwD;AACxD,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAA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C;YACnB,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,qBAAqB,QAAQ,EAAE;YACxC,KAAK,EAAE,MAAM;SACd,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC;AAGH,yBAAyB;AAEzB,OAAO,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,KAAK,EAAE,EAAE;IACxC,MAAM,CAAC,KAAK,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC;IAC3C,4BAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC7B,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,EAAE,CAAC,oBAAoB,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;IACnD,MAAM,CAAC,KAAK,CAAC,yBAAyB,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACpE,4BAAY,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACjD,CAAC,CAAC,CAAC;AAEH,+BAA+B;AAC/B,4BAAY,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE;IAC3B,MAAM,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACzC,CAAC,CAAC,CAAC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.devCommand = void 0;
|
|
4
4
|
const commander_1 = require("commander");
|
|
5
|
-
const logger_1 = require("../utils/logger");
|
|
6
5
|
const dev_service_1 = require("../services/dev.service");
|
|
7
6
|
const error_handler_1 = require("../utils/error.handler");
|
|
8
|
-
const logger = logger_1.Logger.getInstance("dev.command");
|
|
9
7
|
exports.devCommand = new commander_1.Command('dev')
|
|
10
8
|
.description('Start io.cd in development mode (the app is not packaged)')
|
|
11
9
|
.action(async () => {
|
|
@@ -16,10 +14,4 @@ exports.devCommand = new commander_1.Command('dev')
|
|
|
16
14
|
error_handler_1.ErrorHandler.handle(error);
|
|
17
15
|
}
|
|
18
16
|
});
|
|
19
|
-
exports.testCommand = new commander_1.Command('test')
|
|
20
|
-
.description('Run the test suite')
|
|
21
|
-
.action(() => {
|
|
22
|
-
logger.info('Test command called');
|
|
23
|
-
console.log('Running tests - Phase 7 implementation required');
|
|
24
|
-
});
|
|
25
17
|
//# sourceMappingURL=dev.command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.command.js","sourceRoot":"","sources":["../../src/commands/dev.command.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"dev.command.js","sourceRoot":"","sources":["../../src/commands/dev.command.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,yDAAuD;AACvD,0DAAsD;AAEzC,QAAA,UAAU,GAAG,IAAI,mBAAO,CAAC,KAAK,CAAC;KACzC,WAAW,CAAC,2DAA2D,CAAC;KACxE,MAAM,CAAC,KAAK,IAAI,EAAE;IACjB,IAAI,CAAC;QACH,MAAM,IAAA,0BAAY,GAAE,CAAC;IACvB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,4BAAY,CAAC,MAAM,CAAC,KAAc,CAAC,CAAC;IACtC,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.testCommand = void 0;
|
|
4
|
+
const commander_1 = require("commander");
|
|
5
|
+
const test_service_1 = require("../services/test.service");
|
|
6
|
+
const error_handler_1 = require("../utils/error.handler");
|
|
7
|
+
exports.testCommand = new commander_1.Command('test')
|
|
8
|
+
.description('Run the test suite')
|
|
9
|
+
.action(async () => {
|
|
10
|
+
try {
|
|
11
|
+
const testService = new test_service_1.TestService();
|
|
12
|
+
await testService.runTests();
|
|
13
|
+
}
|
|
14
|
+
catch (error) {
|
|
15
|
+
error_handler_1.ErrorHandler.handle(error);
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=test.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test.command.js","sourceRoot":"","sources":["../../src/commands/test.command.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,2DAAuD;AACvD,0DAAsD;AAEzC,QAAA,WAAW,GAAG,IAAI,mBAAO,CAAC,MAAM,CAAC;KACzC,WAAW,CAAC,oBAAoB,CAAC;KACjC,MAAM,CAAC,KAAK,IAAI,EAAE;IACf,IAAI,CAAC;QACD,MAAM,WAAW,GAAG,IAAI,0BAAW,EAAE,CAAC;QACtC,MAAM,WAAW,CAAC,QAAQ,EAAE,CAAC;IACjC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,4BAAY,CAAC,MAAM,CAAC,KAAc,CAAC,CAAC;IACxC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://unpkg.com/@interopio/iocd-cli/schemas/iocd.cli.config.schema.json",
|
|
4
|
+
"title": "io.Connect Desktop CLI Configuration",
|
|
5
|
+
"description": "Configuration schema for io.Connect Desktop CLI projects",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"company": {
|
|
9
|
+
"description": "Company name that develops the application. Used in installers, about dialogs, metadata, copyright notices, and certificates.",
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"components": {
|
|
13
|
+
"additionalProperties": false,
|
|
14
|
+
"description": "Component management configuration - defines where components come from and which ones to use.",
|
|
15
|
+
"properties": {
|
|
16
|
+
"excludeFromBuild": {
|
|
17
|
+
"description": "Array of component names to exclude from production builds (e.g., [\"devTools\", \"demos\"]). These components are available in dev mode but not in the final installer.",
|
|
18
|
+
"items": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"type": "array"
|
|
22
|
+
},
|
|
23
|
+
"list": {
|
|
24
|
+
"additionalProperties": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"description": "Map of component names to versions. Use specific versions (e.g., \"10.0.0\") or \"latest\" for the most recent. Example: {\"iocd\": \"10.0.0\", \"devTools\": \"latest\"}",
|
|
28
|
+
"type": "object"
|
|
29
|
+
},
|
|
30
|
+
"store": {
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"description": "Component storage configuration. Define one or more sources (github, local, s3). First defined source is used by default.",
|
|
33
|
+
"properties": {
|
|
34
|
+
"github": {
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"description": "GitHub releases as component source. Components are distributed as release assets.",
|
|
37
|
+
"properties": {
|
|
38
|
+
"repo": {
|
|
39
|
+
"description": "GitHub repository path in format 'owner/repo/releases' (e.g., \"interopio/desktop-releases/releases\").",
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"usePrereleases": {
|
|
43
|
+
"description": "Include pre-release versions when looking for components (default: false).",
|
|
44
|
+
"type": "boolean"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"required": [
|
|
48
|
+
"repo"
|
|
49
|
+
],
|
|
50
|
+
"type": "object"
|
|
51
|
+
},
|
|
52
|
+
"local": {
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"description": "Local filesystem as component source. Useful for offline development or custom components.",
|
|
55
|
+
"properties": {
|
|
56
|
+
"path": {
|
|
57
|
+
"description": "Absolute or relative path to the directory containing components (e.g., \"/path/to/components\").",
|
|
58
|
+
"type": "string"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"required": [
|
|
62
|
+
"path"
|
|
63
|
+
],
|
|
64
|
+
"type": "object"
|
|
65
|
+
},
|
|
66
|
+
"s3": {
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"description": "AWS S3 bucket as component source. Requires AWS credentials.",
|
|
69
|
+
"properties": {
|
|
70
|
+
"accessKeyId": {
|
|
71
|
+
"description": "AWS Access Key ID for authentication. Can be set via AWS_ACCESS_KEY_ID environment variable.",
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
"bucketName": {
|
|
75
|
+
"description": "Name of the S3 bucket containing components.",
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"prefix": {
|
|
79
|
+
"description": "Optional prefix/folder path within the bucket.",
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
"region": {
|
|
83
|
+
"description": "AWS region where the bucket is located (e.g., \"us-east-1\").",
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
"secretAccessKey": {
|
|
87
|
+
"description": "AWS Secret Access Key for authentication. Can be set via AWS_SECRET_ACCESS_KEY environment variable.",
|
|
88
|
+
"type": "string"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"required": [
|
|
92
|
+
"bucketName",
|
|
93
|
+
"region"
|
|
94
|
+
],
|
|
95
|
+
"type": "object"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"type": "object"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"required": [
|
|
102
|
+
"list",
|
|
103
|
+
"store"
|
|
104
|
+
],
|
|
105
|
+
"type": "object"
|
|
106
|
+
},
|
|
107
|
+
"copyright": {
|
|
108
|
+
"description": "Copyright notice for your product (e.g., \"Copyright © 2025 My Company\"). Appears in application metadata, installers, and about dialogs.",
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"mac": {
|
|
112
|
+
"additionalProperties": false,
|
|
113
|
+
"description": "macOS-specific configuration for app bundles, code signing, and notarization.",
|
|
114
|
+
"properties": {
|
|
115
|
+
"appBundleId": {
|
|
116
|
+
"description": "Bundle identifier in reverse-DNS format (e.g., \"com.mycompany.myapp\"). Must be unique.",
|
|
117
|
+
"type": "string"
|
|
118
|
+
},
|
|
119
|
+
"appBundleName": {
|
|
120
|
+
"description": "Name of the macOS app bundle including .app extension (e.g., \"My App.app\").",
|
|
121
|
+
"type": "string"
|
|
122
|
+
},
|
|
123
|
+
"codeSign": {
|
|
124
|
+
"additionalProperties": false,
|
|
125
|
+
"description": "macOS code signing configuration. Required for distribution outside the App Store.",
|
|
126
|
+
"properties": {
|
|
127
|
+
"certificatePassword": {
|
|
128
|
+
"description": "Password for the certificate file (for type: 'certificate').",
|
|
129
|
+
"type": "string"
|
|
130
|
+
},
|
|
131
|
+
"certificatePath": {
|
|
132
|
+
"description": "Path to .p12 or .pfx certificate file (for type: 'certificate').",
|
|
133
|
+
"type": "string"
|
|
134
|
+
},
|
|
135
|
+
"customCodeSignScriptPath": {
|
|
136
|
+
"description": "Path to custom code signing script (for type: 'custom').",
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
"identity": {
|
|
140
|
+
"description": "Developer ID Application identity name or SHA-1 hash (e.g., \"Developer ID Application: Company, Inc. (TEAM123)\").",
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
"keychain": {
|
|
144
|
+
"description": "Path or name of the keychain containing the certificate (e.g., \"login.keychain-db\").",
|
|
145
|
+
"type": "string"
|
|
146
|
+
},
|
|
147
|
+
"type": {
|
|
148
|
+
"description": "Code signing method: 'keychain' (use keychain certificate), 'certificate' (use .p12 file), 'custom' (custom script), or 'off' (no signing).",
|
|
149
|
+
"enum": [
|
|
150
|
+
"certificate",
|
|
151
|
+
"custom",
|
|
152
|
+
"keychain",
|
|
153
|
+
"off"
|
|
154
|
+
],
|
|
155
|
+
"type": "string"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"required": [
|
|
159
|
+
"type"
|
|
160
|
+
],
|
|
161
|
+
"type": "object"
|
|
162
|
+
},
|
|
163
|
+
"notarization": {
|
|
164
|
+
"additionalProperties": false,
|
|
165
|
+
"description": "macOS notarization configuration. Required for apps distributed outside the App Store (macOS 10.15+).",
|
|
166
|
+
"properties": {
|
|
167
|
+
"appleId": {
|
|
168
|
+
"description": "Apple ID email address for notarization (for type: 'notarytool').",
|
|
169
|
+
"type": "string"
|
|
170
|
+
},
|
|
171
|
+
"appleIdPassword": {
|
|
172
|
+
"description": "App-specific password for the Apple ID (for type: 'notarytool'). Generate at appleid.apple.com.",
|
|
173
|
+
"type": "string"
|
|
174
|
+
},
|
|
175
|
+
"appleTeamId": {
|
|
176
|
+
"description": "Apple Team ID (10-character identifier from Apple Developer account).",
|
|
177
|
+
"type": "string"
|
|
178
|
+
},
|
|
179
|
+
"customNotarizationScriptPath": {
|
|
180
|
+
"description": "Path to custom notarization script (for type: 'custom').",
|
|
181
|
+
"type": "string"
|
|
182
|
+
},
|
|
183
|
+
"type": {
|
|
184
|
+
"description": "Notarization method: 'notarytool' (Apple's notarization service), 'custom' (custom script), or 'off' (no notarization).",
|
|
185
|
+
"enum": [
|
|
186
|
+
"custom",
|
|
187
|
+
"notarytool",
|
|
188
|
+
"off"
|
|
189
|
+
],
|
|
190
|
+
"type": "string"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"required": [
|
|
194
|
+
"type"
|
|
195
|
+
],
|
|
196
|
+
"type": "object"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"required": [
|
|
200
|
+
"appBundleId",
|
|
201
|
+
"appBundleName",
|
|
202
|
+
"codeSign",
|
|
203
|
+
"notarization"
|
|
204
|
+
],
|
|
205
|
+
"type": "object"
|
|
206
|
+
},
|
|
207
|
+
"productDescription": {
|
|
208
|
+
"description": "Detailed description of your product. Used in package metadata, installers, and about dialogs.",
|
|
209
|
+
"type": "string"
|
|
210
|
+
},
|
|
211
|
+
"productName": {
|
|
212
|
+
"description": "Human-readable name of your product (e.g., \"My Trading Application\"). Shown to users in the application title, UI, and installers.",
|
|
213
|
+
"type": "string"
|
|
214
|
+
},
|
|
215
|
+
"productSlug": {
|
|
216
|
+
"description": "URL-friendly identifier for your product (e.g., \"my-trading-app\"). Used in file names, package identification, and filesystem operations. Kebab-case recommended, no spaces or special characters.",
|
|
217
|
+
"type": "string"
|
|
218
|
+
},
|
|
219
|
+
"sentry": {
|
|
220
|
+
"description": "Enable Sentry error reporting for production diagnostics (default: true).",
|
|
221
|
+
"type": "boolean"
|
|
222
|
+
},
|
|
223
|
+
"version": {
|
|
224
|
+
"description": "Version number of your application following semantic versioning (e.g., \"1.2.3\"). Supports environment variables like ${npm_package_version}.",
|
|
225
|
+
"type": "string"
|
|
226
|
+
},
|
|
227
|
+
"win": {
|
|
228
|
+
"additionalProperties": false,
|
|
229
|
+
"description": "Windows-specific configuration for executables and code signing.",
|
|
230
|
+
"properties": {
|
|
231
|
+
"codeSign": {
|
|
232
|
+
"additionalProperties": false,
|
|
233
|
+
"description": "Windows code signing configuration. Required for production distribution to avoid security warnings.",
|
|
234
|
+
"properties": {
|
|
235
|
+
"customCodeSignScriptPath": {
|
|
236
|
+
"description": "Path to custom code signing script (for type: 'custom').",
|
|
237
|
+
"type": "string"
|
|
238
|
+
},
|
|
239
|
+
"pfxPassword": {
|
|
240
|
+
"description": "Password for the .pfx certificate. Can use environment variables like \"env:WIN_CERT_PASSWORD\".",
|
|
241
|
+
"type": "string"
|
|
242
|
+
},
|
|
243
|
+
"pfxPath": {
|
|
244
|
+
"description": "Path to .pfx certificate file (for type: 'pfx').",
|
|
245
|
+
"type": "string"
|
|
246
|
+
},
|
|
247
|
+
"smctlApiKey": {
|
|
248
|
+
"description": "DigiCert API key (for type: 'smctl').",
|
|
249
|
+
"type": "string"
|
|
250
|
+
},
|
|
251
|
+
"smctlClientCertFile": {
|
|
252
|
+
"description": "Path to DigiCert client certificate file (for type: 'smctl').",
|
|
253
|
+
"type": "string"
|
|
254
|
+
},
|
|
255
|
+
"smctlClientCertPassword": {
|
|
256
|
+
"description": "Password for DigiCert client certificate (for type: 'smctl').",
|
|
257
|
+
"type": "string"
|
|
258
|
+
},
|
|
259
|
+
"smctlCodeSigningCertSha1Hash": {
|
|
260
|
+
"description": "SHA-1 hash of the code signing certificate (for type: 'smctl').",
|
|
261
|
+
"type": "string"
|
|
262
|
+
},
|
|
263
|
+
"tsaURL": {
|
|
264
|
+
"description": "URL of the Time Stamping Authority (e.g., \"http://timestamp.digicert.com\"). Ensures signatures remain valid after certificate expiry.",
|
|
265
|
+
"type": "string"
|
|
266
|
+
},
|
|
267
|
+
"type": {
|
|
268
|
+
"description": "Code signing method: 'pfx' (certificate file), 'smctl' (DigiCert), 'custom' (custom script), or 'off' (no signing).",
|
|
269
|
+
"enum": [
|
|
270
|
+
"custom",
|
|
271
|
+
"off",
|
|
272
|
+
"pfx",
|
|
273
|
+
"smctl"
|
|
274
|
+
],
|
|
275
|
+
"type": "string"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"required": [
|
|
279
|
+
"type"
|
|
280
|
+
],
|
|
281
|
+
"type": "object"
|
|
282
|
+
},
|
|
283
|
+
"exe": {
|
|
284
|
+
"additionalProperties": false,
|
|
285
|
+
"description": "Windows executable configuration.",
|
|
286
|
+
"properties": {
|
|
287
|
+
"exeIconPath": {
|
|
288
|
+
"description": "Path to the .ico file for the executable icon that will be embedded in the executable. Supports environment variables like ${IOCD_COMPONENT_DIR}.",
|
|
289
|
+
"type": "string"
|
|
290
|
+
},
|
|
291
|
+
"exeName": {
|
|
292
|
+
"description": "Name of the main executable file (e.g., \"my-app.exe\").",
|
|
293
|
+
"type": "string"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"required": [
|
|
297
|
+
"exeIconPath",
|
|
298
|
+
"exeName"
|
|
299
|
+
],
|
|
300
|
+
"type": "object"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"required": [
|
|
304
|
+
"codeSign",
|
|
305
|
+
"exe"
|
|
306
|
+
],
|
|
307
|
+
"type": "object"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"required": [
|
|
311
|
+
"company",
|
|
312
|
+
"components",
|
|
313
|
+
"copyright",
|
|
314
|
+
"mac",
|
|
315
|
+
"productDescription",
|
|
316
|
+
"productName",
|
|
317
|
+
"productSlug",
|
|
318
|
+
"sentry",
|
|
319
|
+
"version",
|
|
320
|
+
"win"
|
|
321
|
+
],
|
|
322
|
+
"type": "object"
|
|
323
|
+
}
|
|
@@ -29,19 +29,19 @@ class ComponentsRegistry {
|
|
|
29
29
|
platforms: ['win32', 'darwin'],
|
|
30
30
|
description: 'A set of web-based demo applications showcasing various features of io.Connect Desktop',
|
|
31
31
|
},
|
|
32
|
-
'bbgv2': {
|
|
33
|
-
displayName: 'Bloomberg V2 Adapter',
|
|
34
|
-
name: 'bbgv2',
|
|
35
|
-
licenseRequired: true,
|
|
36
|
-
platforms: ['win32'],
|
|
37
|
-
description: 'Bloomberg Terminal V2 integration adapter',
|
|
38
|
-
},
|
|
39
32
|
'bbgv3': {
|
|
40
33
|
displayName: 'Bloomberg V3 Adapter',
|
|
41
34
|
name: 'bbgv3',
|
|
42
35
|
licenseRequired: true,
|
|
43
36
|
platforms: ['win32', 'darwin'],
|
|
44
37
|
description: 'Bloomberg Terminal V3 integration adapter',
|
|
38
|
+
},
|
|
39
|
+
'ppt': {
|
|
40
|
+
displayName: 'PowerPoint Adapter',
|
|
41
|
+
name: 'ppt',
|
|
42
|
+
licenseRequired: true,
|
|
43
|
+
platforms: ['win32'],
|
|
44
|
+
description: 'PowerPoint integration adapter for io.Connect Desktop',
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
static getComponents() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.registry.js","sourceRoot":"","sources":["../../../src/services/components/components.registry.ts"],"names":[],"mappings":";;;AAiBA;;;GAGG;AACH,MAAa,kBAAkB;IAGnB,MAAM,CAAC,kBAAkB,GAAwC;QACrE,IAAI,EAAE;YACF,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,MAAM;YACZ,eAAe,EAAE,IAAI;YACrB,SAAS,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;YAC9B,WAAW,EAAE,sEAAsE;YACnF,QAAQ,EAAE,IAAI;SACjB;QACD,UAAU,EAAE;YACR,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE,UAAU;YAChB,eAAe,EAAE,KAAK;YACtB,SAAS,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;YAC9B,WAAW,EAAE,wCAAwC;SACxD;QACD,OAAO,EAAE;YACL,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,OAAO;YACb,eAAe,EAAE,KAAK;YACtB,SAAS,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;YAC9B,WAAW,EAAE,wFAAwF;SACxG;QACD,OAAO,EAAE;YACL,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,OAAO;YACb,eAAe,EAAE,IAAI;YACrB,SAAS,EAAE,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"components.registry.js","sourceRoot":"","sources":["../../../src/services/components/components.registry.ts"],"names":[],"mappings":";;;AAiBA;;;GAGG;AACH,MAAa,kBAAkB;IAGnB,MAAM,CAAC,kBAAkB,GAAwC;QACrE,IAAI,EAAE;YACF,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,MAAM;YACZ,eAAe,EAAE,IAAI;YACrB,SAAS,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;YAC9B,WAAW,EAAE,sEAAsE;YACnF,QAAQ,EAAE,IAAI;SACjB;QACD,UAAU,EAAE;YACR,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE,UAAU;YAChB,eAAe,EAAE,KAAK;YACtB,SAAS,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;YAC9B,WAAW,EAAE,wCAAwC;SACxD;QACD,OAAO,EAAE;YACL,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,OAAO;YACb,eAAe,EAAE,KAAK;YACtB,SAAS,EAAE,CAAC,OAAO,EAAE,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AC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IACxE,CAAC;;AA3EL,gDA4EC"}
|
|
@@ -75,7 +75,10 @@ class GitHubComponentsStore {
|
|
|
75
75
|
return this.fetchWithRetry(url, attempt + 1);
|
|
76
76
|
}
|
|
77
77
|
else if (waitTime > this.retryOptions.maxDelay) {
|
|
78
|
-
|
|
78
|
+
const tokenHelp = githubToken
|
|
79
|
+
? ''
|
|
80
|
+
: '\n\nTo increase your rate limit, set a GITHUB_TOKEN:\n export GITHUB_TOKEN=your_token\n (Get a token from https://github.com/settings/tokens)';
|
|
81
|
+
throw new Error(`GitHub rate limit exceeded. Reset time (${Math.ceil(waitTime / 1000)}s) exceeds maximum wait time (${this.retryOptions.maxDelay / 1000}s). Please try again later.${tokenHelp}`);
|
|
79
82
|
}
|
|
80
83
|
}
|
|
81
84
|
// Handle other 403 errors (like secondary rate limits) with exponential backoff
|
|
@@ -87,7 +90,10 @@ class GitHubComponentsStore {
|
|
|
87
90
|
}
|
|
88
91
|
// If we've exhausted retries, provide helpful error message
|
|
89
92
|
const errorBody = await response.text().catch(() => 'Unable to read error details');
|
|
90
|
-
|
|
93
|
+
const tokenHelp = githubToken
|
|
94
|
+
? ''
|
|
95
|
+
: '\n\nGitHub rate limit reached. To increase your limit, set a GITHUB_TOKEN:\n export GITHUB_TOKEN=your_token\n (Get a token from https://github.com/settings/tokens)';
|
|
96
|
+
throw new Error(`GitHub API rate limit or access denied (403). ${errorBody}. Try again later or check your network connection.${tokenHelp}`);
|
|
91
97
|
}
|
|
92
98
|
// Handle server errors (5xx) with exponential backoff
|
|
93
99
|
if (response.status >= 500 && response.status < 600) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github.store.js","sourceRoot":"","sources":["../../../../src/services/components/stores/github.store.ts"],"names":[],"mappings":";;;AAAA,gEAAwD;AACxD,kDAA+C;AAG/C,sDAA2D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IAAI,QAAQ,IAAI,uCAAsB,CAAC,kBAAkB,EAAE;wBACvF,IAAI,EAAE,SAAS,CAAC,IAAI,IAAI,IAAI,IAAI,OAAO,CAAC,IAAW;wBACnD,WAAW,EAAE,KAAK,CAAC,oBAAoB;wBACvC,QAAQ,EAAE,KAAK,CAAC,IAAI;wBACpB,UAAU,EAAE,OAAO,CAAC,UAAU;qBACjC,CAAC,CAAC;gBACP,CAAC;YACL,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,8CAA8C,OAAO,CAAC,IAAI,YAAa,GAAa,CAAC,OAAO,EAAE,CAAC,CAAC;YACrH,CAAC;QACL,CAAC;QACD,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1TD,sDA0TC"}
|
|
1
|
+
{"version":3,"file":"github.store.js","sourceRoot":"","sources":["../../../../src/services/components/stores/github.store.ts"],"names":[],"mappings":";;;AAAA,gEAAwD;AACxD,kDAA+C;AAG/C,sDAA2D;AAC3D,0DAAoD;AAiBnD,CAAC;AASF,yEAAyE;AACzE,wEAAwE;AACxE,kGAAkG;AAClG,8FAA8F;AAC9F,MAAa,qBAAqB;IACtB,OAAO,GAAG,EAAE,CAAC;IACb,cAAc,GAAY,KAAK,CAAC;IAChC,MAAM,GAAG,eAAM,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;IAC5C,cAAc,GAAgC,IAAI,CAAC;IACnD,YAAY,GAAiB;QACjC,UAAU,EAAE,CAAC;QACb,SAAS,EAAE,IAAI,EAAE,sBAAsB;QACvC,QAAQ,EAAE,KAAK,EAAE,qBAAqB;QACtC,iBAAiB,EAAE,CAAC;KACvB,CAAC;IAEF,YAAY,OAAe,qCAAqC,EAAE,iBAA0B,KAAK;QAC7F,IAAI,CAAC,OAAO,GAAG,gCAAgC,IAAI,EAAE,CAAC;QACtD,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACzC,CAAC;IAED;;OAEG;IACI,eAA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AAC,OAAO,EAAE,CAAC,CAAC;YACrH,CAAC;QACL,CAAC;QACD,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAhUD,sDAgUC"}
|
|
@@ -166,21 +166,14 @@ class CreateService {
|
|
|
166
166
|
if (clack.isCancel(productName))
|
|
167
167
|
throw productName;
|
|
168
168
|
// Step 2: Ask whether to create new folder or use current folder
|
|
169
|
-
const
|
|
170
|
-
message: 'Do you want to
|
|
171
|
-
initialValue:
|
|
169
|
+
const createNewFolder = await clack.confirm({
|
|
170
|
+
message: 'Do you want to create a new folder for the project?',
|
|
171
|
+
initialValue: true
|
|
172
172
|
});
|
|
173
|
-
if (clack.isCancel(
|
|
174
|
-
throw
|
|
173
|
+
if (clack.isCancel(createNewFolder))
|
|
174
|
+
throw createNewFolder;
|
|
175
175
|
let folderName;
|
|
176
|
-
|
|
177
|
-
if (useCurrentFolder) {
|
|
178
|
-
// Use current directory
|
|
179
|
-
const currentDirName = process.cwd().split('/').pop() || 'my-project';
|
|
180
|
-
folderName = this.generateFolderName(currentDirName);
|
|
181
|
-
shouldUseCurrentDir = true;
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
176
|
+
if (createNewFolder) {
|
|
184
177
|
// Create new folder - generate default name and allow user to modify
|
|
185
178
|
const defaultFolderName = this.generateFolderName(productName);
|
|
186
179
|
const inputFolderName = await clack.text({
|
|
@@ -199,47 +192,43 @@ class CreateService {
|
|
|
199
192
|
if (clack.isCancel(inputFolderName))
|
|
200
193
|
throw inputFolderName;
|
|
201
194
|
folderName = inputFolderName;
|
|
202
|
-
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
// Use current directory
|
|
198
|
+
const currentDirName = process.cwd().split('/').pop() || 'my-project';
|
|
199
|
+
folderName = this.generateFolderName(currentDirName);
|
|
203
200
|
}
|
|
204
201
|
// Step 3: Component selection (multi-select
|
|
205
202
|
const selectedComponents = await this.collectComponents();
|
|
206
203
|
// Step 4: Template applications (multi-select)
|
|
207
204
|
const selectedFeatures = await this.collectTemplateApplications();
|
|
208
|
-
// Step 5:
|
|
209
|
-
const hasLicense = await clack.confirm({
|
|
210
|
-
message: 'Do you have a valid license?',
|
|
211
|
-
initialValue: true
|
|
212
|
-
});
|
|
213
|
-
if (clack.isCancel(hasLicense))
|
|
214
|
-
throw hasLicense;
|
|
205
|
+
// Step 5: Aks for license Key
|
|
215
206
|
let licenseKey;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
if
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
return `License is not active: Status=${info.status} Error=${info.errorMessage || 'Unknown issue'}`;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
catch (error) {
|
|
230
|
-
return `Invalid license: ${error instanceof Error ? error.message : String(error)}`;
|
|
207
|
+
const licenseInput = await clack.text({
|
|
208
|
+
message: 'Paste your license key here - press Enter when done:',
|
|
209
|
+
validate: (value) => {
|
|
210
|
+
if (!value.trim()) {
|
|
211
|
+
return 'License content is required if you have a license';
|
|
212
|
+
}
|
|
213
|
+
try {
|
|
214
|
+
const info = license_service_1.default.validateLicense(value);
|
|
215
|
+
if (info.status !== "Active") {
|
|
216
|
+
return `License is not active: Status=${info.status} Error=${info.errorMessage || 'Unknown issue'}`;
|
|
231
217
|
}
|
|
232
|
-
return undefined;
|
|
233
218
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
219
|
+
catch (error) {
|
|
220
|
+
return `Invalid license: ${error instanceof Error ? error.message : String(error)}`;
|
|
221
|
+
}
|
|
222
|
+
return undefined;
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
if (clack.isCancel(licenseInput))
|
|
226
|
+
throw licenseInput;
|
|
227
|
+
licenseKey = licenseInput;
|
|
239
228
|
return {
|
|
240
229
|
productName,
|
|
241
230
|
productSlug: this.generateFolderName(productName),
|
|
242
|
-
targetDirectory:
|
|
231
|
+
targetDirectory: createNewFolder ? (0, node_path_1.resolve)(process.cwd(), folderName) : process.cwd(),
|
|
243
232
|
applications: selectedFeatures,
|
|
244
233
|
components: selectedComponents,
|
|
245
234
|
autoTests: selectedFeatures.includes('auto-tests'),
|
|
@@ -277,6 +266,10 @@ class CreateService {
|
|
|
277
266
|
async collectTemplateApplications() {
|
|
278
267
|
const availableTemplateApps = this.templateService.getAvailableApplicationTemplates();
|
|
279
268
|
const selectedTemplateApps = [];
|
|
269
|
+
// include selected by default
|
|
270
|
+
selectedTemplateApps.push(...availableTemplateApps
|
|
271
|
+
.filter(template => template.autoInclude === true)
|
|
272
|
+
.map(t => t.name));
|
|
280
273
|
// Separate features into multi-select and separate questions
|
|
281
274
|
const multiSelectFeatures = availableTemplateApps.filter(template => !template.setupUI?.separate);
|
|
282
275
|
const separateFeatures = availableTemplateApps.filter(template => template.setupUI?.separate);
|