-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publishing the PK CLI for General Use #268
Comments
Review CLI exit codes in relation to sysexit standardsExceptions are currently using sysexit codes from this stanard: https://www.freebsd.org/cgi/man.cgi?query=sysexits&apropos=0&sektion=0&manpath=FreeBSD+4.3-RELEASE&format=html It's a good idea to review these exit codes and see how to ensure we all of our CLI commands are returning the proper exit codes. |
Bundling and Minification Step in our Release ExecutablesRecommend attempting the usage of a minifier before we package it up using pkg. Right now tsc doesn't minify the JS code nor does it do any optimisations. Here's some resources:
Basically, right now Ideally the "bundling" step should also perform optimisations like DCE. This should reduce the size of the final executable by a significant amount, possibly 70%, and it should also help with the performance of the code as in #277 since it won't need to load different files. However for |
Should review the CLI error handling overall, see this thread: #278 (comment) and https://github.com/MatrixAI/js-polykey/wiki/API-Design |
Noticed that sometimes we need our Perhaps instead we need another level, or level of messages that is given interactively. That is one could say that messages intended for interactive usage can be Alternatively, interactive messages may need to go directly to Not entirely sure atm. Because this has to interact with formatting and error handling too. |
Pkg seems quite limited: We need to see if alternatives are better. Related issues: |
@tegefaulkes this is our epic for PK CLI. We can attach issues related to it here. Also all of the issues relating CLI stuff will get moved to Polykey-CLI. |
First we factor out, then we move issues. |
K. I can split out the CLI soon. There are a lot of pending changes in the agent migration PR, so doing them side by side is not ideal. I can get the agent migration to a working state and merge that, some of the remaining tasks for that can be a 2nd PR. So I can merge #525, then split out the CLI, and complete the remainder of the migration. The remaining part should be consolidating the quic server and reverse connection handling into the node connection manager. |
Moving to Polykey-CLI. |
I'd say this is done... sort of. There's nothing more to do for this issue, but just massaging Polykey-CLI to be better. More specific issues can be created for integrating a bundler, compression, and maybe even replacing |
Reopening this right now, cause there are few subissues to solve here as part of 6th testnet deployment. |
Now that things are built and PK CLI master and staging is synced, this is done. |
Requirements of this design
The new structure of our projects is:
Polykey
Polykey-CLI
Polykey-Desktop - electron/tauri wrapper around library code
Polykey-Mobile - nativescript wrapper around library code
We may not need to split out to Polykey-CLI just yet, but it can be done later.
Additional context
Specification
polykey
, as Polykey Core library now usespolykey
polykey
@matrixai/polykey
and make it point topolykey
and make the deprecatedjs-polykey
and make it point topolykey
The text was updated successfully, but these errors were encountered: