@wistantkode/dotfiles 1.7.1 → 1.7.2
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/CHANGELOG.md +9 -0
- package/cli/assets.mjs +6 -0
- package/cli/cli.mjs +28 -118
- package/cli/constants.mjs +29 -0
- package/cli/engine.mjs +34 -0
- package/cli/renderSignature.mjs +19 -0
- package/cli/renderlogo.mjs +12 -0
- package/cli/ui.mjs +14 -0
- package/data/LICENSE +201 -0
- package/data/github.sh +174 -0
- package/{gitignore → data/gitignore} +1 -0
- package/package.json +1 -1
- package/protocols/ASSIST.md +0 -66
- package/protocols/COMMIT.md +0 -90
- package/protocols/DOTFILES.md +0 -29
- package/protocols/INIT.md +0 -37
- package/protocols/PR.md +0 -50
- package/protocols/REFACTOR.md +0 -189
- package/protocols/RELEASE.md +0 -104
- package/protocols/RODIN.md +0 -43
- package/protocols/TEST.md +0 -42
- package/protocols/UI.md +0 -37
- package/protocols/_INDEX.md +0 -43
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.7.2] - 2026-04-07 - [Architectural Symmetry]
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- **Modular Infrastructure**: Decoupled the monolithic `cli.mjs` into specialized components (`engine`, `ui`, `constants`, `assets`).
|
|
10
|
+
- **Asset Migration**: Consolidated root-level configuration assets into a structured `data/` directory.
|
|
11
|
+
- **UI Componentization**: Isolated `renderLogo` and `renderSignature` into reusable modules for improved maintainability.
|
|
12
|
+
- **Icon Centralization**: Unified all UI tokens and interactive emojis into a single source of truth (`constants.mjs`).
|
|
13
|
+
|
|
5
14
|
## [1.7.1] - 2026-04-05 - [High-Fidelity Restoration]
|
|
6
15
|
|
|
7
16
|
### Added
|
package/cli/assets.mjs
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const getAssets = (protocolDest) => [
|
|
2
|
+
{ src: 'data/gitignore', dest: '.gitignore', label: 'Ignore patterns' },
|
|
3
|
+
{ src: 'data/LICENSE', dest: 'LICENSE', label: 'License' },
|
|
4
|
+
{ src: 'data/github.sh', dest: '.push.sh', label: 'Push helper' },
|
|
5
|
+
{ src: 'protocols', dest: protocolDest, label: 'Governance protocols', isDir: true }
|
|
6
|
+
];
|
package/cli/cli.mjs
CHANGED
|
@@ -1,115 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
* ═══════════════════════════════════════════════════════════════════════
|
|
5
|
-
* DOTFILES INSTALLER · Elite Orchestration · @wistantkode/dotfiles
|
|
6
|
-
* ════════════════════════════════════════───────────────────────════════
|
|
7
|
-
*/
|
|
3
|
+
// DOTFILES INSTALLER · Elite Orchestration · @wistantkode/dotfiles
|
|
8
4
|
|
|
9
5
|
import { copyFile, mkdir, readdir, lstat } from 'node:fs/promises';
|
|
10
6
|
import { join, dirname } from 'node:path';
|
|
11
7
|
import { fileURLToPath } from 'node:url';
|
|
12
8
|
import { createInterface } from 'node:readline/promises';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const RED = '\x1b[38;5;203m';
|
|
22
|
-
const GRAY = '\x1b[38;5;244m';
|
|
23
|
-
const WHITE = '\x1b[38;5;255m';
|
|
24
|
-
const DGRAY = '\x1b[38;5;238m';
|
|
25
|
-
const BLUE = '\x1b[38;5;75m';
|
|
9
|
+
import { renderLogo } from './renderlogo.mjs';
|
|
10
|
+
import { renderSignature } from './renderSignature.mjs';
|
|
11
|
+
import { sep, progress } from './ui.mjs';
|
|
12
|
+
import { ask, checkDirectory, copyRecursive } from './engine.mjs';
|
|
13
|
+
import { getAssets } from './assets.mjs';
|
|
14
|
+
import {
|
|
15
|
+
RED, GREEN, YELLOW, CYAN, GRAY, WHITE, DIM, BOLD, RESET, ICONS, DGRAY
|
|
16
|
+
} from './constants.mjs';
|
|
26
17
|
|
|
27
18
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
28
19
|
const pkgRoot = join(__dirname, '..');
|
|
29
20
|
|
|
30
|
-
// ── Layout Components ─────────────────────────────────────────────────
|
|
31
|
-
|
|
32
|
-
const _rep = (n, char = ' ') => char.repeat(Math.max(0, n));
|
|
33
|
-
const sep = () => console.log(`${DGRAY}${_rep(64, '─')}${RESET}`);
|
|
34
|
-
|
|
35
|
-
const renderLogo = () => {
|
|
36
|
-
// Ultra-High-Fidelity "Full Block" Style
|
|
37
|
-
console.log(`\n ${CYAN}██████╗ ██████╗ ████████╗███████╗██╗██╗ ███████╗███████╗`);
|
|
38
|
-
console.log(` ${CYAN}██╔══██╗██╔═══██╗╚══██╔══╝██╔════╝██║██║ ██╔════╝██╔════╝`);
|
|
39
|
-
console.log(` ${CYAN}██║ ██║██║ ██║ ██║ █████╗ ██║██║ █████╗ ███████╗`);
|
|
40
|
-
console.log(` ${CYAN}██║ ██║██║ ██║ ██║ ██╔══╝ ██║██║ ██╔══╝ ╚════██║`);
|
|
41
|
-
console.log(` ${CYAN}██████╔╝╚██████╔╝ ██║ ██║ ██║███████╗███████╗███████║`);
|
|
42
|
-
console.log(` ${CYAN}╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝${RESET}`);
|
|
43
|
-
console.log(`\n ${GRAY}${BOLD}[ PRECISION AI ORCHESTRATION ]${RESET}\n`);
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
const progress = async (label) => {
|
|
47
|
-
process.stdout.write(` ${GRAY}[${RESET}`);
|
|
48
|
-
for (let i = 0; i < 28; i++) {
|
|
49
|
-
process.stdout.write(`${CYAN}█${RESET}`);
|
|
50
|
-
await new Promise(r => setTimeout(r, 10));
|
|
51
|
-
}
|
|
52
|
-
process.stdout.write(`${GRAY}]${RESET} ${GREEN}${label}${RESET}\n`);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
const renderSignature = () => {
|
|
56
|
-
const width = 44;
|
|
57
|
-
const stripAnsi = (str) => str.replace(/\x1b\[[0-9;]*m/g, '');
|
|
58
|
-
const pad = (text, len) => text + _rep(len - stripAnsi(text).length);
|
|
59
|
-
|
|
60
|
-
console.log(`\n ${WHITE}${BOLD}SOURCE & AUTHORSHIP${RESET}`);
|
|
61
|
-
console.log(` ${DGRAY}┌${_rep(width, '──')}┐${RESET}`);
|
|
62
|
-
|
|
63
|
-
const label = (txt, col) => `${col}${BOLD}${txt}${RESET}`;
|
|
64
|
-
|
|
65
|
-
console.log(` ${DGRAY}│${RESET} ${pad(`${label('REPOSITORY', BLUE)} ${BOLD}https://github.com/wistant/dotfiles${RESET}`, width + 17)} ${DGRAY}│${RESET}`);
|
|
66
|
-
console.log(` ${DGRAY}├${_rep(width, '──')}┤${RESET}`);
|
|
67
|
-
console.log(` ${DGRAY}│${RESET} ${pad(`${label('ARCHITECT ', WHITE)} ${BOLD}Wistant${RESET} ${GRAY}(DevOps Architect)${RESET}`, width + 28)} ${DGRAY}│${RESET}`);
|
|
68
|
-
console.log(` ${DGRAY}│${RESET} ${pad(`${label('GITHUB ', BLUE)} ${GRAY}https://github.com/wistant${RESET}`, width + 26)} ${DGRAY}│${RESET}`);
|
|
69
|
-
console.log(` ${DGRAY}└${_rep(width, '──')}┘${RESET}\n`);
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
// ── Interactive Logic ─────────────────────────────────────────────────
|
|
73
|
-
|
|
74
21
|
const rl = createInterface({
|
|
75
22
|
input: process.stdin,
|
|
76
23
|
output: process.stdout
|
|
77
24
|
});
|
|
78
25
|
|
|
79
|
-
const ask = async (question, defaultYes = true) => {
|
|
80
|
-
const options = defaultYes ? ' (Y/n)' : ' (y/N)';
|
|
81
|
-
const answer = await rl.question(` ${YELLOW}${BOLD}?${RESET} ${question}${GRAY}${options}${RESET} `);
|
|
82
|
-
if (!answer) return defaultYes;
|
|
83
|
-
return answer.toLowerCase().startsWith('y');
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
async function checkDirectory(dir) {
|
|
87
|
-
try {
|
|
88
|
-
const files = await readdir(dir);
|
|
89
|
-
// Ignore common development/system noise
|
|
90
|
-
const filtered = files.filter(f => !['.git', 'node_modules', '.DS_Store', 'package-lock.json', 'pnpm-lock.yaml'].includes(f));
|
|
91
|
-
return filtered.length > 0;
|
|
92
|
-
} catch {
|
|
93
|
-
return false;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// ── Core Engine ───────────────────────────────────────────────────────
|
|
98
|
-
|
|
99
|
-
async function copyRecursive(src, dest, onFile) {
|
|
100
|
-
const stat = await lstat(src);
|
|
101
|
-
if (stat.isDirectory()) {
|
|
102
|
-
await mkdir(dest, { recursive: true });
|
|
103
|
-
const children = await readdir(src);
|
|
104
|
-
for (const child of children) {
|
|
105
|
-
await copyRecursive(join(src, child), join(dest, child), onFile);
|
|
106
|
-
}
|
|
107
|
-
} else {
|
|
108
|
-
await copyFile(src, dest);
|
|
109
|
-
if (onFile) onFile(dest);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
26
|
async function run() {
|
|
114
27
|
process.stdout.write('\x1Bc'); // Clear screen
|
|
115
28
|
renderLogo();
|
|
@@ -118,7 +31,7 @@ async function run() {
|
|
|
118
31
|
const targetDir = process.cwd();
|
|
119
32
|
console.log(`\n ${GRAY}System Target:${RESET} ${WHITE}${BOLD}${targetDir}${RESET}`);
|
|
120
33
|
|
|
121
|
-
const proceedTarget = await ask('Initiate deployment in this directory?', true);
|
|
34
|
+
const proceedTarget = await ask(rl, 'Initiate deployment in this directory?', true);
|
|
122
35
|
if (!proceedTarget) {
|
|
123
36
|
console.log(`\n ${RED}Deployment cancelled by user.${RESET}\n`);
|
|
124
37
|
rl.close();
|
|
@@ -128,12 +41,12 @@ async function run() {
|
|
|
128
41
|
// Phase 1: Directory Audit
|
|
129
42
|
const isEmpty = !(await checkDirectory(targetDir));
|
|
130
43
|
if (isEmpty) {
|
|
131
|
-
console.log(` ${GREEN}${BOLD}
|
|
44
|
+
console.log(` ${GREEN}${BOLD}${ICONS.CLEAN} TARGET DIRECTORY IS CLEAN${RESET}`);
|
|
132
45
|
} else {
|
|
133
|
-
console.log(` ${YELLOW}${BOLD}
|
|
134
|
-
const proceed = await ask('Deployment may overwrite existing files. Force installation?', false);
|
|
46
|
+
console.log(` ${YELLOW}${BOLD}${ICONS.WARN} TARGET DIRECTORY IS NOT EMPTY${RESET}`);
|
|
47
|
+
const proceed = await ask(rl, 'Deployment may overwrite existing files. Force installation ?', false);
|
|
135
48
|
if (!proceed) {
|
|
136
|
-
console.log(`\n ${RED}Deployment cancelled by user.${RESET}\n`);
|
|
49
|
+
console.log(`\n ${RED}${ICONS.CANCEL} Deployment cancelled by user.${RESET}\n`);
|
|
137
50
|
rl.close();
|
|
138
51
|
return;
|
|
139
52
|
}
|
|
@@ -141,24 +54,20 @@ async function run() {
|
|
|
141
54
|
|
|
142
55
|
// Phase 2: Protocol Selection
|
|
143
56
|
let protocolDest = '.protocols';
|
|
144
|
-
console.log(`\n ${CYAN}${BOLD}
|
|
145
|
-
const useDotDir = await ask('Deploy protocols to .protocols/ folder? (Recommended)', true);
|
|
57
|
+
console.log(`\n ${CYAN}${BOLD}${ICONS.INFO} GOVERNANCE PLACEMENT${RESET}`);
|
|
58
|
+
const useDotDir = await ask(rl, 'Deploy protocols to .protocols/ folder? (Recommended)', true);
|
|
146
59
|
if (!useDotDir) {
|
|
147
60
|
protocolDest = 'protocols';
|
|
148
|
-
console.log(` ${DIM}Protocols will be deployed to 'protocols/' (
|
|
61
|
+
console.log(` ${DIM}Protocols will be deployed to 'protocols/' (No recommanded mode).${RESET}`);
|
|
149
62
|
} else {
|
|
150
|
-
console.log(` ${DIM}Protocols will be deployed to '.protocols/' (
|
|
63
|
+
console.log(` ${DIM}Protocols will be deployed to '.protocols/' (Standard & recommended).${RESET}`);
|
|
151
64
|
}
|
|
152
65
|
|
|
153
|
-
const ASSETS =
|
|
154
|
-
{ src: 'gitignore', dest: '.gitignore', label: 'Ignore patterns' },
|
|
155
|
-
{ src: 'LICENSE', dest: 'LICENSE', label: 'License' },
|
|
156
|
-
{ src: 'protocols', dest: protocolDest, label: 'Governance protocols', isDir: true }
|
|
157
|
-
];
|
|
66
|
+
const ASSETS = getAssets(protocolDest);
|
|
158
67
|
|
|
159
68
|
sep();
|
|
160
|
-
console.log(`\n ${BOLD}
|
|
161
|
-
const confirm = await ask('Apply changes to your system?', true);
|
|
69
|
+
console.log(`\n ${BOLD}${ICONS.PLAY} Ready to initiate deployment sequence...${RESET}`);
|
|
70
|
+
const confirm = await ask(rl, 'Apply changes to your system?', true);
|
|
162
71
|
if (!confirm) {
|
|
163
72
|
console.log(`\n ${RED}Deployment aborted.${RESET}\n`);
|
|
164
73
|
rl.close();
|
|
@@ -184,26 +93,27 @@ async function run() {
|
|
|
184
93
|
deployedFiles.push('/' + asset.dest);
|
|
185
94
|
}
|
|
186
95
|
} catch (err) {
|
|
187
|
-
console.error(` ${RED}
|
|
96
|
+
console.error(` ${RED}${ICONS.ERROR}${RESET} Failed to deploy ${asset.src}: ${err.message}`);
|
|
188
97
|
}
|
|
189
98
|
}
|
|
190
99
|
|
|
191
|
-
await progress('Finalizing system orchestration');
|
|
100
|
+
await progress('Finalizing system orchestration...');
|
|
192
101
|
|
|
193
102
|
// Detailed Audit Logs
|
|
103
|
+
const _rep = (n, char = ' ') => char.repeat(Math.max(0, n));
|
|
194
104
|
console.log(`\n ${BOLD}DEPLOYMENT AUDIT${RESET}`);
|
|
195
105
|
console.log(` ${DGRAY}${_rep(45, '─')}${RESET}`);
|
|
196
106
|
for (const file of deployedFiles.sort()) {
|
|
197
|
-
console.log(` ${GREEN}
|
|
107
|
+
console.log(` ${GREEN}${ICONS.CHECK}${RESET} ${GRAY}${file}${RESET}`);
|
|
198
108
|
}
|
|
199
109
|
console.log(` ${DGRAY}${_rep(45, '─')}${RESET}`);
|
|
200
110
|
|
|
201
|
-
console.log(`\n ${GREEN}${BOLD}
|
|
202
|
-
console.log(` ${GRAY}Your environment is now optimized for professional AI pairing.${RESET}`);
|
|
111
|
+
console.log(`\n ${GREEN}${BOLD}${ICONS.SUCCESS} INFRASTRUCTURE DEPLOYED SUCCESSFULLY.${RESET}`);
|
|
112
|
+
console.log(` ${GRAY}Your environment is now optimized for professional AI pairing developpement.${RESET}`);
|
|
203
113
|
|
|
204
114
|
renderSignature();
|
|
205
115
|
|
|
206
|
-
console.log(` ${DIM}Thank you for choosing high-end architectural standards.${RESET}\n`);
|
|
116
|
+
console.log(` ${DIM}${ICONS.THANKS} Thank you for choosing high-end architectural standards.${RESET}\n`);
|
|
207
117
|
sep();
|
|
208
118
|
console.log('');
|
|
209
119
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export const RESET = '\x1b[0m';
|
|
2
|
+
export const BOLD = '\x1b[1m';
|
|
3
|
+
export const DIM = '\x1b[2m';
|
|
4
|
+
export const CYAN = '\x1b[38;5;117m';
|
|
5
|
+
export const GREEN = '\x1b[38;5;114m';
|
|
6
|
+
export const YELLOW = '\x1b[38;5;221m';
|
|
7
|
+
export const RED = '\x1b[38;5;203m';
|
|
8
|
+
export const GRAY = '\x1b[38;5;244m';
|
|
9
|
+
export const WHITE = '\x1b[38;5;255m';
|
|
10
|
+
export const DGRAY = '\x1b[38;5;238m';
|
|
11
|
+
export const BLUE = '\x1b[38;5;75m';
|
|
12
|
+
|
|
13
|
+
export const ICONS = {
|
|
14
|
+
CLEAN: '✅',
|
|
15
|
+
WARN: '⚠️',
|
|
16
|
+
CANCEL: '⛔',
|
|
17
|
+
ERROR: '🔴',
|
|
18
|
+
SUCCESS: '🟢',
|
|
19
|
+
INFO: 'i',
|
|
20
|
+
PLAY: '▶',
|
|
21
|
+
CHECK: '✔',
|
|
22
|
+
THANKS: '😉'
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const UI = {
|
|
26
|
+
SEP_WIDTH: 64,
|
|
27
|
+
PROGRESS_WIDTH: 28,
|
|
28
|
+
SIG_WIDTH: 44
|
|
29
|
+
};
|
package/cli/engine.mjs
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { readdir, lstat, mkdir, copyFile } from 'node:fs/promises';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
import { YELLOW, BOLD, RESET, GRAY, WHITE } from './constants.mjs';
|
|
4
|
+
|
|
5
|
+
export async function ask(rl, question, defaultYes = true) {
|
|
6
|
+
const options = defaultYes ? ' (Y/n)' : ' (y/N)';
|
|
7
|
+
const answer = await rl.question(` ${YELLOW}${BOLD}?${RESET} ${question}${GRAY}${options}${RESET} `);
|
|
8
|
+
if (!answer) return defaultYes;
|
|
9
|
+
return answer.toLowerCase().startsWith('y');
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export async function checkDirectory(dir) {
|
|
13
|
+
try {
|
|
14
|
+
const files = await readdir(dir);
|
|
15
|
+
const filtered = files.filter(f => !['.git', 'node_modules', '.DS_Store', 'package-lock.json', 'pnpm-lock.yaml'].includes(f));
|
|
16
|
+
return filtered.length > 0;
|
|
17
|
+
} catch {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export async function copyRecursive(src, dest, onFile) {
|
|
23
|
+
const stat = await lstat(src);
|
|
24
|
+
if (stat.isDirectory()) {
|
|
25
|
+
await mkdir(dest, { recursive: true });
|
|
26
|
+
const children = await readdir(src);
|
|
27
|
+
for (const child of children) {
|
|
28
|
+
await copyRecursive(join(src, child), join(dest, child), onFile);
|
|
29
|
+
}
|
|
30
|
+
} else {
|
|
31
|
+
await copyFile(src, dest);
|
|
32
|
+
if (onFile) onFile(dest);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { WHITE, BOLD, RESET, DGRAY, BLUE, GRAY, UI } from './constants.mjs';
|
|
2
|
+
import { _rep } from './ui.mjs';
|
|
3
|
+
|
|
4
|
+
export const renderSignature = () => {
|
|
5
|
+
const width = UI.SIG_WIDTH;
|
|
6
|
+
const stripAnsi = (str) => str.replace(/\x1b\[[0-9;]*m/g, '');
|
|
7
|
+
const pad = (text, len) => text + _rep(len - stripAnsi(text).length);
|
|
8
|
+
|
|
9
|
+
console.log(`\n ${WHITE}${BOLD}SOURCE & AUTHORSHIP${RESET}`);
|
|
10
|
+
console.log(` ${DGRAY}┌${_rep(width, '──')}┐${RESET}`);
|
|
11
|
+
|
|
12
|
+
const label = (txt, col) => `${col}${BOLD}${txt}${RESET}`;
|
|
13
|
+
|
|
14
|
+
console.log(` ${DGRAY}│${RESET} ${pad(`${label('REPOSITORY', BLUE)} ${BOLD}https://github.com/wistant/dotfiles${RESET}`, width + 17)} ${DGRAY}│${RESET}`);
|
|
15
|
+
console.log(` ${DGRAY}├${_rep(width, '──')}┤${RESET}`);
|
|
16
|
+
console.log(` ${DGRAY}│${RESET} ${pad(`${label('AUTOR ', WHITE)} ${BOLD}Wistant${RESET} ${GRAY}(Opensource Advocate)${RESET}`, width + 28)} ${DGRAY}│${RESET}`);
|
|
17
|
+
console.log(` ${DGRAY}│${RESET} ${pad(`${label('GITHUB ', BLUE)} ${GRAY}https://github.com/wistant${RESET}`, width + 26)} ${DGRAY}│${RESET}`);
|
|
18
|
+
console.log(` ${DGRAY}└${_rep(width, '──')}┘${RESET}\n`);
|
|
19
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CYAN, GRAY, BOLD, RESET } from './constants.mjs';
|
|
2
|
+
|
|
3
|
+
export const renderLogo = () => {
|
|
4
|
+
// Ultra-High-Fidelity "Full Block" Style
|
|
5
|
+
console.log(`\n ${CYAN}██████╗ ██████╗ ████████╗███████╗██╗██╗ ███████╗███████╗`);
|
|
6
|
+
console.log(` ${CYAN}██╔══██╗██╔═══██╗╚══██╔══╝██╔════╝██║██║ ██╔════╝██╔════╝`);
|
|
7
|
+
console.log(` ${CYAN}██║ ██║██║ ██║ ██║ █████╗ ██║██║ █████╗ ███████╗`);
|
|
8
|
+
console.log(` ${CYAN}██║ ██║██║ ██║ ██║ ██╔══╝ ██║██║ ██╔══╝ ╚════██║`);
|
|
9
|
+
console.log(` ${CYAN}██████╔╝╚██████╔╝ ██║ ██║ ██║███████╗███████╗███████║`);
|
|
10
|
+
console.log(` ${CYAN}╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝${RESET}`);
|
|
11
|
+
console.log(`\n ${GRAY}${BOLD}[ PRECISION AI ORCHESTRATION ]${RESET}\n`);
|
|
12
|
+
};
|
package/cli/ui.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DGRAY, RESET, GRAY, WHITE, GREEN, UI } from './constants.mjs';
|
|
2
|
+
|
|
3
|
+
export const _rep = (n, char = ' ') => char.repeat(Math.max(0, n));
|
|
4
|
+
|
|
5
|
+
export const sep = () => console.log(`${DGRAY}${_rep(UI.SEP_WIDTH, '─')}${RESET}`);
|
|
6
|
+
|
|
7
|
+
export const progress = async (label) => {
|
|
8
|
+
process.stdout.write(` ${GRAY}[${RESET}`);
|
|
9
|
+
for (let i = 0; i < UI.PROGRESS_WIDTH; i++) {
|
|
10
|
+
process.stdout.write(`${WHITE}#${RESET}`);
|
|
11
|
+
await new Promise(r => setTimeout(r, 10));
|
|
12
|
+
}
|
|
13
|
+
process.stdout.write(`${GRAY}]${RESET} ${GREEN}${label}${RESET}\n`);
|
|
14
|
+
};
|
package/data/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Wistant
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|