feat(declarativeui): add hooks for each of our file actions - #344
Merged
Conversation
julien-nc
force-pushed
the
enh/340/declarative-ui
branch
from
August 26, 2025 12:00
acd0ffd to
b5cb9eb
Compare
julien-nc
force-pushed
the
enh/340/declarative-ui
branch
from
August 29, 2025 08:20
a5b2673 to
72e2f65
Compare
Member
Author
|
When combining the capabilities declared by various apps, the server combines the arrays. For objects, all good. For lists, as the keys are preserved and a Php list is almost an object with integer keys, the combining goes wrong and each list overwrites the other ones. Here is my suggestion for the
Object in the {
"assistant": {
"context-menu": [
{
"name": "Summarize",
"url": "/ocs/v2.php/apps/assistant/api/v1/file-action/{fileId}/core:text2text:summary",
"method": "POST",
"mimetype_filters": "text/, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.oasis.opendocument.text, application/pdf",
"icon": "/apps-extra/assistant/img/declarativeui/summarize.svg"
},
{
"name": "Transcribe audio",
"url": "/ocs/v2.php/apps/assistant/api/v1/file-action/{fileId}/core:audio2text",
"method": "POST",
"mimetype_filters": "audio/",
"icon": "/apps-extra/assistant/img/declarativeui/speech_to_text.svg"
},
{
"name": "Text to speech",
"url": "/ocs/v2.php/apps/assistant/api/v1/file-action/{fileId}/core:text2speech",
"method": "POST",
"mimetype_filters": "text/, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.oasis.opendocument.text, application/pdf",
"icon": "/apps-extra/assistant/img/declarativeui/text_to_speech.svg"
}
]
},
"cospend": {
"context-menu": [
{
"name": "cospend fake",
"url": "hello"
}
]
}
} |
Member
Author
|
@tobiasKaminsky You can test this branch by checking it out and building it: npm ci
npm run dev
composer i --no-devFor the capabilities to be declared by the assistant, you need some AI providers. There are some fake ones in the |
julien-nc
force-pushed
the
enh/340/declarative-ui
branch
4 times, most recently
from
September 4, 2025 13:06
e4f9dc8 to
7d3d17a
Compare
julien-nc
force-pushed
the
enh/340/declarative-ui
branch
from
September 23, 2025 14:26
3f9001a to
5450fa6
Compare
julien-nc
force-pushed
the
enh/340/declarative-ui
branch
2 times, most recently
from
October 6, 2025 14:01
2dd3bc9 to
25154f2
Compare
julien-nc
marked this pull request as ready for review
October 8, 2025 12:14
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
…add multi filters, add method Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
…n file Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
version 0.1 Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
julien-nc
force-pushed
the
enh/340/declarative-ui
branch
from
October 15, 2025 12:27
0e0797c to
211a03d
Compare
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
julien-nc
force-pushed
the
enh/340/declarative-ui
branch
from
October 15, 2025 12:36
211a03d to
c9d4fb8
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #340
Add declarative UI capabilities for clients.
Add one hook for each of our file actions (summarize, stt and tts).
Currently unknown: