flowdular 0.2.3 → 0.2.4
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/index.js +43 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1959,6 +1959,38 @@ var require_semver2 = __commonJS({
|
|
|
1959
1959
|
}
|
|
1960
1960
|
});
|
|
1961
1961
|
|
|
1962
|
+
// ../dev-console/src/brand.mjs
|
|
1963
|
+
var MARK = [
|
|
1964
|
+
" XXX XXX",
|
|
1965
|
+
" XXX XXX",
|
|
1966
|
+
" XXXXXXXXXXXXXXXXX",
|
|
1967
|
+
"XXXXXXXXXXXXXXXXXXX",
|
|
1968
|
+
" XXX XXX",
|
|
1969
|
+
"XXXXXXXXXXXXXXXXXXX",
|
|
1970
|
+
" XXXXXXXXXXXXXXXXX",
|
|
1971
|
+
" XXX XXX",
|
|
1972
|
+
" XXX XXX"
|
|
1973
|
+
];
|
|
1974
|
+
function renderBrandHeader({
|
|
1975
|
+
title = "FLOWDULAR",
|
|
1976
|
+
subtitle = "",
|
|
1977
|
+
color = false,
|
|
1978
|
+
columns = process.stdout.columns ?? 80,
|
|
1979
|
+
terminal = Boolean(process.stdout.isTTY)
|
|
1980
|
+
} = {}) {
|
|
1981
|
+
const brand = (text) => color ? `\x1B[1;38;5;42m${text}\x1B[0m` : text;
|
|
1982
|
+
const muted = (text) => color ? `\x1B[90m${text}\x1B[0m` : text;
|
|
1983
|
+
if (!terminal) {
|
|
1984
|
+
return ` ${brand(title)}${subtitle ? ` ${muted(subtitle)}` : ""}`;
|
|
1985
|
+
}
|
|
1986
|
+
const heading = [
|
|
1987
|
+
` ${brand(title)}`,
|
|
1988
|
+
...subtitle ? [` ${muted(subtitle)}`] : []
|
|
1989
|
+
];
|
|
1990
|
+
if (columns < 21) return heading.join("\n");
|
|
1991
|
+
return [...MARK.map((row) => ` ${brand(row)}`), "", ...heading].join("\n");
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1962
1994
|
// src/arguments.ts
|
|
1963
1995
|
function parseArguments(args) {
|
|
1964
1996
|
const positionals = [];
|
|
@@ -7666,7 +7698,7 @@ function packageJson(model) {
|
|
|
7666
7698
|
...hasClient ? {
|
|
7667
7699
|
"@flowdular/ui": "workspace:*",
|
|
7668
7700
|
octane: "0.1.51",
|
|
7669
|
-
"segment-state": "0.2.
|
|
7701
|
+
"segment-state": "0.2.1"
|
|
7670
7702
|
} : {}
|
|
7671
7703
|
},
|
|
7672
7704
|
devDependencies: {
|
|
@@ -9952,6 +9984,16 @@ var invokedAsProgram = process.argv[1]?.endsWith("/index.ts") || process.argv[1]
|
|
|
9952
9984
|
if (invokedAsProgram) {
|
|
9953
9985
|
const arguments_ = parseArguments(process.argv.slice(2));
|
|
9954
9986
|
const interactive = arguments_.positionals.length === 1 && arguments_.positionals[0] === "setup" && !arguments_.flags.has("json") && !arguments_.flags.has("help") && process.stdin.isTTY && process.stdout.isTTY;
|
|
9987
|
+
if (process.stdout.isTTY && !arguments_.flags.has("json") && (interactive || arguments_.positionals.length === 0 || arguments_.positionals[0] === "help" || arguments_.flags.has("help"))) {
|
|
9988
|
+
process.stdout.write(
|
|
9989
|
+
"\n" + renderBrandHeader({
|
|
9990
|
+
subtitle: interactive ? "Application setup" : "Application toolkit",
|
|
9991
|
+
color: Boolean(
|
|
9992
|
+
process.stdout.hasColors?.() && !("NO_COLOR" in process.env) && !process.env.CI
|
|
9993
|
+
)
|
|
9994
|
+
}) + "\n\n"
|
|
9995
|
+
);
|
|
9996
|
+
}
|
|
9955
9997
|
const envelope = await (interactive ? runSetupWizard(arguments_) : runProgram(arguments_));
|
|
9956
9998
|
process.stdout.write(
|
|
9957
9999
|
`${renderOutput(envelope, arguments_.flags.has("json"), Boolean(process.stdout.isTTY && process.stdout.hasColors?.() && !("NO_COLOR" in process.env) && !process.env.CI))}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowdular",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"flowdular": "./dist/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"ajv": "8.20.0",
|
|
17
17
|
"pg": "8.23.0",
|
|
18
18
|
"yaml": "2.9.0",
|
|
19
|
-
"@flowdular/sdk": "0.2.
|
|
19
|
+
"@flowdular/sdk": "0.2.4"
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"repository": {
|