@beyondwork/wb-cli 0.1.45 → 0.1.47

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.1.47
4
+
5
+ - `query "<sql>"` runs one read-only SQL query on the application data of the checkout's workblock and prints the rows as a table, or as JSON with `--json`. It reads the development data environment unless `--env <name>` names another. It returns at most 1,000 rows and says when the query found more.
6
+ - `query --named <Repository>.<name>` runs a named query of the checkout's branch as last pushed, instead of `<sql>`.
7
+ - `query --param name=value` gives the parameter `@name` its value, for `<sql>` and for `--named`. Repeat it for each parameter. A value that parses as JSON is sent as JSON, such as `10`, `true` or `["a","b"]`; any other value is text.
8
+ - On a tenant that cannot answer the query yet, `query` says so and changes nothing.
9
+ - `query` prints a line break or a tab in a value or a column name as `\n` or `\t`, so each row stays on one line.
10
+ - The output and the error messages of every command print control characters as escapes, such as `\u001b`, in text and in JSON, so no workblock value can send commands to the terminal. Line breaks and tabs stay as they are.
11
+
12
+ ## v0.1.46
13
+
14
+ - `clone` and `branches` accept the link of a module in a Space (`https://<tenant>/w/spaces/<space>/app/<module-id>`). They find the workblock behind the module and print its Studio URL. `clone` checks out the branch that the Space runs for you, unless `--branch` names another.
15
+ - `api upsert_space` refuses a body that would erase the Space's slug, description, icon or groups, because the verb replaces the whole Space and the platform keeps no earlier layout. `""` or `[]` clears a field on purpose.
16
+ - `api upsert_space` refuses a body whose `updated_at` shows that someone saved the Space after you read it, and a group or module without an `id`.
17
+ - The `bw-workblock` skill describes Spaces: how to go from a Space link to the workblock, how to change a Space's menu, how to add a workblock to a Space, and who can open it.
18
+
3
19
  ## v0.1.45
4
20
 
5
21
  - `clone` and `pull` bring the real commits of the branch into the checkout, so `git log`, `git blame` and `git show` show the platform's commit IDs, authors, dates and messages. A message stored beside a commit shows as a git note. The checkout's newest commit is wb-cli's own: it folds the platform's manifests into one `manifest.yaml`.