agent-embassy 1.2.0 → 1.4.0
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 +41 -0
- package/CONTRIBUTING.md +50 -16
- package/README.md +57 -25
- package/README.zh-CN.md +45 -23
- package/SECURITY.md +68 -48
- package/dist/src/gateway/claude-helper-protocol.d.ts +1 -0
- package/dist/src/gateway/claude-helper-protocol.js +4 -2
- package/dist/src/gateway/claude-helper-protocol.js.map +1 -1
- package/dist/src/gateway/claude-helper-supervisor.d.ts +1 -0
- package/dist/src/gateway/claude-helper-supervisor.js +3 -1
- package/dist/src/gateway/claude-helper-supervisor.js.map +1 -1
- package/dist/src/gateway/claude-runtime.d.ts +0 -2
- package/dist/src/gateway/claude-runtime.js +6 -17
- package/dist/src/gateway/claude-runtime.js.map +1 -1
- package/dist/src/gateway/cli-copy.d.ts +1 -1
- package/dist/src/gateway/cli-copy.en.d.ts +4 -1
- package/dist/src/gateway/cli-copy.en.js +7 -3
- package/dist/src/gateway/cli-copy.en.js.map +1 -1
- package/dist/src/gateway/cli-copy.js +3 -0
- package/dist/src/gateway/cli-copy.js.map +1 -1
- package/dist/src/gateway/cli-copy.zh-CN.d.ts +4 -1
- package/dist/src/gateway/cli-copy.zh-CN.js +7 -3
- package/dist/src/gateway/cli-copy.zh-CN.js.map +1 -1
- package/dist/src/gateway/cli.d.ts +2 -5
- package/dist/src/gateway/cli.js +41 -67
- package/dist/src/gateway/cli.js.map +1 -1
- package/dist/src/gateway/codex-app-server.d.ts +2 -8
- package/dist/src/gateway/codex-app-server.js +36 -62
- package/dist/src/gateway/codex-app-server.js.map +1 -1
- package/dist/src/gateway/codex-local-transport.d.ts +4 -10
- package/dist/src/gateway/codex-local-transport.js +13 -16
- package/dist/src/gateway/codex-local-transport.js.map +1 -1
- package/dist/src/gateway/compatibility.d.ts +0 -27
- package/dist/src/gateway/compatibility.js +1 -101
- package/dist/src/gateway/compatibility.js.map +1 -1
- package/dist/src/gateway/config.d.ts +1 -4
- package/dist/src/gateway/config.js +0 -10
- package/dist/src/gateway/config.js.map +1 -1
- package/dist/src/gateway/control.d.ts +2 -21
- package/dist/src/gateway/control.js +7 -36
- 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 +21 -8
- package/dist/src/gateway/dashboard-copy.en.js +40 -27
- package/dist/src/gateway/dashboard-copy.en.js.map +1 -1
- package/dist/src/gateway/dashboard-copy.js +21 -8
- package/dist/src/gateway/dashboard-copy.js.map +1 -1
- package/dist/src/gateway/dashboard-copy.zh-CN.d.ts +21 -8
- package/dist/src/gateway/dashboard-copy.zh-CN.js +40 -27
- package/dist/src/gateway/dashboard-copy.zh-CN.js.map +1 -1
- package/dist/src/gateway/dashboard-model.d.ts +4 -9
- package/dist/src/gateway/dashboard-model.js +159 -46
- package/dist/src/gateway/dashboard-model.js.map +1 -1
- package/dist/src/gateway/dashboard.js +27 -16
- package/dist/src/gateway/dashboard.js.map +1 -1
- package/dist/src/gateway/instance-lease.d.ts +2 -3
- package/dist/src/gateway/instance-lease.js +17 -140
- package/dist/src/gateway/instance-lease.js.map +1 -1
- package/dist/src/gateway/live-dashboard-app/app.js +62 -63
- package/dist/src/gateway/live-dashboard-command.d.ts +5 -1
- package/dist/src/gateway/live-dashboard-command.js +8 -6
- package/dist/src/gateway/live-dashboard-command.js.map +1 -1
- package/dist/src/gateway/live-dashboard-http.d.ts +0 -4
- package/dist/src/gateway/live-dashboard-http.js +20 -94
- package/dist/src/gateway/live-dashboard-http.js.map +1 -1
- package/dist/src/gateway/live-dashboard-protocol.d.ts +1 -5
- package/dist/src/gateway/live-dashboard-protocol.js +0 -42
- package/dist/src/gateway/live-dashboard-protocol.js.map +1 -1
- package/dist/src/gateway/live-dashboard-server.d.ts +2 -2
- package/dist/src/gateway/live-dashboard-server.js +18 -4
- package/dist/src/gateway/live-dashboard-server.js.map +1 -1
- package/dist/src/gateway/live-dashboard.d.ts +3 -6
- package/dist/src/gateway/live-dashboard.js +6 -42
- package/dist/src/gateway/live-dashboard.js.map +1 -1
- package/dist/src/gateway/progress-watch-machine.d.ts +6 -5
- package/dist/src/gateway/progress-watch-machine.js +6 -6
- package/dist/src/gateway/progress-watch-machine.js.map +1 -1
- package/dist/src/gateway/provenance-envelope.d.ts +1 -0
- package/dist/src/gateway/provenance-envelope.js +11 -4
- package/dist/src/gateway/provenance-envelope.js.map +1 -1
- package/dist/src/gateway/providers.d.ts +2 -21
- package/dist/src/gateway/providers.js +21 -261
- package/dist/src/gateway/providers.js.map +1 -1
- package/dist/src/gateway/server.js +0 -3
- package/dist/src/gateway/server.js.map +1 -1
- package/dist/src/gateway/service.d.ts +5 -15
- package/dist/src/gateway/service.js +101 -265
- package/dist/src/gateway/service.js.map +1 -1
- package/dist/src/gateway/store.d.ts +9 -21
- package/dist/src/gateway/store.js +360 -140
- package/dist/src/gateway/store.js.map +1 -1
- package/dist/src/gateway/types.d.ts +1 -6
- package/dist/src/gateway/types.js.map +1 -1
- package/docs/CONFIGURATION.md +102 -0
- package/docs/CONFIGURATION.zh-CN.md +72 -0
- package/docs/DASHBOARD.md +103 -0
- package/docs/DASHBOARD.zh-CN.md +47 -0
- package/docs/DELIVERY.md +84 -0
- package/docs/DELIVERY.zh-CN.md +53 -0
- package/docs/GATEWAY-ARCHITECTURE.md +249 -153
- package/package.json +8 -4
- package/skills/embassy-peer/SKILL.md +25 -10
- package/dist/src/gateway/claude-compatibility-scratch.d.ts +0 -18
- package/dist/src/gateway/claude-compatibility-scratch.js +0 -158
- package/dist/src/gateway/claude-compatibility-scratch.js.map +0 -1
- package/dist/src/gateway/live-dashboard-bootstrap.d.ts +0 -36
- package/dist/src/gateway/live-dashboard-bootstrap.js +0 -176
- package/dist/src/gateway/live-dashboard-bootstrap.js.map +0 -1
- package/docs/DESIGN.md +0 -134
|
@@ -3,23 +3,12 @@ import type { GatewayConfig } from "./config.js";
|
|
|
3
3
|
import { type ProgressWatchMachine, type ProgressWatchOutcome } from "./progress-watch-machine.js";
|
|
4
4
|
import { type DeliveryState, type EnqueueMessageInput, type EnqueueMessageResult, type EnqueueNativeIngressInput, type EnqueueNativeReplyInput, type GatewayPrivateRouteInspection, type GatewayPublicSnapshot, type GatewayStoreDependencies, type InFlightMessageProgressState, type ObserveConnectorInput, type ObserveRouteInput, type PrivateEndpointIdentity, type PrivateRouteBinding, type ReanchorCodexRoutesInput, type ReanchorCodexRoutesResult, type RebindStaleRouteInput, type RegisterRouteInput, type RequeueInFlightMessageResult, type RemoveStaleCodexOrphanInput, type RemoveStaleCodexOrphanResult, type SettleMessageInput, type SettleMessageResult, type StaleCodexOrphanRemovalAuthority, type StaleCodexOrphanRemovalCommitProofInput, type TerminalMessageSettlement, type TransientQueuedMessage } from "./types.js";
|
|
5
5
|
export declare const GATEWAY_MAX_STATE_FILE_BYTES: number;
|
|
6
|
-
export type OpenProgressWatchInput = Readonly<{
|
|
7
|
-
conversationId: string;
|
|
8
|
-
ownerAlias: string;
|
|
9
|
-
workerAlias: string;
|
|
10
|
-
idleMs: number;
|
|
11
|
-
}>;
|
|
12
6
|
export type ProgressWatchAction = Readonly<{
|
|
13
7
|
type: "send_nudge";
|
|
14
8
|
conversationId: string;
|
|
15
9
|
ownerAlias: string;
|
|
16
10
|
workerAlias: string;
|
|
17
11
|
nudgeNumber: 1 | 2;
|
|
18
|
-
}> | Readonly<{
|
|
19
|
-
type: "notify_capability_degraded";
|
|
20
|
-
conversationId: string;
|
|
21
|
-
ownerAlias: string;
|
|
22
|
-
workerAlias: string;
|
|
23
12
|
}> | Readonly<{
|
|
24
13
|
type: "settled";
|
|
25
14
|
conversationId: string;
|
|
@@ -244,20 +233,16 @@ export declare class GatewayStore {
|
|
|
244
233
|
}>;
|
|
245
234
|
/** Bounded metadata-only graph inventory for controller inference. */
|
|
246
235
|
inspectPairs(): Promise<GatewayPairInput[]>;
|
|
247
|
-
/** Open one durable owner-ended watch on an exact consent edge. */
|
|
248
|
-
openProgressWatch(input: OpenProgressWatchInput): Promise<{
|
|
249
|
-
created: boolean;
|
|
250
|
-
watch: ProgressWatchMachine;
|
|
251
|
-
}>;
|
|
252
236
|
inspectProgressWatches(): Promise<ProgressWatchMachine[]>;
|
|
237
|
+
/** Bind one restarted route-capability watch to its first exact owner send. */
|
|
238
|
+
bindProgressWatchConversation(input: Readonly<{
|
|
239
|
+
conversationId: string;
|
|
240
|
+
ownerAlias: string;
|
|
241
|
+
workerAlias: string;
|
|
242
|
+
}>): Promise<boolean>;
|
|
253
243
|
inspectCompatibilityAttestation(surface: CompatibilitySurface, version: string): Promise<CompatibilityAttestation | undefined>;
|
|
254
244
|
inspectCompatibilityAttestations(): Promise<CompatibilityAttestation[]>;
|
|
255
245
|
recordCompatibilityAttestation(attestation: CompatibilityAttestation): Promise<void>;
|
|
256
|
-
touchProgressWatch(input: Readonly<{
|
|
257
|
-
conversationId: string;
|
|
258
|
-
actorAlias: string;
|
|
259
|
-
workerReportedComplete?: true;
|
|
260
|
-
}>): Promise<boolean>;
|
|
261
246
|
touchProgressWatchesForAlias(alias: string): Promise<number>;
|
|
262
247
|
settleProgressWatch(input: Readonly<{
|
|
263
248
|
conversationId: string;
|
|
@@ -353,9 +338,12 @@ export declare class GatewayStore {
|
|
|
353
338
|
private applyProgressWatchMessageActivity;
|
|
354
339
|
private progressWatchDueTransition;
|
|
355
340
|
private commitProgressWatchNudge;
|
|
341
|
+
private installProgressWatch;
|
|
342
|
+
private requireProgressWatchJournalCapacity;
|
|
356
343
|
private appendProgressWatchEvent;
|
|
357
344
|
private settleProgressWatchesForAliases;
|
|
358
345
|
private settleProgressWatchesForPair;
|
|
346
|
+
private bindRouteProgressWatchConversation;
|
|
359
347
|
private finishMetadata;
|
|
360
348
|
private validateAffectedInFlightSettlements;
|
|
361
349
|
private validateAffectedPairInFlightSettlements;
|