@revenexx/cli 0.1.1 → 0.2.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/README.md +38 -3
- package/dist/cli.d.ts.map +1 -1
- package/dist/{bundle-win-arm64.mjs → cli.mjs} +31397 -5887
- package/dist/index.cjs +4 -2
- package/dist/index.js +4 -2
- package/dist/lib/command-picker.d.ts +4 -2
- package/dist/lib/command-picker.d.ts.map +1 -1
- package/dist/lib/commands/repl.d.ts.map +1 -1
- package/dist/lib/commands/services/apps.d.ts.map +1 -1
- package/dist/lib/commands/services/avatars.d.ts.map +1 -1
- package/dist/lib/commands/services/carts.d.ts.map +1 -1
- package/dist/lib/commands/services/channels.d.ts.map +1 -1
- package/dist/lib/commands/services/customers.d.ts.map +1 -1
- package/dist/lib/commands/services/forms.d.ts.map +1 -1
- package/dist/lib/commands/services/greetings.d.ts.map +1 -1
- package/dist/lib/commands/services/inventories.d.ts.map +1 -1
- package/dist/lib/commands/services/io.d.ts +3 -0
- package/dist/lib/commands/services/io.d.ts.map +1 -0
- package/dist/lib/commands/services/locale.d.ts.map +1 -1
- package/dist/lib/commands/services/markets.d.ts.map +1 -1
- package/dist/lib/commands/services/messaging.d.ts.map +1 -1
- package/dist/lib/commands/services/orderlists.d.ts.map +1 -1
- package/dist/lib/commands/services/orders.d.ts.map +1 -1
- package/dist/lib/commands/services/pages.d.ts.map +1 -1
- package/dist/lib/commands/services/payments.d.ts.map +1 -1
- package/dist/lib/commands/services/prices.d.ts.map +1 -1
- package/dist/lib/commands/services/products.d.ts.map +1 -1
- package/dist/lib/commands/services/search.d.ts.map +1 -1
- package/dist/lib/commands/services/settings.d.ts.map +1 -1
- package/dist/lib/commands/services/shipping.d.ts.map +1 -1
- package/dist/lib/commands/services/sites.d.ts.map +1 -1
- package/dist/lib/commands/services/storage.d.ts.map +1 -1
- package/dist/lib/commands/services/tokens.d.ts.map +1 -1
- package/dist/lib/commands/status.d.ts.map +1 -1
- package/dist/lib/commands/tui.d.ts +8 -0
- package/dist/lib/commands/tui.d.ts.map +1 -0
- package/dist/lib/commands/update.d.ts +10 -0
- package/dist/lib/commands/update.d.ts.map +1 -1
- package/dist/lib/config.d.ts +1 -0
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/constants.d.ts +1 -1
- package/dist/lib/interactive.d.ts +46 -0
- package/dist/lib/interactive.d.ts.map +1 -1
- package/dist/lib/parser.d.ts +7 -0
- package/dist/lib/parser.d.ts.map +1 -1
- package/dist/lib/project-config.d.ts +15 -0
- package/dist/lib/project-config.d.ts.map +1 -1
- package/dist/lib/tui/app.d.ts +17 -0
- package/dist/lib/tui/app.d.ts.map +1 -0
- package/dist/lib/tui/clipboard.d.ts +2 -0
- package/dist/lib/tui/clipboard.d.ts.map +1 -0
- package/dist/lib/tui/command-tree.d.ts +89 -0
- package/dist/lib/tui/command-tree.d.ts.map +1 -0
- package/dist/lib/tui/confirm.d.ts +6 -0
- package/dist/lib/tui/confirm.d.ts.map +1 -0
- package/dist/lib/tui/context.d.ts +16 -0
- package/dist/lib/tui/context.d.ts.map +1 -0
- package/dist/lib/tui/eggs.d.ts +22 -0
- package/dist/lib/tui/eggs.d.ts.map +1 -0
- package/dist/lib/tui/executor.d.ts +33 -0
- package/dist/lib/tui/executor.d.ts.map +1 -0
- package/dist/lib/tui/form.d.ts +43 -0
- package/dist/lib/tui/form.d.ts.map +1 -0
- package/dist/lib/tui/json-editor.d.ts +29 -0
- package/dist/lib/tui/json-editor.d.ts.map +1 -0
- package/dist/lib/tui/panel.d.ts +61 -0
- package/dist/lib/tui/panel.d.ts.map +1 -0
- package/dist/lib/tui/resource-picker.d.ts +15 -0
- package/dist/lib/tui/resource-picker.d.ts.map +1 -0
- package/dist/lib/tui/results.d.ts +90 -0
- package/dist/lib/tui/results.d.ts.map +1 -0
- package/dist/lib/tui/terminal.d.ts +5 -0
- package/dist/lib/tui/terminal.d.ts.map +1 -0
- package/dist/lib/tui/theme.d.ts +120 -0
- package/dist/lib/tui/theme.d.ts.map +1 -0
- package/dist/tests/setup.d.ts +2 -0
- package/dist/tests/setup.d.ts.map +1 -0
- package/dist/tests/theme.test.d.ts +2 -0
- package/dist/tests/theme.test.d.ts.map +1 -0
- package/dist/tests/tui.test.d.ts +2 -0
- package/dist/tests/tui.test.d.ts.map +1 -0
- package/dist/tests/update.test.d.ts +2 -0
- package/dist/tests/update.test.d.ts.map +1 -0
- package/dist/vitest.config.d.ts.map +1 -1
- package/package.json +14 -9
- package/dist/cli.cjs +0 -124680
package/dist/index.cjs
CHANGED
|
@@ -35920,7 +35920,7 @@ var ConfigSchema = external_exports.object({
|
|
|
35920
35920
|
|
|
35921
35921
|
// lib/constants.ts
|
|
35922
35922
|
var SDK_TITLE = "Revenexx";
|
|
35923
|
-
var SDK_VERSION = "0.
|
|
35923
|
+
var SDK_VERSION = "0.2.0";
|
|
35924
35924
|
var SDK_NAME = "Revenexx CLI";
|
|
35925
35925
|
var SDK_PLATFORM = "";
|
|
35926
35926
|
var SDK_LANGUAGE = "cli";
|
|
@@ -36485,6 +36485,7 @@ var Global = class _Global extends Config {
|
|
|
36485
36485
|
static PREFERENCE_AUTH_METHOD = "authMethod";
|
|
36486
36486
|
static PREFERENCE_ALIASES = "aliases";
|
|
36487
36487
|
static PREFERENCE_SENSITIVE_TENANTS = "sensitiveTenants";
|
|
36488
|
+
static PREFERENCE_THEME = "theme";
|
|
36488
36489
|
static IGNORE_ATTRIBUTES = [
|
|
36489
36490
|
_Global.PREFERENCE_CURRENT,
|
|
36490
36491
|
_Global.PREFERENCE_SELF_SIGNED,
|
|
@@ -36499,7 +36500,8 @@ var Global = class _Global extends Config {
|
|
|
36499
36500
|
_Global.PREFERENCE_JWT_EXPIRES,
|
|
36500
36501
|
_Global.PREFERENCE_AUTH_METHOD,
|
|
36501
36502
|
_Global.PREFERENCE_ALIASES,
|
|
36502
|
-
_Global.PREFERENCE_SENSITIVE_TENANTS
|
|
36503
|
+
_Global.PREFERENCE_SENSITIVE_TENANTS,
|
|
36504
|
+
_Global.PREFERENCE_THEME
|
|
36503
36505
|
];
|
|
36504
36506
|
static MODE_ADMIN = "admin";
|
|
36505
36507
|
static MODE_DEFAULT = "default";
|
package/dist/index.js
CHANGED
|
@@ -35902,7 +35902,7 @@ var ConfigSchema = external_exports.object({
|
|
|
35902
35902
|
|
|
35903
35903
|
// lib/constants.ts
|
|
35904
35904
|
var SDK_TITLE = "Revenexx";
|
|
35905
|
-
var SDK_VERSION = "0.
|
|
35905
|
+
var SDK_VERSION = "0.2.0";
|
|
35906
35906
|
var SDK_NAME = "Revenexx CLI";
|
|
35907
35907
|
var SDK_PLATFORM = "";
|
|
35908
35908
|
var SDK_LANGUAGE = "cli";
|
|
@@ -36467,6 +36467,7 @@ var Global = class _Global extends Config {
|
|
|
36467
36467
|
static PREFERENCE_AUTH_METHOD = "authMethod";
|
|
36468
36468
|
static PREFERENCE_ALIASES = "aliases";
|
|
36469
36469
|
static PREFERENCE_SENSITIVE_TENANTS = "sensitiveTenants";
|
|
36470
|
+
static PREFERENCE_THEME = "theme";
|
|
36470
36471
|
static IGNORE_ATTRIBUTES = [
|
|
36471
36472
|
_Global.PREFERENCE_CURRENT,
|
|
36472
36473
|
_Global.PREFERENCE_SELF_SIGNED,
|
|
@@ -36481,7 +36482,8 @@ var Global = class _Global extends Config {
|
|
|
36481
36482
|
_Global.PREFERENCE_JWT_EXPIRES,
|
|
36482
36483
|
_Global.PREFERENCE_AUTH_METHOD,
|
|
36483
36484
|
_Global.PREFERENCE_ALIASES,
|
|
36484
|
-
_Global.PREFERENCE_SENSITIVE_TENANTS
|
|
36485
|
+
_Global.PREFERENCE_SENSITIVE_TENANTS,
|
|
36486
|
+
_Global.PREFERENCE_THEME
|
|
36485
36487
|
];
|
|
36486
36488
|
static MODE_ADMIN = "admin";
|
|
36487
36489
|
static MODE_DEFAULT = "default";
|
|
@@ -3,8 +3,10 @@ import type { Command } from "commander";
|
|
|
3
3
|
* Resolve the command line interactively before commander parses it (guided
|
|
4
4
|
* mode, DX-98 stretch goal):
|
|
5
5
|
*
|
|
6
|
-
* - `revenexx` on a TTY
|
|
7
|
-
*
|
|
6
|
+
* - `revenexx` on a TTY launches the full-screen TUI by default (DX-140);
|
|
7
|
+
* `REVENEXX_NO_TUI` / `defaultMode` opt back into the picker, which then
|
|
8
|
+
* picks a command then a subcommand — the picked command's own prompting
|
|
9
|
+
* (lib/interactive.ts) walks through its options.
|
|
8
10
|
* - `revenexx p` with an unknown/partial name opens the picker filtered to
|
|
9
11
|
* matching commands; remaining argv passes through to the resolved command.
|
|
10
12
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-picker.d.ts","sourceRoot":"","sources":["../../lib/command-picker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"command-picker.d.ts","sourceRoot":"","sources":["../../lib/command-picker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoFzC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kBAAkB,GAC7B,SAAS,OAAO,EAChB,MAAM,MAAM,EAAE,KACb,OAAO,CAAC,MAAM,EAAE,CAiElB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repl.d.ts","sourceRoot":"","sources":["../../../lib/commands/repl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"repl.d.ts","sourceRoot":"","sources":["../../../lib/commands/repl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA4OpC,eAAO,MAAM,IAAI,SAed,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/apps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/apps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoBpC,eAAO,MAAM,IAAI,SAOb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatars.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/avatars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"avatars.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/avatars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBpC,eAAO,MAAM,OAAO,SAOhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carts.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/carts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"carts.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/carts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC,eAAO,MAAM,KAAK,SAOd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/channels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/channels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC,eAAO,MAAM,QAAQ,SAOjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/customers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/customers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC,eAAO,MAAM,SAAS,SAOlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/forms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/forms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkBpC,eAAO,MAAM,KAAK,SAOd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"greetings.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/greetings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"greetings.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/greetings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBpC,eAAO,MAAM,SAAS,SAOlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventories.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/inventories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"inventories.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/inventories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC,eAAO,MAAM,WAAW,SAOpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/io.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBpC,eAAO,MAAM,EAAE,SAOX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/locale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/locale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAcpC,eAAO,MAAM,MAAM,SAOf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markets.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/markets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"markets.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/markets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC,eAAO,MAAM,OAAO,SAOhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/messaging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/messaging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC,eAAO,MAAM,SAAS,SAOlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orderlists.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/orderlists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"orderlists.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/orderlists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC,eAAO,MAAM,UAAU,SAOnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orders.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/orders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"orders.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/orders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkBpC,eAAO,MAAM,MAAM,SAOf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/pages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/pages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC,eAAO,MAAM,KAAK,SAOd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/payments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/payments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC,eAAO,MAAM,QAAQ,SAOjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prices.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/prices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"prices.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/prices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC,eAAO,MAAM,MAAM,SAOf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/products.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/products.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC,eAAO,MAAM,QAAQ,SAOjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBpC,eAAO,MAAM,MAAM,SAOf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAcpC,eAAO,MAAM,QAAQ,SAOjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shipping.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/shipping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"shipping.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/shipping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC,eAAO,MAAM,QAAQ,SAOjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sites.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/sites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"sites.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/sites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoBpC,eAAO,MAAM,KAAK,SAOd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoBpC,eAAO,MAAM,OAAO,SAOhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkBpC,eAAO,MAAM,MAAM,SAOf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../lib/commands/status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../lib/commands/status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmFpC,eAAO,MAAM,MAAM,SA0FhB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
import { type PromptSpec } from "../interactive.js";
|
|
3
|
+
/** All the inputs the TUI form should collect for a command: positional args
|
|
4
|
+
* first (declared order), then options — the rich registered specs for
|
|
5
|
+
* generated service commands, or synthesized commander options for plugins. */
|
|
6
|
+
export declare const specsFor: (command: Command) => PromptSpec[];
|
|
7
|
+
export declare const tui: Command;
|
|
8
|
+
//# sourceMappingURL=tui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tui.d.ts","sourceRoot":"","sources":["../../../lib/commands/tui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,mBAAmB,CAAC;AA+E3B;;+EAE+E;AAC/E,eAAO,MAAM,QAAQ,GAAI,SAAS,OAAO,KAAG,UAAU,EAIrD,CAAC;AAEF,eAAO,MAAM,GAAG,SAgJb,CAAC"}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
|
+
/**
|
|
3
|
+
* The GitHub release tag for a version. Release tags are `v`-prefixed
|
|
4
|
+
* (`v1.2.3`) while npm reports the bare version (`1.2.3`), so normalise to a
|
|
5
|
+
* single leading `v` — otherwise the releases page 404s.
|
|
6
|
+
*/
|
|
7
|
+
export declare const releaseTag: (version: string) => string;
|
|
8
|
+
/** The npm command update runs (and prints under --dry-run) — a single source
|
|
9
|
+
* so the shown command can never drift from the executed one. */
|
|
10
|
+
export declare const NPM_UPDATE_ARGS: string[];
|
|
11
|
+
export declare const npmUpdateCommandLine: () => string;
|
|
2
12
|
export declare const update: Command;
|
|
3
13
|
//# sourceMappingURL=update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../lib/commands/update.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../lib/commands/update.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoBpC;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,SAAS,MAAM,KAAG,MACZ,CAAC;AAElC;iEACiE;AACjE,eAAO,MAAM,eAAe,UAAkD,CAAC;AAC/E,eAAO,MAAM,oBAAoB,QAAO,MACJ,CAAC;AAsOrC,eAAO,MAAM,MAAM,SAUe,CAAC"}
|
package/dist/lib/config.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ declare class Global extends Config<GlobalConfigData> {
|
|
|
96
96
|
static PREFERENCE_AUTH_METHOD: "authMethod";
|
|
97
97
|
static PREFERENCE_ALIASES: "aliases";
|
|
98
98
|
static PREFERENCE_SENSITIVE_TENANTS: "sensitiveTenants";
|
|
99
|
+
static PREFERENCE_THEME: "theme";
|
|
99
100
|
static IGNORE_ATTRIBUTES: readonly string[];
|
|
100
101
|
static MODE_ADMIN: string;
|
|
101
102
|
static MODE_DEFAULT: string;
|
package/dist/lib/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../lib/config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,SAAS,EACV,MAAM,sBAAsB,CAAC;AAe9B,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,MAAM,EACN,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAqBpB,QAAA,MAAM,QAAQ,aAA4B,CAAC;AAC3C,QAAA,MAAM,YAAY,aAAgC,CAAC;AAEnD,QAAA,MAAM,cAAc,aAAkC,CAAC;AACvD,QAAA,MAAM,SAAS,aAA6B,CAAC;AAC7C,QAAA,MAAM,WAAW,aAA8B,CAAC;AAChD,QAAA,MAAM,UAAU,aAA6B,CAAC;AAC9C,QAAA,MAAM,SAAS,aAA4B,CAAC;AAC5C,QAAA,MAAM,cAAc,aAAiC,CAAC;AAwCtD,iBAAS,aAAa,CAAC,CAAC,GAAG,GAAG,EAC5B,KAAK,EAAE,CAAC,EACR,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,EACjB,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAM,GAC3C,CAAC,CAsBH;AAED,cAAM,MAAM,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU;IAC5C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;gBAEN,IAAI,EAAE,MAAM;IAMxB,IAAI,IAAI,IAAI;I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AAI;IAItC,aAAa,IAAI,MAAM;IAOvB,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAIvC;;;;OAIG;IACH,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAOpC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAM/C,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAUlC;;;;OAIG;IACH,mBAAmB,IAAI,MAAM,EAAE;IAO/B,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI;IAQ5C,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAW7B,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG;IAUzB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI;CAUrC;AAED,eAAO,MAAM,WAAW,OAAc,CAAC;AACvC,eAAO,MAAM,YAAY,QAAe,CAAC;AACzC,OAAO,EACL,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,WAAW,EACX,SAAS,EACT,cAAc,EACd,SAAS,EACT,aAAa,GACd,CAAC"}
|
package/dist/lib/constants.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const SDK_TITLE = "Revenexx";
|
|
2
2
|
export declare const SDK_TITLE_LOWER = "revenexx";
|
|
3
|
-
export declare const SDK_VERSION = "0.
|
|
3
|
+
export declare const SDK_VERSION = "0.2.0";
|
|
4
4
|
export declare const SDK_NAME = "Revenexx CLI";
|
|
5
5
|
export declare const SDK_PLATFORM = "";
|
|
6
6
|
export declare const SDK_LANGUAGE = "cli";
|
|
@@ -4,6 +4,9 @@ export interface ResourcePicker {
|
|
|
4
4
|
listPath: string;
|
|
5
5
|
/** Whether that endpoint accepts a `limit` query parameter. */
|
|
6
6
|
hasLimit: boolean;
|
|
7
|
+
/** Whether that endpoint accepts a `search` query parameter — lets the
|
|
8
|
+
* TUI picker filter server-side instead of only over the first page. */
|
|
9
|
+
search?: boolean;
|
|
7
10
|
}
|
|
8
11
|
/**
|
|
9
12
|
* Generation-time description of one command option, emitted by
|
|
@@ -24,8 +27,28 @@ export interface PromptSpec {
|
|
|
24
27
|
/** Mask input while typing (passwords, tokens, API keys). */
|
|
25
28
|
secret?: boolean;
|
|
26
29
|
enum?: string[];
|
|
30
|
+
/** The schema default, as a display string — shown as a form placeholder so
|
|
31
|
+
* an empty field's effect is legible. Absent when the schema has none. */
|
|
32
|
+
default?: string;
|
|
27
33
|
resource?: ResourcePicker;
|
|
34
|
+
/** A commander positional argument (e.g. `skills add <repo> <name>`) rather
|
|
35
|
+
* than a `--flag` option — emitted as a bare token before the options. */
|
|
36
|
+
positional?: boolean;
|
|
37
|
+
/** Positional that consumes the rest of the argv (e.g. `<files...>`). */
|
|
38
|
+
variadic?: boolean;
|
|
28
39
|
}
|
|
40
|
+
/** Command traits the TUI needs beyond parameters. */
|
|
41
|
+
export interface CommandMeta {
|
|
42
|
+
/** DELETE-backed command: the TUI gates it behind its own confirm modal
|
|
43
|
+
* (one-shot mode keeps confirmDestructive / `--force` semantics). */
|
|
44
|
+
destructive?: boolean;
|
|
45
|
+
/** Lower-case HTTP method behind the command — lets the TUI auto-run safe
|
|
46
|
+
* reads once their required parameters are picked. */
|
|
47
|
+
method?: string;
|
|
48
|
+
}
|
|
49
|
+
export declare const registerPromptSpecs: (command: object, specs: PromptSpec[], meta?: CommandMeta) => void;
|
|
50
|
+
export declare const getPromptSpecs: (command: object) => PromptSpec[];
|
|
51
|
+
export declare const getCommandMeta: (command: object) => CommandMeta;
|
|
29
52
|
/**
|
|
30
53
|
* Prompting is reserved for humans at a terminal: both stdin and stdout must be
|
|
31
54
|
* TTYs. This keys off the streams alone, not the output format, so every format
|
|
@@ -51,9 +74,32 @@ export declare const extractItems: (response: unknown) => Record<string, unknown
|
|
|
51
74
|
export declare const resourceChoice: (item: Record<string, unknown>, paramName: string) => {
|
|
52
75
|
name: string;
|
|
53
76
|
value: string;
|
|
77
|
+
label: string;
|
|
54
78
|
} | null;
|
|
55
79
|
/** Split a free-text answer for an array parameter into its values. */
|
|
56
80
|
export declare const splitArrayInput: (value: string) => string[];
|
|
81
|
+
/** One pickable candidate for a resource-ID parameter. */
|
|
82
|
+
export interface ResourceChoiceEntry {
|
|
83
|
+
/** inquirer display string (may carry ANSI dim styling around the id). */
|
|
84
|
+
name: string;
|
|
85
|
+
/** The identifier the API path expects. */
|
|
86
|
+
value: string;
|
|
87
|
+
/** Plain human label ("" when the item offers nothing beyond its id). */
|
|
88
|
+
label: string;
|
|
89
|
+
}
|
|
90
|
+
/** Page size for candidate listings — the gateway's documented maximum. */
|
|
91
|
+
export declare const RESOURCE_CHOICE_LIMIT = 200;
|
|
92
|
+
export declare const listResourceChoices: (spec: PromptSpec, query?: string) => Promise<ResourceChoiceEntry[]>;
|
|
93
|
+
/** One pickable record for a resource-ID parameter: the full row (so the TUI
|
|
94
|
+
* picker can show the real list table) plus the identifier the API path
|
|
95
|
+
* expects. Rows without a usable identifier are dropped. */
|
|
96
|
+
export interface ResourceRecord {
|
|
97
|
+
row: Record<string, unknown>;
|
|
98
|
+
value: string;
|
|
99
|
+
}
|
|
100
|
+
/** Like {@link listResourceChoices} but keeps the whole record, so the TUI can
|
|
101
|
+
* render the paired list as a filterable table and pick a row's id. */
|
|
102
|
+
export declare const listResourceRecords: (spec: PromptSpec, query?: string) => Promise<ResourceRecord[]>;
|
|
57
103
|
/** Ask for a single parameter value with the prompt type its spec calls for. */
|
|
58
104
|
export declare const promptForValue: (spec: PromptSpec) => Promise<unknown>;
|
|
59
105
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactive.d.ts","sourceRoot":"","sources":["../../lib/interactive.ts"],"names":[],"mappings":"AASA,+EAA+E;AAC/E,MAAM,WAAW,cAAc;IAC7B,oEAAoE;IACpE,QAAQ,EAAE,MAAM,CAAC;IACjB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,GAI3B,SAAS,OAAO,EAChB,OAAO,UAAU,EAAE,EACnB,UAAU,OAAO,KAGhB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAuB7B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAU,QAAQ,MAAM,KAAG,OAAO,CAAC,IAAI,CAcrE,CAAC"}
|
package/dist/lib/parser.d.ts
CHANGED
|
@@ -7,12 +7,18 @@ export { redactSecrets };
|
|
|
7
7
|
export declare const parse: (data: unknown) => void;
|
|
8
8
|
export declare const drawTable: (data: Array<JsonObject | null | undefined>) => void;
|
|
9
9
|
export declare const drawJSON: (data: unknown) => void;
|
|
10
|
+
/** The NDJSON / JSON Lines text for a response: one compact, uncolored JSON
|
|
11
|
+
* value per line. Shared by drawJSONL and the TUI's format toggle. */
|
|
12
|
+
export declare const formatJSONL: (data: unknown) => string;
|
|
10
13
|
/**
|
|
11
14
|
* Render a response as NDJSON / JSON Lines: one compact, uncolored JSON value
|
|
12
15
|
* per line. Ideal for streaming large `list` results into `jq -c`, `xargs`, or
|
|
13
16
|
* log pipelines without materializing the whole array.
|
|
14
17
|
*/
|
|
15
18
|
export declare const drawJSONL: (data: unknown) => void;
|
|
19
|
+
/** The RFC 4180 CSV text for a response ("" when there are no rows). Shared
|
|
20
|
+
* by drawCSV and the TUI's format toggle. */
|
|
21
|
+
export declare const formatCSV: (data: unknown) => string;
|
|
16
22
|
/**
|
|
17
23
|
* Render rows as RFC 4180 CSV: a header row (the union of row keys, in first-
|
|
18
24
|
* seen order) followed by one line per row. Always plain text — never colored
|
|
@@ -52,6 +58,7 @@ export declare const hint: (message?: string) => void;
|
|
|
52
58
|
export declare const success: (message?: string) => void;
|
|
53
59
|
export declare const error: (message?: string) => void;
|
|
54
60
|
export declare const logo = "\n /$$$$$$$\n| $$__ $$\n| $$ \\ $$ /$$$$$$ /$$ /$$ /$$$$$$ /$$$$$$$ /$$$$$$ /$$ /$$ /$$ /$$\n| $$$$$$$/ /$$__ $$| $$ /$$//$$__ $$| $$__ $$ /$$__ $$| $$ /$$/| $$ /$$/\n| $$__ $$| $$$$$$$$ \\ $$/$$/| $$$$$$$$| $$ \\ $$| $$$$$$$$ \\ $$$$/ \\ $$$$/\n| $$ \\ $$| $$_____/ \\ $$$/ | $$_____/| $$ | $$| $$_____/ >$$ $$ >$$ $$\n| $$ | $$| $$$$$$$ \\ $/ | $$$$$$$| $$ | $$| $$$$$$$ /$$/\\ $$ /$$/\\ $$\n|__/ |__/ \\_______/ \\_/ \\_______/|__/ |__/ \\_______/|__/ \\__/|__/ \\__/\n CLI\n\n";
|
|
61
|
+
export declare const safeHostname: (endpoint: string) => string;
|
|
55
62
|
/**
|
|
56
63
|
* Resolve the endpoint + tenant the next command will hit, using the same
|
|
57
64
|
* precedence as sdkForProject() but without constructing a client. Kept here so
|
package/dist/lib/parser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../lib/parser.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAM/D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAI5C,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAW1D,QAAA,MAAM,SAAS,EAAE,SAUhB,CAAC;AAEF,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAkB1C,OAAO,EAAE,aAAa,EAAE,CAAC;AAmIzB,eAAO,MAAM,KAAK,GAAI,MAAM,OAAO,KAAG,IAuDrC,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,MAAM,KAAK,CAAC,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC,KAAG,IAkHtE,CAAC;AAqBF,eAAO,MAAM,QAAQ,GAAI,MAAM,OAAO,KAAG,IAUxC,CAAC;AA4BF;;;;GAIG;AACH,eAAO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,mBAAmB,GAC9B,cAAc,OAAO,EACrB,eAAe,OAAO,KACrB,IAmBF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAYtD,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -14,6 +14,21 @@ export interface ProjectConfig {
|
|
|
14
14
|
source: string | null;
|
|
15
15
|
}
|
|
16
16
|
export declare const loadProjectConfig: (start?: string) => ProjectConfig;
|
|
17
|
+
/** Landing experience for a bare `revenexx` on an interactive TTY (DX-140). */
|
|
18
|
+
export type DefaultMode = "tui" | "guided" | "help";
|
|
19
|
+
/**
|
|
20
|
+
* Resolve what a bare `revenexx` opens on an interactive TTY:
|
|
21
|
+
*
|
|
22
|
+
* - `tui` (default) — launch the full-screen Ink app.
|
|
23
|
+
* - `guided` — the DX-98 searchable command picker.
|
|
24
|
+
* - `help` — print usage, like a non-TTY invocation.
|
|
25
|
+
*
|
|
26
|
+
* `REVENEXX_NO_TUI` (any value other than `0`/`false`) forces `guided`;
|
|
27
|
+
* otherwise a `defaultMode:` key in `.revenexx.yaml` wins; else `tui`.
|
|
28
|
+
* Only the empty invocation consults this — partial/named commands and
|
|
29
|
+
* explicit subcommands are unaffected.
|
|
30
|
+
*/
|
|
31
|
+
export declare const resolveDefaultMode: () => DefaultMode;
|
|
17
32
|
/**
|
|
18
33
|
* Resolve the tenant slug for API requests. The gateway requires an
|
|
19
34
|
* `X-Revenexx-Tenant` header on every request.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-config.d.ts","sourceRoot":"","sources":["../../lib/project-config.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AA0CD,eAAO,MAAM,iBAAiB,GAC5B,QAAO,MAAsB,KAC5B,aAmBF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,WAAU,MAAW,KAAG,MAarD,CAAC"}
|
|
1
|
+
{"version":3,"file":"project-config.d.ts","sourceRoot":"","sources":["../../lib/project-config.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AA0CD,eAAO,MAAM,iBAAiB,GAC5B,QAAO,MAAsB,KAC5B,aAmBF,CAAC;AAEF,+EAA+E;AAC/E,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEpD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB,QAAO,WAUrC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,WAAU,MAAW,KAAG,MAarD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TuiContext } from "./context.js";
|
|
2
|
+
import { Form } from "./form.js";
|
|
3
|
+
import type { TuiRunner } from "./executor.js";
|
|
4
|
+
export declare const App: ({ context, runner, loadResourceRecords, welcome, onThemePersist, }: {
|
|
5
|
+
context: TuiContext;
|
|
6
|
+
runner?: TuiRunner;
|
|
7
|
+
/** Injectable for tests; threaded through to the parameter form. */
|
|
8
|
+
loadResourceRecords?: Parameters<typeof Form>[0]["loadResourceRecords"];
|
|
9
|
+
/** Show the startup splash until the first keystroke (off in tests). */
|
|
10
|
+
welcome?: boolean;
|
|
11
|
+
/** Persist the kept theme; injectable so tests don't touch prefs.json. */
|
|
12
|
+
onThemePersist?: (name: string) => void;
|
|
13
|
+
}) => import("react").JSX.Element;
|
|
14
|
+
/** Renders the TUI on the alternate screen and resolves when the user exits,
|
|
15
|
+
* restoring the primary screen buffer even on failure. */
|
|
16
|
+
export declare const runTui: (context: TuiContext, runner?: TuiRunner, themeName?: string) => Promise<void>;
|
|
17
|
+
//# sourceMappingURL=app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../lib/tui/app.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAW/C,OAAO,EACL,IAAI,EAIL,MAAM,WAAW,CAAC;AA4BnB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AA82B/C,eAAO,MAAM,GAAG,GAAI,oEAYjB;IACD,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,oEAAoE;IACpE,mBAAmB,CAAC,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC;IACxE,wEAAwE;IACxE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0EAA0E;IAC1E,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,gCAkrCA,CAAC;AAuCF;0DAC0D;AAC1D,eAAO,MAAM,MAAM,GACjB,SAAS,UAAU,EACnB,SAAS,SAAS,EAClB,YAAY,MAAM,KACjB,OAAO,CAAC,IAAI,CAuDd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../lib/tui/clipboard.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,eAAe,GAAU,MAAM,MAAM,KAAG,OAAO,CAAC,OAAO,CAenE,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure command-tree helpers for the TUI browser and palette. The tree is
|
|
3
|
+
* captured from the live commander program (lib/commands/tui.ts), so plugins
|
|
4
|
+
* and generated services are all included without a second registry.
|
|
5
|
+
*/
|
|
6
|
+
import type { PromptSpec } from "../interactive.js";
|
|
7
|
+
export type CommandLeaf = {
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
/** Display name for the browser (e.g. the resource behind a list command:
|
|
11
|
+
* `asset-families-list` → `asset-families`). Execution, search and the
|
|
12
|
+
* one-shot line always use the real `name`. */
|
|
13
|
+
label?: string;
|
|
14
|
+
/** Registered PromptSpecs (see registerPromptSpecs) — the form's source. */
|
|
15
|
+
specs?: PromptSpec[];
|
|
16
|
+
/** DELETE-backed command; the TUI gates execution behind a confirm modal. */
|
|
17
|
+
destructive?: boolean;
|
|
18
|
+
/** Lower-case HTTP method — safe reads auto-run once params are picked. */
|
|
19
|
+
method?: string;
|
|
20
|
+
/** Kept in the tree (so a list's u/d can resolve it) but not shown when
|
|
21
|
+
* browsing: a get/update/delete whose actions are reached from its list. */
|
|
22
|
+
hidden?: boolean;
|
|
23
|
+
/** TUI-only synthetic action — open an in-app panel instead of running a
|
|
24
|
+
* command (settings → themes opens the theme picker). */
|
|
25
|
+
tuiAction?: "theme-picker";
|
|
26
|
+
/** Real invocation path when the nav path differs from the command path:
|
|
27
|
+
* the settings subtree relocates `alias`, so its actions browse under
|
|
28
|
+
* `settings › alias` but still run as `alias set|list|remove`. */
|
|
29
|
+
runPath?: string[];
|
|
30
|
+
/** Drill-in children. Services are two-level and leave this unset; the
|
|
31
|
+
* relocated alias nests (alias → set/list/remove). */
|
|
32
|
+
subcommands?: CommandLeaf[];
|
|
33
|
+
/** Grouped under this named root nav section instead of folders/commands
|
|
34
|
+
* (TUI preferences: the themes action + the relocated alias command). */
|
|
35
|
+
group?: string;
|
|
36
|
+
};
|
|
37
|
+
export type CommandNode = CommandLeaf & {
|
|
38
|
+
/** Empty for standalone commands (login, status, …). */
|
|
39
|
+
subcommands: CommandLeaf[];
|
|
40
|
+
};
|
|
41
|
+
export type PaletteEntry = {
|
|
42
|
+
/** Full invocation path, e.g. "products list-products". */
|
|
43
|
+
path: string;
|
|
44
|
+
description: string;
|
|
45
|
+
/** Invocation tokens, e.g. ["products", "list-products"]. */
|
|
46
|
+
parts: string[];
|
|
47
|
+
/** The runnable command itself (specs, destructive flag). */
|
|
48
|
+
leaf: CommandLeaf;
|
|
49
|
+
/** Prettier row text for the search list (resource-labelled path). The
|
|
50
|
+
* query always matches against `path`, so real names keep working. */
|
|
51
|
+
display?: string;
|
|
52
|
+
};
|
|
53
|
+
/** Every runnable invocation plus the service groups themselves. A service
|
|
54
|
+
* whose own records have a list (bare `list`/`index`) merges with it: the
|
|
55
|
+
* group's search row IS that list — picking it runs the records and lands
|
|
56
|
+
* inside the folder. Groups without one just drill in. */
|
|
57
|
+
export declare const flattenTree: (nodes: CommandNode[]) => PaletteEntry[];
|
|
58
|
+
/**
|
|
59
|
+
* The resource a list command browses: `asset-families-list`,
|
|
60
|
+
* `list-deployments` and rails-style `asset-index` → their resource, the
|
|
61
|
+
* bare `list`/`index` → "" (the service's own records). Undefined when the
|
|
62
|
+
* command isn't a list at all.
|
|
63
|
+
*/
|
|
64
|
+
export declare const listResource: (name: string) => string | undefined;
|
|
65
|
+
/** CRUD verbs whose commands fold into their list (⏎ view · c/u/d). */
|
|
66
|
+
export declare const CRUD_VERBS: readonly ["create", "get", "update", "delete"];
|
|
67
|
+
/**
|
|
68
|
+
* Candidate command names for a CRUD verb belonging to a list command:
|
|
69
|
+
* `list` → `create`; `asset-families-list` → `asset-families-create`;
|
|
70
|
+
* `asset-index` → `asset-create` / `asset-store`;
|
|
71
|
+
* `list-deployments` → `create-deployment` / `create-deployments`.
|
|
72
|
+
*/
|
|
73
|
+
export declare const crudCandidates: (listName: string, verb: string) => string[];
|
|
74
|
+
/**
|
|
75
|
+
* The list command a CRUD command folds into, when the service has it:
|
|
76
|
+
* `get-deployment` → `list-deployments`, `categories-get` →
|
|
77
|
+
* `categories-list`, `asset-show` → `asset-index`, bare `create` → `list`.
|
|
78
|
+
* Null when the name isn't a CRUD form or no matching list exists.
|
|
79
|
+
*/
|
|
80
|
+
export declare const owningList: (name: string, listNames: ReadonlySet<string>) => string | null;
|
|
81
|
+
/**
|
|
82
|
+
* Multi-token, alias-aware matching: the query splits on whitespace and every
|
|
83
|
+
* token must match the path in order (case-insensitive substring, each token
|
|
84
|
+
* also counting through its built-in alias). `pro get` therefore matches
|
|
85
|
+
* `products get-product`, and so does `p g`. Entries whose first token
|
|
86
|
+
* matches at the start of the path rank first, like guided mode's picker.
|
|
87
|
+
*/
|
|
88
|
+
export declare const filterEntries: (entries: PaletteEntry[], query: string) => PaletteEntry[];
|
|
89
|
+
//# sourceMappingURL=command-tree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-tree.d.ts","sourceRoot":"","sources":["../../../lib/tui/command-tree.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB;;mDAE+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,6EAA6E;IAC7E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;gFAC4E;IAC5E,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;6DACyD;IACz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