replicas-engine 0.1.744 → 0.1.746

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.
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  AppServerProcess,
9
9
  buildCodexAgentEnv
10
- } from "./chunk-XQM2BWLW.js";
10
+ } from "./chunk-HNVRRGQU.js";
11
11
  import {
12
12
  CODEX_AUTH_ENV_KEYS,
13
13
  CODEX_AUTH_ENV_KEYS_BY_METHOD,
@@ -230,7 +230,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
230
230
  const data = await response.json();
231
231
  await this.applyCredentialsResponse(data);
232
232
  if (restartOnChange && CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index])) {
233
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-FCGPBXUC.js");
233
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-6HRB6NJ5.js");
234
234
  await restartCodexAspHostIfRunning2();
235
235
  }
236
236
  if (data.scope) {
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ matchesKey
4
+ } from "./chunk-NZRMKTVA.js";
5
+
6
+ // ../node_modules/.bun/pi-mcp-adapter@2.32.1+04b0d7b0bc944965/node_modules/pi-mcp-adapter/panel-keys.ts
7
+ function configuredSaveKeys(keybindings) {
8
+ const explicit = keybindings?.getUserBindings?.()["mcp.panel.save"];
9
+ if (explicit !== void 0) return { keys: Array.isArray(explicit) ? explicit : [explicit], configured: true };
10
+ return { keys: [], configured: false };
11
+ }
12
+ function createPanelKeys(keybindings) {
13
+ const saveBinding = configuredSaveKeys(keybindings);
14
+ if (keybindings) {
15
+ return {
16
+ selectUp: (data) => keybindings.matches(data, "tui.select.up"),
17
+ selectDown: (data) => keybindings.matches(data, "tui.select.down"),
18
+ selectConfirm: (data) => keybindings.matches(data, "tui.select.confirm"),
19
+ save: (data) => saveBinding.keys.length > 0 ? saveBinding.keys.some((key) => matchesKey(data, key)) : !saveBinding.configured && matchesKey(data, "ctrl+s"),
20
+ saveLabel: () => saveBinding.keys[0] ?? (saveBinding.configured ? null : "ctrl+s")
21
+ };
22
+ }
23
+ return {
24
+ selectUp: (data) => matchesKey(data, "up"),
25
+ selectDown: (data) => matchesKey(data, "down"),
26
+ selectConfirm: (data) => matchesKey(data, "return"),
27
+ save: (data) => matchesKey(data, "ctrl+s"),
28
+ saveLabel: () => "ctrl+s"
29
+ };
30
+ }
31
+
32
+ export {
33
+ createPanelKeys
34
+ };