Commits
Renamed the configuration file from ~/.config/xmppc.conf to
~/.config/xmppc/config in both source and documentation.
Signed-off-by: Amolith <amolith@secluded.site>
Add the user-invocable flag to the XMPP/Jabber
agent skill configuration so that it appears
in the list of directable skills.
Signed-off-by: Amolith <amolith@secluded.site>
Remove the doc directory containing Doxyfile, Makefile, and man page
sources
(adoc, troff, HTML). Update Makefile.am to stop building and installing
the
man page and its HTML version, and delete the corresponding variables.
Rewrite README.md with comprehensive installation, usage, and agent
skills
documentation.
Amp-Thread-ID: https://ampcode.com/threads/T-019f2fe4-f392-7688-8b2f-8d40eb9fa4b8
Amp-Thread-ID: https://ampcode.com/threads/T-019f2fe4-f392-7688-8b2f-8d40eb9fa4b8
Amp-Thread-ID: https://ampcode.com/threads/T-019f2fe4-f392-7688-8b2f-8d40eb9fa4b8
Amp-Thread-ID: https://ampcode.com/threads/T-019f2fe4-f392-7688-8b2f-8d40eb9fa4b8
Use owned GLib strings for parsed options and release config, account,
password, jid, and copied mode arguments on normal and key early exits.
Amp-Thread-ID: https://ampcode.com/threads/T-019f2fe4-f392-7688-8b2f-8d40eb9fa4b8
Remove archive lookup handlers and release copied lookup fields after
printing the sent message archive cursor.
Amp-Thread-ID: https://ampcode.com/threads/T-019f2fe4-f392-7688-8b2f-8d40eb9fa4b8
Release MAM option/query state and remove message handlers when list or
receive completes, errors, or times out.
Amp-Thread-ID: https://ampcode.com/threads/T-019f2fe4-f392-7688-8b2f-8d40eb9fa4b8
Have agent-skill install write references/installation.md alongside
SKILL.md, with build/install instructions for the secluded xmppc source,
and include asciidoc in the orb setup dependencies.
Amp-Thread-ID: https://ampcode.com/threads/T-019f2fe4-f392-7688-8b2f-8d40eb9fa4b8
Update the manpage source and generated man/html docs for agent-skill,
stdin/password-command handling, sent archive cursors, MAM list/receive
fields, compact XML output, and send-then-wait usage.
Amp-Thread-ID: https://ampcode.com/threads/T-019f2fe4-f392-7688-8b2f-8d40eb9fa4b8
Teach agent-skill consumers to capture the <sent .../> record, use
archive-id as the MAM receive cursor, avoid treating message-id as a
cursor, and fall back through recent MAM list if archive-id cannot be
resolved.
Amp-Thread-ID: https://ampcode.com/threads/T-019f2fe4-f392-7688-8b2f-8d40eb9fa4b8
After sending a chat message, poll MAM for the archived forwarded stanza
by message id/origin-id and print a compact <sent archive-id=...
message-id=... to=.../> record. Add timeout handling so missing MAM
responses fall back without hanging, and update the agent-skill
instructions.
Amp-Thread-ID: https://ampcode.com/threads/T-019f2fe4-f392-7688-8b2f-8d40eb9fa4b8
Add the agent-skill command and installer, password stdin/pwd-cmd
support, compact MAM list output with field terms, receive polling via
MAM/RSM after-id, and message chat ID output. Also add orb setup
dependencies for future agents.
Amp-Thread-ID: https://ampcode.com/threads/T-019f2fe4-f392-7688-8b2f-8d40eb9fa4b8
With new new comamnd delete-device-list (mode omemo), the PEP node
eu.siacs.conversations.axolotl.devicelist will be delete.
Reviewed-on: https://codeberg.org/Anoxinon_e.V./xmppc/pulls/31
Reviewed-on: https://codeberg.org/Anoxinon_e.V./xmppc/pulls/27
Bugfix for checking if configuration file exists. Also did some argv
parameter checks.
Issue: #26
src/mode/roster.c:66:19: error: implicit conversion from enumeration type 'enum mode' to different enumeration type 'CommandType' (aka 'enum commandTyp') [-Werror,-Wenum-conversion]
command->type = UNKOWN;
~ ^~~~~~
Fixed by using the correct enum definition.
Issue: #21
So it will display `me@domain.org/resource: body text`.
Which is more readable to users who just want to get their MAM and not
debug things :-)
Show help if no argument is provided
In case someone calls `xmppc` assume that he doesn't know how to use it.
Which means he might even not be aware of `-h`.
So let's print the help in case no argument is provided instead of
connecting, then discoverin that no mode is selected and disconnecting
again.
Fix segfault when not roster subcommand is provided
_roster_parse_command() segfaults since it assumes there is an argv[0].
Let's test the number of arguments.
Since we are already connected xmpp_connect_client() will wait for a
disconnect. So I introduce a teardown function that is called in both
the error case and the succesful case.
Now _roster_send_query() doesn't disconnect anymore.
Set to development by default
Only set to release when a new release is tagged.
Like this not every developer needs to change the code.
And it's git aka development anyways.
Don't mix german and english
Co-authored-by: Michael Vetter <jubalh@iodoru.org>
Reviewed-on: https://codeberg.org/Anoxinon_e.V./xmppc/pulls/18
Signed-off-by: nex <nex@nexadn.de>
Set XMPP_CONN_FLAG_TRUST_TLS in development mode
Read password from stdio, if not provided
Issue: #9
* Iterate list of UIDs for Key Lookup
* Clean and set signers in context
Issue: #7 #8
xmppc.1.txt is the manpage in asciidoc format. It can be converted to docbook /
html with asciidoc and a2x to manpage.
asciidoc -b docbook $(TXT_FILE)
asciidoc -b html $(TXT_FILE)
a2x --doctype manpage --format manpage $(TXT_FILE)
Issue: #6
* XEP-0313: Message Archive Management
* XEP-0048: Bookmarks
* XEP-0030: Service Discovery
Config file ~/.config/xmppc.conf
Issue: #2
Remove the doc directory containing Doxyfile, Makefile, and man page
sources
(adoc, troff, HTML). Update Makefile.am to stop building and installing
the
man page and its HTML version, and delete the corresponding variables.
Rewrite README.md with comprehensive installation, usage, and agent
skills
documentation.
After sending a chat message, poll MAM for the archived forwarded stanza
by message id/origin-id and print a compact <sent archive-id=...
message-id=... to=.../> record. Add timeout handling so missing MAM
responses fall back without hanging, and update the agent-skill
instructions.
Amp-Thread-ID: https://ampcode.com/threads/T-019f2fe4-f392-7688-8b2f-8d40eb9fa4b8
Add the agent-skill command and installer, password stdin/pwd-cmd
support, compact MAM list output with field terms, receive polling via
MAM/RSM after-id, and message chat ID output. Also add orb setup
dependencies for future agents.
Amp-Thread-ID: https://ampcode.com/threads/T-019f2fe4-f392-7688-8b2f-8d40eb9fa4b8
Show help if no argument is provided
In case someone calls `xmppc` assume that he doesn't know how to use it.
Which means he might even not be aware of `-h`.
So let's print the help in case no argument is provided instead of
connecting, then discoverin that no mode is selected and disconnecting
again.
Fix segfault when not roster subcommand is provided
_roster_parse_command() segfaults since it assumes there is an argv[0].
Let's test the number of arguments.
Since we are already connected xmpp_connect_client() will wait for a
disconnect. So I introduce a teardown function that is called in both
the error case and the succesful case.
Now _roster_send_query() doesn't disconnect anymore.
Set to development by default
Only set to release when a new release is tagged.
Like this not every developer needs to change the code.
And it's git aka development anyways.
Don't mix german and english
Co-authored-by: Michael Vetter <jubalh@iodoru.org>
Reviewed-on: https://codeberg.org/Anoxinon_e.V./xmppc/pulls/18