@tarout/cli 0.2.0 → 0.2.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.
@@ -2,11 +2,14 @@ import {
2
2
  confirm,
3
3
  input,
4
4
  password,
5
+ promptOrEmit,
5
6
  select
6
- } from "./chunk-VO4OYJW3.js";
7
+ } from "./chunk-CJMIX35A.js";
8
+ import "./chunk-KL3JNPAY.js";
7
9
  export {
8
10
  confirm,
9
11
  input,
10
12
  password,
13
+ promptOrEmit,
11
14
  select
12
15
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tarout/cli",
3
- "version": "0.2.0",
4
- "description": "Tarout PaaS Command Line Interface",
3
+ "version": "0.2.2",
4
+ "description": "Tarout CLI the Saudi cloud platform for coding agents",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "tarout": "./bin/tarout"
@@ -42,7 +42,7 @@
42
42
  "typescript": "^5.6.0"
43
43
  },
44
44
  "engines": {
45
- "node": ">=18.0.0"
45
+ "node": "^24.14.1"
46
46
  },
47
47
  "repository": {
48
48
  "type": "git",
@@ -1,41 +0,0 @@
1
- // src/utils/spinner.ts
2
- import ora from "ora";
3
- var currentSpinner = null;
4
- function startSpinner(text) {
5
- if (currentSpinner) {
6
- currentSpinner.stop();
7
- }
8
- currentSpinner = ora(text).start();
9
- return currentSpinner;
10
- }
11
- function succeedSpinner(text) {
12
- if (currentSpinner) {
13
- currentSpinner.succeed(text);
14
- currentSpinner = null;
15
- }
16
- }
17
- function failSpinner(text) {
18
- if (currentSpinner) {
19
- currentSpinner.fail(text);
20
- currentSpinner = null;
21
- }
22
- }
23
- function stopSpinner() {
24
- if (currentSpinner) {
25
- currentSpinner.stop();
26
- currentSpinner = null;
27
- }
28
- }
29
- function updateSpinner(text) {
30
- if (currentSpinner) {
31
- currentSpinner.text = text;
32
- }
33
- }
34
-
35
- export {
36
- startSpinner,
37
- succeedSpinner,
38
- failSpinner,
39
- stopSpinner,
40
- updateSpinner
41
- };
@@ -1,53 +0,0 @@
1
- // src/utils/prompts.ts
2
- import inquirer from "inquirer";
3
- async function confirm(message, defaultValue = false) {
4
- const { confirmed } = await inquirer.prompt([
5
- {
6
- type: "confirm",
7
- name: "confirmed",
8
- message,
9
- default: defaultValue
10
- }
11
- ]);
12
- return confirmed;
13
- }
14
- async function input(message, defaultValue) {
15
- const { value } = await inquirer.prompt([
16
- {
17
- type: "input",
18
- name: "value",
19
- message,
20
- default: defaultValue
21
- }
22
- ]);
23
- return value;
24
- }
25
- async function select(message, choices) {
26
- const { value } = await inquirer.prompt([
27
- {
28
- type: "list",
29
- name: "value",
30
- message,
31
- choices
32
- }
33
- ]);
34
- return value;
35
- }
36
- async function password(message) {
37
- const { value } = await inquirer.prompt([
38
- {
39
- type: "password",
40
- name: "value",
41
- message,
42
- mask: "*"
43
- }
44
- ]);
45
- return value;
46
- }
47
-
48
- export {
49
- confirm,
50
- input,
51
- select,
52
- password
53
- };
@@ -1,14 +0,0 @@
1
- import {
2
- failSpinner,
3
- startSpinner,
4
- stopSpinner,
5
- succeedSpinner,
6
- updateSpinner
7
- } from "./chunk-GSKD67K4.js";
8
- export {
9
- failSpinner,
10
- startSpinner,
11
- stopSpinner,
12
- succeedSpinner,
13
- updateSpinner
14
- };