agent-embassy 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/src/gateway/cli-copy.d.ts +1 -1
- package/dist/src/gateway/cli-copy.en.d.ts +3 -1
- package/dist/src/gateway/cli-copy.en.js +3 -0
- package/dist/src/gateway/cli-copy.en.js.map +1 -1
- package/dist/src/gateway/cli-copy.js +2 -0
- package/dist/src/gateway/cli-copy.js.map +1 -1
- package/dist/src/gateway/cli-copy.zh-CN.d.ts +3 -1
- package/dist/src/gateway/cli-copy.zh-CN.js +3 -0
- package/dist/src/gateway/cli-copy.zh-CN.js.map +1 -1
- package/dist/src/gateway/cli.d.ts +2 -2
- package/dist/src/gateway/cli.js +48 -2
- package/dist/src/gateway/cli.js.map +1 -1
- package/dist/src/gateway/codex-app-server.js +1 -1
- package/dist/src/gateway/codex-doctor.d.ts +33 -0
- package/dist/src/gateway/codex-doctor.js +148 -0
- package/dist/src/gateway/codex-doctor.js.map +1 -0
- package/dist/src/gateway/codex-local-transport.d.ts +5 -0
- package/dist/src/gateway/codex-local-transport.js +5 -0
- package/dist/src/gateway/codex-local-transport.js.map +1 -1
- package/dist/src/gateway/control.js +40 -3
- package/dist/src/gateway/control.js.map +1 -1
- package/dist/src/gateway/dashboard-copy.d.ts +1 -1
- package/dist/src/gateway/dashboard-copy.en.d.ts +5 -0
- package/dist/src/gateway/dashboard-copy.en.js +5 -0
- package/dist/src/gateway/dashboard-copy.en.js.map +1 -1
- package/dist/src/gateway/dashboard-copy.js +5 -0
- package/dist/src/gateway/dashboard-copy.js.map +1 -1
- package/dist/src/gateway/dashboard-copy.zh-CN.d.ts +5 -0
- package/dist/src/gateway/dashboard-copy.zh-CN.js +5 -0
- package/dist/src/gateway/dashboard-copy.zh-CN.js.map +1 -1
- package/dist/src/gateway/dashboard-model.d.ts +3 -0
- package/dist/src/gateway/dashboard-model.js +9 -1
- package/dist/src/gateway/dashboard-model.js.map +1 -1
- package/dist/src/gateway/dashboard.js +3 -1
- package/dist/src/gateway/dashboard.js.map +1 -1
- package/dist/src/gateway/live-dashboard-app/app.js +11 -2
- package/dist/src/gateway/providers.d.ts +7 -0
- package/dist/src/gateway/providers.js +60 -0
- package/dist/src/gateway/providers.js.map +1 -1
- package/dist/src/gateway/server.js +12 -0
- package/dist/src/gateway/server.js.map +1 -1
- package/dist/src/gateway/service.d.ts +26 -2
- package/dist/src/gateway/service.js +553 -104
- package/dist/src/gateway/service.js.map +1 -1
- package/dist/src/gateway/store.js +26 -12
- package/dist/src/gateway/store.js.map +1 -1
- package/dist/src/gateway/types.d.ts +9 -0
- package/dist/src/gateway/types.js +2 -0
- package/dist/src/gateway/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { GatewayConfig } from "./config.js";
|
|
2
2
|
import { type GatewayControlHandlers, type GatewaySnapshotObservation } from "./control.js";
|
|
3
3
|
import { publishGatewayDashboard } from "./dashboard.js";
|
|
4
|
+
import type { CodexDoctorResult } from "./codex-doctor.js";
|
|
4
5
|
import { GatewayStore } from "./store.js";
|
|
5
6
|
import { type GatewayProvider, type GatewayPublicSnapshot, type PrivateEndpointIdentity, type PrivateRouteBinding, type RouteState } from "./types.js";
|
|
6
7
|
export type GatewayAdapterRouteState = Extract<RouteState, "idle" | "busy" | "awaiting_approval">;
|
|
@@ -258,6 +259,8 @@ export type GatewayServiceOptions = {
|
|
|
258
259
|
timers?: GatewayServiceTimers;
|
|
259
260
|
/** Test seam for opaque listener generations; production remains random. */
|
|
260
261
|
successionGeneration?: () => string;
|
|
262
|
+
/** Bounded local process evidence; never routing authority. */
|
|
263
|
+
codexDoctor?: () => Promise<CodexDoctorResult>;
|
|
261
264
|
};
|
|
262
265
|
export declare class GatewayService {
|
|
263
266
|
readonly config: GatewayConfig;
|
|
@@ -268,6 +271,7 @@ export declare class GatewayService {
|
|
|
268
271
|
private readonly timers;
|
|
269
272
|
private readonly nativePeerCwd;
|
|
270
273
|
private readonly successionGeneration;
|
|
274
|
+
private readonly codexDoctor;
|
|
271
275
|
private readonly mutex;
|
|
272
276
|
private readonly routeBindings;
|
|
273
277
|
private readonly routeStates;
|
|
@@ -318,8 +322,17 @@ export declare class GatewayService {
|
|
|
318
322
|
private readonly callbackCapacity;
|
|
319
323
|
private readonly deliveryCallbackReserve;
|
|
320
324
|
private readonly deliveryTokenCapacity;
|
|
325
|
+
private readonly providerDispatchInFlightMessageIds;
|
|
326
|
+
private readonly connectorFreshnessDeadlineAt;
|
|
321
327
|
private lifecycleTimer;
|
|
328
|
+
private lifecyclePublishPending;
|
|
322
329
|
private nextDashboardRefreshAt;
|
|
330
|
+
private nextClaudeDiscoveryAt;
|
|
331
|
+
private claudeDiscoveryScheduled;
|
|
332
|
+
private claudeDiscoveryInFlight;
|
|
333
|
+
private codexDoctorTimer;
|
|
334
|
+
private codexDoctorInFlight;
|
|
335
|
+
private codexDoctorResult;
|
|
323
336
|
private nextProgressWatchAt;
|
|
324
337
|
private control;
|
|
325
338
|
/** Coarse controller mutation revision exposed by `health`. */
|
|
@@ -359,6 +372,10 @@ export declare class GatewayService {
|
|
|
359
372
|
snapshot(): Promise<GatewayPublicSnapshot>;
|
|
360
373
|
private captureRegistryObservation;
|
|
361
374
|
private connectorsWithRegistry;
|
|
375
|
+
private recordConnectorFreshness;
|
|
376
|
+
private codexDoctorConditions;
|
|
377
|
+
private refreshCodexDoctor;
|
|
378
|
+
private scheduleCodexDoctor;
|
|
362
379
|
observeSnapshot(): Promise<GatewaySnapshotObservation>;
|
|
363
380
|
private fingerprintSnapshot;
|
|
364
381
|
private callbacksFor;
|
|
@@ -439,10 +456,14 @@ export declare class GatewayService {
|
|
|
439
456
|
private finalizeStaleCodexOrphanRemovalLocked;
|
|
440
457
|
private removeStaleCodexRegistration;
|
|
441
458
|
private discoveryPublicFingerprint;
|
|
459
|
+
private schedulePeriodicClaudeDiscovery;
|
|
460
|
+
private refreshClaudeDiscoveryPeriodically;
|
|
442
461
|
private refreshClaudeDiscovery;
|
|
443
462
|
private renameClaudeRoute;
|
|
444
463
|
private claudeCandidate;
|
|
445
464
|
private activatePersistedClaudeCandidate;
|
|
465
|
+
private validatePersistedClaudeCandidate;
|
|
466
|
+
private commitPreparedClaudeRebind;
|
|
446
467
|
private selectClaudeCandidate;
|
|
447
468
|
private replaceClaudeSelectionCandidate;
|
|
448
469
|
private resolveSelectedClaudeDestination;
|
|
@@ -505,6 +526,7 @@ export declare class GatewayService {
|
|
|
505
526
|
private processProgressWatchesLocked;
|
|
506
527
|
private processLifecycleLocked;
|
|
507
528
|
private scheduleLifecycleWakeLocked;
|
|
529
|
+
private scheduleLifecycleRetryLocked;
|
|
508
530
|
private deliveryStatus;
|
|
509
531
|
private acceptToClaude;
|
|
510
532
|
private acceptToCodex;
|
|
@@ -520,10 +542,12 @@ export declare class GatewayService {
|
|
|
520
542
|
*/
|
|
521
543
|
private enqueueObservedClaudeReplyAfterRouteTeardownLocked;
|
|
522
544
|
private pruneTransient;
|
|
523
|
-
private
|
|
545
|
+
private awaitDispatchWithNativeHeld;
|
|
524
546
|
private restoreQueuedMessageContextLocked;
|
|
525
|
-
private
|
|
547
|
+
private prepareDispatchLocked;
|
|
548
|
+
private commitDispatchLocked;
|
|
526
549
|
private scheduleDispatch;
|
|
550
|
+
private runDispatch;
|
|
527
551
|
private scheduleHeldRedispatch;
|
|
528
552
|
private onDelivery;
|
|
529
553
|
private finishDelivery;
|