relkit 0.7.11 → 0.8.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/README.md +7 -2
- package/dist/bin.js +2 -2
- package/dist/bin.js.map +1 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +164 -1
- package/dist/index.js.map +1 -1
- package/dist/index.types.d.ts +10 -0
- package/dist/index.types.d.ts.map +1 -0
- package/dist/index.types.js +3 -0
- package/dist/index.types.js.map +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,5 +10,10 @@ bunx relkit create my-app
|
|
|
10
10
|
Use `bunx relkit@latest` to request the latest published release, or install the
|
|
11
11
|
command globally with `bun add --global relkit`.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
Creation delegates to the lightweight `create-relkit` package. Project commands use the
|
|
14
|
+
project's explicitly installed `@relkit/cli` at the same release version. Missing or
|
|
15
|
+
mismatched project CLIs produce installation guidance without fetching packages.
|
|
16
|
+
Generated applications depend on `@relkit/cli` and do not need this wrapper.
|
|
17
|
+
|
|
18
|
+
`npx relkit create my-app` is also supported when Bun >=1.3.10 is installed on PATH.
|
|
19
|
+
Bun remains the application runtime.
|
package/dist/bin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
+
/** Dispatches the lightweight public wrapper to pure creation or a compatible project-owned CLI. */
|
|
2
3
|
import { main } from "./index.js";
|
|
3
|
-
|
|
4
|
-
process.exitCode = await main();
|
|
4
|
+
process.exitCode = await main();
|
|
5
5
|
//# sourceMappingURL=bin.js.map
|
package/dist/bin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AACA,oGAAoG;AACpG,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,CAAC,QAAQ,GAAG,MAAM,IAAI,EAAE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/** Lightweight launcher: create directly, or execute the compatible project-owned CLI. */
|
|
2
|
+
/** Resolves only the installed CLI declared by the nearest project manifest.
|
|
3
|
+
* @param cwd - Existing project directory.
|
|
4
|
+
* @returns The compatible CLI executable without invoking a package manager.
|
|
5
|
+
*/
|
|
6
|
+
export declare function resolveProjectCli(cwd: string): string;
|
|
7
|
+
/** Launches one selected entry under Bun, preserving the child's terminal output.
|
|
8
|
+
* @param argv - Original launcher arguments.
|
|
9
|
+
* @param cwd - Caller-owned working directory.
|
|
10
|
+
* @returns The selected command's exit status.
|
|
11
|
+
*/
|
|
12
|
+
export declare function main(argv?: readonly string[], cwd?: string): Promise<number>;
|
|
2
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAU1F;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CA0BrD;AAED;;;;GAIG;AACH,wBAAsB,IAAI,CACxB,IAAI,GAAE,SAAS,MAAM,EAA0B,EAC/C,GAAG,SAAgB,GAClB,OAAO,CAAC,MAAM,CAAC,CAqBjB"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,165 @@
|
|
|
1
|
-
|
|
1
|
+
/** Lightweight launcher: create directly, or execute the compatible project-owned CLI. */
|
|
2
|
+
import { launchBun } from "create-relkit/launcher";
|
|
3
|
+
import { readFileSync, realpathSync } from "node:fs";
|
|
4
|
+
import { dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
5
|
+
import { fileURLToPath } from "node:url";
|
|
6
|
+
import { parseArgs } from "node:util";
|
|
7
|
+
import manifest from "../package.json" with { type: "json" };
|
|
8
|
+
/** Resolves only the installed CLI declared by the nearest project manifest.
|
|
9
|
+
* @param cwd - Existing project directory.
|
|
10
|
+
* @returns The compatible CLI executable without invoking a package manager.
|
|
11
|
+
*/
|
|
12
|
+
export function resolveProjectCli(cwd) {
|
|
13
|
+
const root = projectRoot(cwd);
|
|
14
|
+
const declared = declaresProjectCli(JSON.parse(readFileSync(join(root, "package.json"), "utf8")));
|
|
15
|
+
if (!declared)
|
|
16
|
+
throw new Error("RELKIT_PROJECT_CLI_REQUIRED: Add @relkit/cli@" +
|
|
17
|
+
manifest.version +
|
|
18
|
+
" to this project's devDependencies and install it explicitly.");
|
|
19
|
+
for (let directory = root;; directory = dirname(directory)) {
|
|
20
|
+
const candidate = join(directory, "node_modules/@relkit/cli/package.json");
|
|
21
|
+
let cli;
|
|
22
|
+
try {
|
|
23
|
+
cli = decodeCliManifest(JSON.parse(readFileSync(candidate, "utf8")));
|
|
24
|
+
}
|
|
25
|
+
catch (cause) {
|
|
26
|
+
if (isMissing(cause)) {
|
|
27
|
+
if (dirname(directory) !== directory)
|
|
28
|
+
continue;
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
throw cause;
|
|
32
|
+
}
|
|
33
|
+
return validateCliEntry(candidate, cli);
|
|
34
|
+
}
|
|
35
|
+
throw new Error("RELKIT_PROJECT_CLI_REQUIRED: Install this project's declared @relkit/cli explicitly before running project commands.");
|
|
36
|
+
}
|
|
37
|
+
/** Launches one selected entry under Bun, preserving the child's terminal output.
|
|
38
|
+
* @param argv - Original launcher arguments.
|
|
39
|
+
* @param cwd - Caller-owned working directory.
|
|
40
|
+
* @returns The selected command's exit status.
|
|
41
|
+
*/
|
|
42
|
+
export async function main(argv = process.argv.slice(2), cwd = process.cwd()) {
|
|
43
|
+
try {
|
|
44
|
+
if (argv[0] === "--version" || argv[0] === "-v") {
|
|
45
|
+
process.stdout.write(manifest.version + "\n");
|
|
46
|
+
return 0;
|
|
47
|
+
}
|
|
48
|
+
if (argv.length === 0 || argv[0] === "--help" || argv[0] === "-h") {
|
|
49
|
+
process.stdout.write("Usage: relkit create <name> [options]\n relkit <project-command> [options] (requires the project @relkit/cli)\n");
|
|
50
|
+
return 0;
|
|
51
|
+
}
|
|
52
|
+
const create = argv[0] === "create";
|
|
53
|
+
const entry = create
|
|
54
|
+
? fileURLToPath(import.meta.resolve("create-relkit/cli"))
|
|
55
|
+
: resolveProjectCli(selectedProjectRoot(argv, cwd));
|
|
56
|
+
return await launchBun(entry, create ? argv.slice(1) : argv, cwd);
|
|
57
|
+
}
|
|
58
|
+
catch (cause) {
|
|
59
|
+
process.stderr.write((cause instanceof Error ? cause.message : String(cause)) + "\n");
|
|
60
|
+
return 1;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Selects CLI ownership from the documented option without changing forwarded arguments.
|
|
65
|
+
* @param argv - Original arguments; operands after the delimiter remain uninterpreted.
|
|
66
|
+
* @param cwd - Original launch directory used to resolve a relative explicit root.
|
|
67
|
+
* @returns Explicit application directory or the unchanged default launch directory.
|
|
68
|
+
*/
|
|
69
|
+
function selectedProjectRoot(argv, cwd) {
|
|
70
|
+
const delimiter = argv.indexOf("--");
|
|
71
|
+
const { values } = parseArgs({
|
|
72
|
+
args: [...(delimiter < 0 ? argv : argv.slice(0, delimiter))],
|
|
73
|
+
options: { "project-root": { type: "string" } },
|
|
74
|
+
strict: false,
|
|
75
|
+
allowPositionals: true,
|
|
76
|
+
});
|
|
77
|
+
const selected = values["project-root"];
|
|
78
|
+
return typeof selected === "string" ? resolve(cwd, selected) : cwd;
|
|
79
|
+
}
|
|
80
|
+
function projectRoot(cwd) {
|
|
81
|
+
for (let root = resolve(cwd);; root = dirname(root)) {
|
|
82
|
+
try {
|
|
83
|
+
readFileSync(join(root, "package.json"));
|
|
84
|
+
return root;
|
|
85
|
+
}
|
|
86
|
+
catch (cause) {
|
|
87
|
+
if (!isMissing(cause))
|
|
88
|
+
throw cause;
|
|
89
|
+
}
|
|
90
|
+
if (dirname(root) === root)
|
|
91
|
+
throw new Error("RELKIT_PROJECT_REQUIRED: Run project commands inside a RELKIT project, or use relkit create <name>.");
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
/** Distinguishes absent local entries from malformed metadata and other filesystem failures.
|
|
95
|
+
* @typeParam Cause - Original caught failure, retained until its native Error shape is checked.
|
|
96
|
+
* @param cause - Failure raised while locating a local manifest.
|
|
97
|
+
* @returns Whether directory ascent may continue for an absent path.
|
|
98
|
+
*/
|
|
99
|
+
function isMissing(cause) {
|
|
100
|
+
return cause instanceof Error && "code" in cause && cause.code === "ENOENT";
|
|
101
|
+
}
|
|
102
|
+
/** Checks installed identity and confines the executable to its physical package.
|
|
103
|
+
* @param candidate - Selected project-local package manifest.
|
|
104
|
+
* @param cli - Parsed installed CLI metadata.
|
|
105
|
+
* @returns The physical compatible executable, or an actionable rejection.
|
|
106
|
+
*/
|
|
107
|
+
function validateCliEntry(candidate, cli) {
|
|
108
|
+
if (cli.name !== "@relkit/cli" || cli.version !== manifest.version)
|
|
109
|
+
throw new Error(`RELKIT_PROJECT_CLI_VERSION: Expected @relkit/cli@${manifest.version}; found ${cli.version ?? "invalid metadata"}. Install matching versions explicitly.`);
|
|
110
|
+
if (typeof cli.bin?.relkit !== "string")
|
|
111
|
+
throw new Error("RELKIT_PROJECT_CLI_INVALID: Installed @relkit/cli has no relkit executable.");
|
|
112
|
+
const owner = dirname(realpathSync(candidate));
|
|
113
|
+
const entry = realpathSync(resolve(owner, cli.bin.relkit));
|
|
114
|
+
const local = relative(owner, entry);
|
|
115
|
+
if (local === ".." ||
|
|
116
|
+
local.startsWith("../") ||
|
|
117
|
+
isAbsolute(local) ||
|
|
118
|
+
entry === fileURLToPath(import.meta.url))
|
|
119
|
+
throw new Error("RELKIT_PROJECT_CLI_INVALID: The installed CLI executable escapes its package.");
|
|
120
|
+
return entry;
|
|
121
|
+
}
|
|
122
|
+
/** Reads only explicit string dependency declarations from foreign project metadata.
|
|
123
|
+
* @typeParam Value - Original parsed JSON value narrowed before field access.
|
|
124
|
+
* @param value - Parsed project manifest.
|
|
125
|
+
* @returns Whether either supported dependency section declares the project CLI.
|
|
126
|
+
*/
|
|
127
|
+
function declaresProjectCli(value) {
|
|
128
|
+
if (value === null || typeof value !== "object")
|
|
129
|
+
return false;
|
|
130
|
+
return (("dependencies" in value && declaresCli(value.dependencies)) ||
|
|
131
|
+
("devDependencies" in value && declaresCli(value.devDependencies)));
|
|
132
|
+
}
|
|
133
|
+
/** Narrows one foreign dependency section before accepting a CLI declaration.
|
|
134
|
+
* @typeParam Value - Original dependency field value.
|
|
135
|
+
* @param value - Candidate dependencies or devDependencies field.
|
|
136
|
+
* @returns Whether the field contains an explicit string CLI dependency.
|
|
137
|
+
*/
|
|
138
|
+
function declaresCli(value) {
|
|
139
|
+
return (value !== null &&
|
|
140
|
+
typeof value === "object" &&
|
|
141
|
+
"@relkit/cli" in value &&
|
|
142
|
+
typeof value["@relkit/cli"] === "string");
|
|
143
|
+
}
|
|
144
|
+
/** Decodes the concrete fields used to validate a selected native CLI package.
|
|
145
|
+
* @typeParam Value - Original parsed JSON value narrowed before field access.
|
|
146
|
+
* @param value - Installed package manifest value.
|
|
147
|
+
* @returns Checked fields; missing fields retain the existing identity diagnostics.
|
|
148
|
+
*/
|
|
149
|
+
function decodeCliManifest(value) {
|
|
150
|
+
if (value === null || typeof value !== "object")
|
|
151
|
+
return {};
|
|
152
|
+
let executable;
|
|
153
|
+
if ("bin" in value &&
|
|
154
|
+
value.bin !== null &&
|
|
155
|
+
typeof value.bin === "object" &&
|
|
156
|
+
"relkit" in value.bin &&
|
|
157
|
+
typeof value.bin.relkit === "string")
|
|
158
|
+
executable = value.bin.relkit;
|
|
159
|
+
return {
|
|
160
|
+
...("name" in value && typeof value.name === "string" ? { name: value.name } : {}),
|
|
161
|
+
...("version" in value && typeof value.version === "string" ? { version: value.version } : {}),
|
|
162
|
+
...(executable === undefined ? {} : { bin: { relkit: executable } }),
|
|
163
|
+
};
|
|
164
|
+
}
|
|
2
165
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAE1F,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,QAAQ,MAAM,iBAAiB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAG7D;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,GAAW;IAC3C,MAAM,IAAI,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;IAC9B,MAAM,QAAQ,GAAG,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IAClG,IAAI,CAAC,QAAQ;QACX,MAAM,IAAI,KAAK,CACb,+CAA+C;YAC7C,QAAQ,CAAC,OAAO;YAChB,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QAClB,OAAO,KAAK,CAAC,GAAG,KAAK,QAAQ;QAC7B,QAAQ,IAAI,KAAK,CAAC,GAAG;QACrB,OAAO,KAAK,CAAC,GAAG,CAAC,MAAM,KAAK,QAAQ;QAEpC,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC;IAChC,OAAO;QACL,GAAG,CAAC,MAAM,IAAI,KAAK,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAClF,GAAG,CAAC,SAAS,IAAI,KAAK,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9F,GAAG,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC;KACrE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Describes the local package fields the lightweight wrapper inspects to select an explicitly installed compatible CLI; no project code is evaluated. */
|
|
2
|
+
/** Installed package metadata checked before the wrapper launches its native executable. */
|
|
3
|
+
export interface CliManifest {
|
|
4
|
+
readonly name?: string;
|
|
5
|
+
readonly version?: string;
|
|
6
|
+
readonly bin?: {
|
|
7
|
+
readonly relkit?: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=index.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.types.d.ts","sourceRoot":"","sources":["../src/index.types.ts"],"names":[],"mappings":"AAAA,0JAA0J;AAE1J,4FAA4F;AAC5F,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,GAAG,CAAC,EAAE;QAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.types.js","sourceRoot":"","sources":["../src/index.types.ts"],"names":[],"mappings":"AAAA,0JAA0J"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "relkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "The RELKIT CLI for bunx relkit and global installation.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"
|
|
35
|
+
"create-relkit": "0.8.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "tsc -b",
|