@yu_robotics/remote-cli 1.6.170 → 1.6.176

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 (94) hide show
  1. package/README.md +25 -0
  2. package/dist/client/GoalCommand.d.ts +15 -0
  3. package/dist/client/GoalCommand.d.ts.map +1 -0
  4. package/dist/client/GoalCommand.js +59 -0
  5. package/dist/client/GoalCommand.js.map +1 -0
  6. package/dist/client/MessageHandler.d.ts +4 -0
  7. package/dist/client/MessageHandler.d.ts.map +1 -1
  8. package/dist/client/MessageHandler.js +186 -46
  9. package/dist/client/MessageHandler.js.map +1 -1
  10. package/dist/client/TaskRecovery.d.ts +3 -1
  11. package/dist/client/TaskRecovery.d.ts.map +1 -1
  12. package/dist/client/TaskRecovery.js +9 -4
  13. package/dist/client/TaskRecovery.js.map +1 -1
  14. package/dist/client/WebSocketClient.d.ts +2 -1
  15. package/dist/client/WebSocketClient.d.ts.map +1 -1
  16. package/dist/client/WebSocketClient.js +9 -1
  17. package/dist/client/WebSocketClient.js.map +1 -1
  18. package/dist/delegation/DelegationManager.js +1 -1
  19. package/dist/delegation/DelegationManager.js.map +1 -1
  20. package/dist/executor/AcpExecutor.d.ts +6 -0
  21. package/dist/executor/AcpExecutor.d.ts.map +1 -1
  22. package/dist/executor/AcpExecutor.js +81 -10
  23. package/dist/executor/AcpExecutor.js.map +1 -1
  24. package/dist/executor/CodexAppServerClient.d.ts +1 -0
  25. package/dist/executor/CodexAppServerClient.d.ts.map +1 -1
  26. package/dist/executor/CodexAppServerClient.js +12 -4
  27. package/dist/executor/CodexAppServerClient.js.map +1 -1
  28. package/dist/executor/CodexAppServerExecutor.d.ts +39 -2
  29. package/dist/executor/CodexAppServerExecutor.d.ts.map +1 -1
  30. package/dist/executor/CodexAppServerExecutor.js +712 -32
  31. package/dist/executor/CodexAppServerExecutor.js.map +1 -1
  32. package/dist/executor/IExecutor.d.ts +43 -0
  33. package/dist/executor/IExecutor.d.ts.map +1 -1
  34. package/dist/executor/KimiExecutor.d.ts +9 -0
  35. package/dist/executor/KimiExecutor.d.ts.map +1 -1
  36. package/dist/executor/KimiExecutor.js +45 -0
  37. package/dist/executor/KimiExecutor.js.map +1 -1
  38. package/dist/executor/codex/CodexGoals.d.ts +6 -0
  39. package/dist/executor/codex/CodexGoals.d.ts.map +1 -0
  40. package/dist/executor/codex/CodexGoals.js +49 -0
  41. package/dist/executor/codex/CodexGoals.js.map +1 -0
  42. package/dist/executor/codex/CodexImages.d.ts +22 -0
  43. package/dist/executor/codex/CodexImages.d.ts.map +1 -0
  44. package/dist/executor/codex/CodexImages.js +201 -0
  45. package/dist/executor/codex/CodexImages.js.map +1 -0
  46. package/dist/executor/index.d.ts +2 -1
  47. package/dist/executor/index.d.ts.map +1 -1
  48. package/dist/executor/index.js +1 -0
  49. package/dist/executor/index.js.map +1 -1
  50. package/dist/executor/kimi/KimiAccountUsage.d.ts +2 -6
  51. package/dist/executor/kimi/KimiAccountUsage.d.ts.map +1 -1
  52. package/dist/executor/kimi/KimiAccountUsage.js +11 -71
  53. package/dist/executor/kimi/KimiAccountUsage.js.map +1 -1
  54. package/dist/executor/kimi/KimiLocalServer.d.ts +28 -0
  55. package/dist/executor/kimi/KimiLocalServer.d.ts.map +1 -0
  56. package/dist/executor/kimi/KimiLocalServer.js +192 -0
  57. package/dist/executor/kimi/KimiLocalServer.js.map +1 -0
  58. package/dist/executor/kimi/KimiModelCatalog.d.ts +6 -0
  59. package/dist/executor/kimi/KimiModelCatalog.d.ts.map +1 -0
  60. package/dist/executor/kimi/KimiModelCatalog.js +86 -0
  61. package/dist/executor/kimi/KimiModelCatalog.js.map +1 -0
  62. package/dist/maintenance/release-notes.json +1 -1
  63. package/dist/settings/SettingsCatalog.d.ts +1 -1
  64. package/dist/settings/SettingsCatalog.d.ts.map +1 -1
  65. package/dist/settings/SettingsCatalog.js +6 -2
  66. package/dist/settings/SettingsCatalog.js.map +1 -1
  67. package/dist/settings/SettingsService.d.ts +3 -1
  68. package/dist/settings/SettingsService.d.ts.map +1 -1
  69. package/dist/settings/SettingsService.js +17 -5
  70. package/dist/settings/SettingsService.js.map +1 -1
  71. package/dist/thread/ThreadExecutorPool.d.ts +3 -1
  72. package/dist/thread/ThreadExecutorPool.d.ts.map +1 -1
  73. package/dist/thread/ThreadExecutorPool.js +13 -1
  74. package/dist/thread/ThreadExecutorPool.js.map +1 -1
  75. package/dist/thread/ThreadManager.d.ts +1 -1
  76. package/dist/thread/ThreadManager.d.ts.map +1 -1
  77. package/dist/thread/ThreadManager.js.map +1 -1
  78. package/dist/thread/types.d.ts +2 -0
  79. package/dist/thread/types.d.ts.map +1 -1
  80. package/dist/types/Settings.d.ts +8 -0
  81. package/dist/types/Settings.d.ts.map +1 -1
  82. package/dist/utils/ImageDelivery.d.ts +67 -0
  83. package/dist/utils/ImageDelivery.d.ts.map +1 -0
  84. package/dist/utils/ImageDelivery.js +270 -0
  85. package/dist/utils/ImageDelivery.js.map +1 -0
  86. package/dist/utils/ImageValidation.d.ts +11 -0
  87. package/dist/utils/ImageValidation.d.ts.map +1 -0
  88. package/dist/utils/ImageValidation.js +62 -0
  89. package/dist/utils/ImageValidation.js.map +1 -0
  90. package/dist/utils/LocalImageDetector.d.ts +12 -3
  91. package/dist/utils/LocalImageDetector.d.ts.map +1 -1
  92. package/dist/utils/LocalImageDetector.js +153 -55
  93. package/dist/utils/LocalImageDetector.js.map +1 -1
  94. package/package.json +1 -1
package/README.md CHANGED
@@ -78,6 +78,12 @@ The client is normally installed and run directly on the developer's machine rat
78
78
 
79
79
  Claude tool-result content blocks are normalized to text; embedded media and unknown payloads are not scanned for local files. Local image detection and forwarding are best-effort: failures do not fail the task or terminate the CLI. Web-result excerpts remain excluded from local-file scanning.
80
80
 
81
+ CLI and Router 1.6.173 add direct forwarding for recognized successful Codex native image results, MCP image blocks, and dynamic-tool inline images. These images do not require a Markdown link. Native saved-file references use the same local directory policy as Markdown images. Structured extraction does not traverse arbitrary JSON path fields or publish image-view events, and remote URLs are not fetched. Ordinary tool-result text retains local-path detection; shell tools that return only text still need a local path or Markdown image link.
82
+
83
+ Each reply accepts up to 32 image candidates and displays up to 8 distinct images, with a 2 MiB decoded limit per image. Supported raster formats are checked from their bytes. Local files must pass canonical directory and regular-file checks; denied, missing, invalid, oversized, or timed-out images produce a bounded omission notice while text can still complete. Identical bytes are deduplicated within the reply, including native and Markdown copies; changed bytes at the same path can be displayed again. Reads and uploads have bounded concurrency and waiting times, and late results cannot be attached after cancellation or replacement.
84
+
85
+ Upgrade both CLI and Router for the complete fix: the CLI discovers and validates images, while the Router waits for admitted uploads before completing the card. The image wire format remains compatible with older image-capable peers, but an older Router retains its upload/finalization race. Delivery is best-effort with no image replay across disconnects; a model saying it sent an image is not a delivery acknowledgement.
86
+
81
87
  Sending local image files requires a Router with image forwarding support and
82
88
  the bot application's `im:resource` permission. Router 1.6.85 and newer render
83
89
  local and URL-based Markdown image references as captions; the uploaded image
@@ -423,6 +429,10 @@ Backend-specific commands are forwarded only where the active backend supports t
423
429
 
424
430
  ## Advanced Usage
425
431
 
432
+ From CLI 1.6.175, opening or refreshing Kimi's `/model` list also refreshes the native OAuth-managed model catalog through Kimi's authenticated loopback server. Manual terminal refresh and repeated sign-in are not required. Kimi must expose the native model-refresh endpoint; account permissions and upstream availability still determine the returned choices. Failed or timed-out refreshes are reported rather than treated as a successful refresh of an old list. Upgrade the local CLI to use this behavior; the Router protocol is unchanged. Applying a discovered model to an idle Kimi thread reloads the native ACP process and resumes the same conversation binding, so its process-local catalog cannot reject the new alias.
433
+
434
+ From CLI and Router 1.6.176, the `/model` card includes a separate **Speed** section when the selected Codex model advertises native service tiers. Choose a native tier, explicit **Standard**, or **Follow native config**. Native names and descriptions are preserved; Fast is a processing tier, not an invented model ID, and availability and usage depend on the native backend and account. Speed is saved per thread/backend and applies to future delegated workers and native goal continuations. Model changes that conflict with a saved speed are refused until Follow native config is selected. Untouched threads keep native behavior without extra speed settings requests. Both peers must negotiate model speed settings; older peers, Kimi Highspeed model IDs, and OpenCode models/variants keep their existing paths. If a saved speed disappears, a recovery-only Speed section retains Follow native config. Older native protocols that cannot safely clear a saved conversation's tier require a Codex upgrade or `/clear` before that conversation resumes.
435
+
426
436
  Use one thread per project or task so each thread keeps its own working directory, backend session, model, and queue. Use `/backend <index>` for a global switch, or `/backend <index> @` to override only the current thread. `/backend default @` removes that override.
427
437
 
428
438
  With CLI and Router 1.6.168 or newer, `/cd` opens a directory-only browser with child, Parent, Allowed roots, Refresh, Use this directory, and Cancel controls. Navigation never changes context or runs a backend. Only Apply changes the original thread, following the existing all-backend context reset and delegation-lane invalidation; the same directory remains a no-op. Both card Apply and text `/cd <path>` share exclusive settings admission and reject active, delegated, queued, aborting, or updating work. Older peers retain text behavior. Symbolic-link directories are omitted; Parent stops at the nearest allowed root. Snapshots expire after ten minutes and reject changed policy, cwd, root, directory, or ancestor identity. Scans cap at 4096 entries, 128 directories, or five seconds between filesystem operations, with explicit partial-list guidance; at most 32 roots are offered. Cards fill before budget-driven paging. Application-level canonical and identity checks are not an OS sandbox or protection against all external filesystem races and bind mounts.
@@ -431,6 +441,21 @@ With CLI 1.6.93 or newer, `/cd` to a different normalized directory clears saved
431
441
 
432
442
  Thread switch panels show `Reply from:` with the reply's full thread name and workspace. Under `Switch thread`, a check mark (`✓`) and primary button styling identify the destination of new top-level messages when the card is finalized or clicked. Selected buttons remain clickable. Switching updates only the clicked card; other historical cards retain their last displayed selection.
433
443
 
444
+ From Router 1.6.174, completed cards show thread-switch buttons and **+ New** directly, without a folding panel or an extra expand click. The reply-source caption remains visible, and thread selection keeps the existing routing and permission checks. Cards use a 180-tagged-node budget, including nested controls and reserved completion elements; size and table limits still apply. This presentation change requires a Router upgrade and does not change the CLI wire protocol. Previously sent cards are not automatically rewritten by an upgrade.
445
+
446
+ From CLI 1.6.172, Codex threads support native goals through `/goal` (status), `/goal <objective>` (start), `/goal pause`, `/goal resume`, and `/goal clear`. Start or resume only when the thread and queue are idle, with managed delegation explicitly disabled using `/delegation off`. This initial restriction does not disable Codex's native subagents. Optional `--budget <tokens>` on start or resume sets an explicit positive token budget; omitting it does not invent a budget. For example:
447
+
448
+ ```text
449
+ /delegation off
450
+ /goal --budget 40000 Fix the failing tests and verify the public API stays compatible
451
+ /goal
452
+ /goal pause
453
+ /goal resume
454
+ /goal clear
455
+ ```
456
+
457
+ Codex owns the persisted goal and automatic continuations; remote-cli keeps the execution card, approvals, and busy-state reservation across native turns. Status, pause, clear, and `/abort` remain available during work. Pause and clear stop current goal work; `/abort` pauses the goal, while clear removes the goal without clearing the conversation. After process loss, inspect with `/goal` and explicitly recover with `/goal resume`; status queries do not load or start the goal. Send attachments in an ordinary message before starting a goal. Use a Codex build exposing the native thread-goal APIs (verified with 0.163.0); unavailable APIs or disabled goals report an error. Other backends reject `/goal`. See [the native goal API](https://learn.chatgpt.com/docs/app-server#manage-a-thread-goal).
458
+
434
459
  With a CLI and Router that support queue-start notifications, confirming a message keeps a static queue receipt. When the task actually starts, a new execution card appears at the bottom of the chat with its thread, working directory, task preview, and remaining queue count. Progress and results stay on that new card, and the old receipt points to it. Older clients retain the waiting-card behavior. Queued work remains in memory; this does not make queues persistent across service restarts.
435
460
 
436
461
  When a thread is busy, ordinary messages require confirmation before they enter its queue. Use `/queue` to inspect pending work, `/queue clear` to discard queued messages, and `/abort` to stop the active task and clear that thread's queue. A message received during abort cleanup waits and starts after the backend is safe to reuse. A backend failure in the active task still advances to the first confirmed queued message; a failure in a task taken from the queue pauses the remaining queue. Context-changing commands such as `/model`, `/effort`, `/cd`, `/compact`, `/clear`, and its `/new` alias are handled separately rather than queued as ordinary messages. Feishu thread buttons show automatic names such as `thread-2` as their sequence number, such as `2`; routing continues to use the full internal name. Continuation cards repeat the thread and working-directory header of the original card.
@@ -0,0 +1,15 @@
1
+ import type { ExecutorGoal, ExecutorGoalRunRequest } from '../executor/IExecutor';
2
+ export declare const GOAL_USAGE: string;
3
+ export type GoalCommand = {
4
+ kind: 'show' | 'pause' | 'clear' | 'help';
5
+ } | {
6
+ kind: 'run';
7
+ request: ExecutorGoalRunRequest;
8
+ } | {
9
+ kind: 'invalid';
10
+ error: string;
11
+ };
12
+ /** Parse before approval/input routing so control commands never answer a tool prompt. */
13
+ export declare function parseGoalCommand(content: string): GoalCommand | undefined;
14
+ export declare function formatGoal(goal: ExecutorGoal | null): string;
15
+ //# sourceMappingURL=GoalCommand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GoalCommand.d.ts","sourceRoot":"","sources":["../../src/client/GoalCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAElF,eAAO,MAAM,UAAU,QAMX,CAAC;AAEb,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAA;CAAE,GAC7C;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,sBAAsB,CAAA;CAAE,GAChD;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvC,0FAA0F;AAC1F,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CA6BzE;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI,GAAG,MAAM,CAU5D"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GOAL_USAGE = void 0;
4
+ exports.parseGoalCommand = parseGoalCommand;
5
+ exports.formatGoal = formatGoal;
6
+ exports.GOAL_USAGE = [
7
+ '/goal - Show the current Codex goal',
8
+ '/goal [--budget <tokens>] <objective> - Start a native goal',
9
+ '/goal pause - Pause the goal and stop its current work',
10
+ '/goal resume [--budget <tokens>] - Resume the existing goal',
11
+ '/goal clear - Remove the goal and stop its current work',
12
+ ].join('\n');
13
+ /** Parse before approval/input routing so control commands never answer a tool prompt. */
14
+ function parseGoalCommand(content) {
15
+ const match = /^\/goal(?:\s+([\s\S]*))?$/.exec(content.trim());
16
+ if (!match)
17
+ return undefined;
18
+ const argument = (match[1] ?? '').trim();
19
+ if (!argument || argument === 'status')
20
+ return { kind: 'show' };
21
+ if (argument === 'pause' || argument === 'clear' || argument === 'help')
22
+ return { kind: argument };
23
+ const resume = /^resume(?:\s|$)/.test(argument);
24
+ let objective = resume ? argument.slice('resume'.length).trim() : argument;
25
+ let tokenBudget;
26
+ if (/^--budget(?:\s|$)/.test(objective)) {
27
+ const budget = /^--budget\s+([0-9]+)(?:\s+([\s\S]*))?$/.exec(objective);
28
+ if (!budget || !Number.isSafeInteger(Number(budget[1])) || Number(budget[1]) <= 0) {
29
+ return { kind: 'invalid', error: 'Goal token budget must be a positive safe integer.\n' + exports.GOAL_USAGE };
30
+ }
31
+ tokenBudget = Number(budget[1]);
32
+ objective = (budget[2] ?? '').trim();
33
+ }
34
+ if (resume) {
35
+ if (objective)
36
+ return { kind: 'invalid', error: 'Resume does not accept a new objective.\n' + exports.GOAL_USAGE };
37
+ return { kind: 'run', request: tokenBudget === undefined ? {} : { tokenBudget } };
38
+ }
39
+ if (!objective || objective.startsWith('--') || /^(?:pause|clear|status|help)(?:\s|$)/.test(objective)) {
40
+ return { kind: 'invalid', error: 'Invalid goal command.\n' + exports.GOAL_USAGE };
41
+ }
42
+ if (Array.from(objective).length > 4000) {
43
+ return { kind: 'invalid', error: 'Goal objectives must contain at most 4,000 characters.' };
44
+ }
45
+ return { kind: 'run', request: { objective, ...(tokenBudget === undefined ? {} : { tokenBudget }) } };
46
+ }
47
+ function formatGoal(goal) {
48
+ if (!goal)
49
+ return 'No Codex goal is set for this thread.\n\n' + exports.GOAL_USAGE;
50
+ return [
51
+ 'Codex goal',
52
+ `Objective: ${goal.objective}`,
53
+ `Status: ${goal.status}`,
54
+ `Tokens used: ${goal.tokensUsed}${goal.tokenBudget === null ? ' (no explicit budget)' : ` / ${goal.tokenBudget}`}`,
55
+ `Active time: ${goal.timeUsedSeconds}s`,
56
+ '', exports.GOAL_USAGE,
57
+ ].join('\n');
58
+ }
59
+ //# sourceMappingURL=GoalCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GoalCommand.js","sourceRoot":"","sources":["../../src/client/GoalCommand.ts"],"names":[],"mappings":";;;AAgBA,4CA6BC;AAED,gCAUC;AAvDY,QAAA,UAAU,GAAG;IACxB,qCAAqC;IACrC,6DAA6D;IAC7D,wDAAwD;IACxD,6DAA6D;IAC7D,yDAAyD;CAC1D,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAOb,0FAA0F;AAC1F,SAAgB,gBAAgB,CAAC,OAAe;IAC9C,MAAM,KAAK,GAAG,2BAA2B,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IAC/D,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAC;IAC7B,MAAM,QAAQ,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACzC,IAAI,CAAC,QAAQ,IAAI,QAAQ,KAAK,QAAQ;QAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAChE,IAAI,QAAQ,KAAK,OAAO,IAAI,QAAQ,KAAK,OAAO,IAAI,QAAQ,KAAK,MAAM;QAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAEnG,MAAM,MAAM,GAAG,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChD,IAAI,SAAS,GAAG,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;IAC3E,IAAI,WAA+B,CAAC;IACpC,IAAI,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,E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I,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,GAAG,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC;AACxG,CAAC;AAED,SAAgB,UAAU,CAAC,IAAyB;IAClD,IAAI,CAAC,IAAI;QAAE,OAAO,2CAA2C,GAAG,kBAAU,CAAC;IAC3E,OAAO;QACL,YAAY;QACZ,cAAc,IAAI,CAAC,SAAS,EAAE;QAC9B,WAAW,IAAI,CAAC,MAAM,EAAE;QACxB,gBAAgB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,EAAE;QAClH,gBAAgB,IAAI,CAAC,eAAe,GAAG;QACvC,EAAE,EAAE,kBAAU;KACf,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
@@ -34,6 +34,7 @@ export declare class MessageHandler {
34
34
  private readonly sessionControl;
35
35
  private readonly activeThreadOperations;
36
36
  private readonly abortOperations;
37
+ private readonly pendingGoalActivations;
37
38
  private automaticUpdateInProgress;
38
39
  private approvalCardsSupported;
39
40
  private streamingContextSupported;
@@ -43,6 +44,7 @@ export declare class MessageHandler {
43
44
  private activityProgressSupported;
44
45
  private workerContextResetSupported;
45
46
  private settingsCardsSupported;
47
+ private modelSpeedSettingsSupported;
46
48
  private directoryCardsSupported;
47
49
  private readonly directoryBrowser;
48
50
  private delegationCardsSupported;
@@ -53,6 +55,8 @@ export declare class MessageHandler {
53
55
  private readonly delegation;
54
56
  private readonly delegationBridges;
55
57
  private fileInbox?;
58
+ private readonly imageDeliveries;
59
+ private imageConnectionEpoch;
56
60
  constructor(wsClient: WebSocketClient, threadPool: ThreadExecutorPool, threadManager: ThreadManager, directoryGuard: DirectoryGuard, config: ConfigManager);
57
61
  reconcilePendingDelegatedWorkers(): Promise<void>;
58
62
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"MessageHandler.d.ts","sourceRoot":"","sources":["../../src/client/MessageHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQpD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAgK,MAAM,UAAU,CAAC;AACzM,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAMxD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAwHxD;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAsBD,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B,OAAO,CAAC,mBAAmB,CAA4B;IACvD,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,eAAe,CAA0C;IACjE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAsC;IACnE,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAA+C;IACzF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAqB;IAClD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAyC;IACxE,qEAAqE;IACrE,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAA6B;IAC/D,0FAA0F;IAC1F,OAAO,CA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