Commit graph

324 commits

Author SHA1 Message Date
Gianguido Sorà
916c22896a
apps/transientdisk: app to demonstrate userspace usb mass storage api
Exposes a 1.44mb usb drive, that survives until you either shutdown
the device, or change app.
2023-01-26 19:31:40 +01:00
Gianguido Sorà
7eef972065 usb-device-xous: implement primitive for apps-based block devices 2023-01-24 17:30:35 +01:00
bunnie
70d5490bbb Merge branch 'main' of github.com:betrusted-io/xous-core into main 2023-01-20 18:13:59 +08:00
bunnie
f542943df1 fix search criteria to match case-insensitive listing 2023-01-20 18:13:39 +08:00
bunnie
a62251e563
Merge pull request #301 from betrusted-io/tmarble/issue-300
mtxcli: chat room updates asynchronously
2023-01-20 15:16:53 +08:00
Tom Marble
168b1a7f5c
mtxcli: chat room updates asynchronously
Added more predefined scalar messages
Checks WiFi status
Spawns separate thread for client_sync (reading the network)
Most all log messages are now INFO (to be shown by default)

Closes #300

Signed-off-by: Tom Marble <tmarble@info9.net>
2023-01-19 21:59:50 -06:00
bunnie
20270609b9 fix cached state to match disk state in UX for edit/delete in passwords 2023-01-20 05:06:16 +08:00
bunnie
d811ef0d2e fix deletion UX in vault 2023-01-20 02:00:35 +08:00
Tom Marble
277d014f39 Updates for #287
Allows a variable to be set to the EMPTY string
- by not setting a value `/set myvar`

During initialization now verifies that PDDB is mounted.

Added warnings for PDDB not mounted and WiFi not connected.
- the WiFi check is not yet implemented

Signed-off-by: Tom Marble <tmarble@info9.net>
2023-01-17 12:23:02 -06:00
Tom Marble
e9f21396aa Completes fix for #287
Adds migrations framework
Delays mtxcli initialization until first user input, because we know:
- PDDB is mounted
- Timer is stable
- User actually using mtxcli
Adds send_async_msg scalar_async_msg
- basis for automatically updating chatroom

Signed-off-by: Tom Marble <tmarble@info9.net>
2023-01-17 12:23:02 -06:00
Tom Marble
c213dfb745 WIP: Fix mtxcli excessive memory usage #287
Adds migrations framework
- Migration for v0.9.11-0120: update the filter

Filter
- narrow filter to only the fields and events for the current room

Introduces "read only" variables (e.g. __version).

Signed-off-by: Tom Marble <tmarble@info9.net>
2023-01-17 12:23:02 -06:00
Tom Marble
a042deb462 WIP #287: Adds /heap command to mtxcli
Signed-off-by: Tom Marble <tmarble@info9.net>
2023-01-17 12:23:02 -06:00
bunnie
232a4b6c6c bump xous version 2023-01-18 00:02:46 +08:00
bunnie
41d4837551 bump versions to absorb WDT change 2023-01-06 17:48:12 +08:00
bunnie
bb5d7b3adf bump versions to absorb hosted mode fix 2023-01-05 14:07:24 +08:00
bunnie
ec5435bd58 add basis cache clear on basis change callback as well 2023-01-04 04:15:44 +08:00
bunnie
57254ce47c clear local caches when basis state changes 2023-01-04 04:13:14 +08:00
bunnie
c3ecaa00eb refactor: remove allocs from vault inner loop
`vault` is changed so that instead of clearing the list of
data each time the screen is updated, it tries to compare it
against the existing data and modifies the record if it needs to,
or leaves it untouched.

Furthermore, at least in the password path, temporary strings
are pre-allocated and re-used, instead of freed and re-allocated
every time through the main loop.

The combination of these optimzations reduces the time to re-parse
a couple hundred records from about 1000ms to 200ms, reducing the
overall time to retrieve the database from 1.8s to 1.0s. It also
makes the loop much more stable over time; previously, as the heap
fragmented, performance would slowly degrade. Now that most
records are static and re-used, the performance seems to stay
constant.

The framwork is also put in place to re-use TOTP/U2F records,
but the code still uses the legacy method of clearing the
entire stored list and rebuilding it. However, it wasn't deemed
a priority to fix this because generally I haven't seen use cases
where users have hundreds of tokens or TOTP's; so long as the
number is about 20 or so, the performance difference should
be imperceptible with or without optimization.
2023-01-04 03:03:19 +08:00
bunnie
10b921e4e8 cleanup another format, add some more analytics 2023-01-03 23:36:46 +08:00
bunnie
59f06ff16f retrofit repl to use table cosine lookups, so it links with lto="fat" 2023-01-02 17:50:06 +08:00
bunnie
36398810dd bump version numbers to absorb new syscalls 2022-12-30 15:24:36 +08:00
bunnie
8d42feb051 increase heap for mtxcli; add memory usage reporting 2022-12-28 19:48:40 +08:00
bunnie
5370ce396d bump all revs due to SoC artifact update 2022-12-12 16:07:20 +08:00
bunnie
53c9af1033 bump readme's 2022-12-02 23:00:38 +08:00
bunnie
c8ec87b2d6 apply persistent field to other authentication methods 2022-11-30 15:11:56 +08:00
bunnie
d7a3f8962d update vault's password edit to use the new persistent field 2022-11-30 15:00:20 +08:00
bunnie
e8671650e3 add more test cases 2022-11-30 12:13:27 +08:00
bunnie
bf19a60369 add docs for CSV flow 2022-11-30 12:13:15 +08:00
bunnie
e63aaf8832 change wording of error on skipped entry 2022-11-30 12:12:43 +08:00
bunnie
a312432135 fix up some formatting & one missed string in the refactor 2022-11-30 11:31:57 +08:00
bunnie
9699cb761a avoid use of format!() to improve performance (#260) 2022-11-30 00:56:08 +08:00
bunnie
79c773e245 add basic CSV to password support 2022-11-29 23:53:27 +08:00
bunnie
c696f4eff0
Merge pull request #279 from gsora/feat/hotp-vaultbackup
fix: support HOTP codes in `vaultbackup`
2022-11-25 18:12:20 -08:00
bunnie
1d1b3a35b7 commit version bump 2022-11-26 10:00:44 +08:00
bunnie
aa9977cc58 bump all the things because we changed utralib again 2022-11-17 22:13:40 +08:00
bunnie
dabbfd6c35 bump all the things to absorb the SoC change 2022-11-17 19:39:18 +08:00
Gianguido Sorà
279ecbc748 fix: support HOTP codes in vaultbackup
While `vault` supports HOTP codes, `vaultbackup` didn't.

This commit brings it to feature parity.
2022-11-16 15:56:18 +01:00
bunnie
474a02c2cb refactor all vault db retrieval to use new API
This refactors the remaining vault accessor routines to use
the new more efficient key pre-fetching routine. This also
fixes up an error in test case generation and hopefully resolves
an issue with concurrency errors using the older version of
the access routine.
2022-11-09 15:06:51 +08:00
bunnie
e7e110ce76 cleanup and enhance test cases 2022-11-09 14:25:05 +08:00
bunnie
a7162fd03c bump xous-names dependents 2022-11-07 22:19:38 +08:00
bunnie
880675c238 remove UX delays between dialog boxes 2022-11-06 18:44:56 +08:00
bunnie
30583bdf07 bump versions with xous change 2022-11-06 03:48:12 +08:00
bunnie
1ca0ef7b1f clean up warning 2022-11-05 16:30:29 +08:00
bunnie
601f3476f4 initial delay on NTP poller
no point in clogging up the boot sequence with requests that
will almost certainly fail.
2022-11-05 16:19:15 +08:00
Tom Marble
05252663a4 Updates mtxcli README
Signed-off-by: Tom Marble <tmarble@info9.net>
2022-10-29 17:39:42 -05:00
Tom Marble
604a3765b8 Adds images of mtxcli
Images of mtxcli
- in the hosted environment
- on the Precusor
- in French

Signed-off-by: Tom Marble <tmarble@info9.net>
2022-10-29 17:39:42 -05:00
bunnie
ba28dd8795 bump to absorb utralib straggler configs 2022-10-28 15:11:17 +08:00
bunnie
e60f7cc855 Merge branch 'i18n/adds-french-localization' into main 2022-10-28 15:00:27 +08:00
bunnie
dfb10ed7f2 bump crate numbers to publish lang-fr change into xous-rs 2022-10-28 14:01:09 +08:00
Tom Marble
006a69105c
Completes the i18n_helper.py tool
Added 'fr' translation
Added *.json to .gitattributes

Signed-off-by: Tom Marble <tmarble@info9.net>
2022-10-27 16:07:05 -05:00