@noldova/desktop.runtime 0.0.2 → 0.0.4

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 (75) hide show
  1. package/api/index.d.ts +212 -25
  2. package/api/testing.d.ts +22 -0
  3. package/interfaces/i-port-blocker.js +9 -0
  4. package/interfaces/i-port-blocker.js.map +1 -0
  5. package/models/module-declaration.js +7 -2
  6. package/models/module-declaration.js.map +1 -1
  7. package/models/peer-process.js +5 -1
  8. package/models/peer-process.js.map +1 -1
  9. package/models/stamped-file.js +23 -0
  10. package/models/stamped-file.js.map +1 -0
  11. package/native/darwin-arm64/posix-process.node +0 -0
  12. package/native/darwin-x64/posix-process.node +0 -0
  13. package/native/win32-arm64/windows-process.node +0 -0
  14. package/native/win32-x64/windows-process.node +0 -0
  15. package/package.json +3 -3
  16. package/resources.js +78 -0
  17. package/resources.js.map +1 -1
  18. package/services/diagnostics/log-batch.js +26 -0
  19. package/services/diagnostics/log-batch.js.map +1 -0
  20. package/services/diagnostics/log-file.js +148 -4
  21. package/services/diagnostics/log-file.js.map +1 -1
  22. package/services/diagnostics/log-write.js +16 -0
  23. package/services/diagnostics/log-write.js.map +1 -0
  24. package/services/discovery/folder-protector-factory.js +4 -1
  25. package/services/discovery/folder-protector-factory.js.map +1 -1
  26. package/services/discovery/mac-folder-protector.js +13 -1
  27. package/services/discovery/mac-folder-protector.js.map +1 -1
  28. package/services/endpoint/file-digest.js +31 -0
  29. package/services/endpoint/file-digest.js.map +1 -0
  30. package/services/endpoint/linux-mounts.js +38 -0
  31. package/services/endpoint/linux-mounts.js.map +1 -0
  32. package/services/endpoint/linux-program-identity.js +172 -0
  33. package/services/endpoint/linux-program-identity.js.map +1 -0
  34. package/services/endpoint/main-process-check.js +29 -5
  35. package/services/endpoint/main-process-check.js.map +1 -1
  36. package/services/endpoint/runtime-server.js +3 -2
  37. package/services/endpoint/runtime-server.js.map +1 -1
  38. package/services/lifetime/runtime-host.js +12 -2
  39. package/services/lifetime/runtime-host.js.map +1 -1
  40. package/services/lifetime/runtime-log.js +30 -14
  41. package/services/lifetime/runtime-log.js.map +1 -1
  42. package/services/lifetime/update-preparation.js +7 -2
  43. package/services/lifetime/update-preparation.js.map +1 -1
  44. package/services/modules/module-context.js +1 -1
  45. package/services/modules/module-context.js.map +1 -1
  46. package/services/process/linux-process-start.js +23 -0
  47. package/services/process/linux-process-start.js.map +1 -0
  48. package/services/process/posix-peer-process-api.js +9 -1
  49. package/services/process/posix-peer-process-api.js.map +1 -1
  50. package/services/process/windows-peer-process-api.js +3 -0
  51. package/services/process/windows-peer-process-api.js.map +1 -1
  52. package/services/settings/key-binding-moves.js +31 -0
  53. package/services/settings/key-binding-moves.js.map +1 -0
  54. package/services/tools/image-size.reader.js +10 -11
  55. package/services/tools/image-size.reader.js.map +1 -1
  56. package/services/tools/module-tools.js +4 -2
  57. package/services/tools/module-tools.js.map +1 -1
  58. package/services/tools/tool-endpoint.js +16 -4
  59. package/services/tools/tool-endpoint.js.map +1 -1
  60. package/services/tools/tool-schema.validator.js +62 -63
  61. package/services/tools/tool-schema.validator.js.map +1 -1
  62. package/services/web-views/module-web-views.js +3 -0
  63. package/services/web-views/module-web-views.js.map +1 -1
  64. package/services/web-views/read-web-view-blocked-ports-method.js +17 -0
  65. package/services/web-views/read-web-view-blocked-ports-method.js.map +1 -0
  66. package/services/web-views/web-view-center.js +58 -5
  67. package/services/web-views/web-view-center.js.map +1 -1
  68. package/services/web-views/web-view-ports-blocked-method.js +19 -0
  69. package/services/web-views/web-view-ports-blocked-method.js.map +1 -0
  70. package/testing/models/fake-runtime-web-views.js +1 -0
  71. package/testing/models/fake-runtime-web-views.js.map +1 -1
  72. package/services/tools/image-size.resources.js +0 -24
  73. package/services/tools/image-size.resources.js.map +0 -1
  74. package/services/tools/tool-schema.resources.js +0 -45
  75. package/services/tools/tool-schema.resources.js.map +0 -1
package/api/index.d.ts CHANGED
@@ -22,7 +22,7 @@ import type { JsonObject, JsonValue } from "@noldova/context.json";
22
22
  import type {
23
23
  AppShortcut, AppShortcutList, AppWindow, AppWindowList, BuildIdentity, CommandInfo, CommandList, Event, Failure, FailureCode, FileGrant, KeyChord, MainWindow, ModuleStatus, ModuleStatusList, Notification, NotificationList, NotificationPost, PreShellData, ProgramStatus, ProgramStatusList, QualifiedName, Response,
24
24
  RunningWork, RuntimeHandover, SettingChange, SettingDefinition, SettingEntry, SettingKey, SettingScope, SettingValue, SettingsSnapshot, StopPolicy, UpdateProcess, WebViewAction,
25
- WebViewAnswered, WebViewDeclaration, WebViewEvent, WebViewEvents, WebViewFailure, WebViewInfo, WebViewNavigation, WorkReport
25
+ WebViewAnswered, WebViewBlockedPorts, WebViewDeclaration, WebViewEvent, WebViewEvents, WebViewFailure, WebViewInfo, WebViewNavigation, WorkReport
26
26
  } from "@noldova/desktop.protocol";
27
27
 
28
28
  /**
@@ -1803,7 +1803,8 @@ export declare class DiagnosticRedactor {
1803
1803
 
1804
1804
  /**
1805
1805
  * A log file whose size is bounded. Each record is stamped with its time and redacted, and the file becomes the
1806
- * previous file, replacing it, when a record would take it over its size limit.
1806
+ * previous file, replacing it, when a record would take it over its size limit. Lines are written in the order they
1807
+ * were appended, whether they wait for the disk or are written at once.
1807
1808
  */
1808
1809
  export declare class LogFile {
1809
1810
  /**
@@ -1814,6 +1815,7 @@ export declare class LogFile {
1814
1815
  * @param redactor Redacts every record.
1815
1816
  * @param now Returns the time to stamp a record with; the current time by default.
1816
1817
  * @param limit The most bytes the file holds, 1 MiB by default. A record is cut to a quarter of it.
1818
+ * @param writeWait The most milliseconds a line written at once waits for a write already under way to land, so that it lands after it; 2 seconds by default.
1817
1819
  * @example
1818
1820
  * ```ts
1819
1821
  * import { homedir } from "node:os";
@@ -1823,7 +1825,7 @@ export declare class LogFile {
1823
1825
  * export const log: LogFile = new LogFile("/data/logs/app.log", "/data/logs/app.previous.log", new DiagnosticRedactor(homedir()));
1824
1826
  * ```
1825
1827
  */
1826
- public constructor(file: string, previousFile: string, redactor: DiagnosticRedactor, now?: () => Date, limit?: number);
1828
+ public constructor(file: string, previousFile: string, redactor: DiagnosticRedactor, now?: () => Date, limit?: number, writeWait?: number);
1827
1829
 
1828
1830
  /**
1829
1831
  * Stamps and redacts a record.
@@ -1857,7 +1859,8 @@ export declare class LogFile {
1857
1859
  public open(): void;
1858
1860
 
1859
1861
  /**
1860
- * Appends a line. When it would take the file over its size limit, the file first becomes the previous file.
1862
+ * Appends a line at once, as when the process is about to end: first the lines still waiting, as {@link LogFile.flush}
1863
+ * writes them, then this one. When it would take the file over its size limit, the file first becomes the previous file.
1861
1864
  *
1862
1865
  * @param line The line from {@link LogFile.format}.
1863
1866
  * @throws {Error} Thrown when the file cannot become the previous file, in which case it keeps what it holds, or cannot be written.
@@ -1871,6 +1874,57 @@ export declare class LogFile {
1871
1874
  * ```
1872
1875
  */
1873
1876
  public append(line: string): void;
1877
+
1878
+ /**
1879
+ * Appends a line without waiting for the disk: the line is written after the lines appended before it, with the
1880
+ * lines that wait meanwhile written together. When it would take the file over its size limit, the file first becomes
1881
+ * the previous file, so no line is lost when the file fills.
1882
+ *
1883
+ * @param line The line from {@link LogFile.format}.
1884
+ * @returns A promise that settles once the line is written; the caller handles its rejection.
1885
+ * @throws {Error} Rejected when the file cannot become the previous file, in which case it keeps what it holds, or cannot be written; later lines are still tried.
1886
+ * @example
1887
+ * ```ts
1888
+ * import type { LogFile } from "@noldova/desktop.runtime";
1889
+ *
1890
+ * export function note(log: LogFile): void {
1891
+ * log.appendAsync(log.format("The runtime started.")).catch((failure: unknown) => console.error(failure));
1892
+ * }
1893
+ * ```
1894
+ */
1895
+ public appendAsync(line: string): Promise<void>;
1896
+
1897
+ /**
1898
+ * Writes the lines still waiting at once, in order, as when the process is about to end. A write already under way
1899
+ * is given up to the write wait, 2 seconds by default, to land first, so the lines keep their order; it has landed once
1900
+ * its text is in the file past what this log had written before it, whatever another process appended meanwhile, or once the file can't be read. Each
1901
+ * waiting line's promise settles as it is written or fails.
1902
+ *
1903
+ * @example
1904
+ * ```ts
1905
+ * import type { LogFile } from "@noldova/desktop.runtime";
1906
+ *
1907
+ * export function finish(log: LogFile): void {
1908
+ * log.flush();
1909
+ * }
1910
+ * ```
1911
+ */
1912
+ public flush(): void;
1913
+
1914
+ /**
1915
+ * Waits until every line appended so far is written or has failed.
1916
+ *
1917
+ * @returns A promise that resolves once no line is waiting; it never rejects.
1918
+ * @example
1919
+ * ```ts
1920
+ * import type { LogFile } from "@noldova/desktop.runtime";
1921
+ *
1922
+ * export async function finishAsync(log: LogFile): Promise<void> {
1923
+ * await log.flushAsync();
1924
+ * }
1925
+ * ```
1926
+ */
1927
+ public flushAsync(): Promise<void>;
1874
1928
  }
1875
1929
 
1876
1930
  /**
@@ -2393,7 +2447,8 @@ export declare class FolderProtectorFactory {
2393
2447
  * @param command Runs Windows' system tools, or `ls` on macOS.
2394
2448
  * @param environment Supplies `SystemRoot` on Windows.
2395
2449
  * @returns A {@link WindowsFolderProtector} for `win32`, a
2396
- * {@link MacFolderProtector} for `darwin`, otherwise a
2450
+ * {@link MacFolderProtector} for `darwin` that reads the folder's volume
2451
+ * through the runtime's POSIX addon, otherwise a
2397
2452
  * {@link PosixFolderProtector}.
2398
2453
  * @example
2399
2454
  * ```ts
@@ -2406,39 +2461,51 @@ export declare class FolderProtectorFactory {
2406
2461
  }
2407
2462
 
2408
2463
  /**
2409
- * Restricts a folder to the current user on macOS: it sets POSIX permissions
2410
- * (`0700`) and reads the folder's access back, refusing a folder that an
2411
- * access control entry, such as one inherited from its parent, still opens to
2412
- * anyone else. It never removes such an entry; whoever set it decides.
2464
+ * Restricts a folder to the current user on macOS: it refuses a folder on a
2465
+ * volume mounted with ownership ignored, where every account acts as the
2466
+ * owner, then sets POSIX permissions (`0700`) and reads the folder's access
2467
+ * back, refusing a folder that an access control entry, such as one inherited
2468
+ * from its parent, still opens to anyone else. It never removes such an entry
2469
+ * and never changes how a volume is mounted; whoever did decides.
2413
2470
  */
2414
2471
  export declare class MacFolderProtector implements IFolderProtector {
2415
2472
  /**
2416
2473
  * Creates the protector.
2417
2474
  *
2418
2475
  * @param command Runs `/bin/ls`.
2476
+ * @param addon The runtime's POSIX addon, which reads the folder's volume
2477
+ * with `readVolume`.
2419
2478
  * @param user The current user's short name; the process's user by
2420
2479
  * default.
2421
2480
  * @example
2422
2481
  * ```ts
2423
- * import { MacFolderProtector, SystemCommand } from "@noldova/desktop.runtime";
2482
+ * import { MacFolderProtector, NativeAddon, SystemCommand, type IPosixProcessAddon } from "@noldova/desktop.runtime";
2424
2483
  *
2425
- * export const protector: MacFolderProtector = new MacFolderProtector(new SystemCommand());
2484
+ * export const protector: MacFolderProtector = new MacFolderProtector(new SystemCommand(),
2485
+ * new NativeAddon<IPosixProcessAddon>(NativeAddon.locate("posix-process.node"), ["readVolume"]));
2426
2486
  * ```
2427
2487
  */
2428
- public constructor(command: SystemCommand, user?: string);
2488
+ public constructor(command: SystemCommand, addon: NativeAddon<IPosixProcessAddon>, user?: string);
2429
2489
 
2430
2490
  /**
2431
- * Sets the folder's mode to `0700` and reads its access back with
2432
- * `ls -led`. The folder passes when its mode is `drwx------` and every line
2433
- * after the folder's own is an access control entry that denies something or
2434
- * allows only the current user. A line in another form, or a mode marked `+`
2435
- * with no entry, refuses the folder.
2491
+ * Reads the folder's volume, then sets the folder's mode to `0700` and reads
2492
+ * its access back with `ls -led`. A volume mounted with ownership ignored
2493
+ * refuses the folder before anything changes. The folder passes when its
2494
+ * mode is `drwx------` and every line after the folder's own is an access
2495
+ * control entry that denies something or allows only the current user. A
2496
+ * line in another form, or a mode marked `+` with no entry, refuses the
2497
+ * folder.
2436
2498
  *
2437
2499
  * @param folder The absolute path of an existing folder.
2438
2500
  * @returns A promise that resolves once only the current user has access.
2439
2501
  * @throws {SystemCommandException} The promise rejects when `ls` fails, or
2440
2502
  * the folder is still open to anyone else, for example through an inherited
2441
- * entry; the message holds the listing.
2503
+ * entry, when the message holds the listing, or on a volume mounted with
2504
+ * ownership ignored, when the message names the volume.
2505
+ * @throws {AddonLoadException} The promise rejects when the addon is missing,
2506
+ * fails to load, lacks `readVolume` or returns something other than a volume.
2507
+ * @throws {Error} The promise rejects with the addon's error when the system
2508
+ * cannot read the folder's volume.
2442
2509
  * @example
2443
2510
  * ```ts
2444
2511
  * import type { MacFolderProtector } from "@noldova/desktop.runtime";
@@ -5760,6 +5827,24 @@ export interface IPosixProcessAddon {
5760
5827
  * ```
5761
5828
  */
5762
5829
  readEnvironment?(processId: number): unknown;
5830
+
5831
+ /**
5832
+ * Reads the volume that holds a folder with `statfs`; macOS builds only.
5833
+ *
5834
+ * @param folder The folder.
5835
+ * @returns The volume's mount point and whether it is mounted with
5836
+ * ownership ignored, as `[mountPoint, isOwnershipIgnored]`.
5837
+ * @throws {Error} When `statfs` fails, with its `errno` and `syscall`.
5838
+ * @example
5839
+ * ```ts
5840
+ * import type { IPosixProcessAddon } from "@noldova/desktop.runtime";
5841
+ *
5842
+ * export function readVolume(addon: IPosixProcessAddon): unknown {
5843
+ * return addon.readVolume?.("/Users/person");
5844
+ * }
5845
+ * ```
5846
+ */
5847
+ readVolume?(folder: string): unknown;
5763
5848
  }
5764
5849
 
5765
5850
  /**
@@ -8950,6 +9035,13 @@ export declare class ModuleDeclaration {
8950
9035
  */
8951
9036
  public readonly noldovaDesktop: string | null;
8952
9037
 
9038
+ /**
9039
+ * The names its commands and documents had before, by their names now; the
9040
+ * runtime moves the person's key binding for a former command name to the
9041
+ * command.
9042
+ */
9043
+ public readonly formerNames: ReadonlyMap<string, readonly string[]>;
9044
+
8953
9045
  /**
8954
9046
  * Creates the declaration.
8955
9047
  *
@@ -8983,6 +9075,8 @@ export declare class ModuleDeclaration {
8983
9075
  * version> <first version refused>` with the lowest below the first refused,
8984
9076
  * such as `>=0.0.70 <0.1.0`; or `null`, the default, for a module that names
8985
9077
  * none.
9078
+ * @param formerNames The names its commands and documents had before, by
9079
+ * their names now; left out, none.
8986
9080
  * @throws {ArgumentException} When the id, the version, the display name,
8987
9081
  * the description or a dependency's or optional dependency's version is not valid, a setting
8988
9082
  * belongs to another owner, is of
@@ -9014,7 +9108,8 @@ export declare class ModuleDeclaration {
9014
9108
  optionalDependencies?: ReadonlyMap<string, string>,
9015
9109
  switchSetting?: string | null,
9016
9110
  platforms?: readonly string[] | null,
9017
- noldovaDesktop?: string | null);
9111
+ noldovaDesktop?: string | null,
9112
+ formerNames?: ReadonlyMap<string, readonly string[]>);
9018
9113
 
9019
9114
  /**
9020
9115
  * Reads a declaration from its form in `declarations.json`.
@@ -10366,7 +10461,7 @@ export declare class ChildProcessStarter implements IProcessStarter {
10366
10461
  */
10367
10462
  export declare class RuntimeLog {
10368
10463
  /**
10369
- * The stream the runtime writes its diagnostics to; each write is one record, stamped and redacted like a line, without its trailing line ending. It writes to the log until the log closes.
10464
+ * The stream the runtime writes its diagnostics to; each write is one record, stamped and redacted like a line, without its trailing line ending. It writes to the log until the log closes, without waiting for the disk.
10370
10465
  */
10371
10466
  public readonly diagnostics: Writable;
10372
10467
 
@@ -10380,6 +10475,7 @@ export declare class RuntimeLog {
10380
10475
  * @param now Returns the time to stamp a line with; the current time by default.
10381
10476
  * @param error Receives the report when the log can no longer be written; standard error by default.
10382
10477
  * @param homeFolder The home folder the log redacts, with its user name; the current user's by default.
10478
+ * @param writeWait The most milliseconds a line written at once waits for a diagnostic already being written to land; 2 seconds by default.
10383
10479
  * @returns A promise of the open log.
10384
10480
  * @throws {OwnershipReleasedException} Rejected when the ownership was released.
10385
10481
  * @example
@@ -10393,10 +10489,10 @@ export declare class RuntimeLog {
10393
10489
  * }
10394
10490
  * ```
10395
10491
  */
10396
- public static openAsync(lock: OwnershipLock, ownStartLogName: string | null, now?: () => Date, error?: Writable, homeFolder?: string): Promise<RuntimeLog>;
10492
+ public static openAsync(lock: OwnershipLock, ownStartLogName: string | null, now?: () => Date, error?: Writable, homeFolder?: string, writeWait?: number): Promise<RuntimeLog>;
10397
10493
 
10398
10494
  /**
10399
- * Writes one line at once, as when the process is about to end; nothing is written after the log closes. When a line cannot be written, the failure is reported once on the error stream and nothing more is written to the log.
10495
+ * Writes one line at once, as when the process is about to end, after the diagnostics still waiting; nothing is written after the log closes. When a line cannot be written, the failure is reported once on the error stream and nothing more is written to the log.
10400
10496
  *
10401
10497
  * @param text The line, without its line ending.
10402
10498
  * @example
@@ -10411,9 +10507,10 @@ export declare class RuntimeLog {
10411
10507
  public writeLine(text: string): void;
10412
10508
 
10413
10509
  /**
10414
- * Finishes the diagnostics stream and closes the log; closing again does nothing.
10510
+ * Finishes the diagnostics stream, waits until every diagnostic is written, and closes the log; closing again does nothing.
10415
10511
  *
10416
10512
  * @returns A promise that settles once the log is closed.
10513
+ * @throws {Error} Rejected with the failure of the error stream, other than a closed or full stream's, when it could not take the report that a diagnostic could not be written.
10417
10514
  * @example
10418
10515
  * ```ts
10419
10516
  * import type { RuntimeLog } from "@noldova/desktop.runtime";
@@ -10814,6 +10911,28 @@ export interface IEventSink {
10814
10911
  * Tells whether a connection comes from the app's main process, for the {@link RuntimeServer}'s handshake of a client named `ShellClients.mainProcess`.
10815
10912
  */
10816
10913
  export interface IMainProcessCheck {
10914
+ /**
10915
+ * Reads, when the server accepts a connection and before any of its messages, what the later check compares against; on Linux, the start
10916
+ * time of the connecting process, so that a process that later gets the same process id doesn't pass. A failure is kept and rejects the check.
10917
+ *
10918
+ * @param socket The connection, just accepted.
10919
+ * @example
10920
+ * ```ts
10921
+ * import type { Socket } from "node:net";
10922
+ *
10923
+ * import type { IMainProcessCheck } from "@noldova/desktop.runtime";
10924
+ *
10925
+ * const accepted = new WeakSet<Socket>();
10926
+ *
10927
+ * export const acceptedOnly: IMainProcessCheck = {
10928
+ * accept: socket => accepted.add(socket),
10929
+ * isMainProcessAsync: socket => Promise.resolve(accepted.has(socket)),
10930
+ * isSameSender: socket => accepted.has(socket)
10931
+ * };
10932
+ * ```
10933
+ */
10934
+ accept?(socket: Socket): void;
10935
+
10817
10936
  /**
10818
10937
  * Checks the process at the other end of a connection.
10819
10938
  *
@@ -15321,6 +15440,21 @@ export interface IRuntimeWebViews {
15321
15440
  */
15322
15441
  setAllowedOriginsAsync(id: string, origins: readonly string[]): Promise<void>;
15323
15442
 
15443
+ /**
15444
+ * Marks whether an agent controls a view. While it does, the window keeps the view painted even while it is hidden, so a
15445
+ * page it loads there draws and takes the relay's clicks and keys, behind the shown content and out of the person's reach;
15446
+ * when control ends, a hidden view hides again. The main process keeps the mark for the view until the view closes, which
15447
+ * ends it. The runtime part marks the whole span, from the agent's first call or its opening the view until it closes the
15448
+ * view, the person takes over or stops it, or the session ends.
15449
+ *
15450
+ * @param id The view's id.
15451
+ * @param isControlled Whether an agent controls the view.
15452
+ * @returns A promise that settles once the main process applied it.
15453
+ * @throws {WebViewFailureException} The promise rejects when the main
15454
+ * process refuses or fails the call, or can't be reached.
15455
+ */
15456
+ setControlledAsync(id: string, isControlled: boolean): Promise<void>;
15457
+
15324
15458
  /**
15325
15459
  * Clears a profile's cookies, storage and cache, and ends the pending calls
15326
15460
  * of its views.
@@ -16320,17 +16454,20 @@ export declare class WebViewCenter {
16320
16454
  * the main process can't give.
16321
16455
  * @param channel The `desktop.webViewCommand` event the calls go out on; with
16322
16456
  * none, no main process is ever reached.
16457
+ * @param portsChannel The `desktop.webViewBlockedPorts` event each change of
16458
+ * the blocked loopback ports goes out on; with none, a block waits for no
16459
+ * acknowledgement.
16323
16460
  * @example
16324
16461
  * ```ts
16325
16462
  * import { ShellEvents } from "@noldova/desktop.protocol";
16326
16463
  * import { type EventRegistry, WebViewCenter } from "@noldova/desktop.runtime";
16327
16464
  *
16328
16465
  * export function createCenter(events: EventRegistry): WebViewCenter {
16329
- * return new WebViewCenter(process.stderr, events.declare(ShellEvents.webViewCommand));
16466
+ * return new WebViewCenter(process.stderr, events.declare(ShellEvents.webViewCommand), events.declare(ShellEvents.webViewBlockedPorts));
16330
16467
  * }
16331
16468
  * ```
16332
16469
  */
16333
- public constructor(diagnostics: Writable, channel?: EventChannel | null);
16470
+ public constructor(diagnostics: Writable, channel?: EventChannel | null, portsChannel?: EventChannel | null);
16334
16471
 
16335
16472
  /**
16336
16473
  * Starts a module's mirror, listing its open views when a main process is
@@ -16383,6 +16520,56 @@ export declare class WebViewCenter {
16383
16520
  */
16384
16521
  public answer(connection: number, answered: WebViewAnswered): void;
16385
16522
 
16523
+ /**
16524
+ * Adds a loopback port that no web view may reach, such as the runtime's own
16525
+ * endpoint or a tool endpoint's, and sends the new list to the connected main
16526
+ * process.
16527
+ *
16528
+ * @param port The port.
16529
+ * @returns The new list's serial, which {@link WebViewCenter.waitForPortsAsync}
16530
+ * takes.
16531
+ */
16532
+ public blockPort(port: number): number;
16533
+
16534
+ /**
16535
+ * Waits until the connected main process acknowledges a list at least as new
16536
+ * as a serial, so that its web views refuse the ports in it; it settles at once
16537
+ * when no main process is connected, since no web view is open then, and when
16538
+ * the main process goes.
16539
+ *
16540
+ * @param serial The serial {@link WebViewCenter.blockPort} returned.
16541
+ * @param signal Stops the wait.
16542
+ * @returns A promise that settles once the list is acknowledged.
16543
+ * @throws {Error} The promise rejects with the signal's reason when the signal
16544
+ * aborts.
16545
+ */
16546
+ public waitForPortsAsync(serial: number, signal: AbortSignal): Promise<void>;
16547
+
16548
+ /**
16549
+ * Removes a loopback port once its endpoint has closed, and sends the new list
16550
+ * to the connected main process; a port it doesn't hold changes nothing.
16551
+ *
16552
+ * @param port The port.
16553
+ */
16554
+ public unblockPort(port: number): void;
16555
+
16556
+ /**
16557
+ * Reads the blocked loopback ports for the connected main process.
16558
+ *
16559
+ * @param connection The connection that asks.
16560
+ * @returns The list, or `null` for any connection but the main process's.
16561
+ */
16562
+ public readPorts(connection: number): WebViewBlockedPorts | null;
16563
+
16564
+ /**
16565
+ * Settles every wait the main process's acknowledgement covers, when it came
16566
+ * on the main process's connection; any other is ignored.
16567
+ *
16568
+ * @param connection The connection the acknowledgement came on.
16569
+ * @param blocked The list the main process acknowledges.
16570
+ */
16571
+ public answerPorts(connection: number, blocked: WebViewBlockedPorts): void;
16572
+
16386
16573
  /**
16387
16574
  * Passes a batch of events on to their modules, when it came from the
16388
16575
  * connected main process.
package/api/testing.d.ts CHANGED
@@ -1650,6 +1650,28 @@ export declare class FakeRuntimeWebViews extends Fake<IRuntimeWebViews> implemen
1650
1650
  */
1651
1651
  public readonly setAllowedOriginsAsync: IRuntimeWebViews["setAllowedOriginsAsync"];
1652
1652
 
1653
+ /**
1654
+ * Stands in for {@link IRuntimeWebViews.setControlledAsync}. Records each
1655
+ * call, which {@link Fake.callsOf} reads, and returns what the answer that
1656
+ * {@link Fake.answer} gives returns; while unanswered, the promise it returns
1657
+ * rejects rather than the call throwing.
1658
+ *
1659
+ * @throws {UnansweredCallException} As the rejection of the promise it
1660
+ * returns, naming the member, while the test has given it no answer, as the
1661
+ * real member fails.
1662
+ *
1663
+ * @example
1664
+ * ```ts
1665
+ * import type { IRuntimeWebViews } from "@noldova/desktop.runtime";
1666
+ * import type { FakeRuntimeWebViews } from "@noldova/desktop.runtime/testing";
1667
+ *
1668
+ * export function answerSetControlledAsync(fake: FakeRuntimeWebViews, value: Awaited<ReturnType<IRuntimeWebViews["setControlledAsync"]>>): void {
1669
+ * fake.answer("setControlledAsync", () => Promise.resolve(value));
1670
+ * }
1671
+ * ```
1672
+ */
1673
+ public readonly setControlledAsync: IRuntimeWebViews["setControlledAsync"];
1674
+
1653
1675
  /**
1654
1676
  * Stands in for {@link IRuntimeWebViews.clearProfileAsync}. Records each
1655
1677
  * call, which {@link Fake.callsOf} reads, and returns what the answer that
@@ -0,0 +1,9 @@
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 {};
9
+ //# sourceMappingURL=i-port-blocker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-port-blocker.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.runtime/src/interfaces/i-port-blocker.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -34,8 +34,9 @@ export class ModuleDeclaration {
34
34
  switchSetting;
35
35
  platforms;
36
36
  noldovaDesktop;
37
+ formerNames;
37
38
  noldovaDesktopBounds;
38
- constructor(id, version, displayName, description, dependencies, runtimePackage, contributions, settings = [], cliPackage = null, cliCommands = [], webViews = null, usesPseudoTerminals = false, optionalDependencies = new Map(), switchSetting = null, platforms = null, noldovaDesktop = null) {
39
+ constructor(id, version, displayName, description, dependencies, runtimePackage, contributions, settings = [], cliPackage = null, cliCommands = [], webViews = null, usesPseudoTerminals = false, optionalDependencies = new Map(), switchSetting = null, platforms = null, noldovaDesktop = null, formerNames = new Map()) {
39
40
  if (!Resources.moduleIdPattern.test(id) || id === Resources.reservedModuleId)
40
41
  throw new ArgumentException(Resources.moduleIdInvalid, Resources.idParameterName);
41
42
  if (WindowsDeviceNames.includes(id))
@@ -87,6 +88,7 @@ export class ModuleDeclaration {
87
88
  this.switchSetting = switchSetting;
88
89
  this.platforms = Object.isNull(platforms) ? null : [...platforms];
89
90
  this.noldovaDesktop = noldovaDesktop;
91
+ this.formerNames = new Map([...formerNames].map(([name, formers]) => [name, [...formers]]));
90
92
  this.noldovaDesktopBounds = Object.isNull(range) ? null : [String(range[1]), String(range[2])];
91
93
  }
92
94
  static fromJson(value) {
@@ -103,7 +105,7 @@ export class ModuleDeclaration {
103
105
  const displayName = ModuleDeclaration.read(Resources.displayNameParameterName, t => fields.readNonBlankString(t));
104
106
  const description = ModuleDeclaration.read(Resources.descriptionParameterName, t => fields.readNonBlankString(t));
105
107
  const dependencies = ModuleDeclaration.read(Resources.dependenciesParameterName, t => ModuleDeclaration.readVersions(fields.readObject(t), t));
106
- return new ModuleDeclaration(id, version, displayName, description, dependencies, ModuleDeclaration.read(Resources.runtimePackageParameterName, t => ModuleDeclaration.readNullableText(fields, t)), ModuleDeclaration.read(Resources.contributesParameterName, t => new Map(Object.keys(contributes.toJson()).map(u => [u, ModuleDeclaration.readNames(contributes, u, t)]))), ModuleDeclaration.readSettings(fields.hasField(Resources.settingsField) ? fields.readValue(Resources.settingsField) : []), ModuleDeclaration.read(Resources.cliPackageField, t => fields.hasField(t) ? ModuleDeclaration.readNullableText(fields, t) : null), ModuleDeclaration.read(Resources.cliCommandsField, t => fields.hasField(t) ? ModuleDeclaration.readValues(fields.readValue(t), t) : []), ModuleDeclaration.readWebViews(fields.hasField(Resources.webViewsField) ? fields.readValue(Resources.webViewsField) : null), ModuleDeclaration.read(Resources.pseudoTerminalsField, t => fields.hasField(t) && fields.readBoolean(t)), ModuleDeclaration.read(Resources.optionalDependenciesField, t => fields.hasField(t) ? ModuleDeclaration.readVersions(fields.readObject(t), t) : new Map()), ModuleDeclaration.read(Resources.switchSettingField, t => fields.hasField(t) ? fields.readNonBlankString(t) : null), ModuleDeclaration.read(Resources.platformsField, t => fields.hasField(t) ? ModuleDeclaration.readNames(fields, t, t) : null), ModuleDeclaration.read(Resources.noldovaDesktopField, t => fields.hasField(t) ? fields.readNonBlankString(t) : null));
108
+ return new ModuleDeclaration(id, version, displayName, description, dependencies, ModuleDeclaration.read(Resources.runtimePackageParameterName, t => ModuleDeclaration.readNullableText(fields, t)), ModuleDeclaration.read(Resources.contributesParameterName, t => new Map(Object.keys(contributes.toJson()).map(u => [u, ModuleDeclaration.readNames(contributes, u, t)]))), ModuleDeclaration.readSettings(fields.hasField(Resources.settingsField) ? fields.readValue(Resources.settingsField) : []), ModuleDeclaration.read(Resources.cliPackageField, t => fields.hasField(t) ? ModuleDeclaration.readNullableText(fields, t) : null), ModuleDeclaration.read(Resources.cliCommandsField, t => fields.hasField(t) ? ModuleDeclaration.readValues(fields.readValue(t), t) : []), ModuleDeclaration.readWebViews(fields.hasField(Resources.webViewsField) ? fields.readValue(Resources.webViewsField) : null), ModuleDeclaration.read(Resources.pseudoTerminalsField, t => fields.hasField(t) && fields.readBoolean(t)), ModuleDeclaration.read(Resources.optionalDependenciesField, t => fields.hasField(t) ? ModuleDeclaration.readVersions(fields.readObject(t), t) : new Map()), ModuleDeclaration.read(Resources.switchSettingField, t => fields.hasField(t) ? fields.readNonBlankString(t) : null), ModuleDeclaration.read(Resources.platformsField, t => fields.hasField(t) ? ModuleDeclaration.readNames(fields, t, t) : null), ModuleDeclaration.read(Resources.noldovaDesktopField, t => fields.hasField(t) ? fields.readNonBlankString(t) : null), ModuleDeclaration.read(Resources.formerNamesField, t => fields.hasField(t) ? ModuleDeclaration.readFormerNames(fields.readObject(t), t) : new Map()));
107
109
  }
108
110
  accepts(dependency, version) {
109
111
  if (!Resources.moduleVersionPattern.test(version))
@@ -193,6 +195,9 @@ export class ModuleDeclaration {
193
195
  }
194
196
  return versions;
195
197
  }
198
+ static readFormerNames(fields, name) {
199
+ return new Map(Object.keys(fields.toJson()).map(t => [t, ModuleDeclaration.readNames(fields, t, name)]));
200
+ }
196
201
  static readNames(fields, field, name) {
197
202
  const names = fields.readStringArray(field);
198
203
  if (names.some(t => String.isNullOrWhitespace(t)))
@@ -1 +1 @@
1
- {"version":3,"file":"module-declaration.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.runtime/src/models/module-declaration.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,UAAU,EAAkB,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEhH,OAAO,EAAE,gCAAgC,EAAE,MAAM,sDAAsD,CAAC;AACxG,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA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,MAAM,IAAI,gCAAgC,CAAC,IAAI,CAAC,CAAC;QACnD,OAAO,KAAK,CAAC;IACf,CAAC"}
1
+ {"version":3,"file":"module-declaration.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.runtime/src/models/module-declaration.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,UAAU,EAAkB,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEhH,OAAO,EAAE,gCAAgC,EAAE,MAAM,sDAAsD,CAAC;AACxG,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,OAAO,iBAAiB;IACpB,MAAM,CAAU,gBAAgB,GAA2B,CAAC,WAAW,CAAC,WAAW,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAEpG,EAAE,CAAS;IACX,OAAO,CAAS;IAChB,WAAW,CAAS;IACpB,WAAW,CAAS;IACpB,YAAY,CAAoB;IAChC,kBAAkB,CAA8B;IAChD,cAAc,CAAgB;IAC9B,aAAa,CAAyC;IACtD,QAAQ,CAA+B;IACvC,UAAU,CAAgB;IAC1B,WAAW,CAAuB;IAClC,QAAQ,CAA4B;IACpC,mBAAmB,CAAU;IAC7B,oBAAoB,CAAoB;IACxC,0BAA0B,CAA8B;IACxD,aAAa,CAAgB;IAC7B,SAAS,CAA2B;IACpC,cAAc,CAAgB;IAC9B,WAAW,CAAyC;IACnD,oBAAoB,CAAmC;I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AAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3G,CAAC;IAEO,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,KAAa,EAAE,IAAY;QACtE,MAAM,KAAK,GAAG,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;QAC5C,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;YAC/C,MAAM,IAAI,gCAAgC,CAAC,IAAI,CAAC,CAAC;QACnD,OAAO,KAAK,CAAC;IACf,CAAC"}
@@ -9,10 +9,14 @@ export class PeerProcess {
9
9
  program;
10
10
  environment;
11
11
  sender;
12
- constructor(program, environment, sender = null) {
12
+ processId;
13
+ startTime;
14
+ constructor(program, environment, sender = null, processId = null, startTime = null) {
13
15
  this.program = program;
14
16
  this.environment = environment;
15
17
  this.sender = sender;
18
+ this.processId = processId;
19
+ this.startTime = startTime;
16
20
  }
17
21
  }
18
22
  //# sourceMappingURL=peer-process.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"peer-process.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.runtime/src/models/peer-process.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,OAAO,WAAW;IACN,OAAO,CAAS;IAChB,WAAW,CAAoB;IAC/B,MAAM,CAAgB;IAEtC,YAAmB,OAAe,EAAE,WAA8B,EAAE,SAAwB,IAAI;QAC9F,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF"}
1
+ {"version":3,"file":"peer-process.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.runtime/src/models/peer-process.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,OAAO,WAAW;IACN,OAAO,CAAS;IAChB,WAAW,CAAoB;IAC/B,MAAM,CAAgB;IACtB,SAAS,CAAgB;IACzB,SAAS,CAAgB;IAEzC,YAAmB,OAAe,EAAE,WAA8B,EAAE,SAAwB,IAAI,EAAE,YAA2B,IAAI,EAAE,YAA2B,IAAI;QAChK,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;CACF"}
@@ -0,0 +1,23 @@
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 StampedFile {
9
+ path;
10
+ device;
11
+ inode;
12
+ size;
13
+ constructor(path, device, inode, size) {
14
+ this.path = path;
15
+ this.device = device;
16
+ this.inode = inode;
17
+ this.size = size;
18
+ }
19
+ isSameFile(device, inode) {
20
+ return this.device === device && this.inode === inode;
21
+ }
22
+ }
23
+ //# sourceMappingURL=stamped-file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stamped-file.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.runtime/src/models/stamped-file.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,OAAO,WAAW;IACN,IAAI,CAAS;IACb,MAAM,CAAS;IACf,KAAK,CAAS;IACd,IAAI,CAAS;IAE7B,YAAmB,IAAY,EAAE,MAAc,EAAE,KAAa,EAAE,IAAY;QAC1E,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAEM,UAAU,CAAC,MAAc,EAAE,KAAa;QAC7C,OAAO,IAAI,CAAC,MAAM,KAAK,MAAM,IAAI,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC;IACxD,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noldova/desktop.runtime",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Noldova Desktop's runtime: it owns a data directory, hosts modules' runtime parts and keeps their state, and the client side that finds, starts and connects to it.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "registry": "https://registry.npmjs.org/"
37
37
  },
38
38
  "dependencies": {
39
- "@noldova/desktop.protocol": "0.0.2"
39
+ "@noldova/desktop.protocol": "0.0.4"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@noldova/context.core": ">=0.0.7 <0.1.0",
@@ -58,5 +58,5 @@
58
58
  "posix-process"
59
59
  ]
60
60
  },
61
- "gitHead": "4a952ab785ad808de592e9428c3feff7dc979e8f"
61
+ "gitHead": "576d8a6e7035959a5dbddacfd5ab187832c06586"
62
62
  }