Skip to content

[ADFA-365] - project build test with tabbed activity Project - #7

Merged
romanlapa merged 1 commit into
stagefrom
feature/ADFA-365-tabbed-activity
Feb 13, 2025
Merged

romanlapa merged 1 commit into
stagefrom
feature/ADFA-365-tabbed-activity

Conversation

@YahorZCzygunki

Copy link
Copy Markdown
Contributor

No description provided.

@romanlapa
romanlapa merged commit ba7bd0e into stage Feb 13, 2025
@hal-eisen-adfa
hal-eisen-adfa deleted the feature/ADFA-365-tabbed-activity branch July 4, 2025 16:40
@A7med3H A7med3H mentioned this pull request Jun 9, 2026
jatezzz pushed a commit that referenced this pull request Jun 22, 2026
[ADFA-365] - project build test with tabbed activity Project
jatezzz added a commit that referenced this pull request Jul 17, 2026
Fan-out, adapter, and plugin-API fixes from the ProjectSearchExtension review:

- Guard plugin results against null elements (mapNotNull) and wrap the collection block in a logging try/catch so a bad element no longer kills the whole fan-out silently. (#1)
- buildRows buffers each section's rows and emits the header only when a group exists, skipping blank titles -- no more orphan/blank headers suppressing the empty state. (#2)
- Move the fan-out to lifecycleScope so a slow plugin can't pin a destroyed Activity/ViewModel or post to a dead Activity. (#3)
- Keep the search progress indicator up when the built-in search is empty but plugins are enabled, so a plugin-only match doesn't flash a terminal "no results" state. (#4)
- SearchListAdapter is now a ListAdapter + DiffUtil reused across emissions; the two-phase publish diffs instead of reallocating, preserving scroll and already-run highlights. (#5)
- Collapse the adapter constructors to one clicks ctor plus a thin map convenience ctor; drop the dead keys param and nullable-value scrub. (#6)
- Replace the blocking .get(10s) with a non-blocking withTimeoutOrNull + await so no commonPool worker is tied up. (#7)
- Trim pipe-split filter tokens at the source (endsWith(" kt") matched nothing in built-in search too); align ProjectSearchExtension KDoc with actual behavior and drop the non-ASCII em-dash. (#9, #10)
jatezzz added a commit that referenced this pull request Jul 20, 2026
Fan-out, adapter, and plugin-API fixes from the ProjectSearchExtension review:

- Guard plugin results against null elements (mapNotNull) and wrap the collection block in a logging try/catch so a bad element no longer kills the whole fan-out silently. (#1)
- buildRows buffers each section's rows and emits the header only when a group exists, skipping blank titles -- no more orphan/blank headers suppressing the empty state. (#2)
- Move the fan-out to lifecycleScope so a slow plugin can't pin a destroyed Activity/ViewModel or post to a dead Activity. (#3)
- Keep the search progress indicator up when the built-in search is empty but plugins are enabled, so a plugin-only match doesn't flash a terminal "no results" state. (#4)
- SearchListAdapter is now a ListAdapter + DiffUtil reused across emissions; the two-phase publish diffs instead of reallocating, preserving scroll and already-run highlights. (#5)
- Collapse the adapter constructors to one clicks ctor plus a thin map convenience ctor; drop the dead keys param and nullable-value scrub. (#6)
- Replace the blocking .get(10s) with a non-blocking withTimeoutOrNull + await so no commonPool worker is tied up. (#7)
- Trim pipe-split filter tokens at the source (endsWith(" kt") matched nothing in built-in search too); align ProjectSearchExtension KDoc with actual behavior and drop the non-ASCII em-dash. (#9, #10)
jatezzz added a commit that referenced this pull request Jul 20, 2026
…#1528)

* feat(search): add ProjectSearchExtension API for plugin result sections
Fan out to enabled plugins after built-in search and render their sections.

* style: apply spotless formatting to search extension files

* fix(search): address review findings on plugin search extension

- Bound plugin search fan-out with a 10s timeout and drop results from superseded searches via a generation counter in EditorViewModel
- Guard against Java plugins completing their future with null
- Flatten SearchListAdapter's nested RecyclerView into Row.Match rows so match rows recycle instead of inflating all at once
- Narrow catch(Throwable) to catch(Exception) per REVIEW.md
- Document plugin-api search contract types; coordinates are 0-based, end-exclusive
- Marshal plugin crash recording to the UI thread and drop the unread searchResults flow.

* fix(search): address review feedback on search results list

- Make the group row's LinearLayout the layout root so the click listener on binding.root receives taps (the clickable child was consuming them) and drop the redundant RelativeLayout wrapper
- Log highlight failures via SLF4J and keep the plain-text preview instead of overwriting the line with the matched text
- Skip files with empty match lists to avoid dangling group headers
- Hide the decorative file icon from accessibility services

* fix(search): address code-review findings on plugin search

Fan-out, adapter, and plugin-API fixes from the ProjectSearchExtension review:

- Guard plugin results against null elements (mapNotNull) and wrap the collection block in a logging try/catch so a bad element no longer kills the whole fan-out silently. (#1)
- buildRows buffers each section's rows and emits the header only when a group exists, skipping blank titles -- no more orphan/blank headers suppressing the empty state. (#2)
- Move the fan-out to lifecycleScope so a slow plugin can't pin a destroyed Activity/ViewModel or post to a dead Activity. (#3)
- Keep the search progress indicator up when the built-in search is empty but plugins are enabled, so a plugin-only match doesn't flash a terminal "no results" state. (#4)
- SearchListAdapter is now a ListAdapter + DiffUtil reused across emissions; the two-phase publish diffs instead of reallocating, preserving scroll and already-run highlights. (#5)
- Collapse the adapter constructors to one clicks ctor plus a thin map convenience ctor; drop the dead keys param and nullable-value scrub. (#6)
- Replace the blocking .get(10s) with a non-blocking withTimeoutOrNull + await so no commonPool worker is tied up. (#7)
- Trim pipe-split filter tokens at the source (endsWith(" kt") matched nothing in built-in search too); align ProjectSearchExtension KDoc with actual behavior and drop the non-ASCII em-dash. (#9, #10)

* style(search): expand when branches to block form for ktlint

Spotless ratchets from origin/stage; stage was reformatted after this branch diverged, so CI flagged the single-expression when branches in onUpdateWadbConnectionStatus and the multi-line FileOpResult.Success branch. Expand them to ktlint's canonical block form so the file is fully canonical and passes under any ratchet base.

* fix: reported violations for spotless
davidschachterADFA added a commit that referenced this pull request Nov 17, 2026
Revision 3 of the sqlite-js terminal package carries the independent
review's test fixes; its library is unchanged. Stage's 1.4.2-3 installs
on the phone and reports that version. The package reaches main through
terminal-packages #7, since #6 merged into an already-merged base.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw
davidschachterADFA added a commit that referenced this pull request Nov 17, 2026
The terminal package is now in production (terminal-packages run
44014027669), byte-identical to stage's. Row 9 no longer says production
gets it later: it records the install from production as the Steps to
QA write it, with every scenario passing. Row 10 adds the production
1.4.2-3 and notes that #7 brought the package to main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw
davidschachterADFA added a commit that referenced this pull request Nov 17, 2026
* ADFA-7083: Add sqlite-js documentation pages (draft)

Four Help+Manual style pages for documentation.db, under i/ and linked
from the Terminal page: an overview with install, load and safety, the
sqlite-js function reference, how SQL and JavaScript values convert and
what the engine supports, and a JavaScript introduction.

pages/*.md is the source. build.py turns it into the JSON facts that
helpmanual-topic.peb renders; apply.py adds the rows to a copy of
documentation.db in one transaction, compressed against its dictionary,
and appends a link to i/terminal-top.html. Run on a copy of the current
database: 4 rows added, 1 changed, integrity_check ok, rerun is
idempotent. test_examples.py runs every SQL example and checks links
against the sqlite-js 1.3.7-1 host build: 32 of 32 pass.

Not verified yet: the technical claims (see CLAIMS.md for each and how
it was checked), the pages in the app, and the phone install steps. The
table of contents and search index are Help+Manual output and do not
list the new pages yet.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Record phone check results in CLAIMS.md

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Credit quickjs-ng (MIT) and name the license files

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Fix what the accuracy review found

Probed the host build of sqlite-js 1.3.7-1 for each claim CLAIMS.md
rested on code or nothing:
- js_ functions are blocked only in views and triggers stored in a
  database; TEMP ones can use them.
- A redefinition must come before js_init_table(1), and replaces the
  stored version.
- A BigInt result outside 64 bits wraps around silently (new tested
  example); NaN becomes NULL.
- js_set_memory_limit rejects negatives; js_set_max_stack_size reads
  non-numeric text as 0, which turns the check off.
- An aggregate over no rows returns NULL without running init or final.
- "One kind of number" now allows for BigInt; the opening no longer
  says JavaScript is quicker than Java or Kotlin.
CLAIMS.md records each probe; db.exec running readfile/writefile is now
shown by output.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Record apt install from the stage repo

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Document db.exec's deferred run and silent errors, and 1.3.7-2

- db.exec runs its statement only at next() or toArray(); a new tested
  example shows that an INSERT without next() adds nothing.
- A run-time error (a failed UNIQUE constraint, an integer overflow)
  makes next() return false and toArray() return the rows before it,
  with no error; SQL errors are reported (F20, filed on ADFA-7081).
- js_set_max_stack_size: as in sqlite-js 1.3.7-2 (patch 0007), sizes the
  stack cannot hold are errors that name the largest size; 0 still
  turns the check off. Seven fixes, not six.

These pages now describe 1.3.7-2, so they should ship with it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Say db.exec errors are thrown (sqlite-js 1.3.7-3), eight fixes

Patch 0008 (terminal-packages PR #6, sqlite-js 1.3.7-3) makes next() and
toArray() throw when the statement fails. Before it, next() returned
false and toArray() returned the rows before the error. The javascript
page now says so, with a tested example that catches a failed UNIQUE
insert. The example fails on a host build without 0008. The functions
page lists the eighth fix.

CLAIMS.md: test_examples.py passes 35 of 35 on a host build of 1.3.7-4.
Phone results: 1.3.7-2 passed 87 of 87, which closes the
js_set_max_stack_size TODO. 1.3.7-3 and 1.3.7-4 passed 91 of 91 on
aarch64 and on arm, run as a 32-bit process.

README: the pages document 1.3.7-3 and later.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Address the reviews of PR 2241

Independent review and CodeRabbit:
- Examples with const, let or class run inside braces, so a reader can
  run them again in the same session without `redeclaration of`. The
  intro and the javascript page say why.
- The redefinition steps no longer end in js_init_table(1) failing: it
  runs once per session and fails if a stored function already exists.
- Aggregate and window functions cannot see js_eval variables (said).
- Months count from 0; true shows as 1; the stack-size summary says 0
  is accepted; `.shell echo $PREFIX/lib/sqlite-js` from the sqlite3
  prompt; the upstream address shown once; the top page names the
  version the pages describe and how to check it.
- apply.py refuses a database below version 2, stamps LastChange's
  content-i and wholedb rows instead of adding rows, and only when
  something changed, so a second run changes nothing. The Terminal
  page's link gets a heading of its own, since its other sections
  start collapsed.
- test_examples.py also runs each example that creates nothing a
  second time, checks the parent, prev and next links, and prints the
  right output on failure.

test_examples.py: 64 of 64 on a 1.3.7-4 host build. The second-run
checks failed on the five examples before the braces; a misspelled
next link fails. apply.py on copies of documentation.db 3.0.0: the
second run leaves the file byte-identical; a database declaring 1.9.0
is refused unchanged. All pages render with Pebble 4.1.1 from the
resulting database.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Compare only the output of the run under test

CodeRabbit on PR 2241: the second-run check compared the end of the
combined output, so a repeat that printed nothing passed on the first
run's output. test_examples.py now prints a boundary just before the
run under test, in both runs, and compares only what follows it.

Checked: CodeRabbit's example (a query that prints 42 once and nothing
when repeated) passes the old check and fails the new one; the pages
pass 64 of 64 on a 1.3.7-4 host build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Describe sqlite-js 1.3.7-p20261112, built from upstream main

The terminal package is now built from upstream's main branch of
2026-11-12 (c8ae85a), which merged our fixes, instead of 1.3.7 with
patches. The pages said it was "version 1.3.7 of the upstream project
with eight fixes, which were also sent to the upstream project".

- Functions page: the last section compares with 1.3.7 and says the code
  is upstream's of 12 November 2026, with fixes from App Dev For All;
  js_version notes that the newer package still reports 1.3.7; and
  js_set_memory_limit says a limit below memory that variables still
  hold leaves no room until raised.
- Overview page: 1.3.7-p20261112 is named as a later version, and the
  credits line no longer says "some fixes".
- CLAIMS.md: each changed claim and its check. README.md: the version.

Checked on host builds of 1.3.7-p20261112 and 1.3.7-5: test_examples.py
passes 64 of 64 on both; the lowered-limit sentence holds on both;
js_version() gives 1.3.7; dpkg sorts 1.3.7-p20261112 after 1.3.7-3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Give the version as dpkg shows it, 1.3.7-p20261112-0

termux-packages appends -0 to a version that contains a hyphen, so the
published package, and `dpkg -s sqlite-js`, show 1.3.7-p20261112-0.
Stage's Packages index lists that for aarch64 and arm (CI run
43183024875). The overview page, the js_version note, README.md and the
two CLAIMS.md rows now give that version, with that evidence.

test_examples.py: 64 of 64 on the host build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Describe sqlite-js 1.4.1, the release with our fixes

Upstream released 1.4.0 and 1.4.1 on 2026-11-12. Both contain c8ae85a,
and their C code differs from it only in the version string, so the
terminal package moves to 1.4.1 (terminal-packages #6). That answers both
comments from the independent review:

- Overview page, README.md and CLAIMS.md: the pages now describe 1.4.1
  and later. "1.3.7-3 and later" was wrong: 1.3.7-3 to 1.3.7-5 lack the
  fix for a lowered memory limit (upstream ef06558).
- Functions page: js_version() gives 1.4.1, so the note that a newer
  package still reports 1.3.7 is gone. The last section is now "What
  changed in sqlite-js 1.4" and says that 1.4.0 includes our fixes.
- CLAIMS.md: the probes that cited older builds were run again on 1.4.1,
  with the same results: redefinition, js_init_table(1) twice,
  js_set_max_stack_size's inputs and recursion, the held-memory limit,
  db.exec errors and variable sharing.

test_examples.py: 64 of 64 on a host build of 1.4.1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Note that the examples pass with the package's two patches

The terminal package is 1.4.1 with two patches (terminal-packages #6):
the stack check and garbage collection. test_examples.py passes 64 of 64
on a host build with them, as on 1.4.1 without them, and no page claim
changes. CLAIMS says so. The pages and the test database are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Say that a PRAGMA can take effect in db.exec itself

CodeRabbit: db.exec prepares its statement at once, and a PRAGMA that
changes a setting of the connection takes effect then, without next()
or toArray(). Checked on 1.4.1 (sqlite3 3.46.1): busy_timeout,
foreign_keys and cache_size take effect, user_version and
application_id do not. The JavaScript page and CLAIMS say so.
test_examples.py passes 64 of 64, and the test database is rebuilt.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Say that only some PRAGMAs take effect in db.exec

CodeRabbit: "a PRAGMA that changes a setting of the connection" was too
broad. journal_mode is such a setting, and takes effect only when the
statement is stepped: with the C API on SQLite 3.49.1, PRAGMA
journal_mode=OFF prepared but not stepped leaves the mode delete. The
page now says that some PRAGMAs take effect already in db.exec, and
that which ones do depends on the PRAGMA; CLAIMS has the probe.
test_examples.py passes 64 of 64, and the test database is rebuilt.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Say that PRAGMA foreign_keys does nothing inside a transaction

CodeRabbit: the page gives PRAGMA foreign_keys = ON as an example of a
PRAGMA that takes effect in db.exec, and SQLite makes it a no-op inside
a transaction or savepoint, with no error. Checked on 1.4.1 (sqlite3
3.46.1): through db.exec it stays 0 after BEGIN or SAVEPOINT, and
becomes 1 outside a transaction. The page now says to set it before
BEGIN or SAVEPOINT, as CodeRabbit suggested; CLAIMS has the probe.
test_examples.py passes 64 of 64, and the test database is rebuilt.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Let apply.py add the link to the current documentation.db

The phone test found that apply.py failed on the database a current
build ships (wholedb 2026-11-02). It reads i/terminal-top.html as JSON,
the template context of databases up to 2026-10-16, but every page there
is now a finished Help+Manual page (HTML). Those databases also store
i/jstopics/<page>.js (365 of them), which the help viewer loads to move
between pages. So even a terminal-top.html with the link would not show
it in the app.

apply.py now:
- adds the section to the HTML page at the end of its topic body
  (before the skin's hmpagebody_scroller end), keeping the BOM;
- adds it to a stored i/jstopics/terminal-top.js too, at the end of its
  hmBody string, escaped as Help+Manual writes it;
- leaves JSON databases as before: the result is byte-identical, and the
  app renders their jstopics files from the page;
- finds an existing section by its anchor, id="sqlite-js", so a second
  run changes nothing in either form.

The new pages stay template contexts, which the app renders with
helpmanual-topic.peb (id 3607 there), and their jstopics files are
rendered from them. Checked on a copy of the phone's database: both
files get the section, the jstopics file evaluates in Node with it at
the end of hmBody, and a second run changes nothing. In the app on the
phone, the Terminal page shows the section and its link opens the pages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Keep the pages whole at font scale 2.0

Read through in the app on a phone at font scale 1.0 and 2.0. At 2.0,
three long addresses ran off the right edge, and part of each was cut
off: github.com/sqliteai/sqlite-js on the top page, the Apache license
URL in the reference's credits, and the MDN guide's URL on the basics
page. They are reworded to name the project, the license and the site
without the long addresses. The license texts are installed with the
package, as the credits say.

The result-set table on the JavaScript page broke the method names
mid-word, at 1.0 too ("toArra" / "y()"). It is now a list, which keeps
each name whole at both scales.

test_examples.py passes 64 of 64. CLAIMS records the phone check and
the apply.py run on the current database.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Require helpmanual-jstopic.peb before adding the pages

CodeRabbit: the app renders the new pages' jstopics files, which the help
viewer loads to move between pages, with helpmanual-jstopic.peb, and
answers 404 without it. apply.py checked only helpmanual-topic.peb, so it
would add pages to a database where moving to them fails. It now refuses
such a database. Checked: a copy of the current database without the
template is refused and left unchanged; the current and the 3.0.0
databases still take the pages, and a second run changes nothing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Describe sqlite-js 1.4.2

Upstream released 1.4.2 with App Dev For All's stack, garbage
collection and interrupted result set fixes (sqliteai/sqlite-js #22 to
#24) and the maintainer's fix for issue #25, and the terminal package
moves to it with no patches. The pages now say:

- top: they describe 1.4.2 and later.
- functions: js_version() gives 1.4.2; js_set_max_stack_size allows at
  most 1 MB when the stack has no limit (ulimit -s unlimited); "What
  changed in sqlite-js 1.4" lists 1.4.2's five differences from 1.4.1.
- javascript: a db.exec result set lasts only until the call into
  JavaScript that created it returns, and reading it later throws "The
  result set was closed when the call into JavaScript that created it
  returned", with a tested example; Variables says a variable cannot
  keep a result set open.

test_examples.py: 66 of 66 on a host build of plain 1.4.2 (28 examples,
19 run twice, 19 links). On 1.4.1 the js_version and kept result set
examples fail, as they should. Probed on 1.4.2: the PRAGMA claims hold,
an INSERT without next() still adds nothing, a result set read to its
end still gives next() false, and under ulimit -s unlimited the stack
error names 1048576. CLAIMS.md records each check; the window function
crash fix rests on 1.4.2's code and changelog, since the saved
reproducer did not crash the 1.4.1 host build either.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Say how long a result set lasts in nested calls

From the independent review of 139870b (one medium finding, the rest
low), each checked on the 1.4.2 host build:
- F01 (medium): a result set made by a function that SQL in another
  call's db.exec runs lasts until that outer call returns, not until
  the function returns. The Run SQL section says so, and the Variables
  bullet and "What changed" item say "the outermost call".
- F02: what still reports no more rows is a result set whose next()
  returned false, or whose toArray() ran. One whose rows were all read
  but whose next() never returned false throws in a later call.
- F03: after Ctrl-C a kept result set throws "interrupted", not the
  "closed" message.
- F04 to F06: CLAIMS.md records the window-function crash as reproduced
  (1.4.1 segfaults within 60 turns of the reviewer's probe; 1.4.2
  passes), the 1.4.2 source and probes in its legend, and the 1.4.2
  version check; README.md says 1.4.2 and later.

test_examples.py: 66 of 66 on 1.4.2; on 1.4.1 the same 4 fail as
before, as they should. build.py builds the pages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Record the 1.4.2-1 package in CLAIMS.md

The package is now 1.4.2-1: revision 1 ships its new tests and README.
dpkg sorts 1.4.2-1 above 1.4.2, so the pages' "1.4.2 and later" still
holds; on the phone, dpkg-query reports 1.4.2-1 after installing from
stage. No page changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Document result sets that end after an error or a full read

A result set read to its end still reports no more rows in a later call.
A result set whose next() or toArray() threw also reports no more rows
(next() false, toArray() []) with no error, so catch errors where they
happen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Record the 1.4.2-2 package in CLAIMS.md

terminal-packages #6 revision 2 (the review's test fixes) is on stage,
and the phone reports 1.4.2-2 after the upgrade from 1.4.2-1. The pages
say 1.4.2 and later, so they are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Record the 1.4.2-3 package in CLAIMS.md

Revision 3 of the sqlite-js terminal package carries the independent
review's test fixes; its library is unchanged. Stage's 1.4.2-3 installs
on the phone and reports that version. The package reaches main through
terminal-packages #7, since #6 merged into an already-merged base.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7083: Record the production sqlite-js package in CLAIMS.md

The terminal package is now in production (terminal-packages run
44014027669), byte-identical to stage's. Row 9 no longer says production
gets it later: it records the install from production as the Steps to
QA write it, with every scenario passing. Row 10 adds the production
1.4.2-3 and notes that #7 brought the package to main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants