Skip to content
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

Print error on release for 'previewFor' #157

Merged
merged 3 commits into from
May 20, 2024

Conversation

ruy-dan
Copy link
Contributor

@ruy-dan ruy-dan commented May 17, 2024

No description provided.

@ruy-dan ruy-dan changed the title Print error on release if 'previewFor' is present Print error on release for 'previewFor' May 17, 2024
lib/sidecar.js Outdated Show resolved Hide resolved
@davidmarkclements davidmarkclements merged commit 6c8e618 into next May 20, 2024
0 of 2 checks passed
@davidmarkclements davidmarkclements deleted the task/print-release-error branch May 20, 2024 18:16
davidmarkclements added a commit that referenced this pull request May 22, 2024
* improve error name and message

* perform config previewFor check on manifest object + error name improvements

* gaurd against no pear config

---------

Co-authored-by: dmc <david.mark.clements@gmail.com>
davidmarkclements added a commit that referenced this pull request May 28, 2024
* improve error name and message

* perform config previewFor check on manifest object + error name improvements

* gaurd against no pear config

---------

Co-authored-by: dmc <david.mark.clements@gmail.com>
davidmarkclements added a commit that referenced this pull request May 28, 2024
* improve error name and message

* perform config previewFor check on manifest object + error name improvements

* gaurd against no pear config

---------

Co-authored-by: dmc <david.mark.clements@gmail.com>
davidmarkclements added a commit that referenced this pull request May 28, 2024
* improve error name and message

* perform config previewFor check on manifest object + error name improvements

* gaurd against no pear config

---------

Co-authored-by: dmc <david.mark.clements@gmail.com>
davidmarkclements added a commit that referenced this pull request May 28, 2024
* improve error name and message

* perform config previewFor check on manifest object + error name improvements

* gaurd against no pear config

---------

Co-authored-by: dmc <david.mark.clements@gmail.com>
davidmarkclements added a commit that referenced this pull request May 29, 2024
* improve error name and message

* perform config previewFor check on manifest object + error name improvements

* gaurd against no pear config

---------

Co-authored-by: dmc <david.mark.clements@gmail.com>
davidmarkclements added a commit that referenced this pull request May 31, 2024
* improve error name and message

* perform config previewFor check on manifest object + error name improvements

* gaurd against no pear config

---------

Co-authored-by: dmc <david.mark.clements@gmail.com>
davidmarkclements added a commit that referenced this pull request Jun 4, 2024
* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* missing ref fix

* Add creation of bin scripts when on Windows (#141)

* Fix Windows ps1 script by removing function declaration and passing all arguments

* Add creation of bin scripts on Windows

* Use Windows-style newlines on Windows scripts

* Add message for setting path on Windows

* Add path setup command for MS PowerShell

* lib/errors.js fixes

* Pear gc sidecar (#137)

* gc sidecar as stream, add usage

* fix win

* remove unused code

* use stream, remove GC class

* remove unused prop

* GC as stream, use os.kill

* use text-decoder

* fix win

* gc to lib/gc

* rebase and update lib errors

* remove text-decoder

* cmd to resource, errors

* add await

* inline close

* Worker (#133)

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* worker

* config.links & trust links when key is trusted

* retrust (cheap) to get new links on start & Pear.config.links

* should never be a json parse error by this point, but just in case there is avoid throwing a SyntaxError (+ other error case output refinement)

* use bundle.drive

* lint 😒

* trust fix + win fix for openSync(3) when parent)

* cannot spawn attached from renderer on windows, spawning from electron-main solves

* working on Windows

* use isBare instead of global.Bare

* move noop

* syntax tidy

* free pipe on close

* spacing

* ERR_INVALID_PACKAGE_JSON

* propagate close/destroy

* post conflict res syntax fixes

---------

Co-authored-by: rafapaezbas <15270736+rafapaezbas@users.noreply.github.com>
Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>
Co-authored-by: yasser <yassern@protonmail.com>

* upgrade test deps (#146)

* update key (#148)

* Upgrade dependencies (#147)

* upgrade deps

* upgrade dep

* Paparam (#140)

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* paparam

* working

* fixes & towards bail handling

* command runners, error handling, rm usage, almost everything working, run still todo

* bail shows usage for known input errors, unknown errors log and exit early

* last InputError -> ERR_INPUT

* tweaks, term run fix

* ERR_UKNOWN_GC_RESOURCE -> ERR_INVALID_GC_RESOURCE

* ERR_INVALID_INPUT

* nearly, still some run issues

* run working

* media.access api fix

* run/parse-link rm lib/parse

* run fix

* trace semi-fixed

* warmup fix

* working with appling

* rebase fixes

* improve unrecognized arg output, do not stage cli crash log

* rm stray log

* test fix

---------

Co-authored-by: rafapaezbas <15270736+rafapaezbas@users.noreply.github.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>

* reinstate pear -v and lint fix

* Pear gc release (#145)

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* paparam

* working

* fixes & towards bail handling

* command runners, error handling, rm usage, almost everything working, run still todo

* bail shows usage for known input errors, unknown errors log and exit early

* tweaks, term run fix

* add gc release

* paparam subcommand

* json flag at gc level, cmd/gc signature

* remove outdated files

---------

Co-authored-by: rafapaezbas <15270736+rafapaezbas@users.noreply.github.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>

* Cleanup tests (#150)

* remove id

* typo

* trust / app.id fix

* hide minimize/maximize buttons from trust dialog (#132)

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* hide minimize/maximize buttons from trust dialog

* implemented hideMaximize and hideMinimize in pear-ctrl

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* added pear-ctrl setCtrl

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* missing ref fix

* Add creation of bin scripts when on Windows (#141)

* Fix Windows ps1 script by removing function declaration and passing all arguments

* Add creation of bin scripts on Windows

* Use Windows-style newlines on Windows scripts

* Add message for setting path on Windows

* Add path setup command for MS PowerShell

* minimize and maximize messages to pear-ctrl

* added maximize minimize attributes to pear-ctrl

* pass opts to setCtrl

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* missing ref fix

* Add creation of bin scripts when on Windows (#141)

* Fix Windows ps1 script by removing function declaration and passing all arguments

* Add creation of bin scripts on Windows

* Use Windows-style newlines on Windows scripts

* Add message for setting path on Windows

* Add path setup command for MS PowerShell

* lib/errors.js fixes

* removed messages to pear-ctrl

* corrected pear-ctrl observed attributes

* corrected pear-ctrl for mac

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* missing ref fix

* Add creation of bin scripts when on Windows (#141)

* Fix Windows ps1 script by removing function declaration and passing all arguments

* Add creation of bin scripts on Windows

* Use Windows-style newlines on Windows scripts

* Add message for setting path on Windows

* Add path setup command for MS PowerShell

* lib/errors.js fixes

* Windows pipe name (#143)

* win pipe name

* hex encode

* hash dir with sodium

* add hashToHex

* add hashToHex in helper

* pipeId function

* remove hashToHex

* Pear gc sidecar (#137)

* gc sidecar as stream, add usage

* fix win

* remove unused code

* use stream, remove GC class

* remove unused prop

* GC as stream, use os.kill

* use text-decoder

* fix win

* gc to lib/gc

* rebase and update lib errors

* remove text-decoder

* cmd to resource, errors

* add await

* inline close

* add setCtrl to mac

* added setMinimizable/Maximizable ipc handlers

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* missing ref fix

* Add creation of bin scripts when on Windows (#141)

* Fix Windows ps1 script by removing function declaration and passing all arguments

* Add creation of bin scripts on Windows

* Use Windows-style newlines on Windows scripts

* Add message for setting path on Windows

* Add path setup command for MS PowerShell

* lib/errors.js fixes

* Windows pipe name (#143)

* win pipe name

* hex encode

* hash dir with sodium

* add hashToHex

* add hashToHex in helper

* pipeId function

* remove hashToHex

* Pear gc sidecar (#137)

* gc sidecar as stream, add usage

* fix win

* remove unused code

* use stream, remove GC class

* remove unused prop

* GC as stream, use os.kill

* use text-decoder

* fix win

* gc to lib/gc

* rebase and update lib errors

* remove text-decoder

* cmd to resource, errors

* add await

* inline close

* Worker (#133)

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* worker

* config.links & trust links when key is trusted

* retrust (cheap) to get new links on start & Pear.config.links

* should never be a json parse error by this point, but just in case there is avoid throwing a SyntaxError (+ other error case output refinement)

* use bundle.drive

* lint 😒

* trust fix + win fix for openSync(3) when parent)

* cannot spawn attached from renderer on windows, spawning from electron-main solves

* working on Windows

* use isBare instead of global.Bare

* move noop

* syntax tidy

* free pipe on close

* spacing

* ERR_INVALID_PACKAGE_JSON

* propagate close/destroy

* post conflict res syntax fixes

---------

Co-authored-by: rafapaezbas <15270736+rafapaezbas@users.noreply.github.com>
Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>
Co-authored-by: yasser <yassern@protonmail.com>

* upgrade test deps (#146)

* update key (#148)

* Upgrade dependencies (#147)

* upgrade deps

* upgrade dep

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* paparam

* working

* fixes & towards bail handling

* command runners, error handling, rm usage, almost everything working, run still todo

* bail shows usage for known input errors, unknown errors log and exit early

* last InputError -> ERR_INPUT

* tweaks, term run fix

* ERR_UKNOWN_GC_RESOURCE -> ERR_INVALID_GC_RESOURCE

* ERR_INVALID_INPUT

* nearly, still some run issues

* run working

* media.access api fix

* run/parse-link rm lib/parse

* run fix

* trace semi-fixed

* warmup fix

* working with appling

* rebase fixes

* added ipc methods for setMinimizable and setMaximizable

* clean console.log

---------

Co-authored-by: David Mark Clements <david.mark.clements@gmail.com>
Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>
Co-authored-by: yasser <yassern@protonmail.com>
Co-authored-by: Jan Keith Darunday <jkcdarunday@gmail.com>

* ipc: stream handlers converted from async gens (#120)

* ipc: stream handlers converted from async gens

* fixes, stage warmup still to fix

* run fix

* ERR_INPUT not a constructor

* ERR_INPUT -> ERR_INVALID_INPUT

* tweaks/fixes

* tweaks

* pear dev fix (allow empty link)

* pear dev fix (config.args should always be an array)

* release bug fix (#152)

* dir to ctx, join bundle, output errors

* remove swarm join

* Pear.config dev property for Update Button (#156)

* dev prop in config

* dev default to false

* Sidecar subsystem refactor (#155)

* sidecar subsystem refactor

* Context -> State

* state store bug fix

* sidecar working

* rel dep path fixes, run fixes, http fixes

* decal rel dep path fix

* rm stray cmt

* make sure dev is false not falsy

* prod sidecar fix

* addons fix

* deadcode removal

* desktopSources fix

* Print error on release for 'previewFor' (#157)

* improve error name and message

* perform config previewFor check on manifest object + error name improvements

* gaurd against no pear config

---------

Co-authored-by: dmc <david.mark.clements@gmail.com>

* -d alias for --dev

* fix ignore flag (#161)

* add verbose mode to tests (#162)

* pear-cli moved to repo holepunchto/pear-cli

* fix Pear.config.dir

* Add verbose to helper run (#165)

* add verbose to helper run

* lint

* log run output if verbose

* fix the port, fallback to 0 (#169)

* use listen-async (#170)

* bind to local only (#171)

* fix reports (#167)

* fix reports

* transform sidecar bus data in pipelines

* call callback at the end of busTransformer

* fix reports tweaks

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* missing ref

* bootstrap key

* unloading fix

* fixed update notification test (#180)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

---------

Co-authored-by: rafapaezbas <15270736+rafapaezbas@users.noreply.github.com>
Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>
Co-authored-by: yasser <yassern@protonmail.com>
Co-authored-by: Jan Keith Darunday <jkcdarunday@gmail.com>
davidmarkclements added a commit that referenced this pull request Jun 4, 2024
* improve error name and message

* perform config previewFor check on manifest object + error name improvements

* gaurd against no pear config

---------

Co-authored-by: dmc <david.mark.clements@gmail.com>
davidmarkclements added a commit that referenced this pull request Jun 5, 2024
* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* lib/errors.js fixes

* Pear gc sidecar (#137)

* gc sidecar as stream, add usage

* fix win

* remove unused code

* use stream, remove GC class

* remove unused prop

* GC as stream, use os.kill

* use text-decoder

* fix win

* gc to lib/gc

* rebase and update lib errors

* remove text-decoder

* cmd to resource, errors

* add await

* inline close

* Worker (#133)

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* worker

* config.links & trust links when key is trusted

* retrust (cheap) to get new links on start & Pear.config.links

* should never be a json parse error by this point, but just in case there is avoid throwing a SyntaxError (+ other error case output refinement)

* use bundle.drive

* lint 😒

* trust fix + win fix for openSync(3) when parent)

* cannot spawn attached from renderer on windows, spawning from electron-main solves

* working on Windows

* use isBare instead of global.Bare

* move noop

* syntax tidy

* free pipe on close

* spacing

* ERR_INVALID_PACKAGE_JSON

* propagate close/destroy

* post conflict res syntax fixes

---------

Co-authored-by: rafapaezbas <15270736+rafapaezbas@users.noreply.github.com>
Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>
Co-authored-by: yasser <yassern@protonmail.com>

* update key (#148)

* Upgrade dependencies (#147)

* upgrade deps

* upgrade dep

* Paparam (#140)

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* paparam

* working

* fixes & towards bail handling

* command runners, error handling, rm usage, almost everything working, run still todo

* bail shows usage for known input errors, unknown errors log and exit early

* last InputError -> ERR_INPUT

* tweaks, term run fix

* ERR_UKNOWN_GC_RESOURCE -> ERR_INVALID_GC_RESOURCE

* ERR_INVALID_INPUT

* nearly, still some run issues

* run working

* media.access api fix

* run/parse-link rm lib/parse

* run fix

* trace semi-fixed

* warmup fix

* working with appling

* rebase fixes

* improve unrecognized arg output, do not stage cli crash log

* rm stray log

* test fix

---------

Co-authored-by: rafapaezbas <15270736+rafapaezbas@users.noreply.github.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>

* reinstate pear -v and lint fix

* Pear gc release (#145)

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* paparam

* working

* fixes & towards bail handling

* command runners, error handling, rm usage, almost everything working, run still todo

* bail shows usage for known input errors, unknown errors log and exit early

* tweaks, term run fix

* add gc release

* paparam subcommand

* json flag at gc level, cmd/gc signature

* remove outdated files

---------

Co-authored-by: rafapaezbas <15270736+rafapaezbas@users.noreply.github.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>

* Cleanup tests (#150)

* remove id

* typo

* trust / app.id fix

* hide minimize/maximize buttons from trust dialog (#132)

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* hide minimize/maximize buttons from trust dialog

* implemented hideMaximize and hideMinimize in pear-ctrl

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* added pear-ctrl setCtrl

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* missing ref fix

* Add creation of bin scripts when on Windows (#141)

* Fix Windows ps1 script by removing function declaration and passing all arguments

* Add creation of bin scripts on Windows

* Use Windows-style newlines on Windows scripts

* Add message for setting path on Windows

* Add path setup command for MS PowerShell

* minimize and maximize messages to pear-ctrl

* added maximize minimize attributes to pear-ctrl

* pass opts to setCtrl

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* missing ref fix

* Add creation of bin scripts when on Windows (#141)

* Fix Windows ps1 script by removing function declaration and passing all arguments

* Add creation of bin scripts on Windows

* Use Windows-style newlines on Windows scripts

* Add message for setting path on Windows

* Add path setup command for MS PowerShell

* lib/errors.js fixes

* removed messages to pear-ctrl

* corrected pear-ctrl observed attributes

* corrected pear-ctrl for mac

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* missing ref fix

* Add creation of bin scripts when on Windows (#141)

* Fix Windows ps1 script by removing function declaration and passing all arguments

* Add creation of bin scripts on Windows

* Use Windows-style newlines on Windows scripts

* Add message for setting path on Windows

* Add path setup command for MS PowerShell

* lib/errors.js fixes

* Windows pipe name (#143)

* win pipe name

* hex encode

* hash dir with sodium

* add hashToHex

* add hashToHex in helper

* pipeId function

* remove hashToHex

* Pear gc sidecar (#137)

* gc sidecar as stream, add usage

* fix win

* remove unused code

* use stream, remove GC class

* remove unused prop

* GC as stream, use os.kill

* use text-decoder

* fix win

* gc to lib/gc

* rebase and update lib errors

* remove text-decoder

* cmd to resource, errors

* add await

* inline close

* add setCtrl to mac

* added setMinimizable/Maximizable ipc handlers

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* missing ref fix

* Add creation of bin scripts when on Windows (#141)

* Fix Windows ps1 script by removing function declaration and passing all arguments

* Add creation of bin scripts on Windows

* Use Windows-style newlines on Windows scripts

* Add message for setting path on Windows

* Add path setup command for MS PowerShell

* lib/errors.js fixes

* Windows pipe name (#143)

* win pipe name

* hex encode

* hash dir with sodium

* add hashToHex

* add hashToHex in helper

* pipeId function

* remove hashToHex

* Pear gc sidecar (#137)

* gc sidecar as stream, add usage

* fix win

* remove unused code

* use stream, remove GC class

* remove unused prop

* GC as stream, use os.kill

* use text-decoder

* fix win

* gc to lib/gc

* rebase and update lib errors

* remove text-decoder

* cmd to resource, errors

* add await

* inline close

* Worker (#133)

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* worker

* config.links & trust links when key is trusted

* retrust (cheap) to get new links on start & Pear.config.links

* should never be a json parse error by this point, but just in case there is avoid throwing a SyntaxError (+ other error case output refinement)

* use bundle.drive

* lint 😒

* trust fix + win fix for openSync(3) when parent)

* cannot spawn attached from renderer on windows, spawning from electron-main solves

* working on Windows

* use isBare instead of global.Bare

* move noop

* syntax tidy

* free pipe on close

* spacing

* ERR_INVALID_PACKAGE_JSON

* propagate close/destroy

* post conflict res syntax fixes

---------

Co-authored-by: rafapaezbas <15270736+rafapaezbas@users.noreply.github.com>
Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>
Co-authored-by: yasser <yassern@protonmail.com>

* upgrade test deps (#146)

* update key (#148)

* Upgrade dependencies (#147)

* upgrade deps

* upgrade dep

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* paparam

* working

* fixes & towards bail handling

* command runners, error handling, rm usage, almost everything working, run still todo

* bail shows usage for known input errors, unknown errors log and exit early

* last InputError -> ERR_INPUT

* tweaks, term run fix

* ERR_UKNOWN_GC_RESOURCE -> ERR_INVALID_GC_RESOURCE

* ERR_INVALID_INPUT

* nearly, still some run issues

* run working

* media.access api fix

* run/parse-link rm lib/parse

* run fix

* trace semi-fixed

* warmup fix

* working with appling

* rebase fixes

* added ipc methods for setMinimizable and setMaximizable

* clean console.log

---------

Co-authored-by: David Mark Clements <david.mark.clements@gmail.com>
Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>
Co-authored-by: yasser <yassern@protonmail.com>
Co-authored-by: Jan Keith Darunday <jkcdarunday@gmail.com>

* ipc: stream handlers converted from async gens (#120)

* ipc: stream handlers converted from async gens

* fixes, stage warmup still to fix

* run fix

* ERR_INPUT not a constructor

* ERR_INPUT -> ERR_INVALID_INPUT

* tweaks/fixes

* tweaks

* pear dev fix (allow empty link)

* pear dev fix (config.args should always be an array)

* release bug fix (#152)

* dir to ctx, join bundle, output errors

* remove swarm join

* Pear.config dev property for Update Button (#156)

* dev prop in config

* dev default to false

* Sidecar subsystem refactor (#155)

* sidecar subsystem refactor

* Context -> State

* state store bug fix

* sidecar working

* rel dep path fixes, run fixes, http fixes

* decal rel dep path fix

* rm stray cmt

* make sure dev is false not falsy

* prod sidecar fix

* addons fix

* deadcode removal

* desktopSources fix

* Print error on release for 'previewFor' (#157)

* improve error name and message

* perform config previewFor check on manifest object + error name improvements

* gaurd against no pear config

---------

Co-authored-by: dmc <david.mark.clements@gmail.com>

* -d alias for --dev

* fix ignore flag (#161)

* add verbose mode to tests (#162)

* fix Pear.config.dir

* fix the port, fallback to 0 (#169)

* use listen-async (#170)

* bind to local only (#171)

* fix reports (#167)

* fix reports

* transform sidecar bus data in pipelines

* call callback at the end of busTransformer

* fix reports tweaks

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* missing ref

* Pass Bare.argv as clientArgv on pear run

* Fix undefined clientArgv error when staging desktop app

* Pass clientArgv to info and release commands

* Remove trailing comma

* Remove clientArgv default for start as it is only used in one place

* Move setting of clientArgv out of electron-main.js

* Fix wrong argv used in gui.js (should be process instead of Bare)

* Move argv slicing to client and use slice(2) for code on electron

* Rename clientArgv to argv

* Rename argv to cmdArgs

* Add replacement of relative path with absolute path when restarting apps

* Fix original args getting modified by cloning using slice

* Use slice instead of splice

* Fix pear platform restart by setting cwd to application directory

* Pass cmd.rest as args to fix undefined args after restart

* Add handling for when the app is started using boot.js

* post-rebase code alignment

* Add duplicate client fix back

* Add waiting for lock to ensure that sidecar has shutdown

* Prevent appending of directory when link is a URL

* Skip processing if subcommand is not run

* Remove special handling for --start-id

* fix

* deathClock must be before waitForLock, also no need if no restarts

* Exclude non-run clients from being restarted

* Fix appling restart caused by state.appling being a string

* Add fallback to appling.path if appling is not a string

* Wait for sidecar corestore to close instead of waiting for lock

* Update subsystems/sidecar/index.js

* use state

---------

Co-authored-by: David Mark Clements <david.mark.clements@gmail.com>
Co-authored-by: rafapaezbas <15270736+rafapaezbas@users.noreply.github.com>
Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>
Co-authored-by: yasser <yassern@protonmail.com>
davidmarkclements added a commit that referenced this pull request Jun 5, 2024
* improve error name and message

* perform config previewFor check on manifest object + error name improvements

* gaurd against no pear config

---------

Co-authored-by: dmc <david.mark.clements@gmail.com>
davidmarkclements added a commit that referenced this pull request Jun 5, 2024
* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* lib/errors.js fixes

* Pear gc sidecar (#137)

* gc sidecar as stream, add usage

* fix win

* remove unused code

* use stream, remove GC class

* remove unused prop

* GC as stream, use os.kill

* use text-decoder

* fix win

* gc to lib/gc

* rebase and update lib errors

* remove text-decoder

* cmd to resource, errors

* add await

* inline close

* Worker (#133)

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* worker

* config.links & trust links when key is trusted

* retrust (cheap) to get new links on start & Pear.config.links

* should never be a json parse error by this point, but just in case there is avoid throwing a SyntaxError (+ other error case output refinement)

* use bundle.drive

* lint 😒

* trust fix + win fix for openSync(3) when parent)

* cannot spawn attached from renderer on windows, spawning from electron-main solves

* working on Windows

* use isBare instead of global.Bare

* move noop

* syntax tidy

* free pipe on close

* spacing

* ERR_INVALID_PACKAGE_JSON

* propagate close/destroy

* post conflict res syntax fixes

---------

Co-authored-by: rafapaezbas <15270736+rafapaezbas@users.noreply.github.com>
Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>
Co-authored-by: yasser <yassern@protonmail.com>

* update key (#148)

* Upgrade dependencies (#147)

* upgrade deps

* upgrade dep

* Paparam (#140)

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* paparam

* working

* fixes & towards bail handling

* command runners, error handling, rm usage, almost everything working, run still todo

* bail shows usage for known input errors, unknown errors log and exit early

* last InputError -> ERR_INPUT

* tweaks, term run fix

* ERR_UKNOWN_GC_RESOURCE -> ERR_INVALID_GC_RESOURCE

* ERR_INVALID_INPUT

* nearly, still some run issues

* run working

* media.access api fix

* run/parse-link rm lib/parse

* run fix

* trace semi-fixed

* warmup fix

* working with appling

* rebase fixes

* improve unrecognized arg output, do not stage cli crash log

* rm stray log

* test fix

---------

Co-authored-by: rafapaezbas <15270736+rafapaezbas@users.noreply.github.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>

* reinstate pear -v and lint fix

* Pear gc release (#145)

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* paparam

* working

* fixes & towards bail handling

* command runners, error handling, rm usage, almost everything working, run still todo

* bail shows usage for known input errors, unknown errors log and exit early

* tweaks, term run fix

* add gc release

* paparam subcommand

* json flag at gc level, cmd/gc signature

* remove outdated files

---------

Co-authored-by: rafapaezbas <15270736+rafapaezbas@users.noreply.github.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>

* Cleanup tests (#150)

* remove id

* typo

* trust / app.id fix

* hide minimize/maximize buttons from trust dialog (#132)

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* hide minimize/maximize buttons from trust dialog

* implemented hideMaximize and hideMinimize in pear-ctrl

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* added pear-ctrl setCtrl

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* missing ref fix

* Add creation of bin scripts when on Windows (#141)

* Fix Windows ps1 script by removing function declaration and passing all arguments

* Add creation of bin scripts on Windows

* Use Windows-style newlines on Windows scripts

* Add message for setting path on Windows

* Add path setup command for MS PowerShell

* minimize and maximize messages to pear-ctrl

* added maximize minimize attributes to pear-ctrl

* pass opts to setCtrl

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* missing ref fix

* Add creation of bin scripts when on Windows (#141)

* Fix Windows ps1 script by removing function declaration and passing all arguments

* Add creation of bin scripts on Windows

* Use Windows-style newlines on Windows scripts

* Add message for setting path on Windows

* Add path setup command for MS PowerShell

* lib/errors.js fixes

* removed messages to pear-ctrl

* corrected pear-ctrl observed attributes

* corrected pear-ctrl for mac

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* missing ref fix

* Add creation of bin scripts when on Windows (#141)

* Fix Windows ps1 script by removing function declaration and passing all arguments

* Add creation of bin scripts on Windows

* Use Windows-style newlines on Windows scripts

* Add message for setting path on Windows

* Add path setup command for MS PowerShell

* lib/errors.js fixes

* Windows pipe name (#143)

* win pipe name

* hex encode

* hash dir with sodium

* add hashToHex

* add hashToHex in helper

* pipeId function

* remove hashToHex

* Pear gc sidecar (#137)

* gc sidecar as stream, add usage

* fix win

* remove unused code

* use stream, remove GC class

* remove unused prop

* GC as stream, use os.kill

* use text-decoder

* fix win

* gc to lib/gc

* rebase and update lib errors

* remove text-decoder

* cmd to resource, errors

* add await

* inline close

* add setCtrl to mac

* added setMinimizable/Maximizable ipc handlers

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* missing ref fix

* Add creation of bin scripts when on Windows (#141)

* Fix Windows ps1 script by removing function declaration and passing all arguments

* Add creation of bin scripts on Windows

* Use Windows-style newlines on Windows scripts

* Add message for setting path on Windows

* Add path setup command for MS PowerShell

* lib/errors.js fixes

* Windows pipe name (#143)

* win pipe name

* hex encode

* hash dir with sodium

* add hashToHex

* add hashToHex in helper

* pipeId function

* remove hashToHex

* Pear gc sidecar (#137)

* gc sidecar as stream, add usage

* fix win

* remove unused code

* use stream, remove GC class

* remove unused prop

* GC as stream, use os.kill

* use text-decoder

* fix win

* gc to lib/gc

* rebase and update lib errors

* remove text-decoder

* cmd to resource, errors

* add await

* inline close

* Worker (#133)

* App storage move (#111)

* app storage move

* pear shift

* make fs ops async

* gc

* gc folder may not be there, but it does not matter, ignore the error

* fix

* Trust dialog poc (#110)

* Implement title bar buttons for generic plaforms like linux

* introduced trust dialog

* add platform trust report

* renamed report to permission required

* linux frame tweaks

* resize window to fit trust dialog

* pear-rpc

* inf wakeup loop fix

* sidecar starting

* wakeup align

* run align

* refs no longer needed, dep fix, arg fix

* fixes

* refactor gui layer to its own folder, pear-rpc now also between renderer and main

* fix

* desktop rpc almost there

* gui dual export (renderer and main), desktop rpc proven

* sucessfully opens on desktop, remaining sidecar ipc statebug

* pear-rpc -> pear-ipc

* unloading on ipc instance in electron-main fix

* explicit forwarding

* desktop working

* stage fix, naming, tidy-up

* graceful-goodbye needed for bootstrap script

* bump pear-ipc

* add verbose (#96)

* uncomment ipc call

* readded used imports

* port in 5d5083f (app upgrades fix)

* conflict fix

* Adapt tests to pear-ipc (#97)

* adapt helper

* adapt helper

* adapting smoke test

* add shutdown test

* cleanup

* client freelist lives in pear-ipc

* fix

* Adapt tests to pear-ipc (#100)

* adapt helper

* add shutdown test

* cleanup

* add tests

* desktop wakeup fix, desktop close fix

* ipc reports stream

* fix ipc close bug

* close client on session teardown

* test fixes, messages fix

* adapt to pear-rpc

* exposed trust method

* ipc close namespace clash fix

* added id in ipc.restart call from trust-dialog

* update test improve, helper improve, RPCStream not ending case in terminal example

* improve smoke eval code

* preferences

* use hypercore-id-encoding from version

* updates test working

* lint

* yeild null to close streams

* fixed decal.html for pear-rpc (#104)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* use-after-close destroy fix

* client restart fix

* --detached fix

* platform restart fix

* devtools opening fix

* client close when not tearing down

* improve client close

* fix cancel and confirm buttons

* fix mac os traffic lights

* restore ERR_PERMISSION_REQUIRED throw

* title bar dragable

* move permission required report to ctx sidecar

* replaced trusted set with array

* revert set trust set change and fixed key check

* *

* added spawned flag

* dont bundle app if key is not trusted

* replace throw with return bail

* remove sidecar untrusted else

* mac titlebar drag fix

* format fix

* reverted uneeded changes

* Revert "mac titlebar drag fix"

This reverts commit f036b99f9be294701cb4305193717091dd33d2bf.

* fix for mac titlebar drag

* fix mac bar

* mac traffic lights / drag bar fix

---------

Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: dmc <david.mark.clements@gmail.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>

* copy/paste text only using right-click (#123)

* use right-click to copy/paste text only

* fix Inspect Element menu

* Pear info <channelName> (#108)

* pear info channel

* remove display nested props

* bring json to end of usage info

* use parse defaults

* handle in ipc info handler

* keys as metadata

* parsed as ternary

* join bundle, close bundle

* update usage, newline in full changelog

* ignore stdio for --detached run (#129)

* ignore stdio for --detached run

* Revert "ignore stdio for --detached run"

This reverts commit e52d86245675d8ecdbdd709d7ae600b6ceeae0ce.

* ignore stdio for --detached run

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* filter Linux Electron error logs (#134)

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* worker

* config.links & trust links when key is trusted

* retrust (cheap) to get new links on start & Pear.config.links

* should never be a json parse error by this point, but just in case there is avoid throwing a SyntaxError (+ other error case output refinement)

* use bundle.drive

* lint 😒

* trust fix + win fix for openSync(3) when parent)

* cannot spawn attached from renderer on windows, spawning from electron-main solves

* working on Windows

* use isBare instead of global.Bare

* move noop

* syntax tidy

* free pipe on close

* spacing

* ERR_INVALID_PACKAGE_JSON

* propagate close/destroy

* post conflict res syntax fixes

---------

Co-authored-by: rafapaezbas <15270736+rafapaezbas@users.noreply.github.com>
Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>
Co-authored-by: yasser <yassern@protonmail.com>

* upgrade test deps (#146)

* update key (#148)

* Upgrade dependencies (#147)

* upgrade deps

* upgrade dep

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* paparam

* working

* fixes & towards bail handling

* command runners, error handling, rm usage, almost everything working, run still todo

* bail shows usage for known input errors, unknown errors log and exit early

* last InputError -> ERR_INPUT

* tweaks, term run fix

* ERR_UKNOWN_GC_RESOURCE -> ERR_INVALID_GC_RESOURCE

* ERR_INVALID_INPUT

* nearly, still some run issues

* run working

* media.access api fix

* run/parse-link rm lib/parse

* run fix

* trace semi-fixed

* warmup fix

* working with appling

* rebase fixes

* added ipc methods for setMinimizable and setMaximizable

* clean console.log

---------

Co-authored-by: David Mark Clements <david.mark.clements@gmail.com>
Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>
Co-authored-by: yasser <yassern@protonmail.com>
Co-authored-by: Jan Keith Darunday <jkcdarunday@gmail.com>

* ipc: stream handlers converted from async gens (#120)

* ipc: stream handlers converted from async gens

* fixes, stage warmup still to fix

* run fix

* ERR_INPUT not a constructor

* ERR_INPUT -> ERR_INVALID_INPUT

* tweaks/fixes

* tweaks

* pear dev fix (allow empty link)

* pear dev fix (config.args should always be an array)

* release bug fix (#152)

* dir to ctx, join bundle, output errors

* remove swarm join

* Pear.config dev property for Update Button (#156)

* dev prop in config

* dev default to false

* Sidecar subsystem refactor (#155)

* sidecar subsystem refactor

* Context -> State

* state store bug fix

* sidecar working

* rel dep path fixes, run fixes, http fixes

* decal rel dep path fix

* rm stray cmt

* make sure dev is false not falsy

* prod sidecar fix

* addons fix

* deadcode removal

* desktopSources fix

* Print error on release for 'previewFor' (#157)

* improve error name and message

* perform config previewFor check on manifest object + error name improvements

* gaurd against no pear config

---------

Co-authored-by: dmc <david.mark.clements@gmail.com>

* -d alias for --dev

* fix ignore flag (#161)

* add verbose mode to tests (#162)

* fix Pear.config.dir

* fix the port, fallback to 0 (#169)

* use listen-async (#170)

* bind to local only (#171)

* fix reports (#167)

* fix reports

* transform sidecar bus data in pipelines

* call callback at the end of busTransformer

* fix reports tweaks

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* missing ref

* Paparam (#140)

* Clean up errors (#125)

* added errors class and replaced gui errors

* clean up errors in preload, parse and run

* refactored sidecar errors

* replaced iface InputError

* reverted errors clean up in cmd and prefixed with ERR

* removed static functions from PearError

* added ERR_ASSERTION

* added invalid storage error

* added ERR_INSTANCE_CLOSED

* reverted changes in cmd/seed

* renamed ERR_SHIFT_STORAGE to ERR_SHIFT_STORAGE_ERROR

* reverted error cleanup in gui/* files

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>

* paparam

* working

* fixes & towards bail handling

* command runners, error handling, rm usage, almost everything working, run still todo

* bail shows usage for known input errors, unknown errors log and exit early

* last InputError -> ERR_INPUT

* tweaks, term run fix

* ERR_UKNOWN_GC_RESOURCE -> ERR_INVALID_GC_RESOURCE

* ERR_INVALID_INPUT

* nearly, still some run issues

* run working

* media.access api fix

* run/parse-link rm lib/parse

* run fix

* trace semi-fixed

* warmup fix

* working with appling

* rebase fixes

* improve unrecognized arg output, do not stage cli crash log

* rm stray log

* test fix

---------

Co-authored-by: rafapaezbas <15270736+rafapaezbas@users.noreply.github.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>

* Sidecar subsystem refactor (#155)

* sidecar subsystem refactor

* Context -> State

* state store bug fix

* sidecar working

* rel dep path fixes, run fixes, http fixes

* decal rel dep path fix

* rm stray cmt

* make sure dev is false not falsy

* prod sidecar fix

* addons fix

* deadcode removal

* desktopSources fix

* shareIdentity & clearIdentity

* clearIdentity hookup, api iterate

* Pear.identity.request(pk)

* working

* postrebase realign

* more alignment

* more alignment

* fix

* bump pear-ipc

* fix

* missing deps

---------

Co-authored-by: rafapaezbas <15270736+rafapaezbas@users.noreply.github.com>
Co-authored-by: jb <cayasso@gmail.com>
Co-authored-by: rafapaezbas <rafa@holepunch.com>
Co-authored-by: Dan <ruy-dan@protonmail.com>
Co-authored-by: yasser <yassern@protonmail.com>
Co-authored-by: Jan Keith Darunday <jkcdarunday@gmail.com>
davidmarkclements added a commit that referenced this pull request Jun 7, 2024
* improve error name and message

* perform config previewFor check on manifest object + error name improvements

* gaurd against no pear config

---------

Co-authored-by: dmc <david.mark.clements@gmail.com>
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.

None yet

2 participants