agent-console-server 3.7.0 → 3.8.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/dist/{HostCloseCode-eTYq6aIa.js → EphemeralAgentEventTypes-Ctmqlyvj.js} +15 -15
- package/dist/{spawnPtyShell-CNDdpI2T.js → agentConsoleServerCommand-D-Uv3ME1.js} +991 -323
- package/dist/cli.js +2 -112
- package/dist/{contracts-DQwqr8CH.d.ts → contracts-CDeSer-r.d.ts} +1 -1
- package/dist/contracts.d.ts +1 -1
- package/dist/contracts.js +1 -1
- package/dist/index.d.ts +126 -8
- package/dist/index.js +3 -3
- package/package.json +11 -7
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import { SITE_NAME, createUniqueArraySchema } from "@esposter/shared";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/services/constants.ts
|
|
4
|
+
const DEFAULT_APP_ORIGIN = "https://esposter.com";
|
|
5
|
+
const DEFAULT_HOSTNAME = "127.0.0.1";
|
|
6
|
+
const DEFAULT_PORT = 7437;
|
|
7
|
+
const HOST_SCHEME = `${SITE_NAME.toLowerCase()}-host`;
|
|
8
|
+
const PAIRING_CODE_PARAMETER = "code";
|
|
9
|
+
const PAIRING_HASH_PARAMETER = "host";
|
|
10
|
+
const SHELL_OUTPUT_LENGTH = 1e5;
|
|
11
|
+
const SCHEME_PAIRING_CODE_DURATION = Temporal.Duration.from({ minutes: 1 }).total("milliseconds");
|
|
12
|
+
//#endregion
|
|
3
13
|
//#region src/models/handshake/HandshakeMessageType.ts
|
|
4
14
|
let HandshakeMessageType = /* @__PURE__ */ function(HandshakeMessageType) {
|
|
5
15
|
HandshakeMessageType["Authenticate"] = "Authenticate";
|
|
@@ -11,16 +21,6 @@ let HandshakeMessageType = /* @__PURE__ */ function(HandshakeMessageType) {
|
|
|
11
21
|
}({});
|
|
12
22
|
const handshakeMessageTypeSchema = z.enum(HandshakeMessageType);
|
|
13
23
|
//#endregion
|
|
14
|
-
//#region src/services/constants.ts
|
|
15
|
-
const DEFAULT_APP_ORIGIN = "https://esposter.com";
|
|
16
|
-
const DEFAULT_HOSTNAME = "127.0.0.1";
|
|
17
|
-
const DEFAULT_PORT = 7437;
|
|
18
|
-
const HOST_SCHEME = `${SITE_NAME.toLowerCase()}-host`;
|
|
19
|
-
const PAIRING_CODE_PARAMETER = "code";
|
|
20
|
-
const PAIRING_HASH_PARAMETER = "host";
|
|
21
|
-
const SHELL_OUTPUT_LENGTH = 1e5;
|
|
22
|
-
const SCHEME_PAIRING_CODE_DURATION = Temporal.Duration.from({ minutes: 1 }).total("milliseconds");
|
|
23
|
-
//#endregion
|
|
24
24
|
//#region src/models/handshake/SignaturePurpose.ts
|
|
25
25
|
let SignaturePurpose = /* @__PURE__ */ function(SignaturePurpose) {
|
|
26
26
|
SignaturePurpose["HostProof"] = "HostProof";
|
|
@@ -734,9 +734,6 @@ const driverCommandSchema = z.discriminatedUnion("type", [
|
|
|
734
734
|
stopTaskCommandSchema
|
|
735
735
|
]);
|
|
736
736
|
//#endregion
|
|
737
|
-
//#region src/models/event/EphemeralAgentEventTypes.ts
|
|
738
|
-
const EphemeralAgentEventTypes = ["StreamDelta", "TurnUsage"];
|
|
739
|
-
//#endregion
|
|
740
737
|
//#region src/models/command/CloseShellCommand.ts
|
|
741
738
|
const closeShellCommandSchema = z.object({
|
|
742
739
|
...createBaseCommandSchema(z.literal("CloseShell")).shape,
|
|
@@ -835,4 +832,7 @@ let HostCloseCode = /* @__PURE__ */ function(HostCloseCode) {
|
|
|
835
832
|
return HostCloseCode;
|
|
836
833
|
}({});
|
|
837
834
|
//#endregion
|
|
838
|
-
|
|
835
|
+
//#region src/models/event/EphemeralAgentEventTypes.ts
|
|
836
|
+
const EphemeralAgentEventTypes = ["StreamDelta", "TurnUsage"];
|
|
837
|
+
//#endregion
|
|
838
|
+
export { eventsMessageSchema as $, serverMessageTypeSchema as $t, forkCommandSchema as A, permissionRequestEventSchema as At, getSignedText as B, commandOutputEventSchema as Bt, resumeCommandSchema as C, PermissionMode as Ct, permissionVerdictCommandSchema as D, permissionResolutionEventSchema as Dt, attachmentSchema as E, rateLimitEventSchema as Et, createBaseCommandSchema as F, fileRewindEventSchema as Ft, shellIdSchema as G, parentToolUseIdSchema as Gt, shellOutputMessageSchema as H, slashCommandSchema as Ht, CommandType as I, contextUsageEventSchema as It, sessionResetMessageSchema as J, AgentEventType as Jt, sessionsMessageSchema as K, messageUuidSchema as Kt, commandTypeSchema as L, compactionEventSchema as Lt, closeSessionCommandSchema as M, hookEventSchema as Mt, backgroundTasksCommandSchema as N, HookPhase as Nt, listSessionsCommandSchema as O, PermissionBehavior as Ot, sessionIdSchema as P, hookPhaseSchema as Pt, hostStoppingMessageSchema as Q, ServerMessageType as Qt, AttachmentMediaType as R, CompactionTrigger as Rt, rewindFilesCommandSchema as S, sessionInitEventSchema as St, promptCommandSchema as T, mcpServerSchema as Tt, shellOpenedMessageSchema as U, modelSchema as Ut, serverMessageSchema as V, capabilitiesEventSchema as Vt, shellClosedMessageSchema as W, assistantMessageEventSchema as Wt, proofMessageSchema as X, commandErrorMessageSchema as Xt, sessionOpenedMessageSchema as Y, agentEventTypeSchema as Yt, pairedMessageSchema as Z, authenticatedMessageSchema as Zt, driverCommandSchema as _, streamDeltaEventSchema as _t, pairMessageSchema as a, DEFAULT_APP_ORIGIN as an, tokenUsageSchema as at, setPermissionModeCommandSchema as b, sessionStateSchema as bt, authenticateMessageSchema as c, HOST_SCHEME as cn, toolProgressEventSchema as ct, shellCommandSchema as d, SCHEME_PAIRING_CODE_DURATION as dn, TodoStatus as dt, createBaseServerMessageSchema as en, agentEventSchema as et, shellResizeCommandSchema as f, SHELL_OUTPUT_LENGTH as fn, todoStatusSchema as ft, closeShellCommandSchema as g, subagentStatusSchema as gt, terminalSizeSchema as h, SubagentStatus as ht, revokeMessageSchema as i, handshakeMessageTypeSchema as in, turnResultEventSchema as it, createSessionCommandSchema as j, hostErrorEventSchema as jt, interruptCommandSchema as k, permissionBehaviorSchema as kt, createBaseHandshakeMessageSchema as l, PAIRING_CODE_PARAMETER as ln, todoUpdateEventSchema as lt, openShellCommandSchema as m, subagentEventSchema as mt, HostCloseCode as n, signaturePurposeSchema as nn, unknownEventSchema as nt, handOffMessageSchema as o, DEFAULT_HOSTNAME as on, toolUseEventSchema as ot, shellInputCommandSchema as p, thinkingEventSchema as pt, sessionSummarySchema as q, createBaseAgentEventSchema as qt, handshakeMessageSchema as r, HandshakeMessageType as rn, turnUsageEventSchema as rt, challengeMessageSchema as s, DEFAULT_PORT as sn, toolResultEventSchema as st, EphemeralAgentEventTypes as t, SignaturePurpose as tn, userMessageEventSchema as tt, commandSchema as u, PAIRING_HASH_PARAMETER as un, todoSchema as ut, stopTaskCommandSchema as v, sessionStateEventSchema as vt, resumeAtCommandSchema as w, permissionModeSchema as wt, setModelCommandSchema as x, sessionSettingsEventSchema as xt, slashCommandCommandSchema as y, SessionState as yt, attachmentMediaTypeSchema as z, compactionTriggerSchema as zt };
|