vortex-cli 8.2.0__tar.gz → 8.4.0__tar.gz
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.
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/PKG-INFO +231 -7
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/README.md +230 -6
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/pyproject.toml +1 -1
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/cli.py +245 -3
- vortex_cli-8.4.0/vortex/commands/file.py +573 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/info.py +2 -0
- vortex_cli-8.4.0/vortex/commands/log.py +648 -0
- vortex_cli-8.4.0/vortex/commands/stats.py +307 -0
- vortex_cli-8.4.0/vortex/commands/weblog.py +387 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/main.py +32 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/models.py +36 -1
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/registry.py +7 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/webdesign.py +361 -9
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex_cli.egg-info/PKG-INFO +231 -7
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex_cli.egg-info/SOURCES.txt +3 -0
- vortex_cli-8.2.0/vortex/commands/log.py +0 -276
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/LICENSE +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/setup.cfg +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/__init__.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/__main__.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/colour.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/__init__.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/agenda.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/app.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/clean.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/clone.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/code.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/compile.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/db.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/diff.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/docs.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/execute.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/fetch.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/keyword.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/libs.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/object_.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/pull.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/search.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/servers.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/use.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/commands/watch.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/constants.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/docs/Blackbook v2.md +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/docs/Blackbook.pdf +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/docs/index.html +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/docs/marked.min.js +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/git.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/lib/puakma-6.0.40.jar +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/libs.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/logging.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/output.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/schedule.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/server_options.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/soap.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/spinner.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/sync.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/util.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex/workspace.py +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex_cli.egg-info/dependency_links.txt +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex_cli.egg-info/entry_points.txt +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex_cli.egg-info/requires.txt +0 -0
- {vortex_cli-8.2.0 → vortex_cli-8.4.0}/vortex_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: vortex_cli
|
|
3
|
-
Version: 8.
|
|
3
|
+
Version: 8.4.0
|
|
4
4
|
Summary: Vortex CLI
|
|
5
5
|
Author-email: Jordan Amos <jordan.amos@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -106,6 +106,32 @@ While it is possible to use without it, this software has been purposefully desi
|
|
|
106
106
|
java_environment_name = JavaSE-17 ; Java Execution Environment name https://docs.osgi.org/reference/eenames.html
|
|
107
107
|
```
|
|
108
108
|
|
|
109
|
+
## Upgrading to 8.4
|
|
110
|
+
|
|
111
|
+
- **`vortex stats` shows the server's disk space** after the statistics: each mounted local
|
|
112
|
+
filesystem's size, used and available space and Use%, as `df -h` shows them, with the
|
|
113
|
+
Puakma root's disk marked (see [Server statistics](#server-statistics)); `--json` adds them
|
|
114
|
+
as `disks`. It needs vortex/gateway 0.3.0, which adds them to `GET stats`; with an older
|
|
115
|
+
gateway the overview says so in one line.
|
|
116
|
+
|
|
117
|
+
## Upgrading to 8.3
|
|
118
|
+
|
|
119
|
+
- **`vortex weblog`** reads the server's HTTP access log (`HTTPTextLog`) through the gateway:
|
|
120
|
+
its last lines, an older day's file, the whole file, or new lines as they are written (see
|
|
121
|
+
[The web log](#the-web-log)). It needs `GatewaySystem` and a gateway with `GET logs?log=web`.
|
|
122
|
+
- **`vortex stats`** shows each loaded addin's statistics - CPU, memory, threads, errors,
|
|
123
|
+
logins, HTTP traffic - from the gateway's `GET stats`, once or re-polled with `-k` (see
|
|
124
|
+
[Server statistics](#server-statistics)). It needs `GatewaySystem`; a gateway without the
|
|
125
|
+
route is refused with `NOT_EXPOSED` - update `vortex/gateway`.
|
|
126
|
+
- **`vortex log` reads a time window.** `--since 2h`, `--from 02:00 --to 03:00` (or full dates),
|
|
127
|
+
`--search TEXT`, `-n` up to 500, and `--page N` / `--all-pages` through the gateway's pager
|
|
128
|
+
(see [The server log](#the-server-log)). Without the new flags it prints and sends exactly
|
|
129
|
+
what it did before.
|
|
130
|
+
- **`vortex file`** lists, reads, downloads, uploads and deletes the server's files below the
|
|
131
|
+
Puakma root through the gateway's `files` route (see [Server files](#server-files)). It
|
|
132
|
+
needs `Admin` and a gateway with the `files` route; an older one refuses it with
|
|
133
|
+
`NOT_EXPOSED`.
|
|
134
|
+
|
|
109
135
|
## Upgrading to 8.2
|
|
110
136
|
|
|
111
137
|
- **`object run` runs ACTIONs, and waits.** It calls the gateway's new `POST run` (gateway
|
|
@@ -331,6 +357,13 @@ vortex db delete-column DB TABLE COLUMN --app-id ID [--yes]
|
|
|
331
357
|
vortex agenda [list] [--app-id ID] [--json]
|
|
332
358
|
vortex agenda run ID --app-id ID [--param KEY=VALUE ...] [--refresh --force] [--json]
|
|
333
359
|
|
|
360
|
+
── file (Admin) ─────────────────────────────────────────────────────────────
|
|
361
|
+
vortex file list [PATH] [--json]
|
|
362
|
+
vortex file get PATH [--hash --meta] [--json]
|
|
363
|
+
vortex file download PATH [-o DEST] [--overwrite] [--json]
|
|
364
|
+
vortex file upload LOCAL... --to FOLDER [--overwrite] [--json]
|
|
365
|
+
vortex file delete PATH [--yes] [--json]
|
|
366
|
+
|
|
334
367
|
── Workspace ────────────────────────────────────────────────────────────────
|
|
335
368
|
vortex ls [app list filters] [--json] = app list --local
|
|
336
369
|
vortex clone APP... [--group --reclone --all --get-resources --open-urls --timeout]
|
|
@@ -344,7 +377,10 @@ vortex code [--refresh [--reset]] [-s]
|
|
|
344
377
|
── Server and setup ─────────────────────────────────────────────────────────
|
|
345
378
|
vortex [-s NAME] [--show-permissions] [--json] (the server's live status)
|
|
346
379
|
vortex --path (the workspace path)
|
|
347
|
-
vortex log [-n --source -m --errors-only|--debug-only|--info-only
|
|
380
|
+
vortex log [-n --source -m --search --errors-only|--debug-only|--info-only]
|
|
381
|
+
[--since D | --from WHEN] [--to WHEN] [--page N | --all-pages] [-k -d] [--json]
|
|
382
|
+
vortex weblog [-n -m [--regex] --file NAME] [--list | --all | -o PATH | -k [-d]] [--json]
|
|
383
|
+
vortex stats [--addin NAME] [--key KEY] [-k [-d]] [--json]
|
|
348
384
|
vortex execute CMD... | flush-cache | refresh-agenda | refresh-design APP_ID | schedule
|
|
349
385
|
[--json] (alias: ex)
|
|
350
386
|
vortex server list [--json]
|
|
@@ -463,6 +499,190 @@ The 8.0 flags (`--show-schedule`, `--refresh-agenda`, `--flush-cache`, `--refres
|
|
|
463
499
|
`--run`) were removed in 8.1. `app refresh` was `app refresh-design` in 8.1.0; the old
|
|
464
500
|
name still works.
|
|
465
501
|
|
|
502
|
+
### The server log
|
|
503
|
+
|
|
504
|
+
`vortex log` prints the newest entries in the server log (`PMALOG`) - through the gateway's
|
|
505
|
+
`GET logs` (`GatewaySystem`), or with a blank `gateway_path` a query through webdesign's SQL
|
|
506
|
+
route.
|
|
507
|
+
|
|
508
|
+
```
|
|
509
|
+
vortex log the last 10 entries
|
|
510
|
+
vortex log --since 2h --errors-only errors in the last two hours
|
|
511
|
+
vortex log --from 02:00 --to 03:00 --errors-only -n 500
|
|
512
|
+
what errored between 2 and 3 this morning
|
|
513
|
+
vortex log --from 2026-10-13 --to 2026-10-13 --search timeout
|
|
514
|
+
vortex log --since 1d --source agenda --all-pages -n 500 --json
|
|
515
|
+
vortex log -k new entries as they arrive (^C stops)
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
- **Times are the server's clock** - the clock `PMALOG` is stamped with, the gateway compares
|
|
519
|
+
against, and every entry is printed in. `--from`/`--to` take `HH:MM[:SS]` (today),
|
|
520
|
+
`YYYY-MM-DD` (`--to` a date alone means the whole day), `YYYY-MM-DD HH:MM[:SS]`, or ISO with
|
|
521
|
+
an offset (`2026-10-14T02:00+10:00`, `...Z`; it needs the date) for an exact instant. Both ends are inclusive.
|
|
522
|
+
`--since 30m|2h|3d|1w` (or `1h30m`) counts back from the server's now.
|
|
523
|
+
- **The server's clock decides.** `--since`, a time alone and a time with an offset are sent
|
|
524
|
+
as given and resolved by the gateway on its own clock (`vortex/gateway` 0.2.0+), which
|
|
525
|
+
replies with the window it applied; later pages and `-k` reuse that window. A date with a
|
|
526
|
+
time is sent as written. An older gateway ignores what it cannot read: the CLI then takes
|
|
527
|
+
the server's UTC offset from that reply (every entry carries it; when nothing matched, its
|
|
528
|
+
default window or one `rows=1` read) and reads the page again - one request more until the
|
|
529
|
+
gateway is updated. Without the gateway entries carry no offset, so this machine's is
|
|
530
|
+
assumed.
|
|
531
|
+
- **`--search TEXT`** matches the message, user or server name; `-m` the message only,
|
|
532
|
+
`--source` the source. All are case-insensitive "contains".
|
|
533
|
+
- **Bounded reads.** With none of `--since`/`--from`/`--to` the gateway reads only the last
|
|
534
|
+
24 hours (`PMALOG` is never pruned, and the gateway counts the matches on every request);
|
|
535
|
+
`--to` alone reads the 24 hours before it. `--since` goes back at most `520w`.
|
|
536
|
+
The summary after the table says which window was read and how many entries matched.
|
|
537
|
+
- **Paging** (gateway only). `-n` is the page size (max 500). `--page N` reads page N, newest
|
|
538
|
+
first; `--all-pages` reads every page, one request at a time, and stops after 20 (10,000
|
|
539
|
+
entries at `-n 500`) - narrow the window for the rest. An entry written while paging is
|
|
540
|
+
read twice and kept once. A blank `gateway_path` refuses both with `UNAVAILABLE`.
|
|
541
|
+
- **`--json`**: the same entries, oldest first. With any of the flags above the envelope also
|
|
542
|
+
carries `window` (`{from, to, default}` on the server's clock; `default` when the gateway's
|
|
543
|
+
24-hour window applied) and, through the gateway, `pager`
|
|
544
|
+
(`{page, pagesRead, pages, total, rows}`). Plain `vortex log --json` is unchanged.
|
|
545
|
+
- **`-k`** follows new entries after the first read (it can start from a window, but not take
|
|
546
|
+
`--to`, `--page` or `--all-pages`).
|
|
547
|
+
|
|
548
|
+
### The web log
|
|
549
|
+
|
|
550
|
+
`vortex weblog` prints the server's HTTP access log - the file `HTTPTextLog` names in
|
|
551
|
+
`puakma.config` - through the gateway's `GET logs?log=web` (`GatewaySystem`). Lines are printed
|
|
552
|
+
exactly as the server wrote them: their layout is the server's `HTTPLogFormat`, so the CLI
|
|
553
|
+
never parses them.
|
|
554
|
+
|
|
555
|
+
```
|
|
556
|
+
vortex weblog the last 20 lines of today's file
|
|
557
|
+
vortex weblog -n 200 -m /api/ the last 200 lines containing /api/
|
|
558
|
+
vortex weblog -m ' 50[0-9] ' --regex
|
|
559
|
+
vortex weblog --list the log files, newest first
|
|
560
|
+
vortex weblog --file weblog_20261013.log
|
|
561
|
+
vortex weblog --file weblog_20261013.log -o oct13.log the whole file, saved
|
|
562
|
+
vortex weblog -k new lines as they are written (^C stops)
|
|
563
|
+
vortex weblog -k -n 0 only lines written from now on
|
|
564
|
+
```
|
|
565
|
+
|
|
566
|
+
- **Tail, not search.** The gateway returns at most 256 KB per request and has no filter for
|
|
567
|
+
this log, so `-m` filters on this side and `-n` counts matching lines within the last
|
|
568
|
+
256 KB. For older lines or a rare match, `--all` reads the whole file in 256 KB pieces
|
|
569
|
+
(`-o PATH` saves it instead of printing). Without `-m`, `-o` is a byte-for-byte copy: the
|
|
570
|
+
gateway (0.2.0+) sends the bytes; an older one sends UTF-8 text, so a byte that is not
|
|
571
|
+
UTF-8 arrives as U+FFFD.
|
|
572
|
+
- **Following.** `-k` polls every `-d` seconds (default 3) for what was written since the last
|
|
573
|
+
request. Without `--file` it follows whichever file is current, so a date-stamped log that
|
|
574
|
+
rolls over at midnight is picked up: the rest of the old file, then the new one (until the
|
|
575
|
+
server writes the new day's first line, the old file is read on). A line still being
|
|
576
|
+
written is held back until it is complete.
|
|
577
|
+
- **`--json`**: the tail and `--all` give `{file, size, from, lines}`; `-o` gives
|
|
578
|
+
`{file, size, output, bytes}`; `--list` gives `{current, files: [{name, size, lastModified,
|
|
579
|
+
current}]}`. With `-k`, one envelope per line `{file, line}`, as for `vortex log -k`.
|
|
580
|
+
- **Refusals.** `NOT_CONFIGURED`: the server writes no access log (`HTTPTextLog` is unset).
|
|
581
|
+
`NOT_FOUND`: no such file - only names the `HTTPTextLog` pattern can produce are reachable.
|
|
582
|
+
A gateway too old for `log=web` answers with the server log, which the CLI reports as such.
|
|
583
|
+
- **Gateway only.** webdesign cannot read files, so a server with a blank `gateway_path` is
|
|
584
|
+
refused before anything is sent.
|
|
585
|
+
|
|
586
|
+
### Server statistics
|
|
587
|
+
|
|
588
|
+
`vortex stats` is a health check from the terminal: the time series each loaded addin keeps
|
|
589
|
+
in memory (the admin app's performance chart), through the gateway's `GET stats`
|
|
590
|
+
(`GatewaySystem`), then the server's disk space. One request per run, one row per statistic
|
|
591
|
+
and per disk:
|
|
592
|
+
|
|
593
|
+
```
|
|
594
|
+
$ vortex stats -s dev
|
|
595
|
+
dev at 2026-10-14 22:36:58 - addins: STATS, HTTP, AGENDA, WIDGIE, MAILER
|
|
596
|
+
Statistic Now Min Avg Max Span Trend
|
|
597
|
+
------------------------------- ----- ----- ----- ----- ------ --------------------
|
|
598
|
+
stats.cpuusageperminute 21.5 0 2.08 14.2 61m ▁▁▁▂▂▂▁▁▁▁▁▁▁▁▁▁▁▃▁█
|
|
599
|
+
stats.memoryappmbinuseperminute 455 270 438 623 61m ▆▅▅█▅█▆▆▇▆▆▇▇▆██▅▅▁▃
|
|
600
|
+
stats.threadcountperminute 78 75 80.8 128 61m ▁▁▁▅▄▅▅▅▅▅▅▅▅▅▄▃▃█▆▃
|
|
601
|
+
http.bytesouttotal 83.1M
|
|
602
|
+
http.hitsperminute 27 13 22.2 176 61m ▁▁▂▁▆▃▁▁▁▁▁▂▁▁█▁▁▅▅▅
|
|
603
|
+
...
|
|
604
|
+
|
|
605
|
+
Disk Size Used Avail Use% Type
|
|
606
|
+
--------------------- ------ ------ ------- ------ ------
|
|
607
|
+
/puakma (Puakma root) 24G 17G 7.3G 70% ext4
|
|
608
|
+
|
|
609
|
+
vortex stats --addin HTTP one addin (a short name, or its class name)
|
|
610
|
+
vortex stats --key stats.cpuusageperminute
|
|
611
|
+
vortex stats -k poll every 5 seconds and reprint (^C stops)
|
|
612
|
+
```
|
|
613
|
+
|
|
614
|
+
- **Columns.** `Now` is the newest period, still filling (this minute's hits so far) - or,
|
|
615
|
+
for a total like `http.bytesouttotal`, its value. `Min`/`Avg`/`Max` are over the periods
|
|
616
|
+
that have ended; `Span` is how far back the series goes, `Trend` its last 20 points. A `-`
|
|
617
|
+
means the statistic has no entries yet. Units are in the key (`mb`, `bytes`, `perminute`);
|
|
618
|
+
large numbers are shortened (`614K`, `11.4M`).
|
|
619
|
+
- **In memory only.** The server keeps a limited window (about the last hour of a
|
|
620
|
+
per-minute statistic) and starts again on a restart, so a short `Span` means a recent
|
|
621
|
+
restart.
|
|
622
|
+
- **Disks** (gateway 0.3.0). Every mounted local filesystem the server's JVM sees, read when
|
|
623
|
+
the request is answered, as `df -h` shows them: `Used` is size minus free, `Avail` what a
|
|
624
|
+
non-root user can still write, `Use%` used / (used + avail). The disk holding the Puakma
|
|
625
|
+
root is marked. One disk seen through several mounts (a container's overlay root over its
|
|
626
|
+
host disk) is listed once; memory, kernel, read-only and network filesystems are left out.
|
|
627
|
+
No history - the gateway keeps none. `--addin` and `--key` narrow the request to statistics,
|
|
628
|
+
so they show no disks; an older gateway sends none, which the overview says once.
|
|
629
|
+
- **`-k`** re-polls every `-d` seconds (default 5) and reprints, clearing the screen when the
|
|
630
|
+
output is a terminal.
|
|
631
|
+
- **`--json`**: `data` is the addins as the gateway sends them, every key present -
|
|
632
|
+
`[{name, class, statistics: [{key, captureType, created, lastUpdated, entries: [{from, to,
|
|
633
|
+
value}]}]}]` (`captureType`: `once`, `per-second`, `per-minute`, `per-hour`, `per-day`; a
|
|
634
|
+
`once` entry has no `from`/`to`) - and `time` (the server's clock) beside it, and `disks`
|
|
635
|
+
when the gateway sent them (`[{mount, name, type, totalBytes, usableBytes, freeBytes,
|
|
636
|
+
usedPct, puakmaRoot}]`). With `-k`, one envelope per poll, one per line.
|
|
637
|
+
- **Refusals.** `NOT_FOUND`: no addin of that name is loaded (`vortex stats` lists them).
|
|
638
|
+
`NOT_EXPOSED`: the gateway predates `GET stats` - update `vortex/gateway`. A blank
|
|
639
|
+
`gateway_path` is refused before anything is sent.
|
|
640
|
+
|
|
641
|
+
### Server files
|
|
642
|
+
|
|
643
|
+
`vortex file` works on the server's filesystem below the Puakma root (the parent of
|
|
644
|
+
`config/`), through the gateway's `files` route. **Admin only**, and gateway only: webdesign
|
|
645
|
+
cannot read or write files, so a server with a blank `gateway_path` is refused before anything
|
|
646
|
+
is sent.
|
|
647
|
+
|
|
648
|
+
```
|
|
649
|
+
vortex file list the Puakma root: folders first, then files
|
|
650
|
+
vortex file list logs
|
|
651
|
+
vortex file get addins/readme.txt its text on stdout, its metadata on stderr
|
|
652
|
+
vortex file get lib/x.jar --hash --meta size, modified time and SHA-256 only
|
|
653
|
+
vortex file download logs/big.log -o ~/tmp/
|
|
654
|
+
vortex file upload a.jar b.jar --to addins --overwrite
|
|
655
|
+
vortex file delete addins/old.jar shown, then confirmed (--yes without a terminal)
|
|
656
|
+
```
|
|
657
|
+
|
|
658
|
+
- **Paths** are relative to the Puakma root (`/` is the root itself). The gateway resolves
|
|
659
|
+
them canonically - symlinks and `..` followed - and anything that ends up outside the root
|
|
660
|
+
is `NOT_FOUND`, exactly like a path that does not exist.
|
|
661
|
+
- **`get`** prints the text only for a file up to 2 MB with no NUL byte in its first 8 KB,
|
|
662
|
+
decoded as UTF-8. Anything else is `TOO_LARGE` or `BINARY` (exit 1, with the metadata):
|
|
663
|
+
use `download`, which streams the exact bytes to disk at any size. `--meta` asks only for
|
|
664
|
+
the metadata; `--hash` adds the SHA-256.
|
|
665
|
+
- **`download`** writes beside the destination and moves the file into place once it has all
|
|
666
|
+
arrived, so a failed download leaves nothing behind. An existing local file is kept unless
|
|
667
|
+
`--overwrite`.
|
|
668
|
+
- **`upload`** sends every file in one request, into the folder under its own name (missing
|
|
669
|
+
folders are created). The gateway checks them all before writing any: a name already in
|
|
670
|
+
the folder is `EXISTS` and nothing is written, unless `--overwrite` - and then **each old
|
|
671
|
+
file is kept beside the new one as `name.yyyyMMddHHmmss`**, the only undo there is. The
|
|
672
|
+
SHA-256 the server reports is checked against the local file (`CORRUPT` otherwise).
|
|
673
|
+
- **`delete`** removes one file, symlink (never what it points to) or empty folder
|
|
674
|
+
(`NOT_EMPTY` otherwise). It is final: **no backup, no undo**. The entry is shown and
|
|
675
|
+
confirmed first; without a terminal `--yes` is required (`CONFIRMATION_REQUIRED`).
|
|
676
|
+
- `upload` and `delete` are writes: a protected default server must be named with `-s`.
|
|
677
|
+
- **Nothing under the root is hidden**, including `config/puakma.config` (the system database
|
|
678
|
+
login), keystores and `.pmx` backups. `get` prints what you ask for - nothing reads more than
|
|
679
|
+
the one path given.
|
|
680
|
+
- **`--json`**: `list` gives `{type: "dir", root, path, entries: [{name, type, size, modified,
|
|
681
|
+
path}], truncated?}` (at most 5000 entries); `get` gives `{type: "file", root, path, name,
|
|
682
|
+
size, modified, sha256?, tooLarge? | binary, text?}`; `download` gives `{path, output, size,
|
|
683
|
+
sha256}`; `upload` gives `{path, files: [{name, path, size, sha256, replaced, backup?}]}`;
|
|
684
|
+
`delete` gives `{path, type, size?}`.
|
|
685
|
+
|
|
466
686
|
### Local clones stay in sync
|
|
467
687
|
|
|
468
688
|
Server commands never need a clone. When the application **is** cloned, every write runs in
|
|
@@ -739,8 +959,9 @@ one applies:
|
|
|
739
959
|
- A write or console command never reaches it by default: when a protected server is only
|
|
740
960
|
the `vortex use` default, those commands refuse to run until it is named with `-s`.
|
|
741
961
|
|
|
742
|
-
|
|
743
|
-
against production with an identity whose roles fit
|
|
962
|
+
Only deletes are confirmed (`--yes` without a terminal); other writes are not - the gateway's
|
|
963
|
+
roles are the protection, so run agents against production with an identity whose roles fit
|
|
964
|
+
the job.
|
|
744
965
|
|
|
745
966
|
### Backend: gateway or webdesign
|
|
746
967
|
|
|
@@ -763,8 +984,8 @@ webdesign's `/system/webdesign.pma/vortex/<path>` - with three things in front o
|
|
|
763
984
|
lets an id from one application be used under another (`NOT_FOUND`), and runs exactly one
|
|
764
985
|
`SELECT`/`INSERT`/`UPDATE`/`DELETE` per SQL request (`SQL_NOT_ALLOWED`: DDL, `WITH`, and
|
|
765
986
|
any `;`).
|
|
766
|
-
- **Its own routes:** `whoami` (a bare `vortex`), the server
|
|
767
|
-
`.pmx` export and import.
|
|
987
|
+
- **Its own routes:** `whoami` (a bare `vortex`), the server and web logs (`log`, `weblog`), the console (`execute`),
|
|
988
|
+
addin statistics (`stats`), `.pmx` export and import, and the server's files (`file`, `Admin`).
|
|
768
989
|
|
|
769
990
|
On a server with a blank `gateway_path`:
|
|
770
991
|
|
|
@@ -774,8 +995,11 @@ On a server with a blank `gateway_path`:
|
|
|
774
995
|
| `db query` | a CLI-side guard replaces the gateway's: one `SELECT`/`INSERT`/`UPDATE`/`DELETE` statement, refused otherwise with `SQL_NOT_ALLOWED` before anything is sent |
|
|
775
996
|
| `app export` | webdesign's `ExportPMX` |
|
|
776
997
|
| `vortex` (no command) | the console `status` command over SOAP (`soap_path`); `--show-permissions` says "no gateway: webdesign direct, no role checks" |
|
|
777
|
-
| `log` | a `PMALOG` query through webdesign's SQL route, on the system-database connection owned by the ungrouped `puakma` application (found once per run) |
|
|
998
|
+
| `log` | a `PMALOG` query through webdesign's SQL route, on the system-database connection owned by the ungrouped `puakma` application (found once per run); `--since`/`--from`/`--to`/`--search` go into the query, `--page`/`--all-pages` are refused |
|
|
778
999
|
| `execute` | the console command over SOAP |
|
|
1000
|
+
| `weblog` | unavailable: webdesign cannot read the access log |
|
|
1001
|
+
| `stats` | unavailable: webdesign has no route to the addin statistics |
|
|
1002
|
+
| `file` | unavailable: webdesign cannot read or write files |
|
|
779
1003
|
| `app import` | unavailable (`UNAVAILABLE`) |
|
|
780
1004
|
|
|
781
1005
|
Without the gateway there are no role checks, no system-database block and no cross-app
|
|
@@ -62,6 +62,32 @@ While it is possible to use without it, this software has been purposefully desi
|
|
|
62
62
|
java_environment_name = JavaSE-17 ; Java Execution Environment name https://docs.osgi.org/reference/eenames.html
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
+
## Upgrading to 8.4
|
|
66
|
+
|
|
67
|
+
- **`vortex stats` shows the server's disk space** after the statistics: each mounted local
|
|
68
|
+
filesystem's size, used and available space and Use%, as `df -h` shows them, with the
|
|
69
|
+
Puakma root's disk marked (see [Server statistics](#server-statistics)); `--json` adds them
|
|
70
|
+
as `disks`. It needs vortex/gateway 0.3.0, which adds them to `GET stats`; with an older
|
|
71
|
+
gateway the overview says so in one line.
|
|
72
|
+
|
|
73
|
+
## Upgrading to 8.3
|
|
74
|
+
|
|
75
|
+
- **`vortex weblog`** reads the server's HTTP access log (`HTTPTextLog`) through the gateway:
|
|
76
|
+
its last lines, an older day's file, the whole file, or new lines as they are written (see
|
|
77
|
+
[The web log](#the-web-log)). It needs `GatewaySystem` and a gateway with `GET logs?log=web`.
|
|
78
|
+
- **`vortex stats`** shows each loaded addin's statistics - CPU, memory, threads, errors,
|
|
79
|
+
logins, HTTP traffic - from the gateway's `GET stats`, once or re-polled with `-k` (see
|
|
80
|
+
[Server statistics](#server-statistics)). It needs `GatewaySystem`; a gateway without the
|
|
81
|
+
route is refused with `NOT_EXPOSED` - update `vortex/gateway`.
|
|
82
|
+
- **`vortex log` reads a time window.** `--since 2h`, `--from 02:00 --to 03:00` (or full dates),
|
|
83
|
+
`--search TEXT`, `-n` up to 500, and `--page N` / `--all-pages` through the gateway's pager
|
|
84
|
+
(see [The server log](#the-server-log)). Without the new flags it prints and sends exactly
|
|
85
|
+
what it did before.
|
|
86
|
+
- **`vortex file`** lists, reads, downloads, uploads and deletes the server's files below the
|
|
87
|
+
Puakma root through the gateway's `files` route (see [Server files](#server-files)). It
|
|
88
|
+
needs `Admin` and a gateway with the `files` route; an older one refuses it with
|
|
89
|
+
`NOT_EXPOSED`.
|
|
90
|
+
|
|
65
91
|
## Upgrading to 8.2
|
|
66
92
|
|
|
67
93
|
- **`object run` runs ACTIONs, and waits.** It calls the gateway's new `POST run` (gateway
|
|
@@ -287,6 +313,13 @@ vortex db delete-column DB TABLE COLUMN --app-id ID [--yes]
|
|
|
287
313
|
vortex agenda [list] [--app-id ID] [--json]
|
|
288
314
|
vortex agenda run ID --app-id ID [--param KEY=VALUE ...] [--refresh --force] [--json]
|
|
289
315
|
|
|
316
|
+
── file (Admin) ─────────────────────────────────────────────────────────────
|
|
317
|
+
vortex file list [PATH] [--json]
|
|
318
|
+
vortex file get PATH [--hash --meta] [--json]
|
|
319
|
+
vortex file download PATH [-o DEST] [--overwrite] [--json]
|
|
320
|
+
vortex file upload LOCAL... --to FOLDER [--overwrite] [--json]
|
|
321
|
+
vortex file delete PATH [--yes] [--json]
|
|
322
|
+
|
|
290
323
|
── Workspace ────────────────────────────────────────────────────────────────
|
|
291
324
|
vortex ls [app list filters] [--json] = app list --local
|
|
292
325
|
vortex clone APP... [--group --reclone --all --get-resources --open-urls --timeout]
|
|
@@ -300,7 +333,10 @@ vortex code [--refresh [--reset]] [-s]
|
|
|
300
333
|
── Server and setup ─────────────────────────────────────────────────────────
|
|
301
334
|
vortex [-s NAME] [--show-permissions] [--json] (the server's live status)
|
|
302
335
|
vortex --path (the workspace path)
|
|
303
|
-
vortex log [-n --source -m --errors-only|--debug-only|--info-only
|
|
336
|
+
vortex log [-n --source -m --search --errors-only|--debug-only|--info-only]
|
|
337
|
+
[--since D | --from WHEN] [--to WHEN] [--page N | --all-pages] [-k -d] [--json]
|
|
338
|
+
vortex weblog [-n -m [--regex] --file NAME] [--list | --all | -o PATH | -k [-d]] [--json]
|
|
339
|
+
vortex stats [--addin NAME] [--key KEY] [-k [-d]] [--json]
|
|
304
340
|
vortex execute CMD... | flush-cache | refresh-agenda | refresh-design APP_ID | schedule
|
|
305
341
|
[--json] (alias: ex)
|
|
306
342
|
vortex server list [--json]
|
|
@@ -419,6 +455,190 @@ The 8.0 flags (`--show-schedule`, `--refresh-agenda`, `--flush-cache`, `--refres
|
|
|
419
455
|
`--run`) were removed in 8.1. `app refresh` was `app refresh-design` in 8.1.0; the old
|
|
420
456
|
name still works.
|
|
421
457
|
|
|
458
|
+
### The server log
|
|
459
|
+
|
|
460
|
+
`vortex log` prints the newest entries in the server log (`PMALOG`) - through the gateway's
|
|
461
|
+
`GET logs` (`GatewaySystem`), or with a blank `gateway_path` a query through webdesign's SQL
|
|
462
|
+
route.
|
|
463
|
+
|
|
464
|
+
```
|
|
465
|
+
vortex log the last 10 entries
|
|
466
|
+
vortex log --since 2h --errors-only errors in the last two hours
|
|
467
|
+
vortex log --from 02:00 --to 03:00 --errors-only -n 500
|
|
468
|
+
what errored between 2 and 3 this morning
|
|
469
|
+
vortex log --from 2026-10-13 --to 2026-10-13 --search timeout
|
|
470
|
+
vortex log --since 1d --source agenda --all-pages -n 500 --json
|
|
471
|
+
vortex log -k new entries as they arrive (^C stops)
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
- **Times are the server's clock** - the clock `PMALOG` is stamped with, the gateway compares
|
|
475
|
+
against, and every entry is printed in. `--from`/`--to` take `HH:MM[:SS]` (today),
|
|
476
|
+
`YYYY-MM-DD` (`--to` a date alone means the whole day), `YYYY-MM-DD HH:MM[:SS]`, or ISO with
|
|
477
|
+
an offset (`2026-10-14T02:00+10:00`, `...Z`; it needs the date) for an exact instant. Both ends are inclusive.
|
|
478
|
+
`--since 30m|2h|3d|1w` (or `1h30m`) counts back from the server's now.
|
|
479
|
+
- **The server's clock decides.** `--since`, a time alone and a time with an offset are sent
|
|
480
|
+
as given and resolved by the gateway on its own clock (`vortex/gateway` 0.2.0+), which
|
|
481
|
+
replies with the window it applied; later pages and `-k` reuse that window. A date with a
|
|
482
|
+
time is sent as written. An older gateway ignores what it cannot read: the CLI then takes
|
|
483
|
+
the server's UTC offset from that reply (every entry carries it; when nothing matched, its
|
|
484
|
+
default window or one `rows=1` read) and reads the page again - one request more until the
|
|
485
|
+
gateway is updated. Without the gateway entries carry no offset, so this machine's is
|
|
486
|
+
assumed.
|
|
487
|
+
- **`--search TEXT`** matches the message, user or server name; `-m` the message only,
|
|
488
|
+
`--source` the source. All are case-insensitive "contains".
|
|
489
|
+
- **Bounded reads.** With none of `--since`/`--from`/`--to` the gateway reads only the last
|
|
490
|
+
24 hours (`PMALOG` is never pruned, and the gateway counts the matches on every request);
|
|
491
|
+
`--to` alone reads the 24 hours before it. `--since` goes back at most `520w`.
|
|
492
|
+
The summary after the table says which window was read and how many entries matched.
|
|
493
|
+
- **Paging** (gateway only). `-n` is the page size (max 500). `--page N` reads page N, newest
|
|
494
|
+
first; `--all-pages` reads every page, one request at a time, and stops after 20 (10,000
|
|
495
|
+
entries at `-n 500`) - narrow the window for the rest. An entry written while paging is
|
|
496
|
+
read twice and kept once. A blank `gateway_path` refuses both with `UNAVAILABLE`.
|
|
497
|
+
- **`--json`**: the same entries, oldest first. With any of the flags above the envelope also
|
|
498
|
+
carries `window` (`{from, to, default}` on the server's clock; `default` when the gateway's
|
|
499
|
+
24-hour window applied) and, through the gateway, `pager`
|
|
500
|
+
(`{page, pagesRead, pages, total, rows}`). Plain `vortex log --json` is unchanged.
|
|
501
|
+
- **`-k`** follows new entries after the first read (it can start from a window, but not take
|
|
502
|
+
`--to`, `--page` or `--all-pages`).
|
|
503
|
+
|
|
504
|
+
### The web log
|
|
505
|
+
|
|
506
|
+
`vortex weblog` prints the server's HTTP access log - the file `HTTPTextLog` names in
|
|
507
|
+
`puakma.config` - through the gateway's `GET logs?log=web` (`GatewaySystem`). Lines are printed
|
|
508
|
+
exactly as the server wrote them: their layout is the server's `HTTPLogFormat`, so the CLI
|
|
509
|
+
never parses them.
|
|
510
|
+
|
|
511
|
+
```
|
|
512
|
+
vortex weblog the last 20 lines of today's file
|
|
513
|
+
vortex weblog -n 200 -m /api/ the last 200 lines containing /api/
|
|
514
|
+
vortex weblog -m ' 50[0-9] ' --regex
|
|
515
|
+
vortex weblog --list the log files, newest first
|
|
516
|
+
vortex weblog --file weblog_20261013.log
|
|
517
|
+
vortex weblog --file weblog_20261013.log -o oct13.log the whole file, saved
|
|
518
|
+
vortex weblog -k new lines as they are written (^C stops)
|
|
519
|
+
vortex weblog -k -n 0 only lines written from now on
|
|
520
|
+
```
|
|
521
|
+
|
|
522
|
+
- **Tail, not search.** The gateway returns at most 256 KB per request and has no filter for
|
|
523
|
+
this log, so `-m` filters on this side and `-n` counts matching lines within the last
|
|
524
|
+
256 KB. For older lines or a rare match, `--all` reads the whole file in 256 KB pieces
|
|
525
|
+
(`-o PATH` saves it instead of printing). Without `-m`, `-o` is a byte-for-byte copy: the
|
|
526
|
+
gateway (0.2.0+) sends the bytes; an older one sends UTF-8 text, so a byte that is not
|
|
527
|
+
UTF-8 arrives as U+FFFD.
|
|
528
|
+
- **Following.** `-k` polls every `-d` seconds (default 3) for what was written since the last
|
|
529
|
+
request. Without `--file` it follows whichever file is current, so a date-stamped log that
|
|
530
|
+
rolls over at midnight is picked up: the rest of the old file, then the new one (until the
|
|
531
|
+
server writes the new day's first line, the old file is read on). A line still being
|
|
532
|
+
written is held back until it is complete.
|
|
533
|
+
- **`--json`**: the tail and `--all` give `{file, size, from, lines}`; `-o` gives
|
|
534
|
+
`{file, size, output, bytes}`; `--list` gives `{current, files: [{name, size, lastModified,
|
|
535
|
+
current}]}`. With `-k`, one envelope per line `{file, line}`, as for `vortex log -k`.
|
|
536
|
+
- **Refusals.** `NOT_CONFIGURED`: the server writes no access log (`HTTPTextLog` is unset).
|
|
537
|
+
`NOT_FOUND`: no such file - only names the `HTTPTextLog` pattern can produce are reachable.
|
|
538
|
+
A gateway too old for `log=web` answers with the server log, which the CLI reports as such.
|
|
539
|
+
- **Gateway only.** webdesign cannot read files, so a server with a blank `gateway_path` is
|
|
540
|
+
refused before anything is sent.
|
|
541
|
+
|
|
542
|
+
### Server statistics
|
|
543
|
+
|
|
544
|
+
`vortex stats` is a health check from the terminal: the time series each loaded addin keeps
|
|
545
|
+
in memory (the admin app's performance chart), through the gateway's `GET stats`
|
|
546
|
+
(`GatewaySystem`), then the server's disk space. One request per run, one row per statistic
|
|
547
|
+
and per disk:
|
|
548
|
+
|
|
549
|
+
```
|
|
550
|
+
$ vortex stats -s dev
|
|
551
|
+
dev at 2026-10-14 22:36:58 - addins: STATS, HTTP, AGENDA, WIDGIE, MAILER
|
|
552
|
+
Statistic Now Min Avg Max Span Trend
|
|
553
|
+
------------------------------- ----- ----- ----- ----- ------ --------------------
|
|
554
|
+
stats.cpuusageperminute 21.5 0 2.08 14.2 61m ▁▁▁▂▂▂▁▁▁▁▁▁▁▁▁▁▁▃▁█
|
|
555
|
+
stats.memoryappmbinuseperminute 455 270 438 623 61m ▆▅▅█▅█▆▆▇▆▆▇▇▆██▅▅▁▃
|
|
556
|
+
stats.threadcountperminute 78 75 80.8 128 61m ▁▁▁▅▄▅▅▅▅▅▅▅▅▅▄▃▃█▆▃
|
|
557
|
+
http.bytesouttotal 83.1M
|
|
558
|
+
http.hitsperminute 27 13 22.2 176 61m ▁▁▂▁▆▃▁▁▁▁▁▂▁▁█▁▁▅▅▅
|
|
559
|
+
...
|
|
560
|
+
|
|
561
|
+
Disk Size Used Avail Use% Type
|
|
562
|
+
--------------------- ------ ------ ------- ------ ------
|
|
563
|
+
/puakma (Puakma root) 24G 17G 7.3G 70% ext4
|
|
564
|
+
|
|
565
|
+
vortex stats --addin HTTP one addin (a short name, or its class name)
|
|
566
|
+
vortex stats --key stats.cpuusageperminute
|
|
567
|
+
vortex stats -k poll every 5 seconds and reprint (^C stops)
|
|
568
|
+
```
|
|
569
|
+
|
|
570
|
+
- **Columns.** `Now` is the newest period, still filling (this minute's hits so far) - or,
|
|
571
|
+
for a total like `http.bytesouttotal`, its value. `Min`/`Avg`/`Max` are over the periods
|
|
572
|
+
that have ended; `Span` is how far back the series goes, `Trend` its last 20 points. A `-`
|
|
573
|
+
means the statistic has no entries yet. Units are in the key (`mb`, `bytes`, `perminute`);
|
|
574
|
+
large numbers are shortened (`614K`, `11.4M`).
|
|
575
|
+
- **In memory only.** The server keeps a limited window (about the last hour of a
|
|
576
|
+
per-minute statistic) and starts again on a restart, so a short `Span` means a recent
|
|
577
|
+
restart.
|
|
578
|
+
- **Disks** (gateway 0.3.0). Every mounted local filesystem the server's JVM sees, read when
|
|
579
|
+
the request is answered, as `df -h` shows them: `Used` is size minus free, `Avail` what a
|
|
580
|
+
non-root user can still write, `Use%` used / (used + avail). The disk holding the Puakma
|
|
581
|
+
root is marked. One disk seen through several mounts (a container's overlay root over its
|
|
582
|
+
host disk) is listed once; memory, kernel, read-only and network filesystems are left out.
|
|
583
|
+
No history - the gateway keeps none. `--addin` and `--key` narrow the request to statistics,
|
|
584
|
+
so they show no disks; an older gateway sends none, which the overview says once.
|
|
585
|
+
- **`-k`** re-polls every `-d` seconds (default 5) and reprints, clearing the screen when the
|
|
586
|
+
output is a terminal.
|
|
587
|
+
- **`--json`**: `data` is the addins as the gateway sends them, every key present -
|
|
588
|
+
`[{name, class, statistics: [{key, captureType, created, lastUpdated, entries: [{from, to,
|
|
589
|
+
value}]}]}]` (`captureType`: `once`, `per-second`, `per-minute`, `per-hour`, `per-day`; a
|
|
590
|
+
`once` entry has no `from`/`to`) - and `time` (the server's clock) beside it, and `disks`
|
|
591
|
+
when the gateway sent them (`[{mount, name, type, totalBytes, usableBytes, freeBytes,
|
|
592
|
+
usedPct, puakmaRoot}]`). With `-k`, one envelope per poll, one per line.
|
|
593
|
+
- **Refusals.** `NOT_FOUND`: no addin of that name is loaded (`vortex stats` lists them).
|
|
594
|
+
`NOT_EXPOSED`: the gateway predates `GET stats` - update `vortex/gateway`. A blank
|
|
595
|
+
`gateway_path` is refused before anything is sent.
|
|
596
|
+
|
|
597
|
+
### Server files
|
|
598
|
+
|
|
599
|
+
`vortex file` works on the server's filesystem below the Puakma root (the parent of
|
|
600
|
+
`config/`), through the gateway's `files` route. **Admin only**, and gateway only: webdesign
|
|
601
|
+
cannot read or write files, so a server with a blank `gateway_path` is refused before anything
|
|
602
|
+
is sent.
|
|
603
|
+
|
|
604
|
+
```
|
|
605
|
+
vortex file list the Puakma root: folders first, then files
|
|
606
|
+
vortex file list logs
|
|
607
|
+
vortex file get addins/readme.txt its text on stdout, its metadata on stderr
|
|
608
|
+
vortex file get lib/x.jar --hash --meta size, modified time and SHA-256 only
|
|
609
|
+
vortex file download logs/big.log -o ~/tmp/
|
|
610
|
+
vortex file upload a.jar b.jar --to addins --overwrite
|
|
611
|
+
vortex file delete addins/old.jar shown, then confirmed (--yes without a terminal)
|
|
612
|
+
```
|
|
613
|
+
|
|
614
|
+
- **Paths** are relative to the Puakma root (`/` is the root itself). The gateway resolves
|
|
615
|
+
them canonically - symlinks and `..` followed - and anything that ends up outside the root
|
|
616
|
+
is `NOT_FOUND`, exactly like a path that does not exist.
|
|
617
|
+
- **`get`** prints the text only for a file up to 2 MB with no NUL byte in its first 8 KB,
|
|
618
|
+
decoded as UTF-8. Anything else is `TOO_LARGE` or `BINARY` (exit 1, with the metadata):
|
|
619
|
+
use `download`, which streams the exact bytes to disk at any size. `--meta` asks only for
|
|
620
|
+
the metadata; `--hash` adds the SHA-256.
|
|
621
|
+
- **`download`** writes beside the destination and moves the file into place once it has all
|
|
622
|
+
arrived, so a failed download leaves nothing behind. An existing local file is kept unless
|
|
623
|
+
`--overwrite`.
|
|
624
|
+
- **`upload`** sends every file in one request, into the folder under its own name (missing
|
|
625
|
+
folders are created). The gateway checks them all before writing any: a name already in
|
|
626
|
+
the folder is `EXISTS` and nothing is written, unless `--overwrite` - and then **each old
|
|
627
|
+
file is kept beside the new one as `name.yyyyMMddHHmmss`**, the only undo there is. The
|
|
628
|
+
SHA-256 the server reports is checked against the local file (`CORRUPT` otherwise).
|
|
629
|
+
- **`delete`** removes one file, symlink (never what it points to) or empty folder
|
|
630
|
+
(`NOT_EMPTY` otherwise). It is final: **no backup, no undo**. The entry is shown and
|
|
631
|
+
confirmed first; without a terminal `--yes` is required (`CONFIRMATION_REQUIRED`).
|
|
632
|
+
- `upload` and `delete` are writes: a protected default server must be named with `-s`.
|
|
633
|
+
- **Nothing under the root is hidden**, including `config/puakma.config` (the system database
|
|
634
|
+
login), keystores and `.pmx` backups. `get` prints what you ask for - nothing reads more than
|
|
635
|
+
the one path given.
|
|
636
|
+
- **`--json`**: `list` gives `{type: "dir", root, path, entries: [{name, type, size, modified,
|
|
637
|
+
path}], truncated?}` (at most 5000 entries); `get` gives `{type: "file", root, path, name,
|
|
638
|
+
size, modified, sha256?, tooLarge? | binary, text?}`; `download` gives `{path, output, size,
|
|
639
|
+
sha256}`; `upload` gives `{path, files: [{name, path, size, sha256, replaced, backup?}]}`;
|
|
640
|
+
`delete` gives `{path, type, size?}`.
|
|
641
|
+
|
|
422
642
|
### Local clones stay in sync
|
|
423
643
|
|
|
424
644
|
Server commands never need a clone. When the application **is** cloned, every write runs in
|
|
@@ -695,8 +915,9 @@ one applies:
|
|
|
695
915
|
- A write or console command never reaches it by default: when a protected server is only
|
|
696
916
|
the `vortex use` default, those commands refuse to run until it is named with `-s`.
|
|
697
917
|
|
|
698
|
-
|
|
699
|
-
against production with an identity whose roles fit
|
|
918
|
+
Only deletes are confirmed (`--yes` without a terminal); other writes are not - the gateway's
|
|
919
|
+
roles are the protection, so run agents against production with an identity whose roles fit
|
|
920
|
+
the job.
|
|
700
921
|
|
|
701
922
|
### Backend: gateway or webdesign
|
|
702
923
|
|
|
@@ -719,8 +940,8 @@ webdesign's `/system/webdesign.pma/vortex/<path>` - with three things in front o
|
|
|
719
940
|
lets an id from one application be used under another (`NOT_FOUND`), and runs exactly one
|
|
720
941
|
`SELECT`/`INSERT`/`UPDATE`/`DELETE` per SQL request (`SQL_NOT_ALLOWED`: DDL, `WITH`, and
|
|
721
942
|
any `;`).
|
|
722
|
-
- **Its own routes:** `whoami` (a bare `vortex`), the server
|
|
723
|
-
`.pmx` export and import.
|
|
943
|
+
- **Its own routes:** `whoami` (a bare `vortex`), the server and web logs (`log`, `weblog`), the console (`execute`),
|
|
944
|
+
addin statistics (`stats`), `.pmx` export and import, and the server's files (`file`, `Admin`).
|
|
724
945
|
|
|
725
946
|
On a server with a blank `gateway_path`:
|
|
726
947
|
|
|
@@ -730,8 +951,11 @@ On a server with a blank `gateway_path`:
|
|
|
730
951
|
| `db query` | a CLI-side guard replaces the gateway's: one `SELECT`/`INSERT`/`UPDATE`/`DELETE` statement, refused otherwise with `SQL_NOT_ALLOWED` before anything is sent |
|
|
731
952
|
| `app export` | webdesign's `ExportPMX` |
|
|
732
953
|
| `vortex` (no command) | the console `status` command over SOAP (`soap_path`); `--show-permissions` says "no gateway: webdesign direct, no role checks" |
|
|
733
|
-
| `log` | a `PMALOG` query through webdesign's SQL route, on the system-database connection owned by the ungrouped `puakma` application (found once per run) |
|
|
954
|
+
| `log` | a `PMALOG` query through webdesign's SQL route, on the system-database connection owned by the ungrouped `puakma` application (found once per run); `--since`/`--from`/`--to`/`--search` go into the query, `--page`/`--all-pages` are refused |
|
|
734
955
|
| `execute` | the console command over SOAP |
|
|
956
|
+
| `weblog` | unavailable: webdesign cannot read the access log |
|
|
957
|
+
| `stats` | unavailable: webdesign has no route to the addin statistics |
|
|
958
|
+
| `file` | unavailable: webdesign cannot read or write files |
|
|
735
959
|
| `app import` | unavailable (`UNAVAILABLE`) |
|
|
736
960
|
|
|
737
961
|
Without the gateway there are no role checks, no system-database block and no cross-app
|