alimberdi 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +38 -2
- package/dist/app/run-cli.d.ts +4 -0
- package/dist/app/run-cli.d.ts.map +1 -0
- package/dist/app/run-cli.js +28 -0
- package/dist/app/run-cli.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +4 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/contact.d.ts +2 -0
- package/dist/commands/contact.d.ts.map +1 -0
- package/dist/commands/contact.js +10 -0
- package/dist/commands/contact.js.map +1 -0
- package/dist/commands/help.d.ts +2 -0
- package/dist/commands/help.d.ts.map +1 -0
- package/dist/commands/help.js +15 -0
- package/dist/commands/help.js.map +1 -0
- package/dist/commands/home.d.ts +2 -0
- package/dist/commands/home.d.ts.map +1 -0
- package/dist/commands/home.js +17 -0
- package/dist/commands/home.js.map +1 -0
- package/dist/commands/play.d.ts +2 -0
- package/dist/commands/play.d.ts.map +1 -0
- package/dist/commands/play.js +37 -0
- package/dist/commands/play.js.map +1 -0
- package/dist/commands/projects.d.ts +2 -0
- package/dist/commands/projects.d.ts.map +1 -0
- package/dist/commands/projects.js +10 -0
- package/dist/commands/projects.js.map +1 -0
- package/dist/domain/profile.d.ts +10 -0
- package/dist/domain/profile.d.ts.map +1 -0
- package/dist/domain/profile.js +9 -0
- package/dist/domain/profile.js.map +1 -0
- package/dist/ui/box.d.ts +2 -0
- package/dist/ui/box.d.ts.map +1 -0
- package/dist/ui/box.js +13 -0
- package/dist/ui/box.js.map +1 -0
- package/dist/ui/format.d.ts +5 -0
- package/dist/ui/format.d.ts.map +1 -0
- package/dist/ui/format.js +9 -0
- package/dist/ui/format.js.map +1 -0
- package/package.json +42 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Adilkhan Alimberdi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Alimberdi CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
An interactive personal terminal application for Adilkhan Alimberdi.
|
|
4
|
+
|
|
5
|
+
## Run
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx alimberdi
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Available commands:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx alimberdi projects
|
|
15
|
+
npx alimberdi contact
|
|
16
|
+
npx alimberdi play rock
|
|
17
|
+
npx alimberdi help
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Local development
|
|
21
|
+
|
|
22
|
+
Requires Node.js 22 or newer.
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm install
|
|
26
|
+
npm run dev
|
|
27
|
+
npm test
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Project structure
|
|
31
|
+
|
|
32
|
+
- `src/app` coordinates command execution.
|
|
33
|
+
- `src/commands` contains independent CLI commands.
|
|
34
|
+
- `src/domain` contains profile data and domain types.
|
|
35
|
+
- `src/ui` contains terminal presentation helpers.
|
|
36
|
+
|
|
37
|
+
## License
|
|
38
|
+
|
|
39
|
+
MIT
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-cli.d.ts","sourceRoot":"","sources":["../../src/app/run-cli.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAkB5C,wBAAgB,OAAO,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAavD;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,QAAQ,GAAG,IAAI,CAEtE"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { renderContact } from "../commands/contact.js";
|
|
2
|
+
import { renderHelp } from "../commands/help.js";
|
|
3
|
+
import { renderHome } from "../commands/home.js";
|
|
4
|
+
import { renderPlay } from "../commands/play.js";
|
|
5
|
+
import { renderProjects } from "../commands/projects.js";
|
|
6
|
+
const commands = {
|
|
7
|
+
contact: () => renderContact(),
|
|
8
|
+
help: () => renderHelp(),
|
|
9
|
+
play: (args) => renderPlay(args[0]),
|
|
10
|
+
projects: () => renderProjects(),
|
|
11
|
+
"--help": () => renderHelp(),
|
|
12
|
+
"-h": () => renderHelp(),
|
|
13
|
+
};
|
|
14
|
+
export function execute(args) {
|
|
15
|
+
const [command, ...commandArgs] = args;
|
|
16
|
+
if (command === undefined) {
|
|
17
|
+
return renderHome();
|
|
18
|
+
}
|
|
19
|
+
const renderer = commands[command];
|
|
20
|
+
if (renderer === undefined) {
|
|
21
|
+
return `Unknown command: ${command}\n\n${renderHelp()}`;
|
|
22
|
+
}
|
|
23
|
+
return renderer(commandArgs);
|
|
24
|
+
}
|
|
25
|
+
export function runCli(args, output) {
|
|
26
|
+
output.write(`${execute(args)}\n`);
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=run-cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-cli.js","sourceRoot":"","sources":["../../src/app/run-cli.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,MAAM,QAAQ,GAAuC;IACnD,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,EAAE;IAC9B,IAAI,EAAE,GAAG,EAAE,CAAC,UAAU,EAAE;IACxB,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACnC,QAAQ,EAAE,GAAG,EAAE,CAAC,cAAc,EAAE;IAChC,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,EAAE;IAC5B,IAAI,EAAE,GAAG,EAAE,CAAC,UAAU,EAAE;CACzB,CAAC;AAEF,MAAM,UAAU,OAAO,CAAC,IAAuB;IAC7C,MAAM,CAAC,OAAO,EAAE,GAAG,WAAW,CAAC,GAAG,IAAI,CAAC;IAEvC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,UAAU,EAAE,CAAC;IACtB,CAAC;IAED,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;IACnC,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,OAAO,oBAAoB,OAAO,OAAO,UAAU,EAAE,EAAE,CAAC;IAC1D,CAAC;IAED,OAAO,QAAQ,CAAC,WAAW,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,IAAuB,EAAE,MAAgB;IAC9D,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACrC,CAAC"}
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
|
package/dist/cli.js
ADDED
package/dist/cli.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../src/commands/contact.ts"],"names":[],"mappings":"AAGA,wBAAgB,aAAa,IAAI,MAAM,CAMtC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { profile } from "../domain/profile.js";
|
|
2
|
+
import { heading, label } from "../ui/format.js";
|
|
3
|
+
export function renderContact() {
|
|
4
|
+
return [
|
|
5
|
+
heading("Contact"),
|
|
6
|
+
`${label("GitHub")} ${profile.links.github}`,
|
|
7
|
+
`${label("Telegram")} ${profile.links.telegram}`,
|
|
8
|
+
].join("\n");
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=contact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact.js","sourceRoot":"","sources":["../../src/commands/contact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,UAAU,aAAa;IAC3B,OAAO;QACL,OAAO,CAAC,SAAS,CAAC;QAClB,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE;QAC5C,GAAG,KAAK,CAAC,UAAU,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE;KACjD,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/commands/help.ts"],"names":[],"mappings":"AAUA,wBAAgB,UAAU,IAAI,MAAM,CAKnC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { heading, label } from "../ui/format.js";
|
|
2
|
+
const commandRows = [
|
|
3
|
+
["alimberdi", "Open the personal terminal profile"],
|
|
4
|
+
["alimberdi projects", "Show projects and GitHub"],
|
|
5
|
+
["alimberdi contact", "Show contact links"],
|
|
6
|
+
["alimberdi play <move>", "Play rock, paper, scissors"],
|
|
7
|
+
["alimberdi help", "Show this help"],
|
|
8
|
+
];
|
|
9
|
+
export function renderHelp() {
|
|
10
|
+
return [
|
|
11
|
+
heading("Usage"),
|
|
12
|
+
...commandRows.map(([command, description]) => `${label(command.padEnd(24))} ${description}`),
|
|
13
|
+
].join("\n");
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=help.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help.js","sourceRoot":"","sources":["../../src/commands/help.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,GAAG;IAClB,CAAC,WAAW,EAAE,oCAAoC,CAAC;IACnD,CAAC,oBAAoB,EAAE,0BAA0B,CAAC;IAClD,CAAC,mBAAmB,EAAE,oBAAoB,CAAC;IAC3C,CAAC,uBAAuB,EAAE,4BAA4B,CAAC;IACvD,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;CAC5B,CAAC;AAEX,MAAM,UAAU,UAAU;IACxB,OAAO;QACL,OAAO,CAAC,OAAO,CAAC;QAChB,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC;KAC9F,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"home.d.ts","sourceRoot":"","sources":["../../src/commands/home.ts"],"names":[],"mappings":"AAIA,wBAAgB,UAAU,IAAI,MAAM,CAYnC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { profile } from "../domain/profile.js";
|
|
2
|
+
import { box } from "../ui/box.js";
|
|
3
|
+
import { accent, dim } from "../ui/format.js";
|
|
4
|
+
export function renderHome() {
|
|
5
|
+
return box([
|
|
6
|
+
accent(profile.displayName.toUpperCase()),
|
|
7
|
+
dim(profile.tagline),
|
|
8
|
+
"",
|
|
9
|
+
"projects Explore what I build",
|
|
10
|
+
"contact Find me online",
|
|
11
|
+
"play Play a terminal mini-game",
|
|
12
|
+
"help See every command",
|
|
13
|
+
"",
|
|
14
|
+
dim("Try: npx alimberdi projects"),
|
|
15
|
+
]);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=home.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"home.js","sourceRoot":"","sources":["../../src/commands/home.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,UAAU,UAAU;IACxB,OAAO,GAAG,CAAC;QACT,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC;QACzC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC;QACpB,EAAE;QACF,iCAAiC;QACjC,2BAA2B;QAC3B,sCAAsC;QACtC,8BAA8B;QAC9B,EAAE;QACF,GAAG,CAAC,6BAA6B,CAAC;KACnC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"play.d.ts","sourceRoot":"","sources":["../../src/commands/play.ts"],"names":[],"mappings":"AAmBA,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAyB7D"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { heading } from "../ui/format.js";
|
|
2
|
+
const moves = ["rock", "paper", "scissors"];
|
|
3
|
+
const winningMove = {
|
|
4
|
+
rock: "scissors",
|
|
5
|
+
paper: "rock",
|
|
6
|
+
scissors: "paper",
|
|
7
|
+
};
|
|
8
|
+
function isMove(value) {
|
|
9
|
+
return value !== undefined && moves.includes(value);
|
|
10
|
+
}
|
|
11
|
+
function computerMove() {
|
|
12
|
+
return moves[Math.floor(Math.random() * moves.length)] ?? "rock";
|
|
13
|
+
}
|
|
14
|
+
export function renderPlay(choice) {
|
|
15
|
+
if (!isMove(choice)) {
|
|
16
|
+
return [
|
|
17
|
+
heading("Rock, paper, scissors"),
|
|
18
|
+
"Choose a move:",
|
|
19
|
+
" alimberdi play rock",
|
|
20
|
+
" alimberdi play paper",
|
|
21
|
+
" alimberdi play scissors",
|
|
22
|
+
].join("\n");
|
|
23
|
+
}
|
|
24
|
+
const computer = computerMove();
|
|
25
|
+
const outcome = choice === computer
|
|
26
|
+
? "Draw."
|
|
27
|
+
: winningMove[choice] === computer
|
|
28
|
+
? "You win!"
|
|
29
|
+
: "Computer wins.";
|
|
30
|
+
return [
|
|
31
|
+
heading("Rock, paper, scissors"),
|
|
32
|
+
`You: ${choice}`,
|
|
33
|
+
`Computer: ${computer}`,
|
|
34
|
+
`Result: ${outcome}`,
|
|
35
|
+
].join("\n");
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=play.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"play.js","sourceRoot":"","sources":["../../src/commands/play.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,MAAM,KAAK,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAU,CAAC;AAGrD,MAAM,WAAW,GAAiC;IAChD,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,OAAO;CAClB,CAAC;AAEF,SAAS,MAAM,CAAC,KAAyB;IACvC,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAa,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,YAAY;IACnB,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,MAA0B;IACnD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QACpB,OAAO;YACL,OAAO,CAAC,uBAAuB,CAAC;YAChC,gBAAgB;YAChB,uBAAuB;YACvB,wBAAwB;YACxB,2BAA2B;SAC5B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACf,CAAC;IAED,MAAM,QAAQ,GAAG,YAAY,EAAE,CAAC;IAChC,MAAM,OAAO,GACX,MAAM,KAAK,QAAQ;QACjB,CAAC,CAAC,OAAO;QACT,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,QAAQ;YAChC,CAAC,CAAC,UAAU;YACZ,CAAC,CAAC,gBAAgB,CAAC;IAEzB,OAAO;QACL,OAAO,CAAC,uBAAuB,CAAC;QAChC,aAAa,MAAM,EAAE;QACrB,aAAa,QAAQ,EAAE;QACvB,aAAa,OAAO,EAAE;KACvB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/commands/projects.ts"],"names":[],"mappings":"AAGA,wBAAgB,cAAc,IAAI,MAAM,CAMvC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { profile } from "../domain/profile.js";
|
|
2
|
+
import { heading, label } from "../ui/format.js";
|
|
3
|
+
export function renderProjects() {
|
|
4
|
+
return [
|
|
5
|
+
heading("Projects"),
|
|
6
|
+
"New terminal projects are on the way.",
|
|
7
|
+
`${label("GitHub")} ${profile.links.github}`,
|
|
8
|
+
].join("\n");
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=projects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../src/commands/projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,UAAU,cAAc;IAC5B,OAAO;QACL,OAAO,CAAC,UAAU,CAAC;QACnB,uCAAuC;QACvC,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE;KAC7C,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/domain/profile.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE;QACd,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;KAC3B,CAAC;CACH;AAED,eAAO,MAAM,OAAO,EAAE,OAOrB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const profile = {
|
|
2
|
+
displayName: "Adilkhan Alimberdi",
|
|
3
|
+
tagline: "Developer · Building useful things",
|
|
4
|
+
links: {
|
|
5
|
+
github: "https://github.com/adilkhanalimberdi",
|
|
6
|
+
telegram: "https://t.me/adilkhanalimberdi",
|
|
7
|
+
},
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=profile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../src/domain/profile.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,OAAO,GAAY;IAC9B,WAAW,EAAE,oBAAoB;IACjC,OAAO,EAAE,oCAAoC;IAC7C,KAAK,EAAE;QACL,MAAM,EAAE,sCAAsC;QAC9C,QAAQ,EAAE,gCAAgC;KAC3C;CACF,CAAC"}
|
package/dist/ui/box.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../src/ui/box.ts"],"names":[],"mappings":"AAIA,wBAAgB,GAAG,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CASpD"}
|
package/dist/ui/box.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function visibleLength(value) {
|
|
2
|
+
return value.replace(/\u001B\[[0-?]*[ -/]*[@-~]/g, "").length;
|
|
3
|
+
}
|
|
4
|
+
export function box(lines) {
|
|
5
|
+
const contentWidth = Math.max(...lines.map(visibleLength));
|
|
6
|
+
const horizontal = "─".repeat(contentWidth + 2);
|
|
7
|
+
const body = lines.map((line) => {
|
|
8
|
+
const padding = " ".repeat(contentWidth - visibleLength(line));
|
|
9
|
+
return `│ ${line}${padding} │`;
|
|
10
|
+
});
|
|
11
|
+
return [`┌${horizontal}┐`, ...body, `└${horizontal}┘`].join("\n");
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=box.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"box.js","sourceRoot":"","sources":["../../src/ui/box.ts"],"names":[],"mappings":"AAAA,SAAS,aAAa,CAAC,KAAa;IAClC,OAAO,KAAK,CAAC,OAAO,CAAC,4BAA4B,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,GAAG,CAAC,KAAwB;IAC1C,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC;IAC3D,MAAM,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC;IAChD,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QAC9B,MAAM,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,YAAY,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;QAC/D,OAAO,KAAK,IAAI,GAAG,OAAO,IAAI,CAAC;IACjC,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,IAAI,UAAU,GAAG,EAAE,GAAG,IAAI,EAAE,IAAI,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/ui/format.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,MAAM,GAAI,OAAO,MAAM,KAAG,MAA0B,CAAC;AAClE,eAAO,MAAM,GAAG,GAAI,OAAO,MAAM,KAAG,MAAyB,CAAC;AAC9D,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,KAAG,MAA0B,CAAC;AACjE,eAAO,MAAM,OAAO,GAAI,OAAO,MAAM,KAAG,MAAqC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const useColor = process.stdout.isTTY && process.env.NO_COLOR === undefined;
|
|
2
|
+
function color(code, value) {
|
|
3
|
+
return useColor ? `\u001B[${code}m${value}\u001B[0m` : value;
|
|
4
|
+
}
|
|
5
|
+
export const accent = (value) => color(36, value);
|
|
6
|
+
export const dim = (value) => color(2, value);
|
|
7
|
+
export const label = (value) => color(33, value);
|
|
8
|
+
export const heading = (value) => accent(value.toUpperCase());
|
|
9
|
+
//# sourceMappingURL=format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.js","sourceRoot":"","sources":["../../src/ui/format.ts"],"names":[],"mappings":"AAAA,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,SAAS,CAAC;AAE5E,SAAS,KAAK,CAAC,IAAY,EAAE,KAAa;IACxC,OAAO,QAAQ,CAAC,CAAC,CAAC,UAAU,IAAI,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC;AAC/D,CAAC;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;AAClE,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AAC9D,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;AACjE,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alimberdi",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Adilkhan Alimberdi's interactive personal CLI.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"alimberdi": "dist/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc -p tsconfig.build.json",
|
|
14
|
+
"dev": "tsx src/cli.ts",
|
|
15
|
+
"start": "node dist/cli.js",
|
|
16
|
+
"test": "tsx --test src/app/run-cli.test.ts",
|
|
17
|
+
"check": "tsc -p tsconfig.json --noEmit",
|
|
18
|
+
"prepack": "npm run build"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"alimberdi",
|
|
22
|
+
"cli",
|
|
23
|
+
"portfolio",
|
|
24
|
+
"terminal"
|
|
25
|
+
],
|
|
26
|
+
"author": "Adilkhan Alimberdi",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=22"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://github.com/adilkhanalimberdi/alimberdi-cli.git"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/adilkhanalimberdi/alimberdi-cli#readme",
|
|
36
|
+
"bugs": {
|
|
37
|
+
"url": "https://github.com/adilkhanalimberdi/alimberdi-cli/issues"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@types/node": "^22.15.0",
|
|
41
|
+
"tsx": "^4.19.0",
|
|
42
|
+
"typescript": "^5.8.0"
|
|
43
|
+
}
|
|
44
|
+
}
|