@flowdular/sdk 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/modules/agents/package.json +1 -1
- package/modules/auth/package.json +1 -1
- package/modules/automations/package.json +1 -1
- package/modules/profile/package.json +1 -1
- package/modules/sandbox/package.json +1 -1
- package/modules/system/package.json +1 -1
- package/modules/users/package.json +1 -1
- package/modules/workflows/package.json +1 -1
- package/package.json +3 -2
- package/packages/client/package.json +1 -1
- package/packages/dev-console/package.json +2 -1
- package/packages/dev-console/src/brand.d.mts +8 -0
- package/packages/dev-console/src/brand.mjs +33 -0
- package/packages/dev-console/src/index.mjs +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowdular/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Flowdular platform SDK: server, client, UI, data, agents and core modules through separate exports.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"./harness/schema": "./packages/harness/schemas/task-packet.schema.json",
|
|
40
40
|
"./database-pglite": "./packages/database-pglite/src/index.ts",
|
|
41
41
|
"./dev-console": "./packages/dev-console/src/index.mjs",
|
|
42
|
+
"./dev-console/brand": "./packages/dev-console/src/brand.mjs",
|
|
42
43
|
"./client": "./packages/client/src/index.ts",
|
|
43
44
|
"./client/i18n": "./packages/client/src/i18n/index.ts",
|
|
44
45
|
"./client/web": "./packages/client/src/web.ts",
|
|
@@ -109,7 +110,7 @@
|
|
|
109
110
|
"@octanejs/app-core": "0.0.47",
|
|
110
111
|
"@electric-sql/pglite": "0.5.8",
|
|
111
112
|
"@octanejs/seo": "0.0.38",
|
|
112
|
-
"segment-state": "0.2.
|
|
113
|
+
"segment-state": "0.2.1",
|
|
113
114
|
"semver": "7.7.4",
|
|
114
115
|
"@types/semver": "7.7.1",
|
|
115
116
|
"yaml": "2.9.0"
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// ASCII rendering of Flowdular's existing crossed-thread mark.
|
|
2
|
+
const MARK = [
|
|
3
|
+
' XXX XXX',
|
|
4
|
+
' XXX XXX',
|
|
5
|
+
' XXXXXXXXXXXXXXXXX',
|
|
6
|
+
'XXXXXXXXXXXXXXXXXXX',
|
|
7
|
+
' XXX XXX',
|
|
8
|
+
'XXXXXXXXXXXXXXXXXXX',
|
|
9
|
+
' XXXXXXXXXXXXXXXXX',
|
|
10
|
+
' XXX XXX',
|
|
11
|
+
' XXX XXX',
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
/** Shared terminal branding without loading Vite or browser UI dependencies. */
|
|
15
|
+
export function renderBrandHeader({
|
|
16
|
+
title = 'FLOWDULAR',
|
|
17
|
+
subtitle = '',
|
|
18
|
+
color = false,
|
|
19
|
+
columns = process.stdout.columns ?? 80,
|
|
20
|
+
terminal = Boolean(process.stdout.isTTY),
|
|
21
|
+
} = {}) {
|
|
22
|
+
const brand = (text) => (color ? `\u001b[1;38;5;42m${text}\u001b[0m` : text);
|
|
23
|
+
const muted = (text) => (color ? `\u001b[90m${text}\u001b[0m` : text);
|
|
24
|
+
if (!terminal) {
|
|
25
|
+
return ` ${brand(title)}${subtitle ? ` ${muted(subtitle)}` : ''}`;
|
|
26
|
+
}
|
|
27
|
+
const heading = [
|
|
28
|
+
` ${brand(title)}`,
|
|
29
|
+
...(subtitle ? [` ${muted(subtitle)}`] : []),
|
|
30
|
+
];
|
|
31
|
+
if (columns < 21) return heading.join('\n');
|
|
32
|
+
return [...MARK.map((row) => ` ${brand(row)}`), '', ...heading].join('\n');
|
|
33
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createLogger } from 'vite';
|
|
2
|
+
import { renderBrandHeader } from './brand.mjs';
|
|
2
3
|
|
|
3
4
|
/* Developer-facing startup output, shared by every Flowdular launcher. One
|
|
4
5
|
presentation for the platform and the sandbox: the same brand block, the same
|
|
@@ -80,7 +81,7 @@ export function statusLine(theme, label, value, tone = 'text') {
|
|
|
80
81
|
`[label, value, tone]` triples, so each application names its own facts. */
|
|
81
82
|
export function printReady({ title, subtitle, lines, theme }) {
|
|
82
83
|
console.log('');
|
|
83
|
-
console.log(
|
|
84
|
+
console.log(renderBrandHeader({ title, subtitle, color: theme.enabled }));
|
|
84
85
|
for (const [label, value, tone = 'text'] of lines) {
|
|
85
86
|
if (value === null || value === undefined) continue;
|
|
86
87
|
console.log(statusLine(theme, label, value, tone));
|