genomic 5.3.11 → 5.5.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.
- package/esm/licenses.js +5 -0
- package/licenses-templates/CONSTRUCTIVE.txt +33 -0
- package/licenses.d.ts +1 -0
- package/licenses.js +6 -1
- package/package.json +2 -2
- package/scaffolder/types.d.ts +16 -0
package/esm/licenses.js
CHANGED
|
@@ -3,6 +3,7 @@ import * as path from 'path';
|
|
|
3
3
|
const PLACEHOLDER_PATTERN = /{{(\w+)}}/g;
|
|
4
4
|
let cachedTemplates = null;
|
|
5
5
|
export const DEFAULT_LICENSE = 'MIT';
|
|
6
|
+
export const CONSTRUCTIVE_LICENSE = 'CONSTRUCTIVE';
|
|
6
7
|
export const CLOSED_LICENSE = 'CLOSED';
|
|
7
8
|
export const LICENSE_VALUE_KEYS = ['LICENSE', 'license'];
|
|
8
9
|
export const LICENSE_AUTHOR_KEYS = [
|
|
@@ -55,6 +56,10 @@ export function listSupportedLicenses() {
|
|
|
55
56
|
return -1;
|
|
56
57
|
if (b === DEFAULT_LICENSE)
|
|
57
58
|
return 1;
|
|
59
|
+
if (a === CONSTRUCTIVE_LICENSE)
|
|
60
|
+
return -1;
|
|
61
|
+
if (b === CONSTRUCTIVE_LICENSE)
|
|
62
|
+
return 1;
|
|
58
63
|
if (a === CLOSED_LICENSE)
|
|
59
64
|
return 1;
|
|
60
65
|
if (b === CLOSED_LICENSE)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Constructive License
|
|
2
|
+
|
|
3
|
+
Copyright (c) {{YEAR}} Interweb, Inc.
|
|
4
|
+
Generated by Constructive (https://constructive.io)
|
|
5
|
+
|
|
6
|
+
You own the application code generated for you. You may use, modify, deploy,
|
|
7
|
+
and distribute it freely, including for commercial use.
|
|
8
|
+
|
|
9
|
+
Restrictions:
|
|
10
|
+
|
|
11
|
+
- You may not use this code to offer a service whose primary purpose is to
|
|
12
|
+
provide database provisioning, schema generation, security policy
|
|
13
|
+
compilation, cloud functions, or AI infrastructure to third parties,
|
|
14
|
+
except under a separate commercial agreement with Interweb, Inc.
|
|
15
|
+
- You may not sell, license, or distribute the exported code, in whole or
|
|
16
|
+
substantial part, as a standalone product or library.
|
|
17
|
+
- You may not repackage the framework components generated by Constructive
|
|
18
|
+
(as defined in the full license) as your own developer platform or toolchain
|
|
19
|
+
for third-party builders.
|
|
20
|
+
|
|
21
|
+
Generated TypeScript clients and SDKs may be distributed under their own
|
|
22
|
+
applicable open-source licenses, as indicated in the LICENSE files included
|
|
23
|
+
with those packages.
|
|
24
|
+
|
|
25
|
+
Full license terms: https://constructive.io/legal/license/v1.0
|
|
26
|
+
|
|
27
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
28
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
29
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
30
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
31
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
32
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
33
|
+
SOFTWARE.
|
package/licenses.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ interface LicenseContext {
|
|
|
5
5
|
}
|
|
6
6
|
export type SupportedLicense = string;
|
|
7
7
|
export declare const DEFAULT_LICENSE = "MIT";
|
|
8
|
+
export declare const CONSTRUCTIVE_LICENSE = "CONSTRUCTIVE";
|
|
8
9
|
export declare const CLOSED_LICENSE = "CLOSED";
|
|
9
10
|
export declare const LICENSE_VALUE_KEYS: string[];
|
|
10
11
|
export declare const LICENSE_AUTHOR_KEYS: string[];
|
package/licenses.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.LICENSE_EMAIL_KEYS = exports.LICENSE_AUTHOR_KEYS = exports.LICENSE_VALUE_KEYS = exports.CLOSED_LICENSE = exports.DEFAULT_LICENSE = void 0;
|
|
36
|
+
exports.LICENSE_EMAIL_KEYS = exports.LICENSE_AUTHOR_KEYS = exports.LICENSE_VALUE_KEYS = exports.CLOSED_LICENSE = exports.CONSTRUCTIVE_LICENSE = exports.DEFAULT_LICENSE = void 0;
|
|
37
37
|
exports.isSupportedLicense = isSupportedLicense;
|
|
38
38
|
exports.renderLicense = renderLicense;
|
|
39
39
|
exports.listSupportedLicenses = listSupportedLicenses;
|
|
@@ -45,6 +45,7 @@ const path = __importStar(require("path"));
|
|
|
45
45
|
const PLACEHOLDER_PATTERN = /{{(\w+)}}/g;
|
|
46
46
|
let cachedTemplates = null;
|
|
47
47
|
exports.DEFAULT_LICENSE = 'MIT';
|
|
48
|
+
exports.CONSTRUCTIVE_LICENSE = 'CONSTRUCTIVE';
|
|
48
49
|
exports.CLOSED_LICENSE = 'CLOSED';
|
|
49
50
|
exports.LICENSE_VALUE_KEYS = ['LICENSE', 'license'];
|
|
50
51
|
exports.LICENSE_AUTHOR_KEYS = [
|
|
@@ -97,6 +98,10 @@ function listSupportedLicenses() {
|
|
|
97
98
|
return -1;
|
|
98
99
|
if (b === exports.DEFAULT_LICENSE)
|
|
99
100
|
return 1;
|
|
101
|
+
if (a === exports.CONSTRUCTIVE_LICENSE)
|
|
102
|
+
return -1;
|
|
103
|
+
if (b === exports.CONSTRUCTIVE_LICENSE)
|
|
104
|
+
return 1;
|
|
100
105
|
if (a === exports.CLOSED_LICENSE)
|
|
101
106
|
return 1;
|
|
102
107
|
if (b === exports.CLOSED_LICENSE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "genomic",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Clone and customize template repositories with variable replacement",
|
|
6
6
|
"main": "index.js",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"makage": "0.1.10"
|
|
37
37
|
},
|
|
38
38
|
"keywords": [],
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "81b358062cb7aaeaa82df514f440e8a40e4ed4a6"
|
|
40
40
|
}
|
package/scaffolder/types.d.ts
CHANGED
|
@@ -117,6 +117,16 @@ export interface BoilerplatesConfig {
|
|
|
117
117
|
*/
|
|
118
118
|
dir?: string;
|
|
119
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* Declares a skill to install after scaffolding completes.
|
|
122
|
+
* Used with the agentskills.io CLI (`npx skills add <source> --skill <name>`).
|
|
123
|
+
*/
|
|
124
|
+
export interface BoilerplateSkill {
|
|
125
|
+
/** GitHub repository in org/repo format, or a full URL */
|
|
126
|
+
source: string;
|
|
127
|
+
/** Skill name(s) to install from the source */
|
|
128
|
+
skills: string[];
|
|
129
|
+
}
|
|
120
130
|
/**
|
|
121
131
|
* Configuration for a single boilerplate template.
|
|
122
132
|
* Stored in `.boilerplate.json` within each template directory.
|
|
@@ -130,6 +140,12 @@ export interface BoilerplateConfig {
|
|
|
130
140
|
* Questions to prompt the user during scaffolding
|
|
131
141
|
*/
|
|
132
142
|
questions?: Question[];
|
|
143
|
+
/**
|
|
144
|
+
* Skills to install after scaffolding completes.
|
|
145
|
+
* Each entry specifies a source repository and skill names to install.
|
|
146
|
+
* Non-fatal: callers should handle install failures gracefully.
|
|
147
|
+
*/
|
|
148
|
+
skills?: BoilerplateSkill[];
|
|
133
149
|
}
|
|
134
150
|
/**
|
|
135
151
|
* Options for inspecting a template without scaffolding.
|