@getxflow/cli 0.6.2 → 0.6.3

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/dist/prompt.js CHANGED
@@ -6,8 +6,8 @@ const node_readline_1 = require("node:readline");
6
6
  const errors_1 = require("./errors");
7
7
  const ui_1 = require("./ui");
8
8
  function render(lines, first) {
9
- const up = first ? '' : `[${lines.length}A`;
10
- process.stderr.write(up + lines.map((line) => `${line}\n`).join(''));
9
+ const up = first || lines.length === 1 ? '' : `[${lines.length - 1}A`;
10
+ process.stderr.write(`${up}\r${lines.map((line) => `${line}`).join('\n')}`);
11
11
  }
12
12
  function listen(onKey) {
13
13
  if (process.stdin.isTTY !== true) {
@@ -17,6 +17,7 @@ function listen(onKey) {
17
17
  const wasRaw = process.stdin.isRaw === true;
18
18
  process.stdin.setRawMode(true);
19
19
  process.stdin.resume();
20
+ process.stderr.write('[?25l');
20
21
  const handler = (_, key) => {
21
22
  if (key)
22
23
  onKey(key);
@@ -26,6 +27,7 @@ function listen(onKey) {
26
27
  process.stdin.off('keypress', handler);
27
28
  process.stdin.setRawMode(wasRaw);
28
29
  process.stdin.pause();
30
+ process.stderr.write('[?25h\n');
29
31
  };
30
32
  }
31
33
  const isConfirm = (key) => key.name === 'return' || key.name === 'enter';
package/dist/version.js CHANGED
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DEFAULT_API_URL = exports.CLI_VERSION = void 0;
4
4
  /** Keep in sync with cli/package.json. */
5
- exports.CLI_VERSION = '0.6.2';
5
+ exports.CLI_VERSION = '0.6.3';
6
6
  /** Overridden by XFLOW_API_URL or the `api` field in xflow.json. */
7
7
  exports.DEFAULT_API_URL = 'https://app.getxflow.com';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getxflow/cli",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "CLI for the XFlow platform: source sync, deployment and publishing of applications",
5
5
  "license": "UNLICENSED",
6
6
  "engines": {
@@ -251,6 +251,16 @@ assemble a variable name from an expression and never destructure the environmen
251
251
  (`const { API_KEY } = process.env` reads as no mention at all, and the variable arrives
252
252
  empty). New values arrive on the next `xflow deploy`, not at the moment they are written.
253
253
 
254
+ Some variables come from a connected account instead of from you. When someone connects an
255
+ advertising cabinet or another external service in the platform settings and links it to the
256
+ project, its credentials show up in `xflow env` marked read-only, under a prefix chosen at
257
+ link time: `YANDEX_DIRECT_TOKEN`, `YANDEX_DIRECT_CLIENT_LOGIN`. Read them like any other
258
+ variable. Do not try to `xflow env set` those names: the platform keeps the values in sync
259
+ and refuses. If a call to that service starts failing with an authorisation error, run
260
+ `xflow status`: it says whether the token is merely expiring (any build renews it) or the
261
+ account was disconnected on the provider's side, which only a human can fix by reconnecting
262
+ it in the platform settings.
263
+
254
264
  To run a function on a timer: `xflow schedules set report "0 3 ? * * *"` (daily at 03:00).
255
265
  Six fields, UTC, and exactly one of day-of-month / day-of-week must be `?` — that is
256
266
  how Yandex wants it. A scheduled run reaches the handler as a POST with no headers.