@noldova/desktop.runtime 0.0.0-stage → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +82 -2
- package/api/index.d.ts +16401 -0
- package/api/index.js +256 -0
- package/api/index.js.map +1 -0
- package/api/testing.d.ts +2128 -0
- package/api/testing.js +20 -0
- package/api/testing.js.map +1 -0
- package/enums/agent-control-failure.js +13 -0
- package/enums/agent-control-failure.js.map +1 -0
- package/enums/build-relation.js +14 -0
- package/enums/build-relation.js.map +1 -0
- package/enums/data-directory-state.js +14 -0
- package/enums/data-directory-state.js.map +1 -0
- package/enums/endpoint-kind.js +13 -0
- package/enums/endpoint-kind.js.map +1 -0
- package/enums/permission-decision.js +18 -0
- package/enums/permission-decision.js.map +1 -0
- package/enums/permission-detail-kind.js +15 -0
- package/enums/permission-detail-kind.js.map +1 -0
- package/enums/permission-option.js +16 -0
- package/enums/permission-option.js.map +1 -0
- package/enums/session-state.js +17 -0
- package/enums/session-state.js.map +1 -0
- package/enums/tool-abort-reason.js +16 -0
- package/enums/tool-abort-reason.js.map +1 -0
- package/enums/tool-content-kind.js +13 -0
- package/enums/tool-content-kind.js.map +1 -0
- package/enums/tool-failure-code.js +22 -0
- package/enums/tool-failure-code.js.map +1 -0
- package/enums/tool-risk.js +14 -0
- package/enums/tool-risk.js.map +1 -0
- package/enums/unknown-schema-failure.js +14 -0
- package/enums/unknown-schema-failure.js.map +1 -0
- package/enums/update-barrier-state.js +14 -0
- package/enums/update-barrier-state.js.map +1 -0
- package/enums/update-barrier-status.js +14 -0
- package/enums/update-barrier-status.js.map +1 -0
- package/enums/window-state-kind.js +13 -0
- package/enums/window-state-kind.js.map +1 -0
- package/exceptions/addon-incomplete.exception.js +17 -0
- package/exceptions/addon-incomplete.exception.js.map +1 -0
- package/exceptions/addon-load-failed.exception.js +17 -0
- package/exceptions/addon-load-failed.exception.js.map +1 -0
- package/exceptions/addon-load.exception.js +14 -0
- package/exceptions/addon-load.exception.js.map +1 -0
- package/exceptions/addon-missing.exception.js +19 -0
- package/exceptions/addon-missing.exception.js.map +1 -0
- package/exceptions/addon-unexpected-value.exception.js +17 -0
- package/exceptions/addon-unexpected-value.exception.js.map +1 -0
- package/exceptions/agent-control.exception.js +28 -0
- package/exceptions/agent-control.exception.js.map +1 -0
- package/exceptions/answerer-registered.exception.js +10 -0
- package/exceptions/answerer-registered.exception.js.map +1 -0
- package/exceptions/app-image-copy-unavailable.exception.js +17 -0
- package/exceptions/app-image-copy-unavailable.exception.js.map +1 -0
- package/exceptions/app-image-copy-unlisted.exception.js +17 -0
- package/exceptions/app-image-copy-unlisted.exception.js.map +1 -0
- package/exceptions/backup-verification.exception.js +15 -0
- package/exceptions/backup-verification.exception.js.map +1 -0
- package/exceptions/batch-argument-refused.exception.js +17 -0
- package/exceptions/batch-argument-refused.exception.js.map +1 -0
- package/exceptions/batch-system-root-missing.exception.js +15 -0
- package/exceptions/batch-system-root-missing.exception.js.map +1 -0
- package/exceptions/build-mismatch.exception.js +18 -0
- package/exceptions/build-mismatch.exception.js.map +1 -0
- package/exceptions/call-unanswered.exception.js +17 -0
- package/exceptions/call-unanswered.exception.js.map +1 -0
- package/exceptions/command-failed.exception.js +18 -0
- package/exceptions/command-failed.exception.js.map +1 -0
- package/exceptions/command-registered.exception.js +10 -0
- package/exceptions/command-registered.exception.js.map +1 -0
- package/exceptions/connection-closed.exception.js +16 -0
- package/exceptions/connection-closed.exception.js.map +1 -0
- package/exceptions/connection-refused.exception.js +14 -0
- package/exceptions/connection-refused.exception.js.map +1 -0
- package/exceptions/connection.exception.js +16 -0
- package/exceptions/connection.exception.js.map +1 -0
- package/exceptions/data-directory-owned.exception.js +18 -0
- package/exceptions/data-directory-owned.exception.js.map +1 -0
- package/exceptions/declaration-field-invalid.exception.js +10 -0
- package/exceptions/declaration-field-invalid.exception.js.map +1 -0
- package/exceptions/declaration-not-object.exception.js +8 -0
- package/exceptions/declaration-not-object.exception.js.map +1 -0
- package/exceptions/declarations-format.exception.js +14 -0
- package/exceptions/declarations-format.exception.js.map +1 -0
- package/exceptions/declarations-unreadable.exception.js +18 -0
- package/exceptions/declarations-unreadable.exception.js.map +1 -0
- package/exceptions/declarations-version-unsupported.exception.js +10 -0
- package/exceptions/declarations-version-unsupported.exception.js.map +1 -0
- package/exceptions/discovery-field-invalid.exception.js +10 -0
- package/exceptions/discovery-field-invalid.exception.js.map +1 -0
- package/exceptions/discovery-format.exception.js +14 -0
- package/exceptions/discovery-format.exception.js.map +1 -0
- package/exceptions/discovery-not-object.exception.js +8 -0
- package/exceptions/discovery-not-object.exception.js.map +1 -0
- package/exceptions/discovery-unreadable.exception.js +18 -0
- package/exceptions/discovery-unreadable.exception.js.map +1 -0
- package/exceptions/discovery-version-unsupported.exception.js +10 -0
- package/exceptions/discovery-version-unsupported.exception.js.map +1 -0
- package/exceptions/endpoint-unavailable.exception.js +15 -0
- package/exceptions/endpoint-unavailable.exception.js.map +1 -0
- package/exceptions/environment-unreadable.exception.js +15 -0
- package/exceptions/environment-unreadable.exception.js.map +1 -0
- package/exceptions/event-declared.exception.js +10 -0
- package/exceptions/event-declared.exception.js.map +1 -0
- package/exceptions/event-withdrawn.exception.js +10 -0
- package/exceptions/event-withdrawn.exception.js.map +1 -0
- package/exceptions/exit-code-unreadable.exception.js +17 -0
- package/exceptions/exit-code-unreadable.exception.js.map +1 -0
- package/exceptions/exit-wait-timed-out.exception.js +19 -0
- package/exceptions/exit-wait-timed-out.exception.js.map +1 -0
- package/exceptions/folder-not-private.exception.js +19 -0
- package/exceptions/folder-not-private.exception.js.map +1 -0
- package/exceptions/foreground-group-read-failed.exception.js +18 -0
- package/exceptions/foreground-group-read-failed.exception.js.map +1 -0
- package/exceptions/foreground-group-unreadable.exception.js +19 -0
- package/exceptions/foreground-group-unreadable.exception.js.map +1 -0
- package/exceptions/handshake-closed.exception.js +15 -0
- package/exceptions/handshake-closed.exception.js.map +1 -0
- package/exceptions/handshake-identity-mismatch.exception.js +15 -0
- package/exceptions/handshake-identity-mismatch.exception.js.map +1 -0
- package/exceptions/handshake-timed-out.exception.js +15 -0
- package/exceptions/handshake-timed-out.exception.js.map +1 -0
- package/exceptions/job-assignment-failed.exception.js +19 -0
- package/exceptions/job-assignment-failed.exception.js.map +1 -0
- package/exceptions/job-closed-before-exit.exception.js +17 -0
- package/exceptions/job-closed-before-exit.exception.js.map +1 -0
- package/exceptions/launch-descriptors-unavailable.exception.js +15 -0
- package/exceptions/launch-descriptors-unavailable.exception.js.map +1 -0
- package/exceptions/launch-limit-reached.exception.js +17 -0
- package/exceptions/launch-limit-reached.exception.js.map +1 -0
- package/exceptions/launch-shell-unavailable.exception.js +15 -0
- package/exceptions/launch-shell-unavailable.exception.js.map +1 -0
- package/exceptions/launch-start-failed.exception.js +17 -0
- package/exceptions/launch-start-failed.exception.js.map +1 -0
- package/exceptions/launch-timed-out.exception.js +15 -0
- package/exceptions/launch-timed-out.exception.js.map +1 -0
- package/exceptions/launch.exception.js +14 -0
- package/exceptions/launch.exception.js.map +1 -0
- package/exceptions/main-process-refused-again.exception.js +15 -0
- package/exceptions/main-process-refused-again.exception.js.map +1 -0
- package/exceptions/method-failure.exception.js +16 -0
- package/exceptions/method-failure.exception.js.map +1 -0
- package/exceptions/method-registered.exception.js +10 -0
- package/exceptions/method-registered.exception.js.map +1 -0
- package/exceptions/migration.exception.js +17 -0
- package/exceptions/migration.exception.js.map +1 -0
- package/exceptions/module-activation.exception.js +17 -0
- package/exceptions/module-activation.exception.js.map +1 -0
- package/exceptions/module-database.exception.js +17 -0
- package/exceptions/module-database.exception.js.map +1 -0
- package/exceptions/module-id-device.exception.js +10 -0
- package/exceptions/module-id-device.exception.js.map +1 -0
- package/exceptions/module-load.exception.js +15 -0
- package/exceptions/module-load.exception.js.map +1 -0
- package/exceptions/module-stopping.exception.js +19 -0
- package/exceptions/module-stopping.exception.js.map +1 -0
- package/exceptions/move-aside-refused.exception.js +17 -0
- package/exceptions/move-aside-refused.exception.js.map +1 -0
- package/exceptions/no-job-for-exit-code.exception.js +17 -0
- package/exceptions/no-job-for-exit-code.exception.js.map +1 -0
- package/exceptions/no-runtime.exception.js +17 -0
- package/exceptions/no-runtime.exception.js.map +1 -0
- package/exceptions/not-contributed.exception.js +14 -0
- package/exceptions/not-contributed.exception.js.map +1 -0
- package/exceptions/notification-command-not-allowed.exception.js +12 -0
- package/exceptions/notification-command-not-allowed.exception.js.map +1 -0
- package/exceptions/notification-kind-changed.exception.js +12 -0
- package/exceptions/notification-kind-changed.exception.js.map +1 -0
- package/exceptions/ownership-released.exception.js +15 -0
- package/exceptions/ownership-released.exception.js.map +1 -0
- package/exceptions/permission-access.exception.js +14 -0
- package/exceptions/permission-access.exception.js.map +1 -0
- package/exceptions/permissions-closed.exception.js +8 -0
- package/exceptions/permissions-closed.exception.js.map +1 -0
- package/exceptions/permissions-module-only.exception.js +10 -0
- package/exceptions/permissions-module-only.exception.js.map +1 -0
- package/exceptions/pre-shell-data-found.exception.js +18 -0
- package/exceptions/pre-shell-data-found.exception.js.map +1 -0
- package/exceptions/pre-shell-data.exception.js +19 -0
- package/exceptions/pre-shell-data.exception.js.map +1 -0
- package/exceptions/process-start-failed.exception.js +17 -0
- package/exceptions/process-start-failed.exception.js.map +1 -0
- package/exceptions/process-start.exception.js +14 -0
- package/exceptions/process-start.exception.js.map +1 -0
- package/exceptions/process-table-row-unreadable.exception.js +17 -0
- package/exceptions/process-table-row-unreadable.exception.js.map +1 -0
- package/exceptions/product-file.exception.js +18 -0
- package/exceptions/product-file.exception.js.map +1 -0
- package/exceptions/program-not-found.exception.js +17 -0
- package/exceptions/program-not-found.exception.js.map +1 -0
- package/exceptions/program-path-relative.exception.js +17 -0
- package/exceptions/program-path-relative.exception.js.map +1 -0
- package/exceptions/pseudo-terminal-batch-refused.exception.js +17 -0
- package/exceptions/pseudo-terminal-batch-refused.exception.js.map +1 -0
- package/exceptions/pseudo-terminal-command-line-batch-refused.exception.js +17 -0
- package/exceptions/pseudo-terminal-command-line-batch-refused.exception.js.map +1 -0
- package/exceptions/pseudo-terminal-command-line-refused.exception.js +17 -0
- package/exceptions/pseudo-terminal-command-line-refused.exception.js.map +1 -0
- package/exceptions/pseudo-terminal-command-line-with-arguments.exception.js +17 -0
- package/exceptions/pseudo-terminal-command-line-with-arguments.exception.js.map +1 -0
- package/exceptions/pseudo-terminals-undeclared.exception.js +19 -0
- package/exceptions/pseudo-terminals-undeclared.exception.js.map +1 -0
- package/exceptions/registration.exception.js +14 -0
- package/exceptions/registration.exception.js.map +1 -0
- package/exceptions/runtime-exited-without-reason.exception.js +15 -0
- package/exceptions/runtime-exited-without-reason.exception.js.map +1 -0
- package/exceptions/runtime-exited.exception.js +17 -0
- package/exceptions/runtime-exited.exception.js.map +1 -0
- package/exceptions/runtime-handover.exception.js +18 -0
- package/exceptions/runtime-handover.exception.js.map +1 -0
- package/exceptions/runtime-unreachable.exception.js +17 -0
- package/exceptions/runtime-unreachable.exception.js.map +1 -0
- package/exceptions/runtime.exception.js +14 -0
- package/exceptions/runtime.exception.js.map +1 -0
- package/exceptions/secret-not-owned.exception.js +12 -0
- package/exceptions/secret-not-owned.exception.js.map +1 -0
- package/exceptions/service-access.exception.js +14 -0
- package/exceptions/service-access.exception.js.map +1 -0
- package/exceptions/service-missing.exception.js +10 -0
- package/exceptions/service-missing.exception.js.map +1 -0
- package/exceptions/service-not-allowed.exception.js +12 -0
- package/exceptions/service-not-allowed.exception.js.map +1 -0
- package/exceptions/service-not-owned.exception.js +12 -0
- package/exceptions/service-not-owned.exception.js.map +1 -0
- package/exceptions/service-published.exception.js +10 -0
- package/exceptions/service-published.exception.js.map +1 -0
- package/exceptions/service-type-mismatch.exception.js +12 -0
- package/exceptions/service-type-mismatch.exception.js.map +1 -0
- package/exceptions/setting-needs-device.exception.js +11 -0
- package/exceptions/setting-needs-device.exception.js.map +1 -0
- package/exceptions/setting-not-readable.exception.js +12 -0
- package/exceptions/setting-not-readable.exception.js.map +1 -0
- package/exceptions/setting-not-writable.exception.js +12 -0
- package/exceptions/setting-not-writable.exception.js.map +1 -0
- package/exceptions/setting-scope-not-allowed.exception.js +13 -0
- package/exceptions/setting-scope-not-allowed.exception.js.map +1 -0
- package/exceptions/setting-scope-not-owned.exception.js +12 -0
- package/exceptions/setting-scope-not-owned.exception.js.map +1 -0
- package/exceptions/setting-unknown.exception.js +11 -0
- package/exceptions/setting-unknown.exception.js.map +1 -0
- package/exceptions/setting-value-invalid.exception.js +11 -0
- package/exceptions/setting-value-invalid.exception.js.map +1 -0
- package/exceptions/setting.exception.js +14 -0
- package/exceptions/setting.exception.js.map +1 -0
- package/exceptions/stop-refused.exception.js +17 -0
- package/exceptions/stop-refused.exception.js.map +1 -0
- package/exceptions/stop-timed-out.exception.js +15 -0
- package/exceptions/stop-timed-out.exception.js.map +1 -0
- package/exceptions/system-command.exception.js +14 -0
- package/exceptions/system-command.exception.js.map +1 -0
- package/exceptions/system-root-missing.exception.js +15 -0
- package/exceptions/system-root-missing.exception.js.map +1 -0
- package/exceptions/tool-endpoint.exception.js +15 -0
- package/exceptions/tool-endpoint.exception.js.map +1 -0
- package/exceptions/tool-failure.exception.js +16 -0
- package/exceptions/tool-failure.exception.js.map +1 -0
- package/exceptions/tool-registered.exception.js +10 -0
- package/exceptions/tool-registered.exception.js.map +1 -0
- package/exceptions/unknown-schema.exception.js +30 -0
- package/exceptions/unknown-schema.exception.js.map +1 -0
- package/exceptions/update-in-progress.exception.js +19 -0
- package/exceptions/update-in-progress.exception.js.map +1 -0
- package/exceptions/update-preparing.exception.js +19 -0
- package/exceptions/update-preparing.exception.js.map +1 -0
- package/exceptions/user-identity-unreadable.exception.js +17 -0
- package/exceptions/user-identity-unreadable.exception.js.map +1 -0
- package/exceptions/verbatim-batch-refused.exception.js +17 -0
- package/exceptions/verbatim-batch-refused.exception.js.map +1 -0
- package/exceptions/web-view-failure.exception.js +17 -0
- package/exceptions/web-view-failure.exception.js.map +1 -0
- package/exceptions/work-in-progress.exception.js +17 -0
- package/exceptions/work-in-progress.exception.js.map +1 -0
- package/interfaces/i-app-shortcuts.js +9 -0
- package/interfaces/i-app-shortcuts.js.map +1 -0
- package/interfaces/i-app-windows.js +9 -0
- package/interfaces/i-app-windows.js.map +1 -0
- package/interfaces/i-environment-source.js +9 -0
- package/interfaces/i-environment-source.js.map +1 -0
- package/interfaces/i-event-sink.js +9 -0
- package/interfaces/i-event-sink.js.map +1 -0
- package/interfaces/i-file-share-options.js +9 -0
- package/interfaces/i-file-share-options.js.map +1 -0
- package/interfaces/i-folder-protector.js +9 -0
- package/interfaces/i-folder-protector.js.map +1 -0
- package/interfaces/i-idle-participant.js +9 -0
- package/interfaces/i-idle-participant.js.map +1 -0
- package/interfaces/i-issued-grant.js +9 -0
- package/interfaces/i-issued-grant.js.map +1 -0
- package/interfaces/i-line-process-listener.js +9 -0
- package/interfaces/i-line-process-listener.js.map +1 -0
- package/interfaces/i-line-process-starter.js +9 -0
- package/interfaces/i-line-process-starter.js.map +1 -0
- package/interfaces/i-line-process.js +9 -0
- package/interfaces/i-line-process.js.map +1 -0
- package/interfaces/i-main-process-check.js +9 -0
- package/interfaces/i-main-process-check.js.map +1 -0
- package/interfaces/i-method-handler.js +9 -0
- package/interfaces/i-method-handler.js.map +1 -0
- package/interfaces/i-module-database.js +9 -0
- package/interfaces/i-module-database.js.map +1 -0
- package/interfaces/i-module-log.js +9 -0
- package/interfaces/i-module-log.js.map +1 -0
- package/interfaces/i-module-secrets.js +9 -0
- package/interfaces/i-module-secrets.js.map +1 -0
- package/interfaces/i-module-settings.js +9 -0
- package/interfaces/i-module-settings.js.map +1 -0
- package/interfaces/i-peer-process-api.js +9 -0
- package/interfaces/i-peer-process-api.js.map +1 -0
- package/interfaces/i-permission-answerer.js +9 -0
- package/interfaces/i-permission-answerer.js.map +1 -0
- package/interfaces/i-permission-detail.js +9 -0
- package/interfaces/i-permission-detail.js.map +1 -0
- package/interfaces/i-permission-request.js +9 -0
- package/interfaces/i-permission-request.js.map +1 -0
- package/interfaces/i-permissions-context.js +9 -0
- package/interfaces/i-permissions-context.js.map +1 -0
- package/interfaces/i-posix-process-addon.js +9 -0
- package/interfaces/i-posix-process-addon.js.map +1 -0
- package/interfaces/i-posix-process-api.js +9 -0
- package/interfaces/i-posix-process-api.js.map +1 -0
- package/interfaces/i-posix-process-table-api.js +9 -0
- package/interfaces/i-posix-process-table-api.js.map +1 -0
- package/interfaces/i-process-ender.js +9 -0
- package/interfaces/i-process-ender.js.map +1 -0
- package/interfaces/i-process-starter.js +9 -0
- package/interfaces/i-process-starter.js.map +1 -0
- package/interfaces/i-process-table.reader.js +9 -0
- package/interfaces/i-process-table.reader.js.map +1 -0
- package/interfaces/i-profile-watch.js +9 -0
- package/interfaces/i-profile-watch.js.map +1 -0
- package/interfaces/i-pseudo-terminal-exit.js +9 -0
- package/interfaces/i-pseudo-terminal-exit.js.map +1 -0
- package/interfaces/i-pseudo-terminal-handle.js +9 -0
- package/interfaces/i-pseudo-terminal-handle.js.map +1 -0
- package/interfaces/i-pseudo-terminal-library.js +9 -0
- package/interfaces/i-pseudo-terminal-library.js.map +1 -0
- package/interfaces/i-pseudo-terminal-options.js +9 -0
- package/interfaces/i-pseudo-terminal-options.js.map +1 -0
- package/interfaces/i-pseudo-terminal-start-options.js +9 -0
- package/interfaces/i-pseudo-terminal-start-options.js.map +1 -0
- package/interfaces/i-pseudo-terminal-subscription.js +9 -0
- package/interfaces/i-pseudo-terminal-subscription.js.map +1 -0
- package/interfaces/i-resolved-file.js +9 -0
- package/interfaces/i-resolved-file.js.map +1 -0
- package/interfaces/i-runtime-client-listener.js +9 -0
- package/interfaces/i-runtime-client-listener.js.map +1 -0
- package/interfaces/i-runtime-discovery-json.js +9 -0
- package/interfaces/i-runtime-discovery-json.js.map +1 -0
- package/interfaces/i-runtime-files.js +9 -0
- package/interfaces/i-runtime-files.js.map +1 -0
- package/interfaces/i-runtime-part-context.js +9 -0
- package/interfaces/i-runtime-part-context.js.map +1 -0
- package/interfaces/i-runtime-part-loader.js +9 -0
- package/interfaces/i-runtime-part-loader.js.map +1 -0
- package/interfaces/i-runtime-part.js +9 -0
- package/interfaces/i-runtime-part.js.map +1 -0
- package/interfaces/i-runtime-web-views.js +9 -0
- package/interfaces/i-runtime-web-views.js.map +1 -0
- package/interfaces/i-secret-backend.js +9 -0
- package/interfaces/i-secret-backend.js.map +1 -0
- package/interfaces/i-session-listener.js +9 -0
- package/interfaces/i-session-listener.js.map +1 -0
- package/interfaces/i-tool-call-options.js +9 -0
- package/interfaces/i-tool-call-options.js.map +1 -0
- package/interfaces/i-tool-call-permissions.js +9 -0
- package/interfaces/i-tool-call-permissions.js.map +1 -0
- package/interfaces/i-tool-deadline.js +9 -0
- package/interfaces/i-tool-deadline.js.map +1 -0
- package/interfaces/i-tool-descriptor.js +9 -0
- package/interfaces/i-tool-descriptor.js.map +1 -0
- package/interfaces/i-tool-endpoint-handler.js +9 -0
- package/interfaces/i-tool-endpoint-handler.js.map +1 -0
- package/interfaces/i-tool-endpoint.js +9 -0
- package/interfaces/i-tool-endpoint.js.map +1 -0
- package/interfaces/i-tool-handler.js +9 -0
- package/interfaces/i-tool-handler.js.map +1 -0
- package/interfaces/i-tool-hints.js +9 -0
- package/interfaces/i-tool-hints.js.map +1 -0
- package/interfaces/i-tool-limits.js +9 -0
- package/interfaces/i-tool-limits.js.map +1 -0
- package/interfaces/i-tool-risk-range.js +9 -0
- package/interfaces/i-tool-risk-range.js.map +1 -0
- package/interfaces/i-tool-schema.validator.js +2 -0
- package/interfaces/i-tool-schema.validator.js.map +1 -0
- package/interfaces/i-tool-session-host.js +9 -0
- package/interfaces/i-tool-session-host.js.map +1 -0
- package/interfaces/i-tools-context.js +9 -0
- package/interfaces/i-tools-context.js.map +1 -0
- package/interfaces/i-web-view-relay.js +9 -0
- package/interfaces/i-web-view-relay.js.map +1 -0
- package/interfaces/i-windows-peer-addon.js +9 -0
- package/interfaces/i-windows-peer-addon.js.map +1 -0
- package/interfaces/i-windows-process-addon.js +9 -0
- package/interfaces/i-windows-process-addon.js.map +1 -0
- package/interfaces/i-windows-process-api.js +9 -0
- package/interfaces/i-windows-process-api.js.map +1 -0
- package/interfaces/i-windows-signature.js +9 -0
- package/interfaces/i-windows-signature.js.map +1 -0
- package/models/app-image-copy-record.js +49 -0
- package/models/app-image-copy-record.js.map +1 -0
- package/models/app-image-source.js +48 -0
- package/models/app-image-source.js.map +1 -0
- package/models/attach-options.js +16 -0
- package/models/attach-options.js.map +1 -0
- package/models/capability-token.js +29 -0
- package/models/capability-token.js.map +1 -0
- package/models/caught-failure.js +15 -0
- package/models/caught-failure.js.map +1 -0
- package/models/client-closure.js +16 -0
- package/models/client-closure.js.map +1 -0
- package/models/client-settings.js +26 -0
- package/models/client-settings.js.map +1 -0
- package/models/connected-client.js +16 -0
- package/models/connected-client.js.map +1 -0
- package/models/data-directory-inspection.js +16 -0
- package/models/data-directory-inspection.js.map +1 -0
- package/models/endpoint.js +46 -0
- package/models/endpoint.js.map +1 -0
- package/models/event-channel.js +25 -0
- package/models/event-channel.js.map +1 -0
- package/models/granted-file.js +41 -0
- package/models/granted-file.js.map +1 -0
- package/models/image-size.js +22 -0
- package/models/image-size.js.map +1 -0
- package/models/kept-program.js +16 -0
- package/models/kept-program.js.map +1 -0
- package/models/launch-settings.js +44 -0
- package/models/launch-settings.js.map +1 -0
- package/models/migration.js +22 -0
- package/models/migration.js.map +1 -0
- package/models/module-activation.js +23 -0
- package/models/module-activation.js.map +1 -0
- package/models/module-declaration.js +203 -0
- package/models/module-declaration.js.map +1 -0
- package/models/notification-handle.js +24 -0
- package/models/notification-handle.js.map +1 -0
- package/models/owned-process.js +42 -0
- package/models/owned-process.js.map +1 -0
- package/models/packaged-path.js +14 -0
- package/models/packaged-path.js.map +1 -0
- package/models/peer-process.js +18 -0
- package/models/peer-process.js.map +1 -0
- package/models/pending-call.js +28 -0
- package/models/pending-call.js.map +1 -0
- package/models/permission-outcome.js +22 -0
- package/models/permission-outcome.js.map +1 -0
- package/models/permission-question.js +23 -0
- package/models/permission-question.js.map +1 -0
- package/models/permission-record.js +23 -0
- package/models/permission-record.js.map +1 -0
- package/models/permission-revocation.js +18 -0
- package/models/permission-revocation.js.map +1 -0
- package/models/process-ending.js +24 -0
- package/models/process-ending.js.map +1 -0
- package/models/process-exit.js +24 -0
- package/models/process-exit.js.map +1 -0
- package/models/process-killing.js +20 -0
- package/models/process-killing.js.map +1 -0
- package/models/process-launch-command.js +46 -0
- package/models/process-launch-command.js.map +1 -0
- package/models/process-launch.js +21 -0
- package/models/process-launch.js.map +1 -0
- package/models/process-record.js +41 -0
- package/models/process-record.js.map +1 -0
- package/models/process-request.js +40 -0
- package/models/process-request.js.map +1 -0
- package/models/process-settings.js +31 -0
- package/models/process-settings.js.map +1 -0
- package/models/process-table-entry.js +30 -0
- package/models/process-table-entry.js.map +1 -0
- package/models/process-table.js +55 -0
- package/models/process-table.js.map +1 -0
- package/models/product-info.js +68 -0
- package/models/product-info.js.map +1 -0
- package/models/pseudo-terminal-console.js +41 -0
- package/models/pseudo-terminal-console.js.map +1 -0
- package/models/pseudo-terminal-exit.js +24 -0
- package/models/pseudo-terminal-exit.js.map +1 -0
- package/models/pseudo-terminal-request.js +44 -0
- package/models/pseudo-terminal-request.js.map +1 -0
- package/models/pseudo-terminal.js +104 -0
- package/models/pseudo-terminal.js.map +1 -0
- package/models/refusal.js +16 -0
- package/models/refusal.js.map +1 -0
- package/models/registered-tool.js +22 -0
- package/models/registered-tool.js.map +1 -0
- package/models/registration.js +17 -0
- package/models/registration.js.map +1 -0
- package/models/remembered-permission.js +26 -0
- package/models/remembered-permission.js.map +1 -0
- package/models/request-context.js +27 -0
- package/models/request-context.js.map +1 -0
- package/models/running-process.js +25 -0
- package/models/running-process.js.map +1 -0
- package/models/running-program.js +26 -0
- package/models/running-program.js.map +1 -0
- package/models/running-tool-call.js +111 -0
- package/models/running-tool-call.js.map +1 -0
- package/models/runtime-build.js +17 -0
- package/models/runtime-build.js.map +1 -0
- package/models/runtime-command.js +39 -0
- package/models/runtime-command.js.map +1 -0
- package/models/runtime-discovery.js +85 -0
- package/models/runtime-discovery.js.map +1 -0
- package/models/runtime-options.js +63 -0
- package/models/runtime-options.js.map +1 -0
- package/models/server-settings.js +34 -0
- package/models/server-settings.js.map +1 -0
- package/models/started-runtime.js +29 -0
- package/models/started-runtime.js.map +1 -0
- package/models/system-error-code.js +29 -0
- package/models/system-error-code.js.map +1 -0
- package/models/terminal-size.js +19 -0
- package/models/terminal-size.js.map +1 -0
- package/models/tool-call.js +65 -0
- package/models/tool-call.js.map +1 -0
- package/models/tool-content.js +44 -0
- package/models/tool-content.js.map +1 -0
- package/models/tool-descriptor.js +104 -0
- package/models/tool-descriptor.js.map +1 -0
- package/models/tool-failure.js +39 -0
- package/models/tool-failure.js.map +1 -0
- package/models/tool-result.js +22 -0
- package/models/tool-result.js.map +1 -0
- package/models/tool-session.js +29 -0
- package/models/tool-session.js.map +1 -0
- package/models/tool-turns.js +31 -0
- package/models/tool-turns.js.map +1 -0
- package/models/update-barrier.js +39 -0
- package/models/update-barrier.js.map +1 -0
- package/models/watched-pseudo-terminal-handle.js +118 -0
- package/models/watched-pseudo-terminal-handle.js.map +1 -0
- package/models/web-view-protocol-event.js +20 -0
- package/models/web-view-protocol-event.js.map +1 -0
- package/models/windows-device-names.js +15 -0
- package/models/windows-device-names.js.map +1 -0
- package/models/work-item.js +29 -0
- package/models/work-item.js.map +1 -0
- package/native/darwin-arm64/posix-process.node +0 -0
- package/native/darwin-x64/posix-process.node +0 -0
- package/native/linux-arm64/posix-process.node +0 -0
- package/native/linux-x64/posix-process.node +0 -0
- package/native/win32-arm64/windows-process.node +0 -0
- package/native/win32-x64/windows-process.node +0 -0
- package/package.json +53 -3
- package/resources.js +1784 -0
- package/resources.js.map +1 -0
- package/services/app-surface/app-shortcuts-changed-method.js +24 -0
- package/services/app-surface/app-shortcuts-changed-method.js.map +1 -0
- package/services/app-surface/app-surface.js +57 -0
- package/services/app-surface/app-surface.js.map +1 -0
- package/services/app-surface/app-windows-changed-method.js +24 -0
- package/services/app-surface/app-windows-changed-method.js.map +1 -0
- package/services/app-surface/main-window-changed-method.js +24 -0
- package/services/app-surface/main-window-changed-method.js.map +1 -0
- package/services/app-surface/main-window-method.js +10 -0
- package/services/app-surface/main-window-method.js.map +1 -0
- package/services/app-surface/module-app-shortcuts.js +27 -0
- package/services/app-surface/module-app-shortcuts.js.map +1 -0
- package/services/app-surface/module-app-windows.js +24 -0
- package/services/app-surface/module-app-windows.js.map +1 -0
- package/services/app-surface/reported-list.js +61 -0
- package/services/app-surface/reported-list.js.map +1 -0
- package/services/client/app-image-copy-launch.js +187 -0
- package/services/client/app-image-copy-launch.js.map +1 -0
- package/services/client/app-image-extraction.js +39 -0
- package/services/client/app-image-extraction.js.map +1 -0
- package/services/client/app-image-keepalive.js +63 -0
- package/services/client/app-image-keepalive.js.map +1 -0
- package/services/client/build-comparer.js +25 -0
- package/services/client/build-comparer.js.map +1 -0
- package/services/client/runtime-client.js +203 -0
- package/services/client/runtime-client.js.map +1 -0
- package/services/client/runtime-launcher.js +259 -0
- package/services/client/runtime-launcher.js.map +1 -0
- package/services/commands/shell-commands.js +18 -0
- package/services/commands/shell-commands.js.map +1 -0
- package/services/commands/system-command.js +31 -0
- package/services/commands/system-command.js.map +1 -0
- package/services/data-directory/data-directory-inspector.js +49 -0
- package/services/data-directory/data-directory-inspector.js.map +1 -0
- package/services/data-directory/data-directory-locator.js +25 -0
- package/services/data-directory/data-directory-locator.js.map +1 -0
- package/services/data-directory/data-directory.js +85 -0
- package/services/data-directory/data-directory.js.map +1 -0
- package/services/database/backup-guard.js +64 -0
- package/services/database/backup-guard.js.map +1 -0
- package/services/database/database-backup.js +122 -0
- package/services/database/database-backup.js.map +1 -0
- package/services/database/migrated-database.js +198 -0
- package/services/database/migrated-database.js.map +1 -0
- package/services/database/module-database.js +21 -0
- package/services/database/module-database.js.map +1 -0
- package/services/database/shell-database.js +25 -0
- package/services/database/shell-database.js.map +1 -0
- package/services/database/shell-migrations.js +22 -0
- package/services/database/shell-migrations.js.map +1 -0
- package/services/database/update-backup.js +57 -0
- package/services/database/update-backup.js.map +1 -0
- package/services/diagnostics/diagnostic-redactor.js +75 -0
- package/services/diagnostics/diagnostic-redactor.js.map +1 -0
- package/services/diagnostics/log-file.js +56 -0
- package/services/diagnostics/log-file.js.map +1 -0
- package/services/diagnostics/log-text.js +15 -0
- package/services/diagnostics/log-text.js.map +1 -0
- package/services/diagnostics/standard-error-cap.js +107 -0
- package/services/diagnostics/standard-error-cap.js.map +1 -0
- package/services/discovery/discovery-publisher.js +64 -0
- package/services/discovery/discovery-publisher.js.map +1 -0
- package/services/discovery/discovery.reader.js +44 -0
- package/services/discovery/discovery.reader.js.map +1 -0
- package/services/discovery/folder-protector-factory.js +19 -0
- package/services/discovery/folder-protector-factory.js.map +1 -0
- package/services/discovery/mac-folder-protector.js +37 -0
- package/services/discovery/mac-folder-protector.js.map +1 -0
- package/services/discovery/posix-folder-protector.js +15 -0
- package/services/discovery/posix-folder-protector.js.map +1 -0
- package/services/discovery/windows-folder-protector.js +57 -0
- package/services/discovery/windows-folder-protector.js.map +1 -0
- package/services/endpoint/client-closures.js +27 -0
- package/services/endpoint/client-closures.js.map +1 -0
- package/services/endpoint/client-session.js +120 -0
- package/services/endpoint/client-session.js.map +1 -0
- package/services/endpoint/main-process-check.js +48 -0
- package/services/endpoint/main-process-check.js.map +1 -0
- package/services/endpoint/runtime-server.js +355 -0
- package/services/endpoint/runtime-server.js.map +1 -0
- package/services/endpoint/window-closed-method.js +19 -0
- package/services/endpoint/window-closed-method.js.map +1 -0
- package/services/environment/current-environment.js +43 -0
- package/services/environment/current-environment.js.map +1 -0
- package/services/environment/line-process-starter.js +21 -0
- package/services/environment/line-process-starter.js.map +1 -0
- package/services/environment/line-process.js +83 -0
- package/services/environment/line-process.js.map +1 -0
- package/services/environment/login-shell-environment.js +162 -0
- package/services/environment/login-shell-environment.js.map +1 -0
- package/services/environment/profile-watch.js +247 -0
- package/services/environment/profile-watch.js.map +1 -0
- package/services/environment/windows-environment.js +181 -0
- package/services/environment/windows-environment.js.map +1 -0
- package/services/files/discard-file-grants-method.js +24 -0
- package/services/files/discard-file-grants-method.js.map +1 -0
- package/services/files/end-file-grants-method.js +25 -0
- package/services/files/end-file-grants-method.js.map +1 -0
- package/services/files/file-grant-table.js +154 -0
- package/services/files/file-grant-table.js.map +1 -0
- package/services/files/file-identity.js +14 -0
- package/services/files/file-identity.js.map +1 -0
- package/services/files/file-presence.js +26 -0
- package/services/files/file-presence.js.map +1 -0
- package/services/files/file-renamer.js +35 -0
- package/services/files/file-renamer.js.map +1 -0
- package/services/files/folder-watch.js +117 -0
- package/services/files/folder-watch.js.map +1 -0
- package/services/files/grant-file-method.js +24 -0
- package/services/files/grant-file-method.js.map +1 -0
- package/services/files/module-files.js +68 -0
- package/services/files/module-files.js.map +1 -0
- package/services/files/resolve-file-share-method.js +23 -0
- package/services/files/resolve-file-share-method.js.map +1 -0
- package/services/installation/device-folder.js +24 -0
- package/services/installation/device-folder.js.map +1 -0
- package/services/installation/installation.js +207 -0
- package/services/installation/installation.js.map +1 -0
- package/services/installation/process-presence.js +45 -0
- package/services/installation/process-presence.js.map +1 -0
- package/services/lifetime/app-image-copy-cleanup.js +78 -0
- package/services/lifetime/app-image-copy-cleanup.js.map +1 -0
- package/services/lifetime/idle-monitor.js +47 -0
- package/services/lifetime/idle-monitor.js.map +1 -0
- package/services/lifetime/move-aside-method.js +18 -0
- package/services/lifetime/move-aside-method.js.map +1 -0
- package/services/lifetime/quit-answered-method.js +19 -0
- package/services/lifetime/quit-answered-method.js.map +1 -0
- package/services/lifetime/quit-method.js +17 -0
- package/services/lifetime/quit-method.js.map +1 -0
- package/services/lifetime/quit-relay.js +91 -0
- package/services/lifetime/quit-relay.js.map +1 -0
- package/services/lifetime/runtime-host.js +405 -0
- package/services/lifetime/runtime-host.js.map +1 -0
- package/services/lifetime/runtime-log.js +74 -0
- package/services/lifetime/runtime-log.js.map +1 -0
- package/services/lifetime/stop-method.js +39 -0
- package/services/lifetime/stop-method.js.map +1 -0
- package/services/lifetime/update-method.js +24 -0
- package/services/lifetime/update-method.js.map +1 -0
- package/services/lifetime/update-preparation.js +167 -0
- package/services/lifetime/update-preparation.js.map +1 -0
- package/services/lifetime/update-saved-method.js +19 -0
- package/services/lifetime/update-saved-method.js.map +1 -0
- package/services/modules/commands-method.js +17 -0
- package/services/modules/commands-method.js.map +1 -0
- package/services/modules/dependency-states.js +33 -0
- package/services/modules/dependency-states.js.map +1 -0
- package/services/modules/module-context.js +206 -0
- package/services/modules/module-context.js.map +1 -0
- package/services/modules/module-declaration.reader.js +46 -0
- package/services/modules/module-declaration.reader.js.map +1 -0
- package/services/modules/module-host.js +287 -0
- package/services/modules/module-host.js.map +1 -0
- package/services/modules/module-log.js +25 -0
- package/services/modules/module-log.js.map +1 -0
- package/services/modules/modules-method.js +17 -0
- package/services/modules/modules-method.js.map +1 -0
- package/services/modules/package-runtime-part-loader.js +33 -0
- package/services/modules/package-runtime-part-loader.js.map +1 -0
- package/services/modules/run-command-method.js +28 -0
- package/services/modules/run-command-method.js.map +1 -0
- package/services/native/native-addon.js +65 -0
- package/services/native/native-addon.js.map +1 -0
- package/services/notifications/clear-notifications-method.js +18 -0
- package/services/notifications/clear-notifications-method.js.map +1 -0
- package/services/notifications/dismiss-notification-method.js +19 -0
- package/services/notifications/dismiss-notification-method.js.map +1 -0
- package/services/notifications/mark-notifications-read-method.js +18 -0
- package/services/notifications/mark-notifications-read-method.js.map +1 -0
- package/services/notifications/notification-center.js +87 -0
- package/services/notifications/notification-center.js.map +1 -0
- package/services/notifications/notification-policy.js +54 -0
- package/services/notifications/notification-policy.js.map +1 -0
- package/services/notifications/notification-settings.js +32 -0
- package/services/notifications/notification-settings.js.map +1 -0
- package/services/notifications/notifications-method.js +21 -0
- package/services/notifications/notifications-method.js.map +1 -0
- package/services/notifications/post-notification-method.js +26 -0
- package/services/notifications/post-notification-method.js.map +1 -0
- package/services/ownership/ownership-lock.js +73 -0
- package/services/ownership/ownership-lock.js.map +1 -0
- package/services/permissions/module-permissions.js +36 -0
- package/services/permissions/module-permissions.js.map +1 -0
- package/services/permissions/permission-center.js +172 -0
- package/services/permissions/permission-center.js.map +1 -0
- package/services/permissions/permission-request-checker.js +146 -0
- package/services/permissions/permission-request-checker.js.map +1 -0
- package/services/permissions/remembered-permission-store.js +52 -0
- package/services/permissions/remembered-permission-store.js.map +1 -0
- package/services/process/batch-command-line.js +32 -0
- package/services/process/batch-command-line.js.map +1 -0
- package/services/process/child-process-starter.js +68 -0
- package/services/process/child-process-starter.js.map +1 -0
- package/services/process/foreground-process-group.reader.js +64 -0
- package/services/process/foreground-process-group.reader.js.map +1 -0
- package/services/process/linux-process-folder.js +55 -0
- package/services/process/linux-process-folder.js.map +1 -0
- package/services/process/posix-peer-process-api.js +95 -0
- package/services/process/posix-peer-process-api.js.map +1 -0
- package/services/process/posix-process-api.js +50 -0
- package/services/process/posix-process-api.js.map +1 -0
- package/services/process/posix-process-ender.js +199 -0
- package/services/process/posix-process-ender.js.map +1 -0
- package/services/process/posix-process-table.reader.js +24 -0
- package/services/process/posix-process-table.reader.js.map +1 -0
- package/services/process/posix-responsibility-api.js +38 -0
- package/services/process/posix-responsibility-api.js.map +1 -0
- package/services/process/process-clock.js +38 -0
- package/services/process/process-clock.js.map +1 -0
- package/services/process/process-ender-factory.js +22 -0
- package/services/process/process-ender-factory.js.map +1 -0
- package/services/process/process-environment.js +53 -0
- package/services/process/process-environment.js.map +1 -0
- package/services/process/process-record-store.js +35 -0
- package/services/process/process-record-store.js.map +1 -0
- package/services/process/process-signals.js +56 -0
- package/services/process/process-signals.js.map +1 -0
- package/services/process/process-supervisor.js +489 -0
- package/services/process/process-supervisor.js.map +1 -0
- package/services/process/program-launch-resolver.js +88 -0
- package/services/process/program-launch-resolver.js.map +1 -0
- package/services/process/program-locator.js +95 -0
- package/services/process/program-locator.js.map +1 -0
- package/services/process/programs-method.js +17 -0
- package/services/process/programs-method.js.map +1 -0
- package/services/process/windows-peer-process-api.js +52 -0
- package/services/process/windows-peer-process-api.js.map +1 -0
- package/services/process/windows-process-api.js +69 -0
- package/services/process/windows-process-api.js.map +1 -0
- package/services/process/windows-process-ender.js +137 -0
- package/services/process/windows-process-ender.js.map +1 -0
- package/services/process/windows-process-job.js +63 -0
- package/services/process/windows-process-job.js.map +1 -0
- package/services/process/windows-process-killer.js +58 -0
- package/services/process/windows-process-killer.js.map +1 -0
- package/services/process/windows-process-table.reader.js +46 -0
- package/services/process/windows-process-table.reader.js.map +1 -0
- package/services/recent-commands/recent-commands-method.js +18 -0
- package/services/recent-commands/recent-commands-method.js.map +1 -0
- package/services/recent-commands/recent-commands-store.js +29 -0
- package/services/recent-commands/recent-commands-store.js.map +1 -0
- package/services/recent-commands/record-command-method.js +21 -0
- package/services/recent-commands/record-command-method.js.map +1 -0
- package/services/registry/command-registry.js +51 -0
- package/services/registry/command-registry.js.map +1 -0
- package/services/registry/event-registry.js +34 -0
- package/services/registry/event-registry.js.map +1 -0
- package/services/registry/method-registry.js +26 -0
- package/services/registry/method-registry.js.map +1 -0
- package/services/registry/service-registry.js +26 -0
- package/services/registry/service-registry.js.map +1 -0
- package/services/runtime-entry.js +87 -0
- package/services/runtime-entry.js.map +1 -0
- package/services/secrets/machine-secret-backend.js +121 -0
- package/services/secrets/machine-secret-backend.js.map +1 -0
- package/services/secrets/module-secrets.js +37 -0
- package/services/secrets/module-secrets.js.map +1 -0
- package/services/secrets/remove-secret-method.js +19 -0
- package/services/secrets/remove-secret-method.js.map +1 -0
- package/services/secrets/save-secret-method.js +20 -0
- package/services/secrets/save-secret-method.js.map +1 -0
- package/services/secrets/secret-answered-method.js +19 -0
- package/services/secrets/secret-answered-method.js.map +1 -0
- package/services/secrets/secret-status-method.js +18 -0
- package/services/secrets/secret-status-method.js.map +1 -0
- package/services/secrets/secret-table.js +26 -0
- package/services/secrets/secret-table.js.map +1 -0
- package/services/settings/module-settings.js +69 -0
- package/services/settings/module-settings.js.map +1 -0
- package/services/settings/setting-read-method.js +18 -0
- package/services/settings/setting-read-method.js.map +1 -0
- package/services/settings/setting-reset-method.js +20 -0
- package/services/settings/setting-reset-method.js.map +1 -0
- package/services/settings/setting-write-method.js +20 -0
- package/services/settings/setting-write-method.js.map +1 -0
- package/services/settings/settings-read-method.js +18 -0
- package/services/settings/settings-read-method.js.map +1 -0
- package/services/settings/settings.service.js +162 -0
- package/services/settings/settings.service.js.map +1 -0
- package/services/settings/shell-settings.js +78 -0
- package/services/settings/shell-settings.js.map +1 -0
- package/services/tools/agent-control.js +49 -0
- package/services/tools/agent-control.js.map +1 -0
- package/services/tools/image-size.reader.js +35 -0
- package/services/tools/image-size.reader.js.map +1 -0
- package/services/tools/image-size.resources.js +24 -0
- package/services/tools/image-size.resources.js.map +1 -0
- package/services/tools/module-tools.js +77 -0
- package/services/tools/module-tools.js.map +1 -0
- package/services/tools/tool-endpoint.js +131 -0
- package/services/tools/tool-endpoint.js.map +1 -0
- package/services/tools/tool-registry.js +386 -0
- package/services/tools/tool-registry.js.map +1 -0
- package/services/tools/tool-result.validator.js +93 -0
- package/services/tools/tool-result.validator.js.map +1 -0
- package/services/tools/tool-schema.resources.js +45 -0
- package/services/tools/tool-schema.resources.js.map +1 -0
- package/services/tools/tool-schema.validator.js +232 -0
- package/services/tools/tool-schema.validator.js.map +1 -0
- package/services/web-views/module-web-view-relay.js +33 -0
- package/services/web-views/module-web-view-relay.js.map +1 -0
- package/services/web-views/module-web-views.js +46 -0
- package/services/web-views/module-web-views.js.map +1 -0
- package/services/web-views/web-view-answered-method.js +19 -0
- package/services/web-views/web-view-answered-method.js.map +1 -0
- package/services/web-views/web-view-center.js +119 -0
- package/services/web-views/web-view-center.js.map +1 -0
- package/services/web-views/web-view-events-method.js +19 -0
- package/services/web-views/web-view-events-method.js.map +1 -0
- package/services/window-state/window-state-read-method.js +20 -0
- package/services/window-state/window-state-read-method.js.map +1 -0
- package/services/window-state/window-state-store.js +24 -0
- package/services/window-state/window-state-store.js.map +1 -0
- package/services/window-state/window-state-write-method.js +22 -0
- package/services/window-state/window-state-write-method.js.map +1 -0
- package/services/work/work-method.js +17 -0
- package/services/work/work-method.js.map +1 -0
- package/services/work/work-tracker.js +56 -0
- package/services/work/work-tracker.js.map +1 -0
- package/testing/models/fake-app-shortcuts.js +18 -0
- package/testing/models/fake-app-shortcuts.js.map +1 -0
- package/testing/models/fake-app-windows.js +17 -0
- package/testing/models/fake-app-windows.js.map +1 -0
- package/testing/models/fake-module-database.js +17 -0
- package/testing/models/fake-module-database.js.map +1 -0
- package/testing/models/fake-module-log.js +12 -0
- package/testing/models/fake-module-log.js.map +1 -0
- package/testing/models/fake-module-secrets.js +15 -0
- package/testing/models/fake-module-secrets.js.map +1 -0
- package/testing/models/fake-module-settings.js +23 -0
- package/testing/models/fake-module-settings.js.map +1 -0
- package/testing/models/fake-permissions-context.js +28 -0
- package/testing/models/fake-permissions-context.js.map +1 -0
- package/testing/models/fake-runtime-files.js +13 -0
- package/testing/models/fake-runtime-files.js.map +1 -0
- package/testing/models/fake-runtime-part-context.js +70 -0
- package/testing/models/fake-runtime-part-context.js.map +1 -0
- package/testing/models/fake-runtime-web-views.js +26 -0
- package/testing/models/fake-runtime-web-views.js.map +1 -0
- package/testing/models/fake-tools-context.js +72 -0
- package/testing/models/fake-tools-context.js.map +1 -0
- package/testing/models/fake-web-view-relay.js +17 -0
- package/testing/models/fake-web-view-relay.js.map +1 -0
package/resources.js
ADDED
|
@@ -0,0 +1,1784 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import "@noldova/context.core";
|
|
9
|
+
import { PermissionDecision } from "./enums/permission-decision.js";
|
|
10
|
+
import { PermissionDetailKind } from "./enums/permission-detail-kind.js";
|
|
11
|
+
import { PermissionOption } from "./enums/permission-option.js";
|
|
12
|
+
import { ToolRisk } from "./enums/tool-risk.js";
|
|
13
|
+
import { WindowStateKind } from "./enums/window-state-kind.js";
|
|
14
|
+
export class Resources {
|
|
15
|
+
static folderSeparator = "/";
|
|
16
|
+
static rootParameterName = "root";
|
|
17
|
+
static idParameterName = "id";
|
|
18
|
+
static versionParameterName = "version";
|
|
19
|
+
static statementsParameterName = "statements";
|
|
20
|
+
static endpointParameterName = "endpoint";
|
|
21
|
+
static tokenParameterName = "token";
|
|
22
|
+
static processIdParameterName = "processId";
|
|
23
|
+
static executablePathParameterName = "executablePath";
|
|
24
|
+
static productVersionParameterName = "productVersion";
|
|
25
|
+
static protocolVersionParameterName = "protocolVersion";
|
|
26
|
+
static buildParameterName = "build";
|
|
27
|
+
static displayNameParameterName = "displayName";
|
|
28
|
+
static dependenciesParameterName = "dependencies";
|
|
29
|
+
static runtimePackageParameterName = "runtimePackage";
|
|
30
|
+
static contributesParameterName = "contributes";
|
|
31
|
+
static cliPackageField = "cliPackage";
|
|
32
|
+
static cliCommandsField = "cliCommands";
|
|
33
|
+
static webViewsField = "webViews";
|
|
34
|
+
static pseudoTerminalsField = "pseudoTerminals";
|
|
35
|
+
static optionalDependenciesField = "optionalDependencies";
|
|
36
|
+
static switchSettingField = "switchSetting";
|
|
37
|
+
static platformsField = "platforms";
|
|
38
|
+
static noldovaDesktopField = "noldovaDesktop";
|
|
39
|
+
static formatVersionField = "formatVersion";
|
|
40
|
+
static modulesField = "modules";
|
|
41
|
+
static modulePlatforms = new Map([["win32", "windows"], ["darwin", "macos"], ["linux", "linux"]]);
|
|
42
|
+
static platformDisplayNames = new Map([["windows", "Windows"], ["macos", "macOS"], ["linux", "Linux"]]);
|
|
43
|
+
static otherPlatformName = "this platform";
|
|
44
|
+
static optionalDependencyAbsent = "the app doesn't include it.";
|
|
45
|
+
static webViewPaneField = "pane";
|
|
46
|
+
static webViewProfileKeyField = "profileKey";
|
|
47
|
+
static webViewMethodField = "method";
|
|
48
|
+
static webViewParamsField = "params";
|
|
49
|
+
static webViewTimeoutField = "timeoutMilliseconds";
|
|
50
|
+
static webViewIsCutField = "isCut";
|
|
51
|
+
static webViewActionParameter = "action";
|
|
52
|
+
static webViewMoveInvalid = "A web view moves back, forward, reloads or stops; the other calls have their own methods.";
|
|
53
|
+
static rootNotAbsolute = "The data directory must be an absolute path.";
|
|
54
|
+
static migrationIdInvalid = "A migration id is lowercase letters and digits separated by single hyphens.";
|
|
55
|
+
static moduleIdInvalid = "A module id is lowercase kebab-case and is not \"desktop\".";
|
|
56
|
+
static dependencyVersionInvalid = "A dependency's version must have the form <major>.<minor>.<patch>: three whole numbers of up to nine digits without leading zeros, such as 0.0.1.";
|
|
57
|
+
static moduleVersionInvalid = "A module's version must have the form <major>.<minor>.<patch>: three whole numbers of up to nine digits without leading zeros, such as 0.0.1.";
|
|
58
|
+
static ownershipDatabaseFileName = "ownership.sqlite";
|
|
59
|
+
static shellDatabaseFileName = "desktop.sqlite";
|
|
60
|
+
static discoveryFolderName = "discovery";
|
|
61
|
+
static runtimeLogFileName = "runtime.log";
|
|
62
|
+
static previousRuntimeLogFileName = "runtime.previous.log";
|
|
63
|
+
static runtimeErrorsLogFileName = "runtime.errors.log";
|
|
64
|
+
static previousRuntimeErrorsLogFileName = "runtime.previous.errors.log";
|
|
65
|
+
static mainProcessLogFileName = "main.log";
|
|
66
|
+
static previousMainProcessLogFileName = "main.previous.log";
|
|
67
|
+
static startLogPrefix = "start-";
|
|
68
|
+
static startLogExtension = ".log";
|
|
69
|
+
static copyRecordPrefix = "copy-";
|
|
70
|
+
static discoveryFileName = "runtime.json";
|
|
71
|
+
static backupsFolderName = "backups";
|
|
72
|
+
static profileFolderName = "main";
|
|
73
|
+
static modulesFolderName = "modules";
|
|
74
|
+
static workFolderName = "work";
|
|
75
|
+
static logsFolderName = "logs";
|
|
76
|
+
static stagedFolderName = "staged";
|
|
77
|
+
static runtimeEntries = [
|
|
78
|
+
Resources.ownershipDatabaseFileName,
|
|
79
|
+
`${Resources.ownershipDatabaseFileName}-journal`,
|
|
80
|
+
Resources.discoveryFolderName,
|
|
81
|
+
Resources.backupsFolderName,
|
|
82
|
+
Resources.profileFolderName,
|
|
83
|
+
Resources.modulesFolderName,
|
|
84
|
+
Resources.workFolderName,
|
|
85
|
+
Resources.logsFolderName,
|
|
86
|
+
Resources.stagedFolderName
|
|
87
|
+
];
|
|
88
|
+
static moduleIdPattern = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/;
|
|
89
|
+
static migrationIdPattern = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
90
|
+
static reservedModuleId = "desktop";
|
|
91
|
+
static windowsDeviceNames = [
|
|
92
|
+
"con", "prn", "aux", "nul",
|
|
93
|
+
"com0", "com1", "com2", "com3", "com4", "com5", "com6", "com7", "com8", "com9",
|
|
94
|
+
"lpt0", "lpt1", "lpt2", "lpt3", "lpt4", "lpt5", "lpt6", "lpt7", "lpt8", "lpt9"
|
|
95
|
+
];
|
|
96
|
+
static shellSettingsPages = ["Keyboard shortcuts", "About"];
|
|
97
|
+
static moduleVersionPattern = /^(?:0|[1-9][0-9]{0,8})\.(?:0|[1-9][0-9]{0,8})\.(?:0|[1-9][0-9]{0,8})$/;
|
|
98
|
+
static noldovaDesktopRangePattern = /^>=((?:0|[1-9][0-9]{0,8})\.(?:0|[1-9][0-9]{0,8})\.(?:0|[1-9][0-9]{0,8})) <((?:0|[1-9][0-9]{0,8})\.(?:0|[1-9][0-9]{0,8})\.(?:0|[1-9][0-9]{0,8}))$/;
|
|
99
|
+
static movedFolderInfix = "-before-shell-";
|
|
100
|
+
static timestampSeparatorPattern = /[-:]|\.\d+/g;
|
|
101
|
+
static acquireOwnershipStatement = "BEGIN EXCLUSIVE";
|
|
102
|
+
static rollbackStatement = "ROLLBACK";
|
|
103
|
+
static beginStatement = "BEGIN";
|
|
104
|
+
static readSchemaStatement = "SELECT count(*) FROM sqlite_schema";
|
|
105
|
+
static beginMigrationStatement = "BEGIN IMMEDIATE";
|
|
106
|
+
static commitStatement = "COMMIT";
|
|
107
|
+
static writeAheadLogStatement = "PRAGMA journal_mode = WAL";
|
|
108
|
+
static creatingSynchronousStatement = "PRAGMA synchronous = OFF";
|
|
109
|
+
static migratingSynchronousStatement = "PRAGMA synchronous = NORMAL";
|
|
110
|
+
static openSynchronousStatement = "PRAGMA synchronous = FULL";
|
|
111
|
+
static writeAheadLogSuffix = "-wal";
|
|
112
|
+
static flushFileMode = "r+";
|
|
113
|
+
static newDatabaseLimitBytes = 65_536;
|
|
114
|
+
static unreadableFolderInfix = "-unreadable-";
|
|
115
|
+
static rollbackJournalStatement = "PRAGMA journal_mode = DELETE";
|
|
116
|
+
static databaseFileSuffixes = [String.empty, "-wal", "-shm", "-journal"];
|
|
117
|
+
static historyTableName = "migration_history";
|
|
118
|
+
static createHistoryStatement = "CREATE TABLE migration_history (position INTEGER PRIMARY KEY, id TEXT NOT NULL UNIQUE) STRICT";
|
|
119
|
+
static readHistoryStatement = "SELECT position, id FROM migration_history ORDER BY position";
|
|
120
|
+
static insertHistoryStatement = "INSERT INTO migration_history (position, id) VALUES (?, ?)";
|
|
121
|
+
static readTablesStatement = "SELECT name FROM sqlite_schema WHERE type = 'table' AND name NOT LIKE 'sqlite_%' ORDER BY name";
|
|
122
|
+
static integrityCheckStatement = "PRAGMA integrity_check";
|
|
123
|
+
static integrityCheckColumn = "integrity_check";
|
|
124
|
+
static integrityOk = "ok";
|
|
125
|
+
static nameColumn = "name";
|
|
126
|
+
static positionColumn = "position";
|
|
127
|
+
static idColumn = "id";
|
|
128
|
+
static valueColumn = "value";
|
|
129
|
+
static windowStatesMigration = "window-states";
|
|
130
|
+
static quietDevicesMigration = "quiet-devices";
|
|
131
|
+
static createQuietDevicesStatement = "CREATE TABLE quiet_devices (device TEXT PRIMARY KEY) STRICT";
|
|
132
|
+
static quietDevicesMovedMigration = "quiet-devices-moved";
|
|
133
|
+
static forgetDoNotDisturbStatement = "DELETE FROM setting_values WHERE name = 'desktop.doNotDisturb' AND scope_name = '' AND scope_id = '' AND device <> ''";
|
|
134
|
+
static dropQuietDevicesStatement = "DROP TABLE quiet_devices";
|
|
135
|
+
static settingsMigration = "settings";
|
|
136
|
+
static createSettingValuesStatement = "CREATE TABLE setting_values (name TEXT NOT NULL, scope_name TEXT NOT NULL, scope_id TEXT NOT NULL, device TEXT NOT NULL, value TEXT NOT NULL, PRIMARY KEY (name, scope_name, scope_id, device)) STRICT";
|
|
137
|
+
static copyQuietDevicesStatement = "INSERT INTO setting_values (name, scope_name, scope_id, device, value) SELECT 'desktop.doNotDisturb', '', '', device, 'true' FROM quiet_devices";
|
|
138
|
+
static createSettingScopesStatement = "CREATE TABLE setting_scopes (scope_name TEXT NOT NULL, scope_id TEXT NOT NULL, parent_name TEXT NOT NULL, parent_id TEXT NOT NULL, PRIMARY KEY (scope_name, scope_id)) STRICT";
|
|
139
|
+
static readSettingStatement = "SELECT value FROM setting_values WHERE name = ? AND scope_name = ? AND scope_id = ? AND device = ?";
|
|
140
|
+
static readSettingDevicesStatement = "SELECT device, value FROM setting_values WHERE name = ? AND scope_name = '' AND scope_id = '' AND device <> ''";
|
|
141
|
+
static writeSettingStatement = "INSERT INTO setting_values (name, scope_name, scope_id, device, value) VALUES (?, ?, ?, ?, ?) ON CONFLICT (name, scope_name, scope_id, device) DO UPDATE SET value = excluded.value";
|
|
142
|
+
static resetSettingStatement = "DELETE FROM setting_values WHERE name = ? AND scope_name = ? AND scope_id = ? AND device = ?";
|
|
143
|
+
static readScopeParentStatement = "SELECT parent_name, parent_id FROM setting_scopes WHERE scope_name = ? AND scope_id = ?";
|
|
144
|
+
static writeScopeParentStatement = "INSERT INTO setting_scopes (scope_name, scope_id, parent_name, parent_id) VALUES (?, ?, ?, ?) ON CONFLICT (scope_name, scope_id) DO UPDATE SET parent_name = excluded.parent_name, parent_id = excluded.parent_id";
|
|
145
|
+
static removeScopeParentStatement = "DELETE FROM setting_scopes WHERE scope_name = ? AND scope_id = ?";
|
|
146
|
+
static removeScopeValuesStatement = "DELETE FROM setting_values WHERE scope_name = ? AND scope_id = ?";
|
|
147
|
+
static deviceColumn = "device";
|
|
148
|
+
static parentNameColumn = "parent_name";
|
|
149
|
+
static parentIdColumn = "parent_id";
|
|
150
|
+
static applicationScope = String.empty;
|
|
151
|
+
static sharedDevice = String.empty;
|
|
152
|
+
static createWindowStatesStatement = "CREATE TABLE window_states (device TEXT NOT NULL, window TEXT NOT NULL, bounds TEXT, layout TEXT, PRIMARY KEY (device, window)) STRICT";
|
|
153
|
+
static windowStateColumns = {
|
|
154
|
+
[WindowStateKind.Bounds]: "bounds",
|
|
155
|
+
[WindowStateKind.Layout]: "layout"
|
|
156
|
+
};
|
|
157
|
+
static errorCodeField = "errcode";
|
|
158
|
+
static busyErrorCode = 5;
|
|
159
|
+
static sqliteErrorCode = "ERR_SQLITE_ERROR";
|
|
160
|
+
static busyFileErrorCodes = ["EPERM", "EACCES", "EBUSY"];
|
|
161
|
+
static stagedKeptErrorCodes = ["EPERM", "EACCES", "EBUSY", "ERR_FS_EISDIR"];
|
|
162
|
+
static replaceAttempts = 40;
|
|
163
|
+
static refusedTokenRetries = 3;
|
|
164
|
+
static replaceRetryDelay = 50;
|
|
165
|
+
static discoveryReadAttempts = 40;
|
|
166
|
+
static discoveryReadRetryDelay = 50;
|
|
167
|
+
static ownershipWaitMilliseconds = 250;
|
|
168
|
+
static backupGuardWaitMilliseconds = 1000;
|
|
169
|
+
static backupSweepWaitMilliseconds = 250;
|
|
170
|
+
static privateFileMode = 0o600;
|
|
171
|
+
static logSizeLimit = 1048576;
|
|
172
|
+
static errorsLogCheckInterval = 5_000;
|
|
173
|
+
static errorsCapSkippedCodes = ["EBADF", "ENOENT", "EACCES", "EPERM", "EISDIR"];
|
|
174
|
+
static startLogKeptCodes = ["ENOENT", "EACCES", "EPERM", "EBUSY"];
|
|
175
|
+
static readFlag = "r";
|
|
176
|
+
static logRecordShare = 4;
|
|
177
|
+
static missingFileErrorCode = "ENOENT";
|
|
178
|
+
static existingFileErrorCode = "EEXIST";
|
|
179
|
+
static utf8ContinuationMask = 0xC0;
|
|
180
|
+
static utf8ContinuationBits = 0x80;
|
|
181
|
+
static privateFolderMode = 0o700;
|
|
182
|
+
static exclusiveWriteFlag = "wx";
|
|
183
|
+
static temporarySuffix = ".tmp";
|
|
184
|
+
static backupInfix = "-before-migration-";
|
|
185
|
+
static updateBackupInfix = "-before-update-";
|
|
186
|
+
static backupExtension = ".sqlite";
|
|
187
|
+
static backupGuardFileName = ".backup-guard";
|
|
188
|
+
static shellBackupEntryPattern = /^(?:\.backup-guard|[a-z][a-z0-9]*(?:-[a-z0-9]+)*-before-(?:migration-\d+|update)-\d{8}T\d{6}Z\.sqlite(?:\.tmp)?)(?:-wal|-shm|-journal)?$/u;
|
|
189
|
+
static backupTailPattern = /^(?:\d+-)?(\d{8}T\d{6}Z)\.sqlite$/;
|
|
190
|
+
static keptBackupCount = 3;
|
|
191
|
+
static discoveryFormatVersion = 1;
|
|
192
|
+
static declarationsFormatVersion = 2;
|
|
193
|
+
static declarationsFileSegments = ["_build", "modules", "declarations.json"];
|
|
194
|
+
static productFileSegments = ["_build", "product.json"];
|
|
195
|
+
static nameField = "name";
|
|
196
|
+
static slugField = "slug";
|
|
197
|
+
static applicationIdField = "applicationId";
|
|
198
|
+
static developmentApplicationIdField = "developmentApplicationId";
|
|
199
|
+
static dataFolderField = "dataFolder";
|
|
200
|
+
static deviceFoldersField = "deviceFolders";
|
|
201
|
+
static windowsField = "windows";
|
|
202
|
+
static macosField = "macos";
|
|
203
|
+
static linuxField = "linux";
|
|
204
|
+
static dataDirectoryVariableField = "dataDirectoryVariable";
|
|
205
|
+
static iconsField = "icons";
|
|
206
|
+
static windowsPublisherField = "windowsPublisher";
|
|
207
|
+
static updateFeedField = "updateFeed";
|
|
208
|
+
static permissionsModuleField = "permissionsModule";
|
|
209
|
+
static versionField = "version";
|
|
210
|
+
static holderField = "holder";
|
|
211
|
+
static stateField = "state";
|
|
212
|
+
static handoffField = "handoff";
|
|
213
|
+
static extractionField = "extraction";
|
|
214
|
+
static mounterField = "mounter";
|
|
215
|
+
static dataDirectoryField = "dataDirectory";
|
|
216
|
+
static buildField = "build";
|
|
217
|
+
static installRootSegments = ["..", "..", "..", ".."];
|
|
218
|
+
static utf8Encoding = "utf8";
|
|
219
|
+
static nodeErrorCodeField = "code";
|
|
220
|
+
static systemErrorCode = "ERR_SYSTEM_ERROR";
|
|
221
|
+
static unwritableStreamCodes = ["EDQUOT", "ENOSPC", "EIO", "EPIPE", "EBADF", "ERR_STREAM_DESTROYED", "ERR_STREAM_WRITE_AFTER_END"];
|
|
222
|
+
static lineEnd = "\n";
|
|
223
|
+
static mountTableFieldSeparator = " ";
|
|
224
|
+
static asarSegmentPattern = /(^|[\\/])app\.asar(?=[\\/]|$)/u;
|
|
225
|
+
static asarUnpackedReplacement = "$1app.asar.unpacked";
|
|
226
|
+
static millisecondsPerSecond = 1_000;
|
|
227
|
+
static grantByteLength = 16;
|
|
228
|
+
static stopEndCount = 3;
|
|
229
|
+
static settingDeviceColumnIndex = 3;
|
|
230
|
+
static missingFileCode = "ENOENT";
|
|
231
|
+
static lineSeparator = "\n";
|
|
232
|
+
static lineBreakPattern = /\r?\n/;
|
|
233
|
+
static logLineBreakPattern = /\r\n|[\n\v\f\r\u0085\u2028\u2029]/u;
|
|
234
|
+
static logControlPattern = /[^\P{Cc}\t]/gu;
|
|
235
|
+
static windowsPlatform = "win32";
|
|
236
|
+
static systemRootVariable = "SystemRoot";
|
|
237
|
+
static systemFolderName = "System32";
|
|
238
|
+
static identityCommandName = "whoami.exe";
|
|
239
|
+
static identityArguments = ["/user", "/fo", "csv", "/nh"];
|
|
240
|
+
static accessCommandName = "icacls.exe";
|
|
241
|
+
static removeInheritanceArgument = "/inheritance:r";
|
|
242
|
+
static replaceGrantArgument = "/grant:r";
|
|
243
|
+
static resetAccessArgument = "/reset";
|
|
244
|
+
static saveAccessArgument = "/save";
|
|
245
|
+
static accessFileName = "access.sddl";
|
|
246
|
+
static accessFileEncoding = "utf16le";
|
|
247
|
+
static accessEntryPattern = /\((?:[^;()]*;){5}([^;()]+)[^()]*\)/g;
|
|
248
|
+
static protectedAccessPattern = /\bD:[A-Z]*P/;
|
|
249
|
+
static administratorSuffix = "-500";
|
|
250
|
+
static administratorAlias = "LA";
|
|
251
|
+
static securityIdentifierPattern = /"(S-1-[0-9-]+)"\s*$/;
|
|
252
|
+
static listCommand = "/bin/ls";
|
|
253
|
+
static listAccessArgument = "-led";
|
|
254
|
+
static macPrivateModePattern = /^drwx------[@+]? /;
|
|
255
|
+
static macAccessListModePattern = /^drwx------\+ /;
|
|
256
|
+
static macAccessEntryPattern = /^ *\d+: (.+?) (?:inherited )?(allow|deny) /;
|
|
257
|
+
static macUserQualifier = "user:";
|
|
258
|
+
static macDenyKind = "deny";
|
|
259
|
+
static commandTimeoutMilliseconds = 30_000;
|
|
260
|
+
static commandOutputLimit = 1024 * 1024;
|
|
261
|
+
static ownershipReleased = "The data directory's ownership has been released.";
|
|
262
|
+
static systemRootMissing = "SystemRoot is not set, so the Windows system tools cannot be found.";
|
|
263
|
+
static backupUnverified = "The database backup did not pass its integrity check.";
|
|
264
|
+
static shellDatabaseName = "shell database";
|
|
265
|
+
static moduleDatabaseExtension = ".sqlite";
|
|
266
|
+
static thenProperty = "then";
|
|
267
|
+
static actionParameterName = "action";
|
|
268
|
+
static transactionNotSynchronous = "A transaction's action must finish before it returns; it committed nothing, because an awaited step would run after the commit.";
|
|
269
|
+
static moduleDatabaseUnknown = "Its database was written by a newer build or is not one this build recognizes.";
|
|
270
|
+
static moduleDatabaseFailed = "Its database could not be opened or migrated.";
|
|
271
|
+
static discoveryNotObject = "The discovery metadata is not a JSON object.";
|
|
272
|
+
static declarationNotObject = "A module declaration is not a JSON object.";
|
|
273
|
+
static moduleLoadFailed = "Its runtime part could not be loaded.";
|
|
274
|
+
static moduleActivationFailed = "Its runtime part failed to activate.";
|
|
275
|
+
static moduleDeactivationFailed = "One or more runtime parts failed to deactivate.";
|
|
276
|
+
static moduleDeactivationPartFailed = "Its runtime part failed to deactivate.";
|
|
277
|
+
static moduleSwitchFailed = "It could not be turned off or on completely.";
|
|
278
|
+
static runtimePartMissing = "The package does not export a RuntimePart class whose instances can activate and deactivate.";
|
|
279
|
+
static runtimePartExport = "RuntimePart";
|
|
280
|
+
static activateMember = "activateAsync";
|
|
281
|
+
static deactivateMember = "deactivateAsync";
|
|
282
|
+
static methodsKind = "methods";
|
|
283
|
+
static eventsKind = "events";
|
|
284
|
+
static commandsKind = "commands";
|
|
285
|
+
static notificationsKind = "notifications";
|
|
286
|
+
static notificationLimit = 100;
|
|
287
|
+
static settingsKind = "settings";
|
|
288
|
+
static themeSetting = "theme";
|
|
289
|
+
static modeSetting = "mode";
|
|
290
|
+
static interfaceFontSetting = "interfaceFont";
|
|
291
|
+
static codeFontSetting = "codeFont";
|
|
292
|
+
static panelSizeSetting = "panelSize";
|
|
293
|
+
static messageSizeSetting = "messageSize";
|
|
294
|
+
static codeSizeSetting = "codeSize";
|
|
295
|
+
static leftDockStyleSetting = "leftDockStyle";
|
|
296
|
+
static rightDockStyleSetting = "rightDockStyle";
|
|
297
|
+
static previewTabsSetting = "previewTabs";
|
|
298
|
+
static menuBarSetting = "menuBar";
|
|
299
|
+
static doNotDisturbSetting = "doNotDisturb";
|
|
300
|
+
static mutedModulesSetting = "mutedModules";
|
|
301
|
+
static trayIconSetting = "trayIcon";
|
|
302
|
+
static keyBindingsSetting = "keyBindings";
|
|
303
|
+
static recentCommandCountSetting = "recentCommandCount";
|
|
304
|
+
static spellCheckSetting = "spellCheck";
|
|
305
|
+
static spellCheckLanguagesSetting = "spellCheckLanguages";
|
|
306
|
+
static updateChecksSetting = "updateChecks";
|
|
307
|
+
static timeFormatSetting = "timeFormat";
|
|
308
|
+
static dateTimeFormatSetting = "dateTimeFormat";
|
|
309
|
+
static generalPage = "General";
|
|
310
|
+
static appearancePage = "Appearance";
|
|
311
|
+
static notificationsPage = "Notifications";
|
|
312
|
+
static shortcutsPage = "Keyboard shortcuts";
|
|
313
|
+
static aboutPage = "About";
|
|
314
|
+
static themeGroup = "Theme";
|
|
315
|
+
static textGroup = "Text";
|
|
316
|
+
static layoutGroup = "Layout";
|
|
317
|
+
static commandSearchGroup = "Command search";
|
|
318
|
+
static spellingGroup = "Spelling";
|
|
319
|
+
static notificationsGroup = "Notifications";
|
|
320
|
+
static backgroundGroup = "Background";
|
|
321
|
+
static shortcutsGroup = "Keys";
|
|
322
|
+
static updatesGroup = "Updates";
|
|
323
|
+
static dateTimeGroup = "Date and time";
|
|
324
|
+
static timeFormatTitle = "Time format";
|
|
325
|
+
static timeFormatDescription = "Shown beside every message. Tokens: yyyy yy MMMM MMM MM M dd d EEEE EEE HH H hh h mm ss a; punctuation and spaces stay, and other text goes in single quotes, as in 'at' HH:mm.";
|
|
326
|
+
static defaultTimeFormat = "h:mm a";
|
|
327
|
+
static dateTimeFormatTitle = "Date and time format";
|
|
328
|
+
static dateTimeFormatDescription = "Shown where the date matters: message tooltips, recent conversations. Same tokens.";
|
|
329
|
+
static defaultDateTimeFormat = "MMM d, yyyy, h:mm a";
|
|
330
|
+
static maximumFormatLength = 64;
|
|
331
|
+
static defaultThemeId = "desktop.default";
|
|
332
|
+
static defaultThemeTitle = "Default";
|
|
333
|
+
static themeTitle = "Theme";
|
|
334
|
+
static formatPipeLink(inode) {
|
|
335
|
+
return `${Resources.pipeLinkPrefix}[${inode}]`;
|
|
336
|
+
}
|
|
337
|
+
static formatTooManyFileGrants(window, limit) {
|
|
338
|
+
return `Window ${window} holds ${limit} live file grants, the most it may, so no other file is granted until a part redeems or discards one.`;
|
|
339
|
+
}
|
|
340
|
+
static formatGrantedFileUnreadable(code) {
|
|
341
|
+
return `The granted file can't be read (${code}), so it is not read.`;
|
|
342
|
+
}
|
|
343
|
+
static formatSharedFileUnreadable(code) {
|
|
344
|
+
return `The file to share can't be read (${code}), so it is not shared.`;
|
|
345
|
+
}
|
|
346
|
+
static formatMainProcessRefused(connection) {
|
|
347
|
+
return `Connection ${connection} named itself the main process, but its process is not the app's main process, so it was refused.\n`;
|
|
348
|
+
}
|
|
349
|
+
static formatMainProcessSenderChanged(connection) {
|
|
350
|
+
return `Connection ${connection} was checked as the main process, but another process sent on it since, so it was ended.\n`;
|
|
351
|
+
}
|
|
352
|
+
static formatMainProcessCheckFailed(connection, reason) {
|
|
353
|
+
return `Connection ${connection} named itself the main process, and checking its process failed, so it was refused: ${reason}\n`;
|
|
354
|
+
}
|
|
355
|
+
static formatTrayIconTitle(productName, platform) {
|
|
356
|
+
const place = platform === Resources.windowsPlatform ? "the notification area" : platform === Resources.macPlatform ? "the menu bar" : "the tray";
|
|
357
|
+
return `Show ${productName} in ${place}`;
|
|
358
|
+
}
|
|
359
|
+
static formatTrayIconDescription(productName) {
|
|
360
|
+
return `An icon that shows when work is running or notifications are unread, with a menu to open ${productName}, turn on Do not disturb or quit.`;
|
|
361
|
+
}
|
|
362
|
+
static formatThemeDescription(productName) {
|
|
363
|
+
return `The colors and look of ${productName}.`;
|
|
364
|
+
}
|
|
365
|
+
static modeTitle = "Mode";
|
|
366
|
+
static modeDescription = "Follow the operating system, or always light or dark.";
|
|
367
|
+
static modeOptions = [["System", "System"], ["Light", "Light"], ["Dark", "Dark"]];
|
|
368
|
+
static defaultMode = "System";
|
|
369
|
+
static leftDockStyleTitle = "Left dock";
|
|
370
|
+
static leftDockStyleDescription = "Show the left dock's views as tabs, or as icons along the window's left edge.";
|
|
371
|
+
static rightDockStyleTitle = "Right dock";
|
|
372
|
+
static rightDockStyleDescription = "Show the right dock's views as tabs, or as icons along the window's right edge.";
|
|
373
|
+
static previewTabsTitle = "Preview tabs";
|
|
374
|
+
static previewTabsDescription = "Open a document as a preview tab that the next preview replaces until it is kept. Off opens every document as an ordinary tab.";
|
|
375
|
+
static dockStyleOptions = [["Tabs", "Tabs"], ["Icons", "Icons"]];
|
|
376
|
+
static defaultDockStyle = "Tabs";
|
|
377
|
+
static menuBarTitle = "Menus";
|
|
378
|
+
static menuBarDescription = "On Windows and Linux, show the menus as a bar in the window row, as a menu button, or not at all. A menu bar that does not fit the window row folds into the menu button. macOS keeps its menu bar.";
|
|
379
|
+
static menuBarOptions = [["Inline", "Menu bar"], ["Button", "Menu button"], ["Hidden", "Hidden"]];
|
|
380
|
+
static defaultMenuBar = "Inline";
|
|
381
|
+
static interfaceFontTitle = "Interface font";
|
|
382
|
+
static interfaceFontDescription = "The font of menus, panels and prose.";
|
|
383
|
+
static codeFontTitle = "Code font";
|
|
384
|
+
static codeFontDescription = "The font of code and terminals.";
|
|
385
|
+
static fontOptions = [["Noldova", "Noldova"], ["System", "System"]];
|
|
386
|
+
static defaultFont = "Noldova";
|
|
387
|
+
static panelSizeTitle = "Interface text size";
|
|
388
|
+
static panelSizeDescription = "The size of interface text, in pixels; spacing and controls scale with it.";
|
|
389
|
+
static messageSizeTitle = "Message text size";
|
|
390
|
+
static messageSizeDescription = "The size of prose you read and write, in pixels.";
|
|
391
|
+
static codeSizeTitle = "Code text size";
|
|
392
|
+
static codeSizeDescription = "The size of code, in pixels.";
|
|
393
|
+
static minimumTextSize = 12;
|
|
394
|
+
static maximumTextSize = 18;
|
|
395
|
+
static textSizeStep = 1;
|
|
396
|
+
static defaultPanelSize = 13;
|
|
397
|
+
static defaultMessageSize = 13;
|
|
398
|
+
static defaultCodeSize = 12;
|
|
399
|
+
static doNotDisturbTitle = "Do not disturb";
|
|
400
|
+
static doNotDisturbDescription = "Holds back notifications on this device; they still collect in the list.";
|
|
401
|
+
static mutedModulesTitle = "Notifications from modules";
|
|
402
|
+
static mutedModulesDescription = "A module turned off still adds its notifications to the list, without toasts or operating system notifications.";
|
|
403
|
+
static macPlatform = "darwin";
|
|
404
|
+
static keyBindingsTitle = "Keyboard shortcuts";
|
|
405
|
+
static keyBindingsDescription = "The keys you chose for commands, in place of their default keys, on every device.";
|
|
406
|
+
static spellCheckTitle = "Check spelling";
|
|
407
|
+
static spellCheckDescription = "Underline misspelled words in the text you type and offer corrections in the text field's menu. Code is never checked.";
|
|
408
|
+
static spellCheckLanguagesTitle = "Spelling languages";
|
|
409
|
+
static updateChecksTitle = "Check for updates";
|
|
410
|
+
static updateChecksDescription = "When this device looks for a newer version: shortly after starting and then every 10 minutes, only shortly after starting, or only when you choose Check for updates. A newer version downloads by itself; installing it waits for you.";
|
|
411
|
+
static updateChecksOptions = [["Automatic", "Automatically"], ["AtStart", "Only at start"], ["OnRequest", "Only when I ask"]];
|
|
412
|
+
static defaultUpdateChecks = "Automatic";
|
|
413
|
+
static spellCheckLanguagesDescription = "The languages words are checked in on this device. With none chosen, the operating system's languages that have a dictionary are used, or else the first language offered. On macOS the system chooses the languages.";
|
|
414
|
+
static recentCommandCountTitle = "Recent commands";
|
|
415
|
+
static recentCommandCountDescription = "How many commands you recently ran from command search are listed first. 0 lists none.";
|
|
416
|
+
static maximumRecentCommands = 20;
|
|
417
|
+
static defaultRecentCommands = 5;
|
|
418
|
+
static settingScopesKind = "settingScopes";
|
|
419
|
+
static settingsField = "settings";
|
|
420
|
+
static nameParameterName = "name";
|
|
421
|
+
static defaultKeyParameterName = "defaultKey";
|
|
422
|
+
static developmentDataFolder = ["_build", "data"];
|
|
423
|
+
static formatPreShellDataFailure(productName) {
|
|
424
|
+
return `This data directory holds data from a ${productName} release that predates the shell; move it aside to continue.`;
|
|
425
|
+
}
|
|
426
|
+
static linuxPlatform = "linux";
|
|
427
|
+
static loopbackHost = "127.0.0.1";
|
|
428
|
+
static tcpEndpointPrefix = "tcp://127.0.0.1:";
|
|
429
|
+
static portPattern = /^[1-9]\d{0,4}$/;
|
|
430
|
+
static maximumPort = 65_535;
|
|
431
|
+
static socketFileName = "runtime.sock";
|
|
432
|
+
static maximumSocketPathLength = 103;
|
|
433
|
+
static tokenByteLength = 32;
|
|
434
|
+
static tokenDigestAlgorithm = "sha256";
|
|
435
|
+
static hexEncoding = "hex";
|
|
436
|
+
static dataEvent = "data";
|
|
437
|
+
static errorEvent = "error";
|
|
438
|
+
static closeEvent = "close";
|
|
439
|
+
static connectEvent = "connect";
|
|
440
|
+
static listeningEvent = "listening";
|
|
441
|
+
static spawnEvent = "spawn";
|
|
442
|
+
static abortEvent = "abort";
|
|
443
|
+
static ignoredOutput = "ignore";
|
|
444
|
+
static requestIdSeparator = ":";
|
|
445
|
+
static maximumFrameLength = 16 * 1024 * 1024;
|
|
446
|
+
static handshakeTimeout = 5_000;
|
|
447
|
+
static defaultRequestTimeout = 600_000;
|
|
448
|
+
static maximumRequestTimeout = 3_600_000;
|
|
449
|
+
static answerGrace = 5_000;
|
|
450
|
+
static closeGrace = 2_000;
|
|
451
|
+
static idleGrace = 30_000;
|
|
452
|
+
static takeover = 5_000;
|
|
453
|
+
static takeoverInterval = 50;
|
|
454
|
+
static launchTimeout = 20_000;
|
|
455
|
+
static launchLimit = 60_000;
|
|
456
|
+
static stopTimeoutMargin = 10_000;
|
|
457
|
+
static launchCheckInterval = 100;
|
|
458
|
+
static productVersionPattern = /^(0|[1-9]\d{0,8})\.(0|[1-9]\d{0,8})\.(0|[1-9]\d{0,8})$/;
|
|
459
|
+
static positiveIntegerPattern = /^[1-9]\d{0,9}$/;
|
|
460
|
+
static versionSeparator = ".";
|
|
461
|
+
static versionParts = 3;
|
|
462
|
+
static versionPartWidth = 9;
|
|
463
|
+
static versionPadding = "0";
|
|
464
|
+
static dataDirectoryArgument = "--data-dir";
|
|
465
|
+
static installationArgument = "--installation-dir";
|
|
466
|
+
static installationsFolderName = "installations";
|
|
467
|
+
static dataDirectoriesFolderName = "data-directories";
|
|
468
|
+
static mainProcessesFolderName = "main processes";
|
|
469
|
+
static barrierFileName = "barrier.json";
|
|
470
|
+
static jsonExtension = ".json";
|
|
471
|
+
static installationIdLength = 16;
|
|
472
|
+
static localAppDataVariable = "LOCALAPPDATA";
|
|
473
|
+
static windowsLocalAppData = ["AppData", "Local"];
|
|
474
|
+
static macApplicationSupport = ["Library", "Application Support"];
|
|
475
|
+
static xdgStateVariable = "XDG_STATE_HOME";
|
|
476
|
+
static xdgStateDefault = [".local", "state"];
|
|
477
|
+
static idleGraceArgument = "--idle-grace";
|
|
478
|
+
static stopSignals = ["SIGINT", "SIGTERM", "SIGHUP"];
|
|
479
|
+
static usageExitCode = 2;
|
|
480
|
+
static ownedExitCode = 3;
|
|
481
|
+
static updatingExitCode = 4;
|
|
482
|
+
static programRole = "program";
|
|
483
|
+
static copyLauncherRole = "runtime launcher";
|
|
484
|
+
static copyRuntimeRole = "runtime";
|
|
485
|
+
static copyMounterRole = "AppImage mount";
|
|
486
|
+
static failureExitCode = 1;
|
|
487
|
+
static launchShell = "/bin/bash";
|
|
488
|
+
static launchDescriptors = "/proc/self/fd";
|
|
489
|
+
static launchDescriptorClosing = "for descriptor in /proc/self/fd/*; do descriptor=${descriptor##*/}; if (( descriptor > 2 )); then exec {descriptor}>&-; fi; done";
|
|
490
|
+
static launchShellArguments = [
|
|
491
|
+
"--noprofile",
|
|
492
|
+
"--norc",
|
|
493
|
+
"-p",
|
|
494
|
+
"-c",
|
|
495
|
+
`set -e; shopt -s failglob; ${Resources.launchDescriptorClosing}; exec -- "$@"`
|
|
496
|
+
];
|
|
497
|
+
static launchNameSuffix = "-launch";
|
|
498
|
+
static appImageVariable = "APPIMAGE";
|
|
499
|
+
static appImageFolderVariable = "APPDIR";
|
|
500
|
+
static appImageMountOption = "--appimage-mount";
|
|
501
|
+
static appImageExtractOption = "--appimage-extract";
|
|
502
|
+
static copyMountWait = 10_000;
|
|
503
|
+
static copyListingSuffix = ".mount";
|
|
504
|
+
static processFolder = "/proc";
|
|
505
|
+
static descriptorFolderName = "fd";
|
|
506
|
+
static pipeLinkPrefix = "pipe:";
|
|
507
|
+
static outputDescriptorName = "1";
|
|
508
|
+
static processIdPattern = /^[1-9][0-9]*$/;
|
|
509
|
+
static copyExtractionPrefix = "desktop-runtime-";
|
|
510
|
+
static copyExtractionFolder = "squashfs-root";
|
|
511
|
+
static temporaryFolderVariable = "TMPDIR";
|
|
512
|
+
static temporaryVariable = "TMP";
|
|
513
|
+
static tempVariable = "TEMP";
|
|
514
|
+
static defaultTemporaryFolder = "/tmp";
|
|
515
|
+
static trailingSlashes = /\/+$/;
|
|
516
|
+
static parentFolder = "..";
|
|
517
|
+
static mountTableFile = "/proc/self/mountinfo";
|
|
518
|
+
static mountPointField = 4;
|
|
519
|
+
static mountTableEscape = /\\([0-7]{3})/g;
|
|
520
|
+
static octalRadix = 8;
|
|
521
|
+
static copyExtractionName = /^desktop-runtime-[A-Za-z0-9]{6}$/;
|
|
522
|
+
static copyEndSignal = "SIGTERM";
|
|
523
|
+
static stoppedByIdle = "idle";
|
|
524
|
+
static stoppedByRequest = "request";
|
|
525
|
+
static stoppedBySignal = "signal";
|
|
526
|
+
static portParameterName = "port";
|
|
527
|
+
static pathParameterName = "path";
|
|
528
|
+
static textParameterName = "text";
|
|
529
|
+
static descriptionParameterName = "description";
|
|
530
|
+
static idleGraceParameterName = "idleGraceMilliseconds";
|
|
531
|
+
static maximumFrameLengthParameterName = "maximumFrameLength";
|
|
532
|
+
static handshakeTimeoutParameterName = "handshakeTimeout";
|
|
533
|
+
static defaultRequestTimeoutParameterName = "defaultRequestTimeout";
|
|
534
|
+
static maximumRequestTimeoutParameterName = "maximumRequestTimeout";
|
|
535
|
+
static updateSaveWaitParameterName = "updateSaveWait";
|
|
536
|
+
static updateBarrierHolderCheckIntervalParameterName = "updateBarrierHolderCheckInterval";
|
|
537
|
+
static callTimeoutParameterName = "callTimeout";
|
|
538
|
+
static timeoutMillisecondsParameterName = "timeoutMilliseconds";
|
|
539
|
+
static answerGraceParameterName = "answerGrace";
|
|
540
|
+
static clientNameParameterName = "clientName";
|
|
541
|
+
static clientParameterName = "client";
|
|
542
|
+
static entryPathParameterName = "entryPath";
|
|
543
|
+
static launchTimeoutParameterName = "launchTimeout";
|
|
544
|
+
static launchLimitParameterName = "launchLimit";
|
|
545
|
+
static stopTimeoutParameterName = "stopTimeout";
|
|
546
|
+
static argumentsParameterName = "arguments";
|
|
547
|
+
static portOutOfRange = "A port must be from 1 to 65535.";
|
|
548
|
+
static socketPathNotAbsolute = "A local socket's path must be absolute.";
|
|
549
|
+
static defaultRequestTimeoutTooLong = "The default time limit of a request cannot exceed its maximum.";
|
|
550
|
+
static launchLimitTooShort = "The limit while the data directory is owned cannot be shorter than the launch timeout.";
|
|
551
|
+
static endpointUnavailable = "The runtime's local endpoint has no address.";
|
|
552
|
+
static handshakeRequired = "A connection must begin with a handshake.";
|
|
553
|
+
static unauthorized = "The capability token is not valid for this runtime.";
|
|
554
|
+
static mainProcessRefused = "Only the app's main process may connect as the main process.";
|
|
555
|
+
static maximumWindowFileGrants = 256;
|
|
556
|
+
static fileGrantsNotFromApp = "Only the app's main process grants files and ends a page's grants.";
|
|
557
|
+
static fileGrantsNotFromPage = "Only a window's page discards its file grants.";
|
|
558
|
+
static appSurfaceNotFromMainProcess = "Only the main process reports the app's windows and shortcuts.";
|
|
559
|
+
static mainWindowNotFromMainProcess = "Only the main process reports its main window.";
|
|
560
|
+
static appWindowsName = "windows";
|
|
561
|
+
static appShortcutsName = "shortcuts";
|
|
562
|
+
static fileGrantTaken = "The file grant is already given.";
|
|
563
|
+
static fileGrantUnknown = "The file grant is unknown or has ended, or it was given to another module or page.";
|
|
564
|
+
static grantedFileNotRegular = "The granted file is no longer a regular file, so it is not read.";
|
|
565
|
+
static grantedFileChanged = "The granted file changed or was replaced since it was granted, so it is not read.";
|
|
566
|
+
static fileSharesNotFromApp = "Only the app's main process resolves a shared file.";
|
|
567
|
+
static fileSharesNotFromPage = "A runtime part shares a file only while it answers a request from its window's page.";
|
|
568
|
+
static fileShareUnknown = "The shared file is unknown or has ended.";
|
|
569
|
+
static sharedFileOutside = "The file to share is outside the module's own data and work folders, so it is not shared.";
|
|
570
|
+
static sharedFileNotRegular = "The file to share is not a regular file, so it is not shared.";
|
|
571
|
+
static sharedMediaType = "application/octet-stream";
|
|
572
|
+
static mainProcessRefusedAgain = "The runtime refused this app's main process, also after the app restarted it from its own program.";
|
|
573
|
+
static handshakeUnanswered = "The handshake has not been answered yet.";
|
|
574
|
+
static formatBuildMismatchFailure(productName) {
|
|
575
|
+
return `Another build of ${productName} owns this data directory.`;
|
|
576
|
+
}
|
|
577
|
+
static otherBuildMayOnlyStop = "A connection from another build may only ask the runtime to stop.";
|
|
578
|
+
static unexpectedMessage = "Only requests and cancellations may follow the handshake.";
|
|
579
|
+
static invalidFrame = "The frame is not a valid message.";
|
|
580
|
+
static internalFailure = "The runtime failed to handle the request.";
|
|
581
|
+
static unreadableError = "an error the runtime cannot describe";
|
|
582
|
+
static deadlineExceeded = "The request did not finish within its time limit.";
|
|
583
|
+
static cancelled = "The request was cancelled.";
|
|
584
|
+
static workInProgress = "Work is in progress; stopping now would interrupt it.";
|
|
585
|
+
static updateNotPreparing = "The runtime is not preparing for an update.";
|
|
586
|
+
static barrierUnwatchable = "The runtime could not watch its installation's folder for the end of the update.";
|
|
587
|
+
static barrierUncheckable = "The runtime could not check whether the update has ended, so it ended the wait for it.";
|
|
588
|
+
static installationNotAbsolute = "The installation's folder must be an absolute path.";
|
|
589
|
+
static installationNotThisRuntimes = "The update names another installation than the one this runtime belongs to.";
|
|
590
|
+
static updateSaveWait = 6000;
|
|
591
|
+
static updateBarrierHolderCheckInterval = 5000;
|
|
592
|
+
static clientClosed = "The connection to the runtime is closed.";
|
|
593
|
+
static handshakeTimedOut = "The runtime did not answer the handshake in time.";
|
|
594
|
+
static handshakeRefused = "The runtime closed the connection during the handshake.";
|
|
595
|
+
static handshakeIdentityMismatch = "The runtime answered the handshake with another build's identity.";
|
|
596
|
+
static launchTimedOut = "The runtime did not start in time.";
|
|
597
|
+
static runtimeExitedWithoutReason = "The runtime exited while starting and left no reason.";
|
|
598
|
+
static startLogArgument = "--start-log";
|
|
599
|
+
static startLogNamePattern = /^start-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\.log$/;
|
|
600
|
+
static copyRecordNamePattern = /^copy-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\.log$/;
|
|
601
|
+
static startLogTailLength = 4096;
|
|
602
|
+
static homeAbbreviation = "~";
|
|
603
|
+
static redactedValue = "[redacted]";
|
|
604
|
+
static opaqueValuePattern = /[A-Za-z0-9+/_=-]{32,}/g;
|
|
605
|
+
static opaqueValueLength = 32;
|
|
606
|
+
static opaqueValueSeparator = "/";
|
|
607
|
+
static tokenPartPattern = /^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])[A-Za-z0-9+=]{16,}$/;
|
|
608
|
+
static mixedPartPattern = /^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])/;
|
|
609
|
+
static tokenTextPattern = /^[A-Za-z0-9+=]+$/;
|
|
610
|
+
static identifierPattern = /^[A-Z][a-z]{2,}(?:[A-Z][a-z]{2,})+$/;
|
|
611
|
+
static tokenPartAverageLength = 12;
|
|
612
|
+
static urlCredentialsPattern = /([A-Za-z][A-Za-z0-9+.-]*:\/\/)[^\s/?#]+@/g;
|
|
613
|
+
static get urlCredentialsReplacement() {
|
|
614
|
+
return `$1${Resources.redactedValue}@`;
|
|
615
|
+
}
|
|
616
|
+
static emailPattern = /[\p{L}\p{N}._%+-]+@[\p{L}\p{N}-]+(?:\.[\p{L}\p{N}-]+)*\.\p{L}{2,}/gu;
|
|
617
|
+
static pathSeparatorPattern = /[\\/]/;
|
|
618
|
+
static pathSeparatorSource = "(?:\\\\{1,2}|/)";
|
|
619
|
+
static nameEndSource = "(?=[.,;:!?)\\]}]*(?:$|[\\\\/\"'`<>|]|\\s(?![^\\s\\\\/\"'`<>|]+[\\\\/])))";
|
|
620
|
+
static wordStartSource = "(?<![\\p{L}\\p{M}])";
|
|
621
|
+
static wordEndSource = "(?![\\p{L}\\p{M}])";
|
|
622
|
+
static profileSuffixPattern = /\.(?:[0-9]{3}|[A-Z][A-Z0-9-]*)$/u;
|
|
623
|
+
static uriUnreservedPattern = /^[A-Za-z0-9_.!~*'()-]$/;
|
|
624
|
+
static hexBytePattern = /../g;
|
|
625
|
+
static percentEncodedByte = "%$&";
|
|
626
|
+
static alternativeSeparator = "|";
|
|
627
|
+
static ownNameStartSource = "(?<![\\p{L}\\p{M}\\p{N}_])";
|
|
628
|
+
static ownNameEndSource = "(?![\\p{L}\\p{M}\\p{N}_])";
|
|
629
|
+
static packageScopes = ["@noldova-com", "@noldova"];
|
|
630
|
+
static formatOwnNamesSource(names) {
|
|
631
|
+
return `(${Resources.ownNameStartSource}(?:${names.join(Resources.alternativeSeparator)})${Resources.ownNameEndSource})`;
|
|
632
|
+
}
|
|
633
|
+
static shortNamePattern = /^[A-Za-z0-9!#$%&'()@^_`{}~-]{1,8}(?:\.[A-Za-z0-9!#$%&'()@^_`{}~-]{1,3})?$/;
|
|
634
|
+
static shortNameRemovedPattern = /[\s.]/g;
|
|
635
|
+
static shortNameCharacterPattern = /^[A-Za-z0-9!#$%&'()@^_`{}~-]$/;
|
|
636
|
+
static shortNameAnyCharacterSource = "[^\\\\/\\s]";
|
|
637
|
+
static shortNameBaseLength = 6;
|
|
638
|
+
static shortNameExtensionLength = 3;
|
|
639
|
+
static shortNameSuffixSource = "~[0-9]+";
|
|
640
|
+
static extensionSeparator = ".";
|
|
641
|
+
static memberSeparator = ".";
|
|
642
|
+
static entryArgumentsStart = 2;
|
|
643
|
+
static userNameMinimumLength = 3;
|
|
644
|
+
static genericUserNames = [
|
|
645
|
+
"admin", "administrator", "azureuser", "codespace", "default", "dev", "ec2-user", "guest", "node", "root", "runner", "runneradmin", "test",
|
|
646
|
+
"ubuntu", "user", "vagrant"
|
|
647
|
+
];
|
|
648
|
+
static regularExpressionSyntaxPattern = /[.*+?^${}()|[\]\\]/g;
|
|
649
|
+
static escapedMatch = "\\$&";
|
|
650
|
+
static caseInsensitiveGlobalFlags = "giu";
|
|
651
|
+
static unicodeFlag = "u";
|
|
652
|
+
static appendFlag = "a";
|
|
653
|
+
static uncaughtExceptionEvent = "uncaughtExceptionMonitor";
|
|
654
|
+
static startLogNameParameterName = "startLog";
|
|
655
|
+
static stopTimedOut = "The other build's runtime did not stop in time.";
|
|
656
|
+
static launchShellUnavailable = "Starting a program on Linux requires executable Bash at /bin/bash. Install Bash or restore its execute permissions.";
|
|
657
|
+
static launchDescriptorsUnavailable = "Starting a program on Linux requires access to /proc/self/fd. Ensure procfs is mounted at /proc and this process can read and traverse its descriptor directory.";
|
|
658
|
+
static dataDirectoryRequired = "The --data-dir argument is required.";
|
|
659
|
+
static usage = "Usage: runtime-entry --data-dir <absolute path> [--idle-grace <milliseconds>] [--start-log <start log name>] [--installation-dir <folder>]";
|
|
660
|
+
static recentCommandsMigration = "recent-commands";
|
|
661
|
+
static createRecentCommandsStatement = "CREATE TABLE recent_commands (device TEXT NOT NULL, id TEXT NOT NULL, used INTEGER NOT NULL, PRIMARY KEY (device, id)) STRICT";
|
|
662
|
+
static readRecentCommandsStatement = "SELECT id FROM recent_commands WHERE device = ? ORDER BY used DESC";
|
|
663
|
+
static recordRecentCommandStatement = "INSERT INTO recent_commands (device, id, used) SELECT ?1, ?2, COALESCE(MAX(used), 0) + 1 FROM recent_commands WHERE device = ?1 " +
|
|
664
|
+
"ON CONFLICT (device, id) DO UPDATE SET used = excluded.used";
|
|
665
|
+
static trimRecentCommandsStatement = "DELETE FROM recent_commands WHERE device = ?1 AND id NOT IN (SELECT id FROM recent_commands WHERE device = ?1 ORDER BY used DESC LIMIT ?2)";
|
|
666
|
+
static rememberedPermissionsMigration = "remembered-permissions";
|
|
667
|
+
static createRememberedPermissionsStatement = "CREATE TABLE remembered_permissions (id TEXT PRIMARY KEY, module TEXT NOT NULL, action TEXT NOT NULL, subject TEXT, scope TEXT NOT NULL, " +
|
|
668
|
+
"decision TEXT NOT NULL, remembered INTEGER NOT NULL) STRICT";
|
|
669
|
+
static indexRememberedPermissionsStatement = "CREATE INDEX remembered_permissions_match ON remembered_permissions (module, action, scope)";
|
|
670
|
+
static findRememberedPermissionStatement = "SELECT decision FROM remembered_permissions WHERE module = ? AND action = ? AND subject IS ? AND scope = ? ORDER BY remembered DESC LIMIT 1";
|
|
671
|
+
static forgetMatchingPermissionsStatement = "DELETE FROM remembered_permissions WHERE module = ? AND action = ? AND subject IS ? AND scope = ?";
|
|
672
|
+
static rememberPermissionStatement = "INSERT INTO remembered_permissions (id, module, action, subject, scope, decision, remembered) VALUES (?, ?, ?, ?, ?, ?, ?)";
|
|
673
|
+
static listRememberedPermissionsStatement = "SELECT id, module, action, subject, scope, decision, remembered FROM remembered_permissions ORDER BY remembered, id";
|
|
674
|
+
static readRememberedPermissionStatement = "SELECT id, module, action, subject, scope, decision, remembered FROM remembered_permissions WHERE id = ?";
|
|
675
|
+
static forgetRememberedPermissionStatement = "DELETE FROM remembered_permissions WHERE id = ?";
|
|
676
|
+
static secretsMigration = "secrets";
|
|
677
|
+
static createSecretsStatement = "CREATE TABLE secrets (device TEXT NOT NULL, module TEXT NOT NULL, name TEXT NOT NULL, value TEXT NOT NULL, PRIMARY KEY (device, module, name)) STRICT";
|
|
678
|
+
static saveSecretStatement = "INSERT INTO secrets (device, module, name, value) VALUES (?, ?, ?, ?) ON CONFLICT (device, module, name) DO UPDATE SET value = excluded.value";
|
|
679
|
+
static readSecretStatement = "SELECT value FROM secrets WHERE device = ? AND module = ? AND name = ?";
|
|
680
|
+
static removeSecretStatement = "DELETE FROM secrets WHERE device = ? AND module = ? AND name = ?";
|
|
681
|
+
static actionColumn = "action";
|
|
682
|
+
static subjectColumn = "subject";
|
|
683
|
+
static scopeColumn = "scope";
|
|
684
|
+
static decisionColumn = "decision";
|
|
685
|
+
static rememberedColumn = "remembered";
|
|
686
|
+
static ownedProcessesMigration = "owned-processes";
|
|
687
|
+
static createOwnedProcessesStatement = "CREATE TABLE owned_processes (id INTEGER PRIMARY KEY, module TEXT NOT NULL, process_id INTEGER NOT NULL, program TEXT NOT NULL, executable TEXT NOT NULL, " +
|
|
688
|
+
"boot TEXT NOT NULL, requested INTEGER NOT NULL, started INTEGER NOT NULL, seen INTEGER NOT NULL, clock_offset INTEGER NOT NULL) STRICT";
|
|
689
|
+
static insertOwnedProcessStatement = "INSERT INTO owned_processes (module, process_id, program, executable, boot, requested, started, seen, clock_offset) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)";
|
|
690
|
+
static updateOwnedProcessSeenStatement = "UPDATE owned_processes SET seen = ?, clock_offset = ? WHERE id = ?";
|
|
691
|
+
static deleteOwnedProcessStatement = "DELETE FROM owned_processes WHERE id = ?";
|
|
692
|
+
static readOwnedProcessesStatement = "SELECT id, module, process_id, program, executable, boot, requested, started, seen, clock_offset FROM owned_processes ORDER BY id";
|
|
693
|
+
static moduleColumn = "module";
|
|
694
|
+
static processIdColumn = "process_id";
|
|
695
|
+
static programColumn = "program";
|
|
696
|
+
static executableColumn = "executable";
|
|
697
|
+
static bootColumn = "boot";
|
|
698
|
+
static requestedColumn = "requested";
|
|
699
|
+
static startedColumn = "started";
|
|
700
|
+
static seenColumn = "seen";
|
|
701
|
+
static clockOffsetColumn = "clock_offset";
|
|
702
|
+
static programParameterName = "program";
|
|
703
|
+
static workingFolderParameterName = "workingFolder";
|
|
704
|
+
static environmentParameterName = "environment";
|
|
705
|
+
static inheritParameterName = "inherit";
|
|
706
|
+
static codeParameterName = "code";
|
|
707
|
+
static columnsParameterName = "columns";
|
|
708
|
+
static rowsParameterName = "rows";
|
|
709
|
+
static terminalColumnsInvalid = "A pseudo-terminal's columns must be a whole number of at least 1.";
|
|
710
|
+
static terminalRowsInvalid = "A pseudo-terminal's rows must be a whole number of at least 1.";
|
|
711
|
+
static pseudoTerminalExitInvalid = "A pseudo-terminal's exit has an exit code, a signal or neither, not both.";
|
|
712
|
+
static graceMillisecondsParameterName = "graceMilliseconds";
|
|
713
|
+
static endMillisecondsParameterName = "endMilliseconds";
|
|
714
|
+
static seenMillisecondsParameterName = "seenMilliseconds";
|
|
715
|
+
static terminalWatchMillisecondsParameterName = "terminalWatchMilliseconds";
|
|
716
|
+
static terminalReportMillisecondsParameterName = "terminalReportMilliseconds";
|
|
717
|
+
static workingFolderNotAbsolute = "The working folder must be an absolute path.";
|
|
718
|
+
static processExitInvalid = "A process exit has either an exit code or a signal, not both.";
|
|
719
|
+
static pseudoTerminalExitUnreported = "The program ended, but its pseudo-terminal library didn't report its exit, so it ended without a code.";
|
|
720
|
+
static clockStepped = "The system clock changed by more than a second after it was last seen running, so what it started could not be told apart from other processes and was left running.";
|
|
721
|
+
static environmentNamePattern = /^[^=\0]+$/;
|
|
722
|
+
static environmentEntrySeparator = "=";
|
|
723
|
+
static sharedEnvironmentNames = ["PATH", "TEMP", "TMP", "TMPDIR"];
|
|
724
|
+
static posixEnvironmentNames = ["HOME", "LANG", "LC_ALL"];
|
|
725
|
+
static windowsEnvironmentNames = ["SystemRoot", "windir", "PATHEXT", "ComSpec", "USERPROFILE", "SystemDrive", "LOCALAPPDATA", "APPDATA", "ProgramData", "ProgramFiles"];
|
|
726
|
+
static pathVariable = "PATH";
|
|
727
|
+
static programExtensionsVariable = "PATHEXT";
|
|
728
|
+
static defaultProgramExtensions = ".COM;.EXE;.BAT;.CMD";
|
|
729
|
+
static programExtensions = [".com", ".exe", ".bat", ".cmd"];
|
|
730
|
+
static ownEnvironmentNames = ["ELECTRON_RUN_AS_NODE", "ELECTRON_NO_ATTACH_CONSOLE"];
|
|
731
|
+
static homeVariable = "HOME";
|
|
732
|
+
static shellVariable = "SHELL";
|
|
733
|
+
static zshFolderVariable = "ZDOTDIR";
|
|
734
|
+
static runAsNodeValue = "1";
|
|
735
|
+
static defaultPosixShell = "/bin/sh";
|
|
736
|
+
static loginShellArguments = ["-i", "-l", "-c"];
|
|
737
|
+
static nodeEvaluateArgument = "-e";
|
|
738
|
+
static loginShellReadMilliseconds = 10_000;
|
|
739
|
+
static shellOwnNames = ["PWD", "OLDPWD", "SHLVL", "_"];
|
|
740
|
+
static shellProfileFiles = [".zshenv", ".zprofile", ".zshrc", ".zlogin", ".bash_profile", ".bash_login", ".bashrc", ".profile"];
|
|
741
|
+
static profilesUnwatched = "The shell's profile files are not watched, so a change to them reaches the programs modules start only after the app restarts.\n";
|
|
742
|
+
static windowsPowerShellPath = ["System32", "WindowsPowerShell", "v1.0", "powershell.exe"];
|
|
743
|
+
static windowsEnvironmentArguments = ["-NoLogo", "-NoProfile", "-NonInteractive", "-EncodedCommand"];
|
|
744
|
+
static windowsEnvironmentScript = [
|
|
745
|
+
"$ErrorActionPreference = 'Stop'",
|
|
746
|
+
"function Read-Scope($key) {",
|
|
747
|
+
" $variables = @{}",
|
|
748
|
+
" if ($null -ne $key) {",
|
|
749
|
+
" foreach ($name in $key.GetValueNames()) {",
|
|
750
|
+
" $kind = $key.GetValueKind($name)",
|
|
751
|
+
" if ($name -ne '' -and ($kind -eq 'String' -or $kind -eq 'ExpandString')) {",
|
|
752
|
+
" $variables[$name] = @([string]$key.GetValue($name, '', 'DoNotExpandEnvironmentNames'), ($kind -eq 'ExpandString'))",
|
|
753
|
+
" }",
|
|
754
|
+
" }",
|
|
755
|
+
" $key.Dispose()",
|
|
756
|
+
" }",
|
|
757
|
+
" return $variables",
|
|
758
|
+
"}",
|
|
759
|
+
"while ($null -ne ($id = [Console]::In.ReadLine())) {",
|
|
760
|
+
" $machine = Read-Scope ([Microsoft.Win32.Registry]::LocalMachine.OpenSubKey('SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment'))",
|
|
761
|
+
" $user = Read-Scope ([Microsoft.Win32.Registry]::CurrentUser.OpenSubKey('Environment'))",
|
|
762
|
+
" $json = ConvertTo-Json -Compress -Depth 4 -InputObject @{ id = $id; machine = $machine; user = $user }",
|
|
763
|
+
" [Console]::Out.WriteLine([Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($json)))",
|
|
764
|
+
" [Console]::Out.Flush()",
|
|
765
|
+
"}"
|
|
766
|
+
].join("\n");
|
|
767
|
+
static windowsEnvironmentReadMilliseconds = 60_000;
|
|
768
|
+
static requestIdKey = "id";
|
|
769
|
+
static machineVariablesKey = "machine";
|
|
770
|
+
static userVariablesKey = "user";
|
|
771
|
+
static windowsVariableMark = "%";
|
|
772
|
+
static utf16Encoding = "utf16le";
|
|
773
|
+
static carriageReturnPattern = /\r$/u;
|
|
774
|
+
static maximumLineLength = 4_194_304;
|
|
775
|
+
static windowsEnvironmentLineDropped = "Windows PowerShell wrote a line that answers no read of the environment under way, so it was dropped.\n";
|
|
776
|
+
static windowsEnvironmentSystemRootMissing = "SystemRoot is not set, so Windows PowerShell can't be found.";
|
|
777
|
+
static windowsEnvironmentOutputInvalid = "Windows PowerShell did not write the machine's and the person's variables as text.";
|
|
778
|
+
static formatEnvironmentUnread(reason) {
|
|
779
|
+
return `Programs start with the last environment read, or the app's own, since the person's current environment could not be read: ${reason}\n`;
|
|
780
|
+
}
|
|
781
|
+
static formatWindowsEnvironmentTimedOut(milliseconds) {
|
|
782
|
+
return `Windows PowerShell did not answer within ${milliseconds / 1000} seconds.`;
|
|
783
|
+
}
|
|
784
|
+
static formatLoginShellTimedOut(shell, milliseconds) {
|
|
785
|
+
return `The login shell ${shell} did not give its environment within ${milliseconds / 1000} seconds.`;
|
|
786
|
+
}
|
|
787
|
+
static formatLoginShellEnded(shell, reason) {
|
|
788
|
+
return `The login shell ${shell} ended before it gave its environment: ${reason}`;
|
|
789
|
+
}
|
|
790
|
+
static formatLoginShellOutputInvalid(shell) {
|
|
791
|
+
return `The login shell ${shell} did not write its environment as text.`;
|
|
792
|
+
}
|
|
793
|
+
static formatLineProcessExited(name, codeOrSignal) {
|
|
794
|
+
return `${name} exited with ${String(codeOrSignal)}.`;
|
|
795
|
+
}
|
|
796
|
+
static formatLineProcessGroupUnsignalled(name, reason) {
|
|
797
|
+
return `What ${name} started may outlive it, since its process group could not be ended: ${reason}\n`;
|
|
798
|
+
}
|
|
799
|
+
static formatShellQuoted(text) {
|
|
800
|
+
return `'${text.replaceAll("'", "'\\''")}'`;
|
|
801
|
+
}
|
|
802
|
+
static formatEnvironmentScript(mark) {
|
|
803
|
+
return `process.stdout.write("${mark}" + JSON.stringify(process.env) + "${mark}\\n")`;
|
|
804
|
+
}
|
|
805
|
+
static refusedLinkCodes = ["EACCES", "EPERM"];
|
|
806
|
+
static unreadableLinkCodes = ["EACCES", "EPERM", "ENOENT", "ELOOP"];
|
|
807
|
+
static unreadableDescriptorCodes = ["EINVAL", "ENOENT", "EACCES", "EPERM"];
|
|
808
|
+
static missingPathCodes = ["ENOENT", "ENOTDIR"];
|
|
809
|
+
static unreadablePathCodes = ["ENOENT", "ENOTDIR", "EACCES", "EPERM", "ELOOP"];
|
|
810
|
+
static unwatchableFolderCodes = ["ENOENT", "ENOTDIR", "EACCES", "EPERM", "ENOSPC", "EMFILE"];
|
|
811
|
+
static windowsNamePattern = /[\\/:]/;
|
|
812
|
+
static windowsPathDelimiter = ";";
|
|
813
|
+
static windowsPathQuote = "\"";
|
|
814
|
+
static posixPathDelimiter = ":";
|
|
815
|
+
static batchExtensions = [".bat", ".cmd"];
|
|
816
|
+
static commandShellName = "cmd.exe";
|
|
817
|
+
static commandShellArguments = ["/d", "/s", "/c"];
|
|
818
|
+
static commandLineSeparator = " ";
|
|
819
|
+
static argumentQuote = "\"";
|
|
820
|
+
static batchMetacharacterPattern = /([()\][%!^"`<>&|;, *?])/g;
|
|
821
|
+
static batchMetacharacterEscape = "^$1";
|
|
822
|
+
static trailingBackslashesPattern = /(\\*)$/;
|
|
823
|
+
static trailingBackslashesReplacement = "$1$1";
|
|
824
|
+
static batchRefusedArgumentPattern = /[%"!\r\n\0]/;
|
|
825
|
+
static nativeProgramExtension = ".exe";
|
|
826
|
+
static nodeProgramName = "node.exe";
|
|
827
|
+
static scriptExtensions = [".js", ".cjs", ".mjs", String.empty];
|
|
828
|
+
static shimBlankPattern = /[ \t]+/g;
|
|
829
|
+
static shimHead = ["@ECHO off", "GOTO start", ":find_dp0", "SET dp0=%~dp0", "EXIT /b", ":start", "SETLOCAL", "CALL :find_dp0"];
|
|
830
|
+
static shimNodeBody = [
|
|
831
|
+
String.empty,
|
|
832
|
+
"IF EXIST \"%dp0%\\node.exe\" (",
|
|
833
|
+
" SET \"_prog=%dp0%\\node.exe\"",
|
|
834
|
+
") ELSE (",
|
|
835
|
+
" SET \"_prog=node\"",
|
|
836
|
+
" SET PATHEXT=%PATHEXT:;.JS;=;%",
|
|
837
|
+
")",
|
|
838
|
+
String.empty
|
|
839
|
+
];
|
|
840
|
+
static shimNodeLinePattern = /^endLocal & goto #_undefined_# 2>NUL \|\| title %COMSPEC% & "%_prog%" "%dp0%\\([^"%]+)" %\*$/;
|
|
841
|
+
static shimOneLinePattern = /^@"%~dp0\\([^"%]+)" %\*$/;
|
|
842
|
+
static shimProgramLinePattern = /^"%dp0%\\([^"%]+)" %\*$/;
|
|
843
|
+
static processStatFile = "stat";
|
|
844
|
+
static processStatFieldSeparator = " ";
|
|
845
|
+
static processNameEnd = ")";
|
|
846
|
+
static processStatFields = [1, 2, 4, 19];
|
|
847
|
+
static processStateField = 0;
|
|
848
|
+
static processSessionField = 3;
|
|
849
|
+
static foregroundGroupField = 5;
|
|
850
|
+
static processStatusCommand = "/bin/ps";
|
|
851
|
+
static foregroundGroupArguments = ["-o", "lstart=,tpgid=", "-p"];
|
|
852
|
+
static foregroundGroupEnvironment = { LC_ALL: "C" };
|
|
853
|
+
static foregroundGroupTimeoutMilliseconds = 1_000;
|
|
854
|
+
static foregroundGroupStatusPattern = /^([A-Z][a-z]{2} [A-Z][a-z]{2} +\d{1,2} \d{2}:\d{2}:\d{2} \d{4}) +(-?\d+)$/;
|
|
855
|
+
static secondMilliseconds = 1_000;
|
|
856
|
+
static processReadBatch = 64;
|
|
857
|
+
static processSkippedCodes = ["ENOENT", "ESRCH", "EACCES", "EPERM"];
|
|
858
|
+
static processRowLength = 6;
|
|
859
|
+
static processZombieState = "Z";
|
|
860
|
+
static processDeadState = "X";
|
|
861
|
+
static processEndingGroupId = -1;
|
|
862
|
+
static windowsQueryAccess = 0x1000;
|
|
863
|
+
static windowsEndAccess = 0x1000 | 0x0001 | 0x100000;
|
|
864
|
+
static windowsJobAccess = 0x1000 | 0x0100 | 0x0001 | 0x100000;
|
|
865
|
+
static windowsGoneError = 87;
|
|
866
|
+
static addonFolder = "../../native/";
|
|
867
|
+
static addonTargetSeparator = "-";
|
|
868
|
+
static posixAddonFile = "posix-process.node";
|
|
869
|
+
static startDetachedFunction = "startDetached";
|
|
870
|
+
static clockTicksFunction = "clockTicks";
|
|
871
|
+
static windowsAddonFile = "windows-process.node";
|
|
872
|
+
static listProcessesFunction = "listProcesses";
|
|
873
|
+
static openProcessFunction = "openProcess";
|
|
874
|
+
static readCreationTimeFunction = "readCreationTime";
|
|
875
|
+
static readImagePathFunction = "readImagePath";
|
|
876
|
+
static terminateProcessFunction = "terminateProcess";
|
|
877
|
+
static hasExitedFunction = "hasExited";
|
|
878
|
+
static readExitCodeFunction = "readExitCode";
|
|
879
|
+
static openFileForReadingFunction = "openFileForReading";
|
|
880
|
+
static closeHandleFunction = "closeHandle";
|
|
881
|
+
static createJobFunction = "createJob";
|
|
882
|
+
static assignProcessToJobFunction = "assignProcessToJob";
|
|
883
|
+
static listJobProcessesFunction = "listJobProcesses";
|
|
884
|
+
static verifySignatureFunction = "verifySignatureAsync";
|
|
885
|
+
static peerProcessIdFunction = "peerProcessId";
|
|
886
|
+
static peerTokenFunction = "peerToken";
|
|
887
|
+
static readProcessPathFunction = "readProcessPath";
|
|
888
|
+
static readEnvironmentFunction = "readEnvironment";
|
|
889
|
+
static readResponsibleProcessIdFunction = "readResponsibleProcessId";
|
|
890
|
+
static disclaimSystemFunction = "responsibility_spawnattrs_setdisclaim";
|
|
891
|
+
static responsibleSystemFunction = "responsibility_get_pid_responsible_for_pid";
|
|
892
|
+
static responsibilityUnreadable = "macOS gives no way to read this runtime's responsible process, so its start could not hand it responsibility: programs that modules start may ask for privacy permissions in the name of whatever started the app, such as a terminal.";
|
|
893
|
+
static responsibilityInherited = "This runtime is not its own responsible process, so its start could not hand it responsibility: programs that modules start ask for privacy permissions in the name of whatever started the app, such as a terminal.";
|
|
894
|
+
static findTcpOwnerFunction = "findTcpOwner";
|
|
895
|
+
static windowsPeerFunctions = [
|
|
896
|
+
Resources.findTcpOwnerFunction,
|
|
897
|
+
Resources.openProcessFunction,
|
|
898
|
+
Resources.readCreationTimeFunction,
|
|
899
|
+
Resources.readImagePathFunction,
|
|
900
|
+
Resources.readEnvironmentFunction,
|
|
901
|
+
Resources.closeHandleFunction
|
|
902
|
+
];
|
|
903
|
+
static windowsReadAccess = 0x0400 | 0x0010;
|
|
904
|
+
static socketHandleField = "_handle";
|
|
905
|
+
static socketDescriptorField = "fd";
|
|
906
|
+
static environmentFile = "environ";
|
|
907
|
+
static executableLink = "exe";
|
|
908
|
+
static environmentSeparator = "\0";
|
|
909
|
+
static runAsNodeVariable = "ELECTRON_RUN_AS_NODE";
|
|
910
|
+
static senderSeparator = ":";
|
|
911
|
+
static windowsAddonFunctions = [
|
|
912
|
+
Resources.listProcessesFunction,
|
|
913
|
+
Resources.openProcessFunction,
|
|
914
|
+
Resources.readCreationTimeFunction,
|
|
915
|
+
Resources.readImagePathFunction,
|
|
916
|
+
Resources.terminateProcessFunction,
|
|
917
|
+
Resources.hasExitedFunction,
|
|
918
|
+
Resources.readExitCodeFunction,
|
|
919
|
+
Resources.openFileForReadingFunction,
|
|
920
|
+
Resources.closeHandleFunction,
|
|
921
|
+
Resources.createJobFunction,
|
|
922
|
+
Resources.assignProcessToJobFunction,
|
|
923
|
+
Resources.listJobProcessesFunction,
|
|
924
|
+
Resources.verifySignatureFunction
|
|
925
|
+
];
|
|
926
|
+
static signatureStatusField = "status";
|
|
927
|
+
static signatureMessageField = "message";
|
|
928
|
+
static signatureSubjectField = "subject";
|
|
929
|
+
static windowsProcessRowLength = 2;
|
|
930
|
+
static fileTimeUnitsPerMillisecond = 10000n;
|
|
931
|
+
static fileTimeEpochMilliseconds = 11_644_473_600_000;
|
|
932
|
+
static processGraceMilliseconds = 3_000;
|
|
933
|
+
static processEndMilliseconds = 5_000;
|
|
934
|
+
static processSeenMilliseconds = 5_000;
|
|
935
|
+
static processPollMilliseconds = 50;
|
|
936
|
+
static windowsStartMargin = 50;
|
|
937
|
+
static posixStartMargin = 1_000;
|
|
938
|
+
static clockStepTolerance = 1_500;
|
|
939
|
+
static bootIdFile = "/proc/sys/kernel/random/boot_id";
|
|
940
|
+
static bootToleranceSeconds = 60;
|
|
941
|
+
static terminateSignal = "SIGTERM";
|
|
942
|
+
static killSignal = "SIGKILL";
|
|
943
|
+
static hangupSignal = "SIGHUP";
|
|
944
|
+
static hangupAgainDivisor = 3;
|
|
945
|
+
static terminalName = "xterm-256color";
|
|
946
|
+
static pseudoTerminalAgent = "_agent";
|
|
947
|
+
static pseudoTerminalOutputWorker = "_conoutSocketWorker";
|
|
948
|
+
static pseudoTerminalWorker = "_worker";
|
|
949
|
+
static pseudoTerminalWorkerStop = "terminate";
|
|
950
|
+
static pseudoTerminalOutputSocket = "_socket";
|
|
951
|
+
static pseudoTerminalOutputClose = "destroy";
|
|
952
|
+
static pseudoTerminalWatchMilliseconds = 1_000;
|
|
953
|
+
static pseudoTerminalReportMilliseconds = 1_000;
|
|
954
|
+
static probeSignal = 0;
|
|
955
|
+
static missingProcessCode = "ESRCH";
|
|
956
|
+
static refusedProcessCode = "EPERM";
|
|
957
|
+
static exitEvent = "exit";
|
|
958
|
+
static pipedOutput = "pipe";
|
|
959
|
+
static toolsKind = "tools";
|
|
960
|
+
static titleParameterName = "title";
|
|
961
|
+
static riskParameterName = "risk";
|
|
962
|
+
static deadlineParameterName = "deadline";
|
|
963
|
+
static resourceParameterName = "resource";
|
|
964
|
+
static limitsParameterName = "limits";
|
|
965
|
+
static endGraceParameterName = "endGraceMilliseconds";
|
|
966
|
+
static nextToolParameterName = "nextTool";
|
|
967
|
+
static originParameterName = "origin";
|
|
968
|
+
static dataParameterName = "data";
|
|
969
|
+
static mimeTypeParameterName = "mimeType";
|
|
970
|
+
static messageParameterName = "message";
|
|
971
|
+
static scopeParameterName = "scope";
|
|
972
|
+
static inputSchemaParameterName = "inputSchema";
|
|
973
|
+
static outputSchemaParameterName = "outputSchema";
|
|
974
|
+
static textCharactersLimitName = "textCharacters";
|
|
975
|
+
static imageBytesLimitName = "imageBytes";
|
|
976
|
+
static imageLongEdgeLimitName = "imageLongEdge";
|
|
977
|
+
static imagePixelsLimitName = "imagePixels";
|
|
978
|
+
static toolRisks = [ToolRisk.Low, ToolRisk.Medium, ToolRisk.High];
|
|
979
|
+
static maximumToolDeadline = 120_000;
|
|
980
|
+
static maximumToolArgumentBytes = 64 * 1024;
|
|
981
|
+
static maximumToolTextBytes = 256 * 1024;
|
|
982
|
+
static maximumToolImageBytes = 1024 * 1024;
|
|
983
|
+
static maximumToolResultBytes = 2 * 1024 * 1024;
|
|
984
|
+
static maximumToolCallsInFlight = 16;
|
|
985
|
+
static maximumToolScopeLength = 256;
|
|
986
|
+
static maximumToolOriginLength = 1024;
|
|
987
|
+
static pngMimeType = "image/png";
|
|
988
|
+
static toolImageTypes = [Resources.pngMimeType, "image/jpeg"];
|
|
989
|
+
static base64Encoding = "base64";
|
|
990
|
+
static base64Pattern = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;
|
|
991
|
+
static toolResourcePattern = /^(?:binding:[A-Za-z0-9_.-]+|(?:\/(?:[^~/]|~[01])*)+)$/;
|
|
992
|
+
static moduleCodeNamePattern = /^[a-z][a-zA-Z0-9]*$/;
|
|
993
|
+
static bindingResourcePrefix = "binding:";
|
|
994
|
+
static pointerSeparator = "/";
|
|
995
|
+
static escapedSlash = "~1";
|
|
996
|
+
static escapedTilde = "~0";
|
|
997
|
+
static tilde = "~";
|
|
998
|
+
static pointerIndexPattern = /^(?:0|[1-9][0-9]*)$/;
|
|
999
|
+
static internalFailureCode = "internal";
|
|
1000
|
+
static malformedResultCode = "malformedResult";
|
|
1001
|
+
static toolTitleInvalid = "A tool's title, when it has one, must not be blank.";
|
|
1002
|
+
static toolSchemaInvalid = "A tool's schema must be a JSON Schema object whose type is object.";
|
|
1003
|
+
static toolRiskInvalid = "A tool's risks must each be Low, Medium or High, and its default risk must not be above its maximum risk.";
|
|
1004
|
+
static toolResourceInvalid = "A tool's resource must be a JSON Pointer into its arguments, such as /item_id, or binding:<name>.";
|
|
1005
|
+
static toolOriginInvalid = "A content item's origin must not be blank and must have at most 1,024 characters.";
|
|
1006
|
+
static toolImageDataInvalid = "An image item's data must be base64.";
|
|
1007
|
+
static toolSessionEnded = "The agent session has ended.";
|
|
1008
|
+
static toolArgumentsTooLarge = "The call's arguments are over 64 KiB as JSON.";
|
|
1009
|
+
static toolResourceHeld = "What the call acts on is held by another agent session.";
|
|
1010
|
+
static toolInternalFailure = "The tool failed inside its module.";
|
|
1011
|
+
static toolMalformedResult = "The tool's result does not fit its shape or its schema.";
|
|
1012
|
+
static toolResultTooLarge = "The tool's result is over its limits.";
|
|
1013
|
+
static toolCancelled = "The call was cancelled.";
|
|
1014
|
+
static toolStopped = "Agent control was stopped.";
|
|
1015
|
+
static toolTimedOut = "The call's deadline passed.";
|
|
1016
|
+
static toolSwitchedOff = "The tool was switched off.";
|
|
1017
|
+
static toolWithdrawn = "The call was aborted while its permission request waited.";
|
|
1018
|
+
static toolEndGraceMilliseconds = 1_000;
|
|
1019
|
+
static toolsStopped = "Agent control is stopped until the person resumes it.";
|
|
1020
|
+
static toolEndpointClosed = "The tool endpoint is closed.";
|
|
1021
|
+
static toolSessionNotAdmissible = "Only an open agent session that the same part opened gets a token.";
|
|
1022
|
+
static toolTokenBytes = 32;
|
|
1023
|
+
static toolTokenEncoding = "base64url";
|
|
1024
|
+
static toolTokenDigest = "sha256";
|
|
1025
|
+
static toolEndpointHeadersMilliseconds = 10_000;
|
|
1026
|
+
static toolEndpointRequestMilliseconds = 30_000;
|
|
1027
|
+
static maximumToolEndpointHeaderBytes = 16 * 1024;
|
|
1028
|
+
static toolEndpointCheckMilliseconds = 1_000;
|
|
1029
|
+
static maximumToolEndpointConnections = 64;
|
|
1030
|
+
static bearerScheme = "Bearer";
|
|
1031
|
+
static bearerPrefix = `${Resources.bearerScheme} `;
|
|
1032
|
+
static authenticateHeader = "www-authenticate";
|
|
1033
|
+
static unauthorizedStatus = 401;
|
|
1034
|
+
static forbiddenStatus = 403;
|
|
1035
|
+
static misdirectedRequestStatus = 421;
|
|
1036
|
+
static internalErrorStatus = 500;
|
|
1037
|
+
static requestEvent = "request";
|
|
1038
|
+
static sessionParameterName = "session";
|
|
1039
|
+
static stopReasonInvalid = "The reason must be one line that isn't blank, of at most 200 characters.";
|
|
1040
|
+
static maximumStopReasonLength = 200;
|
|
1041
|
+
static reasonParameterName = "reason";
|
|
1042
|
+
static stopAgentControlMember = "stopAgentControl";
|
|
1043
|
+
static stopAgentControlTitle = "Stop agents";
|
|
1044
|
+
static stopAgentControlIcon = "stop_circle";
|
|
1045
|
+
static resumeAgentControlMember = "resumeAgentControl";
|
|
1046
|
+
static resumeAgentControlTitle = "Resume agents";
|
|
1047
|
+
static resumeAgentControlIcon = "play_circle";
|
|
1048
|
+
static personStoppedAgents = "The person stopped agent control.";
|
|
1049
|
+
static permissionWaitMilliseconds = 5 * 60_000;
|
|
1050
|
+
static maximumPermissionSubjectLength = 1024;
|
|
1051
|
+
static maximumPermissionTitleLength = 200;
|
|
1052
|
+
static maximumPermissionDetails = 64;
|
|
1053
|
+
static maximumPermissionDetailBytes = 80 * 1024;
|
|
1054
|
+
static permissionActionSeparator = ".";
|
|
1055
|
+
static permissionActionField = "action";
|
|
1056
|
+
static permissionSubjectField = "subject";
|
|
1057
|
+
static permissionTitleField = "title";
|
|
1058
|
+
static permissionDetailsField = "details";
|
|
1059
|
+
static permissionDetailLabelField = "label";
|
|
1060
|
+
static permissionDetailKindField = "kind";
|
|
1061
|
+
static permissionDetailValueField = "value";
|
|
1062
|
+
static permissionRiskField = "risk";
|
|
1063
|
+
static permissionIsAskingField = "isAsking";
|
|
1064
|
+
static permissionIsRememberedOnlyField = "isRememberedOnly";
|
|
1065
|
+
static permissionOptionsField = "options";
|
|
1066
|
+
static permissionLabelsField = "labels";
|
|
1067
|
+
static permissionOptions = [PermissionOption.AllowOnce, PermissionOption.AllowAlways, PermissionOption.Deny, PermissionOption.DenyAlways, PermissionOption.TakeOver];
|
|
1068
|
+
static labelledPermissionOptions = [PermissionOption.AllowAlways, PermissionOption.TakeOver];
|
|
1069
|
+
static alwaysPermissionOptions = [PermissionOption.AllowAlways, PermissionOption.DenyAlways];
|
|
1070
|
+
static maximumPermissionLabelLength = 40;
|
|
1071
|
+
static permissionDetailKinds = [PermissionDetailKind.Text, PermissionDetailKind.Code, PermissionDetailKind.Secret, PermissionDetailKind.AgentText];
|
|
1072
|
+
static rememberedDecisions = [PermissionDecision.AllowedAlways, PermissionDecision.DeniedAlways];
|
|
1073
|
+
static offeredDecisions = new Map([
|
|
1074
|
+
[PermissionDecision.AllowedOnce, PermissionOption.AllowOnce],
|
|
1075
|
+
[PermissionDecision.AllowedAlways, PermissionOption.AllowAlways],
|
|
1076
|
+
[PermissionDecision.DeniedAlways, PermissionOption.DenyAlways],
|
|
1077
|
+
[PermissionDecision.TakenOver, PermissionOption.TakeOver]
|
|
1078
|
+
]);
|
|
1079
|
+
static answerableDecisions = [
|
|
1080
|
+
PermissionDecision.AllowedOnce, PermissionDecision.AllowedAlways, PermissionDecision.Denied, PermissionDecision.DeniedAlways, PermissionDecision.Expired,
|
|
1081
|
+
PermissionDecision.TakenOver
|
|
1082
|
+
];
|
|
1083
|
+
static permissionSubjectInvalid = "The subject, when there is one, must be a string of at most 1,024 characters.";
|
|
1084
|
+
static permissionTitleInvalid = "The title must be one line that isn't blank, of at most 200 characters.";
|
|
1085
|
+
static permissionDetailsInvalid = "The details must be at most 64 items, each with a label that isn't blank, a kind of Text, Code, Secret or AgentText, and a string value, and at most 80 KiB as JSON.";
|
|
1086
|
+
static permissionFlagsInvalid = "isAsking and isRememberedOnly, when present, must be true or false.";
|
|
1087
|
+
static permissionOptionsInvalid = "The options must be a list of distinct options from AllowOnce, AllowAlways, Deny, DenyAlways and TakeOver, and not empty.";
|
|
1088
|
+
static permissionAlwaysAtHighRisk = "A High-risk request that gives labels or offers TakeOver may offer neither AllowAlways nor DenyAlways.";
|
|
1089
|
+
static permissionLabelsInvalid = "The labels must name only offered AllowAlways or TakeOver options, each one line that isn't blank, of at most 40 characters, and TakeOver must have one.";
|
|
1090
|
+
static permissionNotRaised = "A call of a read-only tool whose maximum risk is Low raises no request.";
|
|
1091
|
+
static permissionNoAnswerer = "No module answers permission requests: the app names none in desktop.product.permissionsModule, or that module registered no answerer.";
|
|
1092
|
+
static permissionAnswererWithdrawn = "The module that answers permission requests withdrew its answerer while the request waited.";
|
|
1093
|
+
static permissionAlreadyWaiting = "The call already has a permission request waiting.";
|
|
1094
|
+
static permissionCallEnded = "The call has already ended.";
|
|
1095
|
+
static permissionsClosed = "Noldova Desktop's database is not open.";
|
|
1096
|
+
static formatFolderPrefix(folder) {
|
|
1097
|
+
return `${folder}/`;
|
|
1098
|
+
}
|
|
1099
|
+
static formatRelativePath(folder, name) {
|
|
1100
|
+
return `${folder}/${name}`;
|
|
1101
|
+
}
|
|
1102
|
+
static formatAddonUrl(platform, architecture, name) {
|
|
1103
|
+
return `${Resources.addonFolder}${platform}${Resources.addonTargetSeparator}${architecture}/${name}`;
|
|
1104
|
+
}
|
|
1105
|
+
static formatFirstRequestId(clientName) {
|
|
1106
|
+
return `${clientName}${Resources.requestIdSeparator}0`;
|
|
1107
|
+
}
|
|
1108
|
+
static formatEitherSource(first, second) {
|
|
1109
|
+
return `(?:${first}|${second})`;
|
|
1110
|
+
}
|
|
1111
|
+
static formatWordsSource(words) {
|
|
1112
|
+
return `${Resources.wordStartSource}(?:${words})${Resources.wordEndSource}`;
|
|
1113
|
+
}
|
|
1114
|
+
static formatLogLine(time, text) {
|
|
1115
|
+
return `${time} ${text}`;
|
|
1116
|
+
}
|
|
1117
|
+
static formatNodeEvaluateCommand(node, script) {
|
|
1118
|
+
return `${node} ${Resources.nodeEvaluateArgument} ${script}`;
|
|
1119
|
+
}
|
|
1120
|
+
static formatFileKey(device, inode) {
|
|
1121
|
+
return `${device}:${inode}`;
|
|
1122
|
+
}
|
|
1123
|
+
static formatFileIdentity(device, inode, size, modified) {
|
|
1124
|
+
return `${device}:${inode}:${size}:${modified}`;
|
|
1125
|
+
}
|
|
1126
|
+
static formatFailureLine(failure) {
|
|
1127
|
+
return `${failure}${Resources.lineEnd}`;
|
|
1128
|
+
}
|
|
1129
|
+
static formatScopeName(name, id) {
|
|
1130
|
+
return `${name} ${id}`;
|
|
1131
|
+
}
|
|
1132
|
+
static formatSettingReport(name, scope, device) {
|
|
1133
|
+
return `${name}\u0000${scope}\u0000${device}`;
|
|
1134
|
+
}
|
|
1135
|
+
static formatErrorText(name, message) {
|
|
1136
|
+
return `${name}: ${message}`;
|
|
1137
|
+
}
|
|
1138
|
+
static formatModuleCode(moduleId, code) {
|
|
1139
|
+
return `${moduleId}.${code}`;
|
|
1140
|
+
}
|
|
1141
|
+
static formatModuleOrigin(moduleId) {
|
|
1142
|
+
return `${moduleId}:`;
|
|
1143
|
+
}
|
|
1144
|
+
static formatUsageFailure(failure) {
|
|
1145
|
+
return `${failure}${Resources.lineEnd}${Resources.usage}${Resources.lineEnd}`;
|
|
1146
|
+
}
|
|
1147
|
+
static formatDiscoveryVersion(version) {
|
|
1148
|
+
return `The discovery metadata has the unsupported format version ${String(version)}.`;
|
|
1149
|
+
}
|
|
1150
|
+
static formatDiscoveryField(name) {
|
|
1151
|
+
return `The discovery metadata's ${name} is missing or invalid.`;
|
|
1152
|
+
}
|
|
1153
|
+
static formatDeclarationsVersion(version) {
|
|
1154
|
+
return `The module declarations have the unsupported format version ${String(version)}.`;
|
|
1155
|
+
}
|
|
1156
|
+
static formatDeclarationField(name) {
|
|
1157
|
+
return `A module declaration's ${name} is missing or invalid.`;
|
|
1158
|
+
}
|
|
1159
|
+
static formatProductFileUnreadable(file, reason) {
|
|
1160
|
+
return `The build's product file ${file} is not valid: ${reason}`;
|
|
1161
|
+
}
|
|
1162
|
+
static formatCheckoutVariable(slug) {
|
|
1163
|
+
return `${slug.toUpperCase().replaceAll("-", "_")}_CHECKOUT`;
|
|
1164
|
+
}
|
|
1165
|
+
static formatDeclarationsUnreadable(file, reason) {
|
|
1166
|
+
return `The module declarations ${file} are not valid: ${reason}`;
|
|
1167
|
+
}
|
|
1168
|
+
static formatDiscoveryUnreadable(file, reason) {
|
|
1169
|
+
return `The discovery file ${file} is not valid: ${reason}`;
|
|
1170
|
+
}
|
|
1171
|
+
static formatOwned(productName, root) {
|
|
1172
|
+
return `Another ${productName} runtime owns the data directory ${root}.`;
|
|
1173
|
+
}
|
|
1174
|
+
static formatPreShellData(root, entries) {
|
|
1175
|
+
return `The data directory ${root} holds data from a release before the shell: ${entries.join(", ")}.`;
|
|
1176
|
+
}
|
|
1177
|
+
static formatMigrationFailed(database, id) {
|
|
1178
|
+
return `The migration ${id} of the ${database} failed and was rolled back.`;
|
|
1179
|
+
}
|
|
1180
|
+
static formatHistoryNotRecognized(database) {
|
|
1181
|
+
return `The ${database}'s migration history is not one this build recognizes.`;
|
|
1182
|
+
}
|
|
1183
|
+
static formatHistoryNewer(database) {
|
|
1184
|
+
return `The ${database} was written by a newer build.`;
|
|
1185
|
+
}
|
|
1186
|
+
static formatTablesWithoutHistory(database) {
|
|
1187
|
+
return `The ${database} has tables but no migration history.`;
|
|
1188
|
+
}
|
|
1189
|
+
static formatModuleDatabaseName(moduleId) {
|
|
1190
|
+
return `database of the module ${moduleId}`;
|
|
1191
|
+
}
|
|
1192
|
+
static formatNoModuleDatabase(moduleId) {
|
|
1193
|
+
return `The module ${moduleId} has no database, because its runtime part declares no migrations.`;
|
|
1194
|
+
}
|
|
1195
|
+
static formatModuleIdDevice(moduleId) {
|
|
1196
|
+
return `The module id "${moduleId}" names a device on Windows, so it is refused on every platform.`;
|
|
1197
|
+
}
|
|
1198
|
+
static formatAccessGrant(securityIdentifier) {
|
|
1199
|
+
return `*${securityIdentifier}:(OI)(CI)F`;
|
|
1200
|
+
}
|
|
1201
|
+
static formatFolderNotPrivate(folder, access) {
|
|
1202
|
+
return `The folder ${folder} is still open to others: ${access}`;
|
|
1203
|
+
}
|
|
1204
|
+
static formatCommandFailed(command, output) {
|
|
1205
|
+
return `${command} failed: ${output}`;
|
|
1206
|
+
}
|
|
1207
|
+
static formatForegroundGroupUnreadable(processId, text) {
|
|
1208
|
+
return `The foreground process group of process ${processId}'s terminal could not be read from: ${text}`;
|
|
1209
|
+
}
|
|
1210
|
+
static formatIdentityUnreadable(output) {
|
|
1211
|
+
return `The current user's security identifier could not be read from: ${output}`;
|
|
1212
|
+
}
|
|
1213
|
+
static formatBackupName(owner, position, timestamp) {
|
|
1214
|
+
return `${Resources.formatBackupSeries(owner)}${position}-${timestamp}${Resources.backupExtension}`;
|
|
1215
|
+
}
|
|
1216
|
+
static formatUpdateBackupName(owner, timestamp) {
|
|
1217
|
+
return `${Resources.formatUpdateBackupSeries(owner)}${timestamp}${Resources.backupExtension}`;
|
|
1218
|
+
}
|
|
1219
|
+
static formatBackupSeries(owner) {
|
|
1220
|
+
return `${owner}${Resources.backupInfix}`;
|
|
1221
|
+
}
|
|
1222
|
+
static formatUpdateBackupSeries(owner) {
|
|
1223
|
+
return `${owner}${Resources.updateBackupInfix}`;
|
|
1224
|
+
}
|
|
1225
|
+
static formatMovedFolderName(root, timestamp) {
|
|
1226
|
+
return `${root}${Resources.movedFolderInfix}${timestamp}`;
|
|
1227
|
+
}
|
|
1228
|
+
static formatTimestamp(moment) {
|
|
1229
|
+
return moment.toISOString().replace(Resources.timestampSeparatorPattern, String.empty);
|
|
1230
|
+
}
|
|
1231
|
+
static formatTemporaryName(fileName, unique) {
|
|
1232
|
+
return `${fileName}.${unique}${Resources.temporarySuffix}`;
|
|
1233
|
+
}
|
|
1234
|
+
static formatEndpointInvalid(productName, text) {
|
|
1235
|
+
return `"${text}" is not a ${productName} endpoint.`;
|
|
1236
|
+
}
|
|
1237
|
+
static formatSocketPathTooLong(socketPath) {
|
|
1238
|
+
return `The local socket path "${socketPath}" exceeds ${Resources.maximumSocketPathLength} bytes; use a data directory with a shorter path.`;
|
|
1239
|
+
}
|
|
1240
|
+
static formatCommandRegistered(name) {
|
|
1241
|
+
return `The command ${name} is already registered.`;
|
|
1242
|
+
}
|
|
1243
|
+
static formatNotificationKindChanged(id, kind) {
|
|
1244
|
+
return `Notification ${id} is of the kind ${kind}, which an update keeps.`;
|
|
1245
|
+
}
|
|
1246
|
+
static formatNotificationModuleInactive(moduleId, kind) {
|
|
1247
|
+
return `The notification kind ${kind} belongs to ${moduleId}, which is not an active module.`;
|
|
1248
|
+
}
|
|
1249
|
+
static formatNotificationCommandNotAllowed(moduleId, command) {
|
|
1250
|
+
return `The module ${moduleId} may not offer the command ${command} in a notification; it must be its own or a dependency's.`;
|
|
1251
|
+
}
|
|
1252
|
+
static formatShellNotificationUnknown(kind) {
|
|
1253
|
+
return `The shell posts no notification of the kind ${kind}.`;
|
|
1254
|
+
}
|
|
1255
|
+
static formatShellNotificationCommand(kind) {
|
|
1256
|
+
return `The shell's notification kind ${kind} offers no command.`;
|
|
1257
|
+
}
|
|
1258
|
+
static formatShellNotificationModuleCommand(kind, command) {
|
|
1259
|
+
return `The shell's notification kind ${kind} runs only the shell's commands, not ${command}.`;
|
|
1260
|
+
}
|
|
1261
|
+
static formatCommandNotEnabled(name) {
|
|
1262
|
+
return `The command ${name} is not enabled now.`;
|
|
1263
|
+
}
|
|
1264
|
+
static formatCommandNotFound(name) {
|
|
1265
|
+
return `The command ${name} is not registered; its module may not be active.`;
|
|
1266
|
+
}
|
|
1267
|
+
static formatMethodRegistered(name) {
|
|
1268
|
+
return `The method ${name} is already registered.`;
|
|
1269
|
+
}
|
|
1270
|
+
static formatEventDeclared(name) {
|
|
1271
|
+
return `The event ${name} is already declared.`;
|
|
1272
|
+
}
|
|
1273
|
+
static formatServicePublished(name) {
|
|
1274
|
+
return `The service ${name} is already published.`;
|
|
1275
|
+
}
|
|
1276
|
+
static formatSettingUnknown(name) {
|
|
1277
|
+
return `No setting named ${name} is declared.`;
|
|
1278
|
+
}
|
|
1279
|
+
static formatSettingValueInvalid(name) {
|
|
1280
|
+
return `The value is not one the setting ${name} accepts.`;
|
|
1281
|
+
}
|
|
1282
|
+
static formatSettingNeedsDevice(name) {
|
|
1283
|
+
return `The setting ${name} is kept per device and needs a device.`;
|
|
1284
|
+
}
|
|
1285
|
+
static formatSettingScopeNotAllowed(name, scope) {
|
|
1286
|
+
return `The setting ${name} does not list the scope ${scope}.`;
|
|
1287
|
+
}
|
|
1288
|
+
static formatSettingNotReadable(moduleId, name) {
|
|
1289
|
+
return `The module ${moduleId} may only read its own settings, its dependencies' and the shell's, not ${name}.`;
|
|
1290
|
+
}
|
|
1291
|
+
static formatSettingNotWritable(moduleId, name) {
|
|
1292
|
+
return `The module ${moduleId} may only change its own settings, not ${name}.`;
|
|
1293
|
+
}
|
|
1294
|
+
static formatSettingScopeNotOwned(moduleId, scope) {
|
|
1295
|
+
return `The module ${moduleId} may only describe the scopes it declares, its dependencies' as parents, not ${scope}.`;
|
|
1296
|
+
}
|
|
1297
|
+
static formatSettingValueIgnored(name, scope, device) {
|
|
1298
|
+
return `The stored value of the setting ${name} for the scope "${scope}" and device "${device}" no longer fits its definition; it is kept and ignored.\n`;
|
|
1299
|
+
}
|
|
1300
|
+
static formatNoldovaDesktopInvalid(moduleId) {
|
|
1301
|
+
return `The module ${moduleId} must name the Noldova Desktop versions it accepts as >=<lowest version> <first version refused>, with the lowest below the first refused.`;
|
|
1302
|
+
}
|
|
1303
|
+
static formatPlatformsInvalid(moduleId) {
|
|
1304
|
+
return `The module ${moduleId} must list its platforms once each as windows, macos or linux, with at least one.`;
|
|
1305
|
+
}
|
|
1306
|
+
static formatSwitchSettingInvalid(moduleId, name) {
|
|
1307
|
+
return `The module ${moduleId} names ${name} as its switch setting, which must be one of its own Boolean settings with the locality Shared and no scopes.`;
|
|
1308
|
+
}
|
|
1309
|
+
static formatSettingOwnerInvalid(moduleId, name) {
|
|
1310
|
+
return `The module ${moduleId} declares the setting ${name}, which it does not own.`;
|
|
1311
|
+
}
|
|
1312
|
+
static formatSettingCommandUnknown(moduleId, name, command) {
|
|
1313
|
+
return `The module ${moduleId} declares the action setting ${name}, whose command ${command} it does not declare.`;
|
|
1314
|
+
}
|
|
1315
|
+
static formatSettingKindReserved(moduleId, name, kind) {
|
|
1316
|
+
return `The module ${moduleId} declares the setting ${name} of the kind ${kind}, which only the shell declares.`;
|
|
1317
|
+
}
|
|
1318
|
+
static formatSettingPageReserved(moduleId, name, page) {
|
|
1319
|
+
return `The module ${moduleId} puts the setting ${name} on the page ${page}, which only the shell fills.`;
|
|
1320
|
+
}
|
|
1321
|
+
static formatNotContributed(moduleId, kind, name) {
|
|
1322
|
+
return `The module ${moduleId} does not declare ${name} among its ${kind}.`;
|
|
1323
|
+
}
|
|
1324
|
+
static formatServiceNotOwned(moduleId, name) {
|
|
1325
|
+
return `The module ${moduleId} may publish services only under its own id, not ${name}.`;
|
|
1326
|
+
}
|
|
1327
|
+
static formatServiceNotAllowed(moduleId, name) {
|
|
1328
|
+
return `The module ${moduleId} may use only the shell's services and those of the modules it depends on, not ${name}.`;
|
|
1329
|
+
}
|
|
1330
|
+
static formatServiceMissing(name) {
|
|
1331
|
+
return `No service ${name} is published.`;
|
|
1332
|
+
}
|
|
1333
|
+
static formatServiceType(name, type) {
|
|
1334
|
+
return `The service ${name} is not a ${type}.`;
|
|
1335
|
+
}
|
|
1336
|
+
static formatServiceRefused(name) {
|
|
1337
|
+
return `The service ${name} is not what its check expects, so the module goes without it.`;
|
|
1338
|
+
}
|
|
1339
|
+
static formatDependencyListenerFailed(moduleId, detail) {
|
|
1340
|
+
return `Its listener for a change of ${moduleId} failed:\n${detail}`;
|
|
1341
|
+
}
|
|
1342
|
+
static formatOptionalDependencyUnavailable(moduleId, version, dependency, reason) {
|
|
1343
|
+
return `The module ${moduleId} ${version} runs without its optional dependency ${dependency}: ${reason}\n`;
|
|
1344
|
+
}
|
|
1345
|
+
static formatOptionalDependencyInactive(state) {
|
|
1346
|
+
return `it is ${state.toLowerCase()}.`;
|
|
1347
|
+
}
|
|
1348
|
+
static formatOptionalDependencyOtherVersion(dependency, version, needed) {
|
|
1349
|
+
return `it needs ${dependency} ${needed}, and the app has ${dependency} ${version}.`;
|
|
1350
|
+
}
|
|
1351
|
+
static formatModuleDiagnostic(moduleId, version, cause, detail) {
|
|
1352
|
+
return `The module ${moduleId} ${version}: ${cause}\n${detail}\n`;
|
|
1353
|
+
}
|
|
1354
|
+
static formatModuleLogLine(moduleId, line) {
|
|
1355
|
+
return `${moduleId}: ${line}\n`;
|
|
1356
|
+
}
|
|
1357
|
+
static formatModuleBlocked(dependency) {
|
|
1358
|
+
return `It depends on ${dependency}, which is not active.`;
|
|
1359
|
+
}
|
|
1360
|
+
static formatModuleBlockedOff(dependency) {
|
|
1361
|
+
return `It depends on ${dependency}, which is off.`;
|
|
1362
|
+
}
|
|
1363
|
+
static formatModuleUnavailable(platformName) {
|
|
1364
|
+
return `It doesn't run on ${platformName}.`;
|
|
1365
|
+
}
|
|
1366
|
+
static formatModuleOutsideNoldovaDesktop(range, version) {
|
|
1367
|
+
return `It accepts Noldova Desktop ${range}, but this app has ${Object.isNull(version) ? "no Noldova Desktop version in its module declarations" : `Noldova Desktop ${version}`}.`;
|
|
1368
|
+
}
|
|
1369
|
+
static formatModuleRefused(moduleId, version, cause) {
|
|
1370
|
+
return `The module ${moduleId} ${version} doesn't start: ${cause}\n`;
|
|
1371
|
+
}
|
|
1372
|
+
static formatModuleBlockedUnavailable(dependency, platformName) {
|
|
1373
|
+
return `It depends on ${dependency}, which doesn't run on ${platformName}.`;
|
|
1374
|
+
}
|
|
1375
|
+
static formatModuleOtherVersion(dependency, version, needed) {
|
|
1376
|
+
return `It depends on ${dependency} ${needed}, and the app has ${dependency} ${version}.`;
|
|
1377
|
+
}
|
|
1378
|
+
static formatEventWithdrawn(name) {
|
|
1379
|
+
return `The event ${name} is no longer declared.`;
|
|
1380
|
+
}
|
|
1381
|
+
static formatEventNotSent(name, reason) {
|
|
1382
|
+
return `The runtime sent the event ${name} to no client: ${reason}\n`;
|
|
1383
|
+
}
|
|
1384
|
+
static formatRequestFailed(method, reason) {
|
|
1385
|
+
return `The runtime failed to handle a ${method} request: ${reason}\n`;
|
|
1386
|
+
}
|
|
1387
|
+
static formatWebViewFailed(kind) {
|
|
1388
|
+
return `The web view call failed: ${kind}.`;
|
|
1389
|
+
}
|
|
1390
|
+
static formatWebViewsNotListed(moduleId, reason) {
|
|
1391
|
+
return `The runtime could not list the web views of the module ${moduleId}: ${reason}\n`;
|
|
1392
|
+
}
|
|
1393
|
+
static formatSecretsNeedApp(productName) {
|
|
1394
|
+
return `Open ${productName} to use secrets on this machine: only its main process reaches this machine's secret store.`;
|
|
1395
|
+
}
|
|
1396
|
+
static formatSecretsUnprotected(productName) {
|
|
1397
|
+
return `This machine has no secret store that ${productName} can keep a secret in safely, such as a keyring on Linux, so nothing was saved.`;
|
|
1398
|
+
}
|
|
1399
|
+
static formatSecretUnreadable(productName, name) {
|
|
1400
|
+
return `This machine has no secret store that ${productName} can read the secret ${name} from safely, such as a keyring on Linux, so it was not read.`;
|
|
1401
|
+
}
|
|
1402
|
+
static formatSecretsNoDevice(productName) {
|
|
1403
|
+
return `${productName}'s main process has no device identity for this machine, so it can't keep secrets.`;
|
|
1404
|
+
}
|
|
1405
|
+
static formatSecretUndecryptable(name) {
|
|
1406
|
+
return `This machine's secret store can't decrypt the secret ${name}; save it again.`;
|
|
1407
|
+
}
|
|
1408
|
+
static formatSecretNotOwn(moduleId, name) {
|
|
1409
|
+
return `The module ${moduleId} may only use its own secrets, not ${name}.`;
|
|
1410
|
+
}
|
|
1411
|
+
static formatWebViewEventNotHeard(moduleId, reason) {
|
|
1412
|
+
return `A listener of the module ${moduleId} failed to hear a web view event: ${reason}\n`;
|
|
1413
|
+
}
|
|
1414
|
+
static formatAppSurfaceNotHeard(list, reason) {
|
|
1415
|
+
return `A part failed to hear that the app's ${list} changed: ${reason}\n`;
|
|
1416
|
+
}
|
|
1417
|
+
static formatClosureNotHeard(connection, window, reason) {
|
|
1418
|
+
const closed = Object.isNull(window) ? `connection ${connection}` : `window ${window} of connection ${connection}`;
|
|
1419
|
+
return `A part failed to hear that ${closed} closed: ${reason}\n`;
|
|
1420
|
+
}
|
|
1421
|
+
static formatWindowClosed(window) {
|
|
1422
|
+
return `Window ${window} of this connection has closed, so the runtime takes no more requests from it.`;
|
|
1423
|
+
}
|
|
1424
|
+
static formatUnknownMethod(name) {
|
|
1425
|
+
return `The method ${name} is not registered.`;
|
|
1426
|
+
}
|
|
1427
|
+
static formatDuplicateRequest(id) {
|
|
1428
|
+
return `A request with the id ${id} is already running on this connection.`;
|
|
1429
|
+
}
|
|
1430
|
+
static formatNoAnswer(method) {
|
|
1431
|
+
return `The runtime did not answer ${method} in time.`;
|
|
1432
|
+
}
|
|
1433
|
+
static formatUnreachable(endpoint) {
|
|
1434
|
+
return `The runtime at ${endpoint} cannot be reached.`;
|
|
1435
|
+
}
|
|
1436
|
+
static formatHandover(productName, productVersion, executablePath) {
|
|
1437
|
+
return `${productName} ${productVersion} at ${executablePath} owns this data directory and is newer; open that ${productName} instead.`;
|
|
1438
|
+
}
|
|
1439
|
+
static formatNoRuntime(root) {
|
|
1440
|
+
return `No runtime is running for ${root}.`;
|
|
1441
|
+
}
|
|
1442
|
+
static formatUpdating(productName) {
|
|
1443
|
+
return `${productName} is preparing to install an update.`;
|
|
1444
|
+
}
|
|
1445
|
+
static formatQuitKept(productName) {
|
|
1446
|
+
return `${productName} stayed open: it was kept open while work was in progress.`;
|
|
1447
|
+
}
|
|
1448
|
+
static formatQuitSaveFailed(productName) {
|
|
1449
|
+
return `${productName} stayed open: a window could not save.`;
|
|
1450
|
+
}
|
|
1451
|
+
static formatQuitUnanswered(productName) {
|
|
1452
|
+
return `${productName} did not say whether it quit: its main process's connection ended before it answered.`;
|
|
1453
|
+
}
|
|
1454
|
+
static formatQuitInterrupted(productName) {
|
|
1455
|
+
return `${productName} did not say whether it quit: its runtime stopped before the main process answered.`;
|
|
1456
|
+
}
|
|
1457
|
+
static formatClientNotAnswered(client) {
|
|
1458
|
+
return `A ${client} client did not answer in time.`;
|
|
1459
|
+
}
|
|
1460
|
+
static formatUpdateInProgress(productName) {
|
|
1461
|
+
return `${productName} is installing an update.`;
|
|
1462
|
+
}
|
|
1463
|
+
static formatUpdateUnfinished(productName) {
|
|
1464
|
+
return `An update of ${productName} may still be installing, or it did not finish. Open ${productName} to settle it.`;
|
|
1465
|
+
}
|
|
1466
|
+
static formatBuildMismatch(productName, productVersion, executablePath) {
|
|
1467
|
+
return `${productName} ${productVersion} at ${executablePath} owns this data directory; it is another build, and taking it over was not asked for.`;
|
|
1468
|
+
}
|
|
1469
|
+
static formatWorkInProgress(descriptions) {
|
|
1470
|
+
return `Work is in progress: ${descriptions.join("; ")}.`;
|
|
1471
|
+
}
|
|
1472
|
+
static formatProductVersionInvalid(version) {
|
|
1473
|
+
return `"${version}" is not a product version of the form major.minor.patch.`;
|
|
1474
|
+
}
|
|
1475
|
+
static formatStopRefused(message) {
|
|
1476
|
+
return `The other build's runtime refused to stop: ${message}`;
|
|
1477
|
+
}
|
|
1478
|
+
static formatRuntimeExited(reason) {
|
|
1479
|
+
return `The runtime exited while starting: ${reason}`;
|
|
1480
|
+
}
|
|
1481
|
+
static formatFolderWatchFallback(folder, interval, reason) {
|
|
1482
|
+
return `The folder ${folder} could not be watched for changes, so the launcher checks it every ${interval} ms instead: ${reason}`;
|
|
1483
|
+
}
|
|
1484
|
+
static formatLaunchLimitReached(milliseconds) {
|
|
1485
|
+
return `A runtime held the data directory but was not reachable within ${milliseconds / 1000} s.`;
|
|
1486
|
+
}
|
|
1487
|
+
static formatStartLogNameInvalid(name) {
|
|
1488
|
+
return `"${name}" is not the name of a start log.`;
|
|
1489
|
+
}
|
|
1490
|
+
static formatRuntimeLogUnavailable(reason) {
|
|
1491
|
+
return `The runtime's log could not be written, so it is no longer written to: ${reason}`;
|
|
1492
|
+
}
|
|
1493
|
+
static formatErrorsCapFailed(reason) {
|
|
1494
|
+
return `The standard error's size could not be checked: ${reason}\n`;
|
|
1495
|
+
}
|
|
1496
|
+
static formatCopyMountFailed(image, reason) {
|
|
1497
|
+
return `${image} could not be mounted, so the runtime starts from an extraction of it: ${reason}\n`;
|
|
1498
|
+
}
|
|
1499
|
+
static formatCopyNotMounted(image) {
|
|
1500
|
+
return `${image} could not be mounted, so the runtime starts from an extraction of it.\n`;
|
|
1501
|
+
}
|
|
1502
|
+
static formatCopyUnavailable(image) {
|
|
1503
|
+
return `${image} could be neither mounted nor extracted, so the runtime cannot start.`;
|
|
1504
|
+
}
|
|
1505
|
+
static formatCopyProcessUnlisted(processId) {
|
|
1506
|
+
return `The process table does not list process ${processId}, so the runtime's AppImage copy cannot be recorded.`;
|
|
1507
|
+
}
|
|
1508
|
+
static formatCopyNotEnded(record, reason) {
|
|
1509
|
+
return `The runtime could not end the AppImage copy recorded in ${record}, so the record is left: ${reason}\n`;
|
|
1510
|
+
}
|
|
1511
|
+
static formatLeftoversNotChecked(folder, reason) {
|
|
1512
|
+
return `The runtime could not check ${folder} for an interrupted backup's files, so it left them: ${reason}\n`;
|
|
1513
|
+
}
|
|
1514
|
+
static formatUnreadableFolderName(file, timestamp) {
|
|
1515
|
+
return `${file}${Resources.unreadableFolderInfix}${timestamp}`;
|
|
1516
|
+
}
|
|
1517
|
+
static formatUnreadableDatabaseMoved(file, folder) {
|
|
1518
|
+
return `The database ${file} had no first page SQLite could read, so the runtime moved it, with its log if it had one, to ${folder} and created it anew.\n`;
|
|
1519
|
+
}
|
|
1520
|
+
static formatNewDatabaseNotFlushed(file, reason) {
|
|
1521
|
+
return `The runtime could not flush the new database ${file} to disk in the background, so its first write flushes it: ${reason}\n`;
|
|
1522
|
+
}
|
|
1523
|
+
static formatLeftoverNotRemoved(file, reason) {
|
|
1524
|
+
return `The runtime could not remove the interrupted backup's file ${file}, so it is left: ${reason}\n`;
|
|
1525
|
+
}
|
|
1526
|
+
static formatOlderBackupsNotChecked(folder, reason) {
|
|
1527
|
+
return `The runtime could not check ${folder} for older backups, so it kept them: ${reason}\n`;
|
|
1528
|
+
}
|
|
1529
|
+
static formatOlderBackupNotRemoved(file, reason) {
|
|
1530
|
+
return `The runtime could not remove the older backup ${file}, so it is kept: ${reason}\n`;
|
|
1531
|
+
}
|
|
1532
|
+
static formatModuleFolderSkipped(folder) {
|
|
1533
|
+
return `The update backup skipped ${folder}, since its name is no module's id.\n`;
|
|
1534
|
+
}
|
|
1535
|
+
static formatAddonIncomplete(name) {
|
|
1536
|
+
return `The runtime's addon native/${name} lacks functions this runtime calls; it comes from another build.`;
|
|
1537
|
+
}
|
|
1538
|
+
static formatAddonMissing(target, file) {
|
|
1539
|
+
return `The runtime has no ${target} build of its addon ${file}: native/${target}/${file} is missing.`;
|
|
1540
|
+
}
|
|
1541
|
+
static formatAddonLoadFailed(name) {
|
|
1542
|
+
return `The runtime could not load its addon native/${name}.`;
|
|
1543
|
+
}
|
|
1544
|
+
static formatAddonUnexpected(name) {
|
|
1545
|
+
return `The runtime's addon native/${name} returned a value this runtime does not expect; it comes from another build.`;
|
|
1546
|
+
}
|
|
1547
|
+
static formatCopyRecordName(unique) {
|
|
1548
|
+
return `${Resources.copyRecordPrefix}${unique}${Resources.startLogExtension}`;
|
|
1549
|
+
}
|
|
1550
|
+
static formatStartLogName(unique) {
|
|
1551
|
+
return `${Resources.startLogPrefix}${unique}${Resources.startLogExtension}`;
|
|
1552
|
+
}
|
|
1553
|
+
static formatStartFailed(executable) {
|
|
1554
|
+
return `The program ${executable} could not be started.`;
|
|
1555
|
+
}
|
|
1556
|
+
static formatArgumentWithoutValue(name) {
|
|
1557
|
+
return `The argument ${name} needs a value.`;
|
|
1558
|
+
}
|
|
1559
|
+
static formatPreShellFound(productName, location) {
|
|
1560
|
+
return `The data directory ${location} holds data from a ${productName} release that predates the shell.`;
|
|
1561
|
+
}
|
|
1562
|
+
static formatMoveAsideFailed(message) {
|
|
1563
|
+
return `The runtime could not move the old data aside: ${message}`;
|
|
1564
|
+
}
|
|
1565
|
+
static formatArgumentInvalid(name, value) {
|
|
1566
|
+
return `The argument ${name} ${value} is not valid.`;
|
|
1567
|
+
}
|
|
1568
|
+
static formatEnvironmentNameInvalid(name) {
|
|
1569
|
+
return `${JSON.stringify(name)} is not an environment variable's name.`;
|
|
1570
|
+
}
|
|
1571
|
+
static formatProgramNotFound(program) {
|
|
1572
|
+
return `${program} was not found, or it is not a program that can be run.`;
|
|
1573
|
+
}
|
|
1574
|
+
static formatProgramPathRelative(program) {
|
|
1575
|
+
return `${program} is neither a program's name nor an absolute path.`;
|
|
1576
|
+
}
|
|
1577
|
+
static formatProcessStartFailed(program) {
|
|
1578
|
+
return `${program} could not be started.`;
|
|
1579
|
+
}
|
|
1580
|
+
static formatBatchArgumentRefused(program) {
|
|
1581
|
+
return `${program} is a batch file whose program could not be traced, and cmd.exe cannot be given an argument that holds %, ", !, a line break or a NUL character.`;
|
|
1582
|
+
}
|
|
1583
|
+
static formatProcessTableRowUnreadable(row) {
|
|
1584
|
+
return `The process table has a row that could not be read: ${row}`;
|
|
1585
|
+
}
|
|
1586
|
+
static formatTerminalNotAbandoned(error) {
|
|
1587
|
+
return `Its pseudo-terminal did not start, and it could not be fully ended: ${error}`;
|
|
1588
|
+
}
|
|
1589
|
+
static formatExitCodeUnread(error) {
|
|
1590
|
+
return `The program ended, but neither its pseudo-terminal library nor Windows gave its exit code, so it ended without a code: ${error}`;
|
|
1591
|
+
}
|
|
1592
|
+
static formatExitWaitTimedOut(processId, milliseconds) {
|
|
1593
|
+
return `Process ${processId} was still running ${milliseconds} ms after its output closed, so its exit code could not be read.`;
|
|
1594
|
+
}
|
|
1595
|
+
static formatExitCodeUnreadable(processId) {
|
|
1596
|
+
return `Windows gave no exit code for process ${processId}.`;
|
|
1597
|
+
}
|
|
1598
|
+
static formatNoJobForExitCode(processId) {
|
|
1599
|
+
return `Process ${processId} is in no job of the runtime's, so Windows wasn't asked for its exit code.`;
|
|
1600
|
+
}
|
|
1601
|
+
static formatJobClosedBeforeExit(processId) {
|
|
1602
|
+
return `The job of process ${processId} closed before its exit code was read.`;
|
|
1603
|
+
}
|
|
1604
|
+
static formatJobAssignmentFailed(processId, error) {
|
|
1605
|
+
return `Process ${processId} could not be put in a job of its own, with Windows error ${error}, so what it starts is found only by its parent.`;
|
|
1606
|
+
}
|
|
1607
|
+
static formatProcessesForced(processIds) {
|
|
1608
|
+
return `It did not end within the grace period, so processes ${processIds.join(", ")} were ended forcefully.`;
|
|
1609
|
+
}
|
|
1610
|
+
static formatProcessesRemaining(processIds) {
|
|
1611
|
+
return `Processes ${processIds.join(", ")} were still running after they were ended forcefully.`;
|
|
1612
|
+
}
|
|
1613
|
+
static formatLeftoversEnded(processIds) {
|
|
1614
|
+
return `An earlier runtime left processes ${processIds.join(", ")} running, so they were ended.`;
|
|
1615
|
+
}
|
|
1616
|
+
static formatJobsNotHungUp(failure) {
|
|
1617
|
+
return `Its jobs could not all be hung up after it ended: ${failure}`;
|
|
1618
|
+
}
|
|
1619
|
+
static formatProcessesLeft(processIds) {
|
|
1620
|
+
return `It was no longer running, and nothing showed that processes ${processIds.join(", ")} were what it started, so they were left running.`;
|
|
1621
|
+
}
|
|
1622
|
+
static formatVerbatimBatchRefused(program) {
|
|
1623
|
+
return `${program} is a batch file, and a process request passes its arguments as they are only to a program that isn't one; give cmd.exe the batch file in its arguments instead.`;
|
|
1624
|
+
}
|
|
1625
|
+
static formatPseudoTerminalCommandLineRefused(program) {
|
|
1626
|
+
return `${program} was given a command line to pass as it is, which a pseudo-terminal takes only on Windows.`;
|
|
1627
|
+
}
|
|
1628
|
+
static formatPseudoTerminalCommandLineWithArguments(program) {
|
|
1629
|
+
return `${program} was given both a command line to pass as it is and arguments, and a pseudo-terminal takes one or the other.`;
|
|
1630
|
+
}
|
|
1631
|
+
static formatPseudoTerminalCommandLineBatchRefused(program) {
|
|
1632
|
+
return `${program} is a batch file, and a pseudo-terminal passes a command line as it is only to a program that isn't one; give cmd.exe the batch file in its command line instead.`;
|
|
1633
|
+
}
|
|
1634
|
+
static formatPseudoTerminalBatchRefused(program) {
|
|
1635
|
+
return `${program} is a batch file whose program could not be traced, and a pseudo-terminal starts no batch file through cmd.exe.`;
|
|
1636
|
+
}
|
|
1637
|
+
static formatPseudoTerminalsUndeclared(moduleId, program) {
|
|
1638
|
+
return `${program} was not started, because the module ${moduleId} does not declare pseudoTerminals.`;
|
|
1639
|
+
}
|
|
1640
|
+
static formatSocketMemberMissing(...members) {
|
|
1641
|
+
return `The connection's socket has no ${members.join(Resources.memberSeparator)}, so the runtime cannot tell which process is on its other end. The Node.js version may have changed how it keeps it.`;
|
|
1642
|
+
}
|
|
1643
|
+
static formatPseudoTerminalMemberMissing(...members) {
|
|
1644
|
+
return `The pseudo-terminal library has no ${members.join(Resources.memberSeparator)}, so the runtime cannot stop or close its output. Its version may have changed how it keeps it.`;
|
|
1645
|
+
}
|
|
1646
|
+
static formatModuleStopping(moduleId, program) {
|
|
1647
|
+
return `${program} was not started, because the module ${moduleId} is stopping.`;
|
|
1648
|
+
}
|
|
1649
|
+
static formatUpdatePreparing(moduleId, program) {
|
|
1650
|
+
return `${program} was not started for the module ${moduleId}, because the runtime is preparing for an update.`;
|
|
1651
|
+
}
|
|
1652
|
+
static formatProcessDiagnostic(moduleId, program, processId, text) {
|
|
1653
|
+
return `The module ${moduleId}'s program ${program} (process ${processId}): ${text}\n`;
|
|
1654
|
+
}
|
|
1655
|
+
static formatToolDeadlineRange(maximum) {
|
|
1656
|
+
return `A tool's deadline needs a whole default of at least 1 ms, within a maximum of at most ${maximum} ms.`;
|
|
1657
|
+
}
|
|
1658
|
+
static formatToolLimitInvalid(name, ceiling) {
|
|
1659
|
+
return `A tool's ${name} limit must be a whole number from 1 to ${ceiling}.`;
|
|
1660
|
+
}
|
|
1661
|
+
static formatToolNextToolInvalid(name) {
|
|
1662
|
+
return `The tool ${name} must name, as nextTool, one of its module's declared tools, and it needs one unless it is read-only or resumable.`;
|
|
1663
|
+
}
|
|
1664
|
+
static formatToolImageType(mimeType) {
|
|
1665
|
+
return `An image item must be image/png or image/jpeg, not ${mimeType}.`;
|
|
1666
|
+
}
|
|
1667
|
+
static formatToolRegistered(name) {
|
|
1668
|
+
return `The tool ${name} is already registered.`;
|
|
1669
|
+
}
|
|
1670
|
+
static formatToolScopeTooLong(maximum) {
|
|
1671
|
+
return `An agent session's scope must have at most ${maximum} characters.`;
|
|
1672
|
+
}
|
|
1673
|
+
static formatToolEndpointHost(port) {
|
|
1674
|
+
return `${Resources.loopbackHost}:${port}`;
|
|
1675
|
+
}
|
|
1676
|
+
static formatToolEndpointUrl(port) {
|
|
1677
|
+
return `http://${Resources.formatToolEndpointHost(port)}/`;
|
|
1678
|
+
}
|
|
1679
|
+
static formatToolEndpointValue(type) {
|
|
1680
|
+
return `a value of type ${type}, not an error`;
|
|
1681
|
+
}
|
|
1682
|
+
static formatToolEndpointFailed(error) {
|
|
1683
|
+
return `The tool endpoint's handler failed: ${error}`;
|
|
1684
|
+
}
|
|
1685
|
+
static formatToolUnavailable(name) {
|
|
1686
|
+
return `The tool ${name} is not registered.`;
|
|
1687
|
+
}
|
|
1688
|
+
static formatToolClosed(name) {
|
|
1689
|
+
return `The tool ${name} is not available while its module turns off.`;
|
|
1690
|
+
}
|
|
1691
|
+
static formatToolCallsInFlight(maximum) {
|
|
1692
|
+
return `The agent session already has ${maximum} calls in flight.`;
|
|
1693
|
+
}
|
|
1694
|
+
static formatToolDeadlineInvalid(maximum) {
|
|
1695
|
+
return `The call's deadline must be a whole number of milliseconds from 1 to ${maximum}.`;
|
|
1696
|
+
}
|
|
1697
|
+
static formatToolResourceMissing(resource) {
|
|
1698
|
+
return `The call has nothing at ${resource}, which the tool takes turns on.`;
|
|
1699
|
+
}
|
|
1700
|
+
static formatToolSchemaKeywordUnsupported(path) {
|
|
1701
|
+
return `The schema keyword at ${path} is not one the tool registry checks.`;
|
|
1702
|
+
}
|
|
1703
|
+
static formatToolSchemaKeywordInvalid(path) {
|
|
1704
|
+
return `The schema keyword at ${path} has a value the tool registry cannot use.`;
|
|
1705
|
+
}
|
|
1706
|
+
static formatToolSchemaNotObject(path) {
|
|
1707
|
+
return `The schema at ${path} must be a JSON object.`;
|
|
1708
|
+
}
|
|
1709
|
+
static formatToolValueMismatch(path, keyword) {
|
|
1710
|
+
return String.isNullOrWhitespace(path) ? `The value does not fit the schema's ${keyword}.` : `The value at ${path} does not fit the schema's ${keyword}.`;
|
|
1711
|
+
}
|
|
1712
|
+
static formatToolHandlerFailed(name, detail) {
|
|
1713
|
+
return `The tool ${name} failed: ${detail}`;
|
|
1714
|
+
}
|
|
1715
|
+
static formatToolFailureCause(name, message, detail) {
|
|
1716
|
+
return `The tool ${name} failed with "${message}", caused by: ${detail}`;
|
|
1717
|
+
}
|
|
1718
|
+
static formatToolFailureUnwritable(name) {
|
|
1719
|
+
return `The tool ${name} failed, and what it failed with could not be written to the log.`;
|
|
1720
|
+
}
|
|
1721
|
+
static formatToolFailedLate(name, detail) {
|
|
1722
|
+
return `The tool ${name} failed after its call had ended: ${detail}`;
|
|
1723
|
+
}
|
|
1724
|
+
static formatAgentControlListenerFailed(detail) {
|
|
1725
|
+
return `A listener for stopped or resumed agent control failed: ${detail}`;
|
|
1726
|
+
}
|
|
1727
|
+
static formatResumeNotFromApp(client) {
|
|
1728
|
+
return `Only the app's window and tray resume agent control; the client ${client} can't.`;
|
|
1729
|
+
}
|
|
1730
|
+
static formatSessionStopRefused(moduleId) {
|
|
1731
|
+
return `The module ${moduleId} can't stop an agent session's turn while agent control or a session stops; only a command the person runs stops it.`;
|
|
1732
|
+
}
|
|
1733
|
+
static formatResumeRefused(moduleId) {
|
|
1734
|
+
return `The module ${moduleId} can't resume agent control while it stops or while one of its tool calls runs, even past its abort; only a command the person runs resumes it.`;
|
|
1735
|
+
}
|
|
1736
|
+
static formatToolSessionListenerFailed(detail) {
|
|
1737
|
+
return `A listener for ended agent sessions failed: ${detail}`;
|
|
1738
|
+
}
|
|
1739
|
+
static formatPermissionRiskUnreadable(name) {
|
|
1740
|
+
return `A permission request of the tool ${name} has a risk that could not be read, so it counts as high.`;
|
|
1741
|
+
}
|
|
1742
|
+
static formatPermissionDenied(action, reason) {
|
|
1743
|
+
return `The permission request for ${action} was denied: ${reason}`;
|
|
1744
|
+
}
|
|
1745
|
+
static formatPermissionActionInvalid(module) {
|
|
1746
|
+
return `The action must be ${module}, a dot and a camelCase name.`;
|
|
1747
|
+
}
|
|
1748
|
+
static formatPermissionRiskInvalid(maximum) {
|
|
1749
|
+
return `The risk must be Low, Medium or High, and at most the tool's maximum risk, ${maximum}.`;
|
|
1750
|
+
}
|
|
1751
|
+
static formatPermissionUnreadable(detail) {
|
|
1752
|
+
return `The request could not be read: ${detail}`;
|
|
1753
|
+
}
|
|
1754
|
+
static formatPermissionAnswerInvalid(action, decision) {
|
|
1755
|
+
return `The answerer's decision ${decision} for ${action} is not one the request offers, so the request is denied.`;
|
|
1756
|
+
}
|
|
1757
|
+
static formatPermissionAnswererFailed(action, detail) {
|
|
1758
|
+
return `The answerer failed for ${action}, so the request is denied: ${detail}`;
|
|
1759
|
+
}
|
|
1760
|
+
static formatPermissionReadFailed(action, detail) {
|
|
1761
|
+
return `A remembered answer for ${action} could not be read, so the answerer decides: ${detail}`;
|
|
1762
|
+
}
|
|
1763
|
+
static formatPermissionKeepFailed(action, detail) {
|
|
1764
|
+
return `The answer for ${action} could not be remembered, so it holds for this call only: ${detail}`;
|
|
1765
|
+
}
|
|
1766
|
+
static formatPermissionRevokedListenerFailed(detail) {
|
|
1767
|
+
return `A listener for revoked permission answers failed: ${detail}`;
|
|
1768
|
+
}
|
|
1769
|
+
static formatPermissionsModuleOnly(module) {
|
|
1770
|
+
return `The module ${module} cannot answer permission requests or manage remembered answers; only the module the app names in desktop.product.permissionsModule can.`;
|
|
1771
|
+
}
|
|
1772
|
+
static formatAnswererRegistered(module) {
|
|
1773
|
+
return `The module ${module} already registered an answerer for permission requests.`;
|
|
1774
|
+
}
|
|
1775
|
+
static formatReadWindowState(kind) {
|
|
1776
|
+
const column = Resources.windowStateColumns[kind];
|
|
1777
|
+
return `SELECT ${column} AS value FROM window_states WHERE device = ? AND window = ?`;
|
|
1778
|
+
}
|
|
1779
|
+
static formatWriteWindowState(kind) {
|
|
1780
|
+
const column = Resources.windowStateColumns[kind];
|
|
1781
|
+
return `INSERT INTO window_states (device, window, ${column}) VALUES (?, ?, ?) ON CONFLICT (device, window) DO UPDATE SET ${column} = excluded.${column}`;
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
//# sourceMappingURL=resources.js.map
|