@sjawhar/pi-legion-envoy 5.24.1 → 5.24.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/legion.js CHANGED
@@ -33523,7 +33523,7 @@ import { logger } from "@oh-my-pi/pi-utils";
33523
33523
  // package.json
33524
33524
  var package_default = {
33525
33525
  name: "@sjawhar/pi-legion-envoy",
33526
- version: "5.24.1",
33526
+ version: "5.24.2",
33527
33527
  type: "module",
33528
33528
  omp: {
33529
33529
  extensions: [
@@ -43,7 +43,15 @@ within one textblock; split changes that span separate blocks into separate oper
43
43
  `block` plus a zero-based `index`. An insert or move anchor is a quote, `"start"`, `"end"`, `"heading:Title"`, or `"block:<id>"`.
44
44
  Ordinary inserts create a sibling block before or after the quote, heading, or block's enclosing document block, and a move lands the
45
45
  block at that same boundary; `"start"` and `"end"` select the document edges. At a table-cell quote, a body-row fragment (no header or
46
- delimiter rows) extends that table before or after the matched row instead; short rows are padded, wider rows are rejected, and deleting
46
+ delimiter rows) extends that table before or after the matched row instead, decided in three steps. A fragment whose every line yields
47
+ a cell and an unescaped `|` (a lone `|` yields no cell, and a line whose only pipe is `\|` has no separator), with no line a delimiter
48
+ row of three hyphens or more a cell, is parsed as rows of that table. What that parse refuses is refused: a row holding text past the
49
+ table's width as `TABLE_WIDTH` (blank cells there are dropped), a line the table cannot hold as a row (indented code, `2. | a | b |`)
50
+ as `INVALID_OP`. When it refuses nothing and reads every line as a row, the rows are inserted, short ones padded. Any other fragment is
51
+ read on its own as blocks, which are inserted after the table or refused as such blocks would be: a whole table you paste there, its
52
+ delimiter row three hyphens or more a cell, becomes a second table, while one with any delimiter cell of one or two hyphens (`| - |`,
53
+ `| --- | - |`) passes the first step, so its header and delimiter rows are inserted as rows of the table, or refused as `TABLE_WIDTH`
54
+ where it is wider than the table. Deleting
47
55
  a cell's quoted text removes only that text. `delete_row` / `delete_column` instead mutate their named table in place, keeping the
48
56
  table's block id. A row index includes the header: row `0` is the header and its deletion promotes the first body row. The last body
49
57
  row and any row's last column cannot be deleted. An index is required. A missing, non-integer, negative, or out-of-range index is
@@ -128,6 +128,14 @@ dropped and the URL keeps `|text`. A backslash-escaped `\<https://example.com|te
128
128
  document but comes back re-escaped (`\<`) from `dispatch_doc_read`. A Slack mrkdwn draft, or any other payload that is not Markdown,
129
129
  still belongs inside a fenced code block, where it survives verbatim both ways.
130
130
 
131
+ A table cell ends at every `|` not written `\|`, inside inline code and links too, so write
132
+ `` `x: Promise<void> \| undefined` ``, never `` `x: Promise<void> | undefined` ``, in a cell. A row
133
+ holding text in a cell past its table's width is refused rather than stored without it, naming the
134
+ row: write a `|` inside a cell as `\|`, or, where the row really has more cells, give the header and
135
+ delimiter rows as many. Blank cells past the width are dropped, on every path. A spec, an upload or
136
+ a version answers `INVALID_MARKDOWN`, an insert of blocks `INVALID_OP` on `markdown`, and an insert
137
+ of bare table rows `TABLE_WIDTH`, which names the cell counts only.
138
+
131
139
  ## A document that is reloading
132
140
 
133
141
  These calls can answer `DOC_SERVICE_UNAVAILABLE` (HTTP 503), because each writes a document inside its
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/pi-legion-envoy",
3
- "version": "5.24.1",
3
+ "version": "5.24.2",
4
4
  "type": "module",
5
5
  "omp": {
6
6
  "extensions": [