@noldova/desktop.protocol 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.
Files changed (245) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +35 -2
  3. package/api/index.d.ts +8228 -0
  4. package/api/index.js +121 -0
  5. package/api/index.js.map +1 -0
  6. package/api/testing.d.ts +601 -0
  7. package/api/testing.js +11 -0
  8. package/api/testing.js.map +1 -0
  9. package/enums/edit-action.js +17 -0
  10. package/enums/edit-action.js.map +1 -0
  11. package/enums/failure-code.js +27 -0
  12. package/enums/failure-code.js.map +1 -0
  13. package/enums/module-state.js +16 -0
  14. package/enums/module-state.js.map +1 -0
  15. package/enums/notification-severity.js +15 -0
  16. package/enums/notification-severity.js.map +1 -0
  17. package/enums/quit-answer.js +13 -0
  18. package/enums/quit-answer.js.map +1 -0
  19. package/enums/quit-result.js +13 -0
  20. package/enums/quit-result.js.map +1 -0
  21. package/enums/secret-action.js +14 -0
  22. package/enums/secret-action.js.map +1 -0
  23. package/enums/secret-failure-kind.js +14 -0
  24. package/enums/secret-failure-kind.js.map +1 -0
  25. package/enums/secret-failure-reason.js +15 -0
  26. package/enums/secret-failure-reason.js.map +1 -0
  27. package/enums/setting-kind.js +19 -0
  28. package/enums/setting-kind.js.map +1 -0
  29. package/enums/setting-locality.js +13 -0
  30. package/enums/setting-locality.js.map +1 -0
  31. package/enums/stop-policy.js +13 -0
  32. package/enums/stop-policy.js.map +1 -0
  33. package/enums/web-view-action.js +20 -0
  34. package/enums/web-view-action.js.map +1 -0
  35. package/enums/web-view-event-kind.js +25 -0
  36. package/enums/web-view-event-kind.js.map +1 -0
  37. package/enums/web-view-failure-kind.js +21 -0
  38. package/enums/web-view-failure-kind.js.map +1 -0
  39. package/enums/web-view-navigation-kind.js +14 -0
  40. package/enums/web-view-navigation-kind.js.map +1 -0
  41. package/enums/window-action.js +14 -0
  42. package/enums/window-action.js.map +1 -0
  43. package/enums/wire-message-kind.js +16 -0
  44. package/enums/wire-message-kind.js.map +1 -0
  45. package/exceptions/desktop-protocol.exception.js +14 -0
  46. package/exceptions/desktop-protocol.exception.js.map +1 -0
  47. package/exceptions/protocol.exception.js +20 -0
  48. package/exceptions/protocol.exception.js.map +1 -0
  49. package/interfaces/i-key-stroke.js +9 -0
  50. package/interfaces/i-key-stroke.js.map +1 -0
  51. package/models/agent-control-state.js +28 -0
  52. package/models/agent-control-state.js.map +1 -0
  53. package/models/app-shortcut-list.js +27 -0
  54. package/models/app-shortcut-list.js.map +1 -0
  55. package/models/app-shortcut.js +35 -0
  56. package/models/app-shortcut.js.map +1 -0
  57. package/models/app-window-list.js +27 -0
  58. package/models/app-window-list.js.map +1 -0
  59. package/models/app-window.js +34 -0
  60. package/models/app-window.js.map +1 -0
  61. package/models/build-identity.js +53 -0
  62. package/models/build-identity.js.map +1 -0
  63. package/models/cancel.js +30 -0
  64. package/models/cancel.js.map +1 -0
  65. package/models/command-info.js +49 -0
  66. package/models/command-info.js.map +1 -0
  67. package/models/command-list.js +31 -0
  68. package/models/command-list.js.map +1 -0
  69. package/models/command-run.js +29 -0
  70. package/models/command-run.js.map +1 -0
  71. package/models/date-pattern.js +64 -0
  72. package/models/date-pattern.js.map +1 -0
  73. package/models/event.js +38 -0
  74. package/models/event.js.map +1 -0
  75. package/models/failure.js +34 -0
  76. package/models/failure.js.map +1 -0
  77. package/models/file-grant.js +80 -0
  78. package/models/file-grant.js.map +1 -0
  79. package/models/file-grants-discard.js +32 -0
  80. package/models/file-grants-discard.js.map +1 -0
  81. package/models/file-grants-ended.js +33 -0
  82. package/models/file-grants-ended.js.map +1 -0
  83. package/models/file-share-resolve.js +29 -0
  84. package/models/file-share-resolve.js.map +1 -0
  85. package/models/handshake.js +47 -0
  86. package/models/handshake.js.map +1 -0
  87. package/models/kept-runtime.js +29 -0
  88. package/models/kept-runtime.js.map +1 -0
  89. package/models/key-chord.js +115 -0
  90. package/models/key-chord.js.map +1 -0
  91. package/models/key-name.js +59 -0
  92. package/models/key-name.js.map +1 -0
  93. package/models/main-window.js +30 -0
  94. package/models/main-window.js.map +1 -0
  95. package/models/module-status-list.js +25 -0
  96. package/models/module-status-list.js.map +1 -0
  97. package/models/module-status.js +80 -0
  98. package/models/module-status.js.map +1 -0
  99. package/models/notification-action.js +36 -0
  100. package/models/notification-action.js.map +1 -0
  101. package/models/notification-broadcast.js +50 -0
  102. package/models/notification-broadcast.js.map +1 -0
  103. package/models/notification-list.js +27 -0
  104. package/models/notification-list.js.map +1 -0
  105. package/models/notification-post.js +81 -0
  106. package/models/notification-post.js.map +1 -0
  107. package/models/notification-reference.js +30 -0
  108. package/models/notification-reference.js.map +1 -0
  109. package/models/notification-state.js +44 -0
  110. package/models/notification-state.js.map +1 -0
  111. package/models/notification.js +54 -0
  112. package/models/notification.js.map +1 -0
  113. package/models/notifications-query.js +28 -0
  114. package/models/notifications-query.js.map +1 -0
  115. package/models/pre-shell-data.js +28 -0
  116. package/models/pre-shell-data.js.map +1 -0
  117. package/models/program-status-list.js +32 -0
  118. package/models/program-status-list.js.map +1 -0
  119. package/models/program-status.js +48 -0
  120. package/models/program-status.js.map +1 -0
  121. package/models/qualified-name.js +44 -0
  122. package/models/qualified-name.js.map +1 -0
  123. package/models/quit-answered.js +28 -0
  124. package/models/quit-answered.js.map +1 -0
  125. package/models/quit-report.js +28 -0
  126. package/models/quit-report.js.map +1 -0
  127. package/models/recent-command-use.js +31 -0
  128. package/models/recent-command-use.js.map +1 -0
  129. package/models/recent-commands-query.js +28 -0
  130. package/models/recent-commands-query.js.map +1 -0
  131. package/models/recent-commands.js +39 -0
  132. package/models/recent-commands.js.map +1 -0
  133. package/models/request.js +55 -0
  134. package/models/request.js.map +1 -0
  135. package/models/response.js +62 -0
  136. package/models/response.js.map +1 -0
  137. package/models/running-work.js +30 -0
  138. package/models/running-work.js.map +1 -0
  139. package/models/runtime-handover.js +32 -0
  140. package/models/runtime-handover.js.map +1 -0
  141. package/models/secret-answered.js +42 -0
  142. package/models/secret-answered.js.map +1 -0
  143. package/models/secret-command.js +52 -0
  144. package/models/secret-command.js.map +1 -0
  145. package/models/secret-failures.js +25 -0
  146. package/models/secret-failures.js.map +1 -0
  147. package/models/secret-reference.js +30 -0
  148. package/models/secret-reference.js.map +1 -0
  149. package/models/secret-value.js +37 -0
  150. package/models/secret-value.js.map +1 -0
  151. package/models/setting-change.js +31 -0
  152. package/models/setting-change.js.map +1 -0
  153. package/models/setting-definition.js +71 -0
  154. package/models/setting-definition.js.map +1 -0
  155. package/models/setting-entry.js +31 -0
  156. package/models/setting-entry.js.map +1 -0
  157. package/models/setting-key.js +41 -0
  158. package/models/setting-key.js.map +1 -0
  159. package/models/setting-option.js +33 -0
  160. package/models/setting-option.js.map +1 -0
  161. package/models/setting-scope.js +36 -0
  162. package/models/setting-scope.js.map +1 -0
  163. package/models/setting-type.js +156 -0
  164. package/models/setting-type.js.map +1 -0
  165. package/models/setting-value.js +28 -0
  166. package/models/setting-value.js.map +1 -0
  167. package/models/settings-query.js +30 -0
  168. package/models/settings-query.js.map +1 -0
  169. package/models/settings-snapshot.js +37 -0
  170. package/models/settings-snapshot.js.map +1 -0
  171. package/models/shell-clients.js +14 -0
  172. package/models/shell-clients.js.map +1 -0
  173. package/models/shell-events.js +25 -0
  174. package/models/shell-events.js.map +1 -0
  175. package/models/shell-keys.js +26 -0
  176. package/models/shell-keys.js.map +1 -0
  177. package/models/shell-methods.js +54 -0
  178. package/models/shell-methods.js.map +1 -0
  179. package/models/shell-notifications.js +17 -0
  180. package/models/shell-notifications.js.map +1 -0
  181. package/models/stop-request.js +30 -0
  182. package/models/stop-request.js.map +1 -0
  183. package/models/update-process.js +42 -0
  184. package/models/update-process.js.map +1 -0
  185. package/models/update-ready.js +35 -0
  186. package/models/update-ready.js.map +1 -0
  187. package/models/update-request.js +28 -0
  188. package/models/update-request.js.map +1 -0
  189. package/models/update-saved.js +37 -0
  190. package/models/update-saved.js.map +1 -0
  191. package/models/web-view-answered.js +43 -0
  192. package/models/web-view-answered.js.map +1 -0
  193. package/models/web-view-command.js +79 -0
  194. package/models/web-view-command.js.map +1 -0
  195. package/models/web-view-declaration.js +64 -0
  196. package/models/web-view-declaration.js.map +1 -0
  197. package/models/web-view-event.js +98 -0
  198. package/models/web-view-event.js.map +1 -0
  199. package/models/web-view-events.js +31 -0
  200. package/models/web-view-events.js.map +1 -0
  201. package/models/web-view-failure.js +41 -0
  202. package/models/web-view-failure.js.map +1 -0
  203. package/models/web-view-info.js +41 -0
  204. package/models/web-view-info.js.map +1 -0
  205. package/models/web-view-key.js +58 -0
  206. package/models/web-view-key.js.map +1 -0
  207. package/models/web-view-method.js +47 -0
  208. package/models/web-view-method.js.map +1 -0
  209. package/models/web-view-navigation.js +34 -0
  210. package/models/web-view-navigation.js.map +1 -0
  211. package/models/web-view-pane.js +36 -0
  212. package/models/web-view-pane.js.map +1 -0
  213. package/models/web-view-parameter.js +96 -0
  214. package/models/web-view-parameter.js.map +1 -0
  215. package/models/window-closed.js +29 -0
  216. package/models/window-closed.js.map +1 -0
  217. package/models/window-state-key.js +31 -0
  218. package/models/window-state-key.js.map +1 -0
  219. package/models/window-state-value.js +26 -0
  220. package/models/window-state-value.js.map +1 -0
  221. package/models/window-state-write.js +30 -0
  222. package/models/window-state-write.js.map +1 -0
  223. package/models/wire-message.js +17 -0
  224. package/models/wire-message.js.map +1 -0
  225. package/models/work-report.js +35 -0
  226. package/models/work-report.js.map +1 -0
  227. package/package.json +40 -3
  228. package/resources.js +476 -0
  229. package/resources.js.map +1 -0
  230. package/services/frame-writer.js +24 -0
  231. package/services/frame-writer.js.map +1 -0
  232. package/services/frame.reader.js +47 -0
  233. package/services/frame.reader.js.map +1 -0
  234. package/services/link-policy.js +20 -0
  235. package/services/link-policy.js.map +1 -0
  236. package/services/wire-contract.js +30 -0
  237. package/services/wire-contract.js.map +1 -0
  238. package/services/wire-decoder.js +35 -0
  239. package/services/wire-decoder.js.map +1 -0
  240. package/testing/exceptions/unanswered-call.exception.js +17 -0
  241. package/testing/exceptions/unanswered-call.exception.js.map +1 -0
  242. package/testing/models/fake-call.js +16 -0
  243. package/testing/models/fake-call.js.map +1 -0
  244. package/testing/models/fake.js +122 -0
  245. package/testing/models/fake.js.map +1 -0
package/resources.js ADDED
@@ -0,0 +1,476 @@
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
+ export class Resources {
9
+ static protocolVersion = "1";
10
+ static defaultMaximumFrameLength = 16 * 1024 * 1024;
11
+ static linkLimit = 32768;
12
+ static linkProtocols = ["http:", "https:", "mailto:"];
13
+ static frameDelimiter = "\n";
14
+ static shellOwner = "desktop";
15
+ static nameSeparator = ".";
16
+ static pathSeparator = ".";
17
+ static ownerPattern = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/;
18
+ static memberPattern = /^[a-z][a-zA-Z0-9]*$/;
19
+ static languageTagPattern = /^[a-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$/;
20
+ static protocolVersionPattern = /^[1-9][0-9]*$/;
21
+ static moduleVersionPattern = /^(?:0|[1-9][0-9]{0,8})\.(?:0|[1-9][0-9]{0,8})\.(?:0|[1-9][0-9]{0,8})$/;
22
+ static datePatternTokens = /'[^']*'|yyyy|yy|MMMM|MMM|MM|M|dd|d|EEEE|EEE|HH|H|hh|h|mm|ss|a/g;
23
+ static dateLocale = "en-GB";
24
+ static quoteMark = "'";
25
+ static fullYearToken = "yyyy";
26
+ static shortYearToken = "yy";
27
+ static longMonthToken = "MMMM";
28
+ static shortMonthToken = "MMM";
29
+ static paddedMonthToken = "MM";
30
+ static monthToken = "M";
31
+ static paddedDayToken = "dd";
32
+ static dayToken = "d";
33
+ static longWeekdayToken = "EEEE";
34
+ static shortWeekdayToken = "EEE";
35
+ static paddedHourToken = "HH";
36
+ static hourToken = "H";
37
+ static paddedTwelveHourToken = "hh";
38
+ static twelveHourToken = "h";
39
+ static paddedMinuteToken = "mm";
40
+ static paddedSecondToken = "ss";
41
+ static halfDayToken = "a";
42
+ static longMonthFormat = { month: "long" };
43
+ static shortMonthFormat = { month: "short" };
44
+ static longWeekdayFormat = { weekday: "long" };
45
+ static shortWeekdayFormat = { weekday: "short" };
46
+ static yearsPerCentury = 100;
47
+ static hoursPerHalfDay = 12;
48
+ static datePadLength = 2;
49
+ static datePadCharacter = "0";
50
+ static maximumUpdateProblems = 100;
51
+ static maximumUpdateProblemLength = 1_000;
52
+ static twelveHourTokens = [Resources.paddedTwelveHourToken, Resources.twelveHourToken, Resources.halfDayToken];
53
+ static morningMarker = "AM";
54
+ static afternoonMarker = "PM";
55
+ static kindField = "kind";
56
+ static idField = "id";
57
+ static methodField = "method";
58
+ static nameField = "name";
59
+ static payloadField = "payload";
60
+ static failureField = "failure";
61
+ static codeField = "code";
62
+ static messageField = "message";
63
+ static timeoutField = "timeoutMilliseconds";
64
+ static identityField = "identity";
65
+ static tokenField = "token";
66
+ static clientField = "client";
67
+ static productVersionField = "productVersion";
68
+ static protocolVersionField = "protocolVersion";
69
+ static fingerprintField = "fingerprint";
70
+ static detailsField = "details";
71
+ static reasonField = "reason";
72
+ static executablePathField = "executablePath";
73
+ static policyField = "policy";
74
+ static keepsWhileSharedField = "keepsWhileShared";
75
+ static keptForField = "keptFor";
76
+ static descriptionsField = "descriptions";
77
+ static installationField = "installation";
78
+ static problemsField = "problems";
79
+ static processesField = "processes";
80
+ static earliestField = "earliest";
81
+ static latestField = "latest";
82
+ static roleField = "role";
83
+ static locationField = "location";
84
+ static stateField = "state";
85
+ static causeField = "cause";
86
+ static outcomeField = "outcome";
87
+ static answerField = "answer";
88
+ static displayNameField = "displayName";
89
+ static versionField = "version";
90
+ static dependenciesField = "dependencies";
91
+ static contributesField = "contributes";
92
+ static blockedByField = "blockedBy";
93
+ static optionalDependenciesField = "optionalDependencies";
94
+ static switchSettingField = "switchSetting";
95
+ static modulesField = "modules";
96
+ static deviceField = "device";
97
+ static windowField = "window";
98
+ static valueField = "value";
99
+ static titleField = "title";
100
+ static iconField = "icon";
101
+ static defaultKeyField = "defaultKey";
102
+ static commandsField = "commands";
103
+ static isEnabledField = "isEnabled";
104
+ static isCheckedField = "isChecked";
105
+ static argumentsField = "arguments";
106
+ static commandsMember = "commands";
107
+ static runCommandMember = "runCommand";
108
+ static notificationsMember = "notifications";
109
+ static postNotificationMember = "postNotification";
110
+ static dismissNotificationMember = "dismissNotification";
111
+ static markNotificationsReadMember = "markNotificationsRead";
112
+ static clearNotificationsMember = "clearNotifications";
113
+ static keyField = "key";
114
+ static textField = "text";
115
+ static severityField = "severity";
116
+ static openField = "open";
117
+ static actionsField = "actions";
118
+ static progressField = "progress";
119
+ static commandField = "command";
120
+ static postField = "post";
121
+ static postedAtField = "postedAt";
122
+ static isReadField = "isRead";
123
+ static notificationsField = "notifications";
124
+ static isDoNotDisturbField = "isDoNotDisturb";
125
+ static quietDevicesField = "quietDevices";
126
+ static mutedModulesField = "mutedModules";
127
+ static idsField = "ids";
128
+ static sequenceField = "sequence";
129
+ static moduleField = "module";
130
+ static programField = "program";
131
+ static processIdField = "processId";
132
+ static startedAtField = "startedAt";
133
+ static hasExitedField = "hasExited";
134
+ static programsField = "programs";
135
+ static handleField = "handle";
136
+ static windowsField = "windows";
137
+ static shortcutsField = "shortcuts";
138
+ static isGlobalField = "isGlobal";
139
+ static isVisibleField = "isVisible";
140
+ static isPaintedField = "isPainted";
141
+ static keyParameterName = "key";
142
+ static commandTitleInvalid = "A command's title must not be blank.";
143
+ static commandIconInvalid = "A command's icon, when it has one, must not be blank.";
144
+ static notificationKeyInvalid = "A notification's key, when it has one, must not be blank.";
145
+ static notificationTitleInvalid = "A notification's title must not be blank.";
146
+ static notificationTextInvalid = "A notification's text, when it has one, must not be blank.";
147
+ static notificationProgressInvalid = "A notification's progress must be indeterminate or a number from 0 to 1.";
148
+ static notificationActionTitleInvalid = "A notification action's title must not be blank.";
149
+ static notificationIdInvalid = "A notification's id must not be blank.";
150
+ static notificationTimeInvalid = "A notification's time must be a date and time.";
151
+ static quietDeviceInvalid = "A device with Do not disturb on must have an id.";
152
+ static mutedModuleInvalid = "A muted module must have an id.";
153
+ static recentCommandInvalid = "A recent command must have an id.";
154
+ static recentCommandRepeated = "A recent command is listed once.";
155
+ static notificationSequenceInvalid = "A notification's sequence must be a whole number from 1.";
156
+ static currentSequenceInvalid = "The notifications' sequence must be a whole number from 0.";
157
+ static workSequenceInvalid = "The work's sequence must be a whole number from 0.";
158
+ static keptForInvalid = "The number of other clients a runtime is kept for must be a whole number from 1.";
159
+ static commandSequenceInvalid = "The commands' sequence must be a whole number from 0.";
160
+ static processIdInvalid = "A running program's process id must be a whole number from 1.";
161
+ static programStartInvalid = "A running program's start must be a date and time.";
162
+ static programSequenceInvalid = "The programs' sequence must be a whole number from 0.";
163
+ static appWindowHandleInvalid = "An app window's handle must be null or a whole number from 1.";
164
+ static appWindowProcessIdInvalid = "An app window's process id must be a whole number from 1.";
165
+ static macPlatform = "darwin";
166
+ static standardPlatform = "win32";
167
+ static keySeparator = "+";
168
+ static modToken = "Mod";
169
+ static ctrlToken = "Ctrl";
170
+ static altToken = "Alt";
171
+ static shiftToken = "Shift";
172
+ static modifierTokens = [Resources.modToken, Resources.ctrlToken, Resources.altToken, Resources.shiftToken];
173
+ static macControlSymbol = "\u2303";
174
+ static macOptionSymbol = "\u2325";
175
+ static macShiftSymbol = "\u21E7";
176
+ static macCommandSymbol = "\u2318";
177
+ static controlLabel = "Ctrl";
178
+ static altLabel = "Alt";
179
+ static shiftLabel = "Shift";
180
+ static ariaControlKey = "Control";
181
+ static ariaAltKey = "Alt";
182
+ static ariaShiftKey = "Shift";
183
+ static ariaMetaKey = "Meta";
184
+ static asciiLetterPattern = /^[A-Za-z]$/;
185
+ static letterKeys = [..."ABCDEFGHIJKLMNOPQRSTUVWXYZ"];
186
+ static digitKeys = [..."0123456789"];
187
+ static letterCodePrefix = "Key";
188
+ static digitCodePrefix = "Digit";
189
+ static functionKeyPrefix = "F";
190
+ static functionKeyCount = 24;
191
+ static spaceKey = "Space";
192
+ static punctuationKeys = [
193
+ ["Backquote", "`"],
194
+ ["Minus", "-"],
195
+ ["Equal", "="],
196
+ ["BracketLeft", "["],
197
+ ["BracketRight", "]"],
198
+ ["Backslash", "\\"],
199
+ ["Semicolon", ";"],
200
+ ["Quote", "'"],
201
+ ["Comma", ","],
202
+ ["Period", "."],
203
+ ["Slash", "/"]
204
+ ];
205
+ static namedKeys = [
206
+ ["Enter", "\u21A9", "Enter"],
207
+ ["Escape", "\u238B", "Esc"],
208
+ ["Tab", "\u21E5", "Tab"],
209
+ ["Space", "Space", "Space"],
210
+ ["Backspace", "\u232B", "Backspace"],
211
+ ["Delete", "\u2326", "Delete"],
212
+ ["Insert", "Insert", "Insert"],
213
+ ["Home", "\u2196", "Home"],
214
+ ["End", "\u2198", "End"],
215
+ ["PageUp", "\u21DE", "PageUp"],
216
+ ["PageDown", "\u21DF", "PageDown"],
217
+ ["ArrowUp", "\u2191", "Up"],
218
+ ["ArrowDown", "\u2193", "Down"],
219
+ ["ArrowLeft", "\u2190", "Left"],
220
+ ["ArrowRight", "\u2192", "Right"]
221
+ ];
222
+ static editingKeys = ["Mod+A", "Mod+C", "Mod+V", "Mod+X", "Mod+Z", "Mod+Y", "Mod+Shift+Z"];
223
+ static macSystemKeys = ["Mod+Q", "Mod+W", "Mod+H", "Mod+M", "Mod+Comma", "Mod+Tab", "Mod+Space", "Mod+Alt+Escape"];
224
+ static standardSystemKeys = ["Alt+F4", "Alt+Tab", "Mod+Escape"];
225
+ static reservedKeys = [
226
+ [Resources.macPlatform, "editing", Resources.editingKeys],
227
+ [Resources.standardPlatform, "editing", Resources.editingKeys],
228
+ [Resources.macPlatform, "macOS", Resources.macSystemKeys],
229
+ [Resources.standardPlatform, "Windows and Linux", Resources.standardSystemKeys]
230
+ ];
231
+ static shellCommandKeys = ["Mod+W", "Mod+Comma"];
232
+ static shellKeys = [
233
+ ["desktop.search", ["Mod+K"], ["Mod+K"]],
234
+ ["desktop.showCommands", ["Mod+Shift+P"], ["Mod+Shift+P"]],
235
+ ["desktop.goBack", ["Alt+ArrowLeft"], ["Mod+BracketLeft"]],
236
+ ["desktop.goForward", ["Alt+ArrowRight"], ["Mod+BracketRight"]],
237
+ ["desktop.openSettings", ["Mod+Comma"], ["Mod+Comma"]],
238
+ ["desktop.closeTab", ["Mod+W"], ["Mod+W"]],
239
+ ["desktop.nextTab", ["Ctrl+Tab", "Ctrl+PageDown"], ["Ctrl+Tab", "Mod+Alt+ArrowRight"]],
240
+ ["desktop.previousTab", ["Ctrl+Shift+Tab", "Ctrl+PageUp"], ["Ctrl+Shift+Tab", "Mod+Alt+ArrowLeft"]],
241
+ ["desktop.toggleLeftDock", ["Mod+B"], ["Mod+B"]],
242
+ ["desktop.toggleBottomDock", ["Mod+J"], ["Mod+J"]],
243
+ ["desktop.toggleRightDock", ["Mod+Alt+B"], ["Mod+Alt+B"]]
244
+ ];
245
+ static pageFirstShellKeys = [
246
+ ["desktop.showShortcuts", ["Mod+Slash"], ["Mod+Slash"]]
247
+ ];
248
+ static stopAgentControlKey = "Mod+Shift+Period";
249
+ static stopMember = "stop";
250
+ static moveAsideMember = "moveAside";
251
+ static modulesMember = "modules";
252
+ static workMember = "work";
253
+ static programsMember = "programs";
254
+ static updateMember = "update";
255
+ static updateSavedMember = "updateSaved";
256
+ static updatingMember = "updating";
257
+ static updateEndedMember = "updateEnded";
258
+ static quitMember = "quit";
259
+ static quittingMember = "quitting";
260
+ static quitAnsweredMember = "quitAnswered";
261
+ static mainClient = "main";
262
+ static commandLineClient = "cli";
263
+ static readWindowBoundsMember = "readWindowBounds";
264
+ static writeWindowBoundsMember = "writeWindowBounds";
265
+ static readWindowLayoutMember = "readWindowLayout";
266
+ static writeWindowLayoutMember = "writeWindowLayout";
267
+ static settingsMember = "settings";
268
+ static readSettingMember = "readSetting";
269
+ static setSettingMember = "setSetting";
270
+ static resetSettingMember = "resetSetting";
271
+ static recentCommandsMember = "recentCommands";
272
+ static recordCommandMember = "recordCommand";
273
+ static windowClosedMember = "windowClosed";
274
+ static grantFileMember = "grantFile";
275
+ static discardFileGrantsMember = "discardFileGrants";
276
+ static endFileGrantsMember = "endFileGrants";
277
+ static resolveFileShareMember = "resolveFileShare";
278
+ static settingsChangedMember = "settingsChanged";
279
+ static commandsChangedMember = "commandsChanged";
280
+ static modulesChangedMember = "modulesChanged";
281
+ static programsChangedMember = "programsChanged";
282
+ static recentCommandsChangedMember = "recentCommandsChanged";
283
+ static saveFailedMember = "saveFailed";
284
+ static saveUnfinishedMember = "saveUnfinished";
285
+ static updateReadyMember = "updateReady";
286
+ static supportMember = "support";
287
+ static optionsField = "options";
288
+ static dynamicField = "dynamic";
289
+ static minimumField = "minimum";
290
+ static maximumField = "maximum";
291
+ static stepField = "step";
292
+ static maxLengthField = "maxLength";
293
+ static checkedField = "checked";
294
+ static labelField = "label";
295
+ static descriptionField = "description";
296
+ static typeField = "type";
297
+ static defaultField = "default";
298
+ static localityField = "locality";
299
+ static scopesField = "scopes";
300
+ static pageField = "page";
301
+ static grantField = "grant";
302
+ static grantsField = "grants";
303
+ static pathField = "path";
304
+ static mediaTypeField = "mediaType";
305
+ static sizeField = "size";
306
+ static lifetimeField = "lifetime";
307
+ static stagedField = "staged";
308
+ static grantPattern = /^[0-9a-f]{32}$/;
309
+ static maximumGrantLifetime = 600_000;
310
+ static maximumDiscardedGrants = 256;
311
+ static groupField = "group";
312
+ static scopeField = "scope";
313
+ static isSetField = "isSet";
314
+ static definitionsField = "definitions";
315
+ static entriesField = "entries";
316
+ static methodsField = "methods";
317
+ static eventsField = "events";
318
+ static newWindowsField = "newWindows";
319
+ static parametersField = "parameters";
320
+ static requiredField = "required";
321
+ static valuesField = "values";
322
+ static fieldsField = "fields";
323
+ static viewField = "view";
324
+ static callField = "call";
325
+ static actionField = "action";
326
+ static paneField = "pane";
327
+ static instanceField = "instance";
328
+ static profileKeyField = "profileKey";
329
+ static addressField = "address";
330
+ static isLoadingField = "isLoading";
331
+ static canGoBackField = "canGoBack";
332
+ static canGoForwardField = "canGoForward";
333
+ static originField = "origin";
334
+ static isRedirectField = "isRedirect";
335
+ static hadRecentInputField = "hadRecentInput";
336
+ static requestField = "request";
337
+ static paramsField = "params";
338
+ static isCutField = "isCut";
339
+ static countField = "count";
340
+ static factorField = "factor";
341
+ static matchesField = "matches";
342
+ static activeField = "active";
343
+ static webViewZoomMinimum = 0.25;
344
+ static webViewZoomMaximum = 5;
345
+ static webViewCommandMember = "webViewCommand";
346
+ static webViewAnsweredMember = "webViewAnswered";
347
+ static webViewEventsMember = "webViewEvents";
348
+ static agentControlMember = "agentControl";
349
+ static agentControlChangedMember = "agentControlChanged";
350
+ static saveSecretMember = "saveSecret";
351
+ static removeSecretMember = "removeSecret";
352
+ static secretStatusMember = "secretStatus";
353
+ static secretCommandMember = "secretCommand";
354
+ static secretAnsweredMember = "secretAnswered";
355
+ static secretValueLimit = 16384;
356
+ static secretCipherLimit = 131072;
357
+ static appWindowsChangedMember = "appWindowsChanged";
358
+ static appShortcutsChangedMember = "appShortcutsChanged";
359
+ static mainWindowChangedMember = "mainWindowChanged";
360
+ static mainWindowMember = "mainWindow";
361
+ static isStoppedField = "isStopped";
362
+ static isActingField = "isActing";
363
+ static profileKeyPattern = /^[a-z0-9][a-z0-9-]{0,63}$/;
364
+ static webViewAddressLimit = 32768;
365
+ static webViewTimeoutLimit = 10000;
366
+ static notificationActionLimit = 2;
367
+ static indeterminateProgress = "indeterminate";
368
+ static webViewRefusedRequests = ["download", "newWindow", "permission", "fileChooser", "authentication", "certificate", "nestedView"];
369
+ static webViewMethodPattern = /^[A-Z][A-Za-z]*\.[a-z][A-Za-z]*$/;
370
+ static webViewRefusedMethods = [
371
+ "Page.navigate", "Page.navigateToHistoryEntry", "Page.reload", "Page.setDocumentContent", "Page.resetNavigationHistory",
372
+ "Page.setInterceptFileChooserDialog", "Page.disable", "Page.setDownloadBehavior", "Page.close", "Page.crash",
373
+ "Network.setRequestInterception", "Network.continueInterceptedRequest"
374
+ ];
375
+ static webViewRefusedDomains = ["Target", "Browser", "Fetch", "Security"];
376
+ static webViewKeysLimit = 32;
377
+ static webViewKeyChordsLimit = 4;
378
+ static keysField = "keys";
379
+ static macKeysField = "macKeys";
380
+ static standardPlatformLabel = "Windows and Linux";
381
+ static macPlatformLabel = "macOS";
382
+ static stepTolerance = 1e-9;
383
+ static textParameterName = "text";
384
+ static maximumFrameLengthParameterName = "maximumFrameLength";
385
+ static nameInvalid = "A name must be an owner, a dot and a member, such as \"desktop.handshake\": the owner is \"desktop\" or a module id in lowercase kebab-case, and the member starts with a lowercase letter followed by letters and digits.";
386
+ static protocolVersionInvalid = "The protocol version must be a positive integer.";
387
+ static processStartInvalid = "A process's earliest start must be a finite number no later than its latest start.";
388
+ static stampedProtocolVersionInvalid = "The package's protocol version was not stamped by the build.";
389
+ static timeoutInvalid = "The time limit must be a positive integer of milliseconds.";
390
+ static windowInvalid = "A window must be a positive integer, the id its main process gives it.";
391
+ static pageInvalid = "A page must be a positive integer, the number its main process gives the page its window loaded.";
392
+ static grantInvalid = "A file grant must be 32 lowercase hexadecimal digits.";
393
+ static grantPathInvalid = "A file grant's path, name, media type and identity must not be blank.";
394
+ static grantSizeInvalid = "A file grant's size must be a whole number of bytes, zero or more.";
395
+ static grantModuleInvalid = "A file grant belongs to a module, named by its id in lowercase kebab-case and not \"desktop\".";
396
+ static grantLifetimeInvalid = "A file grant's lifetime must be a whole number of milliseconds from 1 to 600000, ten minutes.";
397
+ static grantsInvalid = "File grants to discard must be at least one and at most 256, each named once.";
398
+ static maximumFrameLengthInvalid = "The maximum frame length must be a positive integer.";
399
+ static responseOutcomeMissing = "A response must carry a payload or a failure.";
400
+ 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.";
401
+ static moduleCauseInvalid = "An active or off module has no cause, and a failed or blocked module has one that is not blank.";
402
+ static moduleBlockerInvalid = "A blocked module names the dependency that blocks it, and no other module names one.";
403
+ static moduleSwitchInvalid = "An off module names the setting that turns it on, and a module's switch setting is not blank.";
404
+ static responseOutcomeAmbiguous = "A response cannot carry both a payload and a failure.";
405
+ static unknownField = "The field is not part of this message, which accepts no unknown fields.";
406
+ static settingTextInvalid = "A setting's title, description, page and group must not be blank.";
407
+ static settingOptionsInvalid = "A choice needs at least one option, each with a distinct value, empty or not blank, and a title that is not blank.";
408
+ static settingChoiceSourceInvalid = "A choice either lists its options or is dynamic, with dynamic set to true, and never both.";
409
+ static settingRangeInvalid = "A number needs a finite minimum no greater than its finite maximum and a positive step.";
410
+ static settingMaxLengthInvalid = "A text's maximum length must be a positive integer.";
411
+ static settingCheckedInvalid = "A text that its module checks has checked set to true; leave it out otherwise.";
412
+ static settingLabelInvalid = "An action's label must not be blank.";
413
+ static settingDefaultInvalid = "A setting's default must be a value its type accepts.";
414
+ static settingScopesInvalid = "A setting's scopes must be distinct, and a device setting takes none.";
415
+ static settingScopeIdInvalid = "A scope's object id must not be blank.";
416
+ static settingDeviceInvalid = "A device, when given, must not be blank.";
417
+ static settingEntriesInvalid = "Settings must be distinct, and each entry must name a defined setting.";
418
+ static webViewMethodNameInvalid = "A web view's method or event must be a debugging protocol domain, a dot and a name, such as \"Page.captureScreenshot\".";
419
+ static webViewNamesRepeated = "A web view declaration names each method and each event once.";
420
+ static webViewKeyNameInvalid = "A declared key's name must start with a lowercase letter followed by letters and digits.";
421
+ static webViewKeysRepeated = `A web view declaration names each key once, and gives each key once on each platform, with at most ${Resources.webViewKeysLimit} names.`;
422
+ static webViewKeyChordsInvalid = `A declared key has one to ${Resources.webViewKeyChordsLimit} keys on each platform.`;
423
+ static webViewParameterNameInvalid = "A parameter's name must start with a lowercase letter followed by letters and digits.";
424
+ static webViewRuleInvalid = "A parameter's rule gives at most one of values, a minimum and maximum, a maxLength and fields.";
425
+ static webViewValuesInvalid = "A parameter's values must be distinct texts, finite numbers or booleans, at least one.";
426
+ static webViewInstanceInvalid = "A pane's instance, when given, must not be blank.";
427
+ static webViewIdInvalid = "A web view's id must not be blank, and only the calls on one view name it.";
428
+ static webViewModuleInvalid = "A web view belongs to a module, named by its id, whose own view or document is its pane.";
429
+ static profileKeyInvalid = "A profile key is a lowercase letter or digit followed by up to 63 lowercase letters, digits and hyphens.";
430
+ static webViewFailureInvalid = "A web view's failure carries an engine code, a whole number, and its message only when it is a protocol failure.";
431
+ static webViewNavigationInvalid = "A web view's answer carries the refused origin exactly when it is a refusal.";
432
+ static webViewCallInvalid = "A web view command's call number must be a positive integer.";
433
+ static webViewEventsEmpty = "A batch of web view events holds at least one event.";
434
+ static webViewRangeInvalid = "A parameter's minimum and maximum must be finite numbers, the minimum no greater than the maximum.";
435
+ static secretNameInvalid = "A secret's name is a module's own name, \"<module>.<name>\", never Noldova Desktop's.";
436
+ static secretValueInvalid = "A secret's value must not be empty, is at most 16,384 characters and has no lone surrogate.";
437
+ static secretCommandValueInvalid = "A secret command carries no value to name the device, a value of at most 16,384 characters to encrypt, and a ciphertext of at most 131,072 characters to decrypt.";
438
+ static secretCallInvalid = "A secret command's call number must be a positive integer.";
439
+ static formatNotificationActionsTooMany(maximum) {
440
+ return `A notification has at most ${maximum} actions.`;
441
+ }
442
+ static formatKeyInvalid(text) {
443
+ return `"${text}" is not a key. A key is any of Mod, Ctrl, Alt and Shift joined by "+" to one key, such as K, 1, Comma, Enter or F2; Mod is Ctrl on Windows and Linux and Cmd on macOS.`;
444
+ }
445
+ static formatKeyAmbiguous(text) {
446
+ return `"${text}" names both Mod and Ctrl, which are the same key on Windows and Linux.`;
447
+ }
448
+ static formatKeyNeedsModifier(text) {
449
+ return `The default key ${text} needs Mod, Ctrl or Alt, or a function key, so that typing is never taken.`;
450
+ }
451
+ static formatKeyReserved(text, owner) {
452
+ return `The key ${text} is reserved for ${owner} and cannot be a command's default.`;
453
+ }
454
+ static formatWebViewKeyRefused(text, platform) {
455
+ return `The key ${text} cannot be declared for a web view on ${platform}: it needs Mod, Ctrl or Alt, or a function key, and it must not be a key that editing, the operating system or Noldova Desktop holds.`;
456
+ }
457
+ static formatFrameTooLarge(maximumFrameLength) {
458
+ return `A frame exceeds the maximum length of ${maximumFrameLength} characters.`;
459
+ }
460
+ static formatWebViewMethodRefused(name) {
461
+ return `${name} is refused in a web view: it loads or replaces a document, which only the navigation that the origin check sees may do, or it undoes what the host holds for the view.`;
462
+ }
463
+ static formatWebViewEventInvalid(kind) {
464
+ return `A web view's ${kind} event must carry exactly the details of its kind, each of its type.`;
465
+ }
466
+ static formatWebViewValueInvalid(action) {
467
+ return `A web view command's value doesn't fit its action ${action}: an address for navigate, origins for setAllowedOrigins, a profile key for clearProfile, a method with its params and timeoutMilliseconds for send, and none otherwise.`;
468
+ }
469
+ static formatFieldPath(path, field) {
470
+ return `${path}${Resources.pathSeparator}${field}`;
471
+ }
472
+ static formatUnansweredCall(member) {
473
+ return `The fake has no answer for ${member}; a test gives one with answer("${member}", …) before the code under test calls it.`;
474
+ }
475
+ }
476
+ //# sourceMappingURL=resources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../src/noldova.desktop.protocol/src/resources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,OAAO,SAAS;IACb,MAAM,CAAU,eAAe,GAAW,sBAAsB,CAAC;IACjE,MAAM,CAAU,yBAAyB,GAAW,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;IACrE,MAAM,CAAU,SAAS,GAAW,KAAK,CAAC;IAC1C,MAAM,CAAU,aAAa,GAAsB,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IAClF,MAAM,CAAU,cAAc,GAAW,IAAI,CAAC;IAC9C,MAAM,CAAU,UAAU,GAAW,SAAS,CAAC;IAC/C,MAAM,CAAU,aAAa,GAAW,GAAG,CAAC;IAC5C,MAAM,CAAU,aAAa,GAAW,GAAG,CAAC;IAC5C,MAAM,CAAU,YAA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AAI,GAAG,SAAS,CAAC,aAAa,GAAG,KAAK,EAAE,CAAC;IACrD,CAAC;IAEM,MAAM,CAAC,oBAAoB,CAAC,MAAc;QAC/C,OAAO,8BAA8B,MAAM,mCAAmC,MAAM,4CAA4C,CAAC;IACnI,CAAC"}
@@ -0,0 +1,24 @@
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 { ArgumentOutOfRangeException } from "@noldova/context.exceptions";
9
+ import { ProtocolException } from "../exceptions/protocol.exception.js";
10
+ import { Resources } from "../resources.js";
11
+ export class FrameWriter {
12
+ maximumFrameLength;
13
+ constructor(maximumFrameLength = Resources.defaultMaximumFrameLength) {
14
+ ArgumentOutOfRangeException.throwIfNotPositiveInteger(maximumFrameLength, Resources.maximumFrameLengthParameterName, Resources.maximumFrameLengthInvalid);
15
+ this.maximumFrameLength = maximumFrameLength;
16
+ }
17
+ write(message) {
18
+ const text = message.toText();
19
+ if (text.length > this.maximumFrameLength)
20
+ throw new ProtocolException(this.maximumFrameLength);
21
+ return `${text}${Resources.frameDelimiter}`;
22
+ }
23
+ }
24
+ //# sourceMappingURL=frame-writer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frame-writer.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/services/frame-writer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,WAAW;IACL,kBAAkB,CAAS;IAE5C,YAAmB,qBAA6B,SAAS,CAAC,yBAAyB;QACjF,2BAA2B,CAAC,yBAAyB,CAAC,kBAAkB,EAAE,SAAS,CAAC,+BAA+B,EAAE,SAAS,CAAC,yBAAyB,CAAC,CAAC;QAE1J,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAC/C,CAAC;IAEM,KAAK,CAAC,OAAoB;QAC/B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;QAC9B,IAAI,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,kBAAkB;YACvC,MAAM,IAAI,iBAAiB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAEvD,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,cAAc,EAAE,CAAC;IAC9C,CAAC;CACF"}
@@ -0,0 +1,47 @@
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 { ArgumentOutOfRangeException } from "@noldova/context.exceptions";
10
+ import { ProtocolException } from "../exceptions/protocol.exception.js";
11
+ import { Resources } from "../resources.js";
12
+ export class FrameReader {
13
+ maximumFrameLength;
14
+ parts = [];
15
+ pendingLength = 0;
16
+ constructor(maximumFrameLength = Resources.defaultMaximumFrameLength) {
17
+ ArgumentOutOfRangeException.throwIfNotPositiveInteger(maximumFrameLength, Resources.maximumFrameLengthParameterName, Resources.maximumFrameLengthInvalid);
18
+ this.maximumFrameLength = maximumFrameLength;
19
+ }
20
+ read(chunk) {
21
+ const frames = [];
22
+ let start = 0;
23
+ let delimiterIndex = chunk.indexOf(Resources.frameDelimiter);
24
+ while (delimiterIndex >= 0) {
25
+ this.requireWithinLimit(this.pendingLength + delimiterIndex - start);
26
+ this.parts.push(chunk.slice(start, delimiterIndex));
27
+ const frame = this.parts.join(String.empty);
28
+ this.parts.length = 0;
29
+ this.pendingLength = 0;
30
+ if (!String.isNullOrWhitespace(frame))
31
+ frames.push(frame);
32
+ start = delimiterIndex + 1;
33
+ delimiterIndex = chunk.indexOf(Resources.frameDelimiter, start);
34
+ }
35
+ this.requireWithinLimit(this.pendingLength + chunk.length - start);
36
+ if (start < chunk.length) {
37
+ this.parts.push(chunk.slice(start));
38
+ this.pendingLength += chunk.length - start;
39
+ }
40
+ return frames;
41
+ }
42
+ requireWithinLimit(length) {
43
+ if (length > this.maximumFrameLength)
44
+ throw new ProtocolException(this.maximumFrameLength);
45
+ }
46
+ }
47
+ //# sourceMappingURL=frame.reader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frame.reader.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/services/frame.reader.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,WAAW;IACL,kBAAkB,CAAS;IAC3B,KAAK,GAAa,EAAE,CAAC;IAC9B,aAAa,GAAW,CAAC,CAAC;IAElC,YAAmB,qBAA6B,SAAS,CAAC,yBAAyB;QACjF,2BAA2B,CAAC,yBAAyB,CAAC,kBAAkB,EAAE,SAAS,CAAC,+BAA+B,EAAE,SAAS,CAAC,yBAAyB,CAAC,CAAC;QAE1J,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAC/C,CAAC;IAEM,IAAI,CAAC,KAAa;QACvB,MAAM,MAAM,GAAa,EAAE,CAAC;QAC5B,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAC7D,OAAO,cAAc,IAAI,CAAC,EAAE,CAAC;YAC3B,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,aAAa,GAAG,cAAc,GAAG,KAAK,CAAC,CAAC;YACrE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC;YACpD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC5C,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;YACtB,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC;YACvB,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,KAAK,CAAC;gBACnC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACrB,KAAK,GAAG,cAAc,GAAG,CAAC,CAAC;YAC3B,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QAClE,CAAC;QAED,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;QACnE,IAAI,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;YACzB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;YACpC,IAAI,CAAC,aAAa,IAAI,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC;QAC7C,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAEO,kBAAkB,CAAC,MAAc;QACvC,IAAI,MAAM,GAAG,IAAI,CAAC,kBAAkB;YAClC,MAAM,IAAI,iBAAiB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IACzD,CAAC;CACF"}
@@ -0,0 +1,20 @@
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 { Resources } from "../resources.js";
10
+ export class LinkPolicy {
11
+ static findAllowed(url) {
12
+ if (!Object.isString(url) || url.length > Resources.linkLimit || !URL.canParse(url))
13
+ return null;
14
+ const parsed = new URL(url);
15
+ if (!Resources.linkProtocols.includes(parsed.protocol) || parsed.username.length > 0 || parsed.password.length > 0)
16
+ return null;
17
+ return parsed.href;
18
+ }
19
+ }
20
+ //# sourceMappingURL=link-policy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-policy.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/services/link-policy.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,UAAU;IACd,MAAM,CAAC,WAAW,CAAC,GAAY;QACpC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,SAAS,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC;YACjF,OAAO,IAAI,CAAC;QACd,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;QAC5B,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC;YAChH,OAAO,IAAI,CAAC;QACd,OAAO,MAAM,CAAC,IAAI,CAAC;IACrB,CAAC;CACF"}