hyperbrane 0.1.2 → 0.2.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/README.md +67 -25
- package/dist/agent/agentClient.d.ts +5 -0
- package/dist/agent/agentClient.js +4 -0
- package/dist/agent/agentService.d.ts +9 -37
- package/dist/agent/agentService.js +62 -322
- package/dist/agent/agentStorage.d.ts +1 -20
- package/dist/agent/agentStorage.js +0 -30
- package/dist/agent/api.d.ts +80 -151
- package/dist/agent/api.js +1 -8
- package/dist/agent/client.d.ts +3 -1
- package/dist/agent/client.js +2 -3
- package/dist/agent/control.d.ts +23 -0
- package/dist/agent/control.js +479 -0
- package/dist/agent/hostTranscript.d.ts +0 -6
- package/dist/agent/hostTranscript.js +3 -14
- package/dist/agent/session/backend.d.ts +17 -32
- package/dist/agent/session/claude/home.d.ts +0 -1
- package/dist/agent/session/claude/home.js +0 -1
- package/dist/agent/session/claude/provision.d.ts +10 -0
- package/dist/agent/session/claude/provision.js +17 -0
- package/dist/agent/session/claude/transcript.d.ts +2 -7
- package/dist/agent/session/claude/transcript.js +68 -14
- package/dist/agent/session/client.d.ts +1 -10
- package/dist/agent/session/client.js +0 -3
- package/dist/agent/session/codex/provision.d.ts +14 -0
- package/dist/agent/session/codex/provision.js +25 -0
- package/dist/agent/session/fileTranscript.d.ts +6 -49
- package/dist/agent/session/fileTranscript.js +26 -82
- package/dist/agent/session/install.d.ts +5 -0
- package/dist/agent/session/install.js +35 -0
- package/dist/agent/session/sessionStorage.d.ts +4 -35
- package/dist/agent/session/sessionStorage.js +10 -16
- package/dist/agent/session/sharedConnection.d.ts +0 -8
- package/dist/agent/session/sharedConnection.js +0 -7
- package/dist/agent/session/storedTranscripts.d.ts +1 -6
- package/dist/agent/session/storedTranscripts.js +0 -3
- package/dist/agent/session/worker/jsonRpc.d.ts +2 -13
- package/dist/agent/session/worker/jsonRpc.js +2 -11
- package/dist/agent/session/worker/protocol.d.ts +26 -20
- package/dist/agent/session/worker/protocol.js +29 -18
- package/dist/agent/session/worker/workerParams.d.ts +0 -5
- package/dist/agent/session/worker/workerParams.js +14 -14
- package/dist/agent/session/workerConnection.d.ts +2 -13
- package/dist/agent/session/workerConnection.js +7 -12
- package/dist/agent/session/workerGatewayConnection.d.ts +18 -0
- package/dist/agent/session/workerGatewayConnection.js +86 -0
- package/dist/agent/vendor-types/manifest.json +87 -0
- package/dist/agent/workerBundle.d.ts +4 -19
- package/dist/agent/workerBundle.generated.js +1 -1
- package/dist/agent/workerBundle.js +3 -30
- package/dist/agent/workerReplacement.d.ts +3 -0
- package/dist/agent/workerReplacement.js +49 -0
- package/dist/cli/agent.js +31 -16
- package/dist/cli/command.d.ts +10 -11
- package/dist/cli/command.js +0 -4
- package/dist/cli/dimension.js +6 -6
- package/dist/cli/gateway.js +3 -6
- package/dist/cli/main.js +14 -31
- package/dist/cli/streamPrinter.d.ts +2 -10
- package/dist/cli/streamPrinter.js +16 -46
- package/dist/cli/table.d.ts +0 -3
- package/dist/cli/table.js +0 -4
- package/dist/dimension/api.d.ts +39 -27
- package/dist/dimension/api.js +28 -47
- package/dist/dimension/client.d.ts +5 -0
- package/dist/dimension/client.js +4 -0
- package/dist/dimension/control.d.ts +21 -0
- package/dist/dimension/control.js +328 -0
- package/dist/dimension/image.d.ts +0 -5
- package/dist/dimension/image.js +0 -8
- package/dist/dimension/imageFiles.generated.js +1 -1
- package/dist/dimension/paths.d.ts +5 -4
- package/dist/dimension/paths.js +15 -6
- package/dist/dimension/service.d.ts +8 -24
- package/dist/dimension/service.js +60 -228
- package/dist/dimension/transport-worker.d.ts +1 -0
- package/dist/dimension/transport-worker.js +151 -0
- package/dist/dimension/transportBundle.d.ts +2 -0
- package/dist/dimension/transportBundle.generated.d.ts +1 -0
- package/dist/dimension/transportBundle.generated.js +2 -0
- package/dist/dimension/transportBundle.js +4 -0
- package/dist/dimension/transportClient.d.ts +10 -0
- package/dist/dimension/transportClient.js +115 -0
- package/dist/dimension/transportProtocol.d.ts +53 -0
- package/dist/dimension/transportProtocol.js +8 -0
- package/dist/index.d.ts +5 -9
- package/dist/index.js +5 -19
- package/dist/lib/control.d.ts +8 -0
- package/dist/lib/control.js +62 -0
- package/dist/lib/docker.d.ts +0 -22
- package/dist/lib/docker.js +0 -10
- package/dist/lib/image.d.ts +0 -3
- package/dist/lib/image.js +0 -2
- package/dist/lib/jsonDirectory.d.ts +0 -13
- package/dist/lib/jsonDirectory.js +10 -15
- package/dist/lib/scriptBundle.d.ts +6 -0
- package/dist/lib/scriptBundle.js +28 -0
- package/dist/lib/sh.d.ts +2 -0
- package/dist/lib/sh.js +8 -0
- package/dist/lib/sleep.d.ts +0 -1
- package/dist/lib/sleep.js +0 -1
- package/dist/lib/streamFetch.d.ts +15 -0
- package/dist/lib/streamFetch.js +150 -0
- package/dist/lib/tar.d.ts +0 -1
- package/dist/lib/tar.js +5 -11
- package/dist/portal-gateway/api.d.ts +13 -44
- package/dist/portal-gateway/api.js +1 -3
- package/dist/portal-gateway/control.d.ts +42 -0
- package/dist/portal-gateway/control.js +657 -0
- package/dist/portal-gateway/gatewayClient.d.ts +5 -0
- package/dist/portal-gateway/gatewayClient.js +4 -0
- package/dist/portal-gateway/gatewayService.d.ts +8 -38
- package/dist/portal-gateway/gatewayService.js +68 -254
- package/dist/portal-gateway/image.d.ts +0 -1
- package/dist/portal-gateway/image.js +0 -2
- package/dist/portal-gateway/imageFiles.generated.js +2 -2
- package/dist/portal-gateway/portalClient.d.ts +5 -0
- package/dist/portal-gateway/portalClient.js +4 -0
- package/dist/portal-gateway/portalService.d.ts +5 -47
- package/dist/portal-gateway/portalService.js +19 -349
- package/dist/portal-gateway/transport-worker.d.ts +1 -0
- package/dist/portal-gateway/transport-worker.js +205 -0
- package/dist/portal-gateway/transportBundle.d.ts +2 -0
- package/dist/portal-gateway/transportBundle.generated.d.ts +1 -0
- package/dist/portal-gateway/transportBundle.generated.js +2 -0
- package/dist/portal-gateway/transportBundle.js +4 -0
- package/dist/portal-gateway/upstream.d.ts +0 -81
- package/dist/portal-gateway/upstream.js +0 -1
- package/dist/sandbox/api.d.ts +121 -187
- package/dist/sandbox/api.js +5 -7
- package/dist/sandbox/client.d.ts +2 -0
- package/dist/sandbox/client.js +4 -0
- package/dist/sandbox/data-endpoints/dataEndpoints.d.ts +13 -0
- package/dist/sandbox/data-endpoints/dataEndpoints.js +100 -0
- package/dist/sandbox/data-endpoints/firewalledPorts.d.ts +4 -0
- package/dist/sandbox/data-endpoints/firewalledPorts.js +28 -0
- package/dist/sandbox/lib/httpOverStream.d.ts +3 -0
- package/dist/sandbox/lib/httpOverStream.js +21 -0
- package/dist/sandbox/lib/remoteFileOperations.d.ts +10 -0
- package/dist/sandbox/lib/remoteFileOperations.js +70 -0
- package/dist/sandbox/lib/shellCommand.d.ts +3 -0
- package/dist/sandbox/lib/shellCommand.js +7 -0
- package/dist/sandbox/providers/boat/boatService.d.ts +2 -0
- package/dist/sandbox/providers/boat/boatService.js +321 -0
- package/dist/sandbox/providers/exedev/exeDevService.d.ts +2 -0
- package/dist/sandbox/providers/exedev/exeDevService.js +127 -0
- package/dist/sandbox/providers/exedev/exeDevToken.d.ts +1 -0
- package/dist/sandbox/providers/exedev/exeDevToken.js +54 -0
- package/dist/sandbox/providers/local/localService.d.ts +2 -0
- package/dist/sandbox/providers/local/localService.js +219 -0
- package/dist/sandbox/providers/ssh/sshService.d.ts +2 -0
- package/dist/sandbox/providers/ssh/sshService.js +82 -0
- package/dist/sandbox/providers/ssh/sshTransport.d.ts +12 -0
- package/dist/sandbox/providers/ssh/sshTransport.js +216 -0
- package/dist/sandbox/service.d.ts +2 -0
- package/dist/sandbox/service.js +18 -0
- package/dist/sandbox/storage/descriptors.d.ts +6 -0
- package/dist/sandbox/storage/descriptors.js +25 -0
- package/dist/sandbox/storage/sandboxStorage.d.ts +11 -0
- package/dist/sandbox/storage/sandboxStorage.js +42 -0
- package/dist/upstreams/anthropic.d.ts +0 -5
- package/dist/upstreams/anthropic.js +1 -8
- package/dist/upstreams/index.d.ts +2 -6
- package/dist/upstreams/index.js +0 -4
- package/dist/upstreams/openai.d.ts +0 -5
- package/dist/upstreams/openai.js +1 -13
- package/package.json +12 -4
- package/dist/agent/gatewaySignIns.d.ts +0 -5
- package/dist/agent/gatewaySignIns.js +0 -11
- package/dist/agent/session/codex/home.d.ts +0 -2
- package/dist/agent/session/codex/home.js +0 -4
- package/dist/agent/session/codex/messages.d.ts +0 -30
- package/dist/agent/session/codex/messages.js +0 -135
- package/dist/agent/session/codex/transcript.d.ts +0 -12
- package/dist/agent/session/codex/transcript.js +0 -22
- package/dist/agent/session/sdkMessages.d.ts +0 -15
- package/dist/agent/session/sdkMessages.js +0 -28
- package/dist/agent/session/workerSseConnection.d.ts +0 -31
- package/dist/agent/session/workerSseConnection.js +0 -76
- package/dist/agent/vendor-types/codex/app-server/AbsolutePathBuf.d.ts +0 -10
- package/dist/agent/vendor-types/codex/app-server/AbsolutePathBuf.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/FunctionCallOutputBody.d.ts +0 -2
- package/dist/agent/vendor-types/codex/app-server/FunctionCallOutputBody.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/FunctionCallOutputContentItem.d.ts +0 -22
- package/dist/agent/vendor-types/codex/app-server/FunctionCallOutputContentItem.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/ImageDetail.d.ts +0 -1
- package/dist/agent/vendor-types/codex/app-server/ImageDetail.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/ImageGenerationFailure.d.ts +0 -5
- package/dist/agent/vendor-types/codex/app-server/ImageGenerationFailure.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/ImageGenerationItem.d.ts +0 -11
- package/dist/agent/vendor-types/codex/app-server/ImageGenerationItem.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/LegacyAppPathString.d.ts +0 -23
- package/dist/agent/vendor-types/codex/app-server/LegacyAppPathString.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/MessagePhase.d.ts +0 -7
- package/dist/agent/vendor-types/codex/app-server/MessagePhase.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/ReasoningEffort.d.ts +0 -4
- package/dist/agent/vendor-types/codex/app-server/ReasoningEffort.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/SleepItem.d.ts +0 -7
- package/dist/agent/vendor-types/codex/app-server/SleepItem.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/WebSearchItem.d.ts +0 -14
- package/dist/agent/vendor-types/codex/app-server/WebSearchItem.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/serde_json/JsonValue.d.ts +0 -3
- package/dist/agent/vendor-types/codex/app-server/serde_json/JsonValue.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/AgentMessageDelivery.d.ts +0 -1
- package/dist/agent/vendor-types/codex/app-server/v2/AgentMessageDelivery.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/AsyncUserInputQuestion.d.ts +0 -4
- package/dist/agent/vendor-types/codex/app-server/v2/AsyncUserInputQuestion.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/ByteRange.d.ts +0 -4
- package/dist/agent/vendor-types/codex/app-server/v2/ByteRange.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/CollabAgentState.d.ts +0 -5
- package/dist/agent/vendor-types/codex/app-server/v2/CollabAgentState.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/CollabAgentStatus.d.ts +0 -1
- package/dist/agent/vendor-types/codex/app-server/v2/CollabAgentStatus.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/CollabAgentTool.d.ts +0 -1
- package/dist/agent/vendor-types/codex/app-server/v2/CollabAgentTool.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/CollabAgentToolCallStatus.d.ts +0 -1
- package/dist/agent/vendor-types/codex/app-server/v2/CollabAgentToolCallStatus.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/CommandAction.d.ts +0 -19
- package/dist/agent/vendor-types/codex/app-server/v2/CommandAction.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/CommandExecutionSource.d.ts +0 -1
- package/dist/agent/vendor-types/codex/app-server/v2/CommandExecutionSource.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/CommandExecutionStatus.d.ts +0 -1
- package/dist/agent/vendor-types/codex/app-server/v2/CommandExecutionStatus.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/DynamicToolCallOutputContentItem.d.ts +0 -10
- package/dist/agent/vendor-types/codex/app-server/v2/DynamicToolCallOutputContentItem.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/DynamicToolCallStatus.d.ts +0 -1
- package/dist/agent/vendor-types/codex/app-server/v2/DynamicToolCallStatus.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/FileUpdateChange.d.ts +0 -6
- package/dist/agent/vendor-types/codex/app-server/v2/FileUpdateChange.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/HookPromptFragment.d.ts +0 -4
- package/dist/agent/vendor-types/codex/app-server/v2/HookPromptFragment.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/McpAppDisplayMode.d.ts +0 -1
- package/dist/agent/vendor-types/codex/app-server/v2/McpAppDisplayMode.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/McpAppUi.d.ts +0 -8
- package/dist/agent/vendor-types/codex/app-server/v2/McpAppUi.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/McpToolCallAppContext.d.ts +0 -7
- package/dist/agent/vendor-types/codex/app-server/v2/McpToolCallAppContext.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/McpToolCallError.d.ts +0 -3
- package/dist/agent/vendor-types/codex/app-server/v2/McpToolCallError.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/McpToolCallResult.d.ts +0 -6
- package/dist/agent/vendor-types/codex/app-server/v2/McpToolCallResult.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/McpToolCallStatus.d.ts +0 -1
- package/dist/agent/vendor-types/codex/app-server/v2/McpToolCallStatus.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/MemoryCitation.d.ts +0 -5
- package/dist/agent/vendor-types/codex/app-server/v2/MemoryCitation.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/MemoryCitationEntry.d.ts +0 -6
- package/dist/agent/vendor-types/codex/app-server/v2/MemoryCitationEntry.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/PatchApplyStatus.d.ts +0 -1
- package/dist/agent/vendor-types/codex/app-server/v2/PatchApplyStatus.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/PatchChangeKind.d.ts +0 -8
- package/dist/agent/vendor-types/codex/app-server/v2/PatchChangeKind.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/SubAgentActivityKind.d.ts +0 -1
- package/dist/agent/vendor-types/codex/app-server/v2/SubAgentActivityKind.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/TextElement.d.ts +0 -11
- package/dist/agent/vendor-types/codex/app-server/v2/TextElement.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/ThreadItem.d.ts +0 -215
- package/dist/agent/vendor-types/codex/app-server/v2/ThreadItem.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/UserInput.d.ts +0 -35
- package/dist/agent/vendor-types/codex/app-server/v2/UserInput.js +0 -2
- package/dist/agent/vendor-types/codex/app-server/v2/WebSearchAction.d.ts +0 -14
- package/dist/agent/vendor-types/codex/app-server/v2/WebSearchAction.js +0 -2
- package/dist/cli/services.d.ts +0 -19
- package/dist/cli/services.js +0 -34
- package/dist/dimension/http.d.ts +0 -7
- package/dist/dimension/http.js +0 -77
- package/dist/dimension/storage.d.ts +0 -39
- package/dist/dimension/storage.js +0 -79
- package/dist/portal-gateway/fakes.d.ts +0 -3
- package/dist/portal-gateway/fakes.js +0 -11
- package/dist/portal-gateway/gatewayStorage.d.ts +0 -66
- package/dist/portal-gateway/gatewayStorage.js +0 -125
- package/dist/portal-gateway/portalStorage.d.ts +0 -34
- package/dist/portal-gateway/portalStorage.js +0 -44
- package/dist/sandbox/boatService.d.ts +0 -52
- package/dist/sandbox/boatService.js +0 -343
- package/dist/sandbox/containerService.d.ts +0 -15
- package/dist/sandbox/containerService.js +0 -184
- package/dist/sandbox/endpointProxy.d.ts +0 -90
- package/dist/sandbox/endpointProxy.js +0 -716
- package/dist/sandbox/exeDevAuth.d.ts +0 -16
- package/dist/sandbox/exeDevAuth.js +0 -49
- package/dist/sandbox/localService.d.ts +0 -19
- package/dist/sandbox/localService.js +0 -200
- package/dist/sandbox/sseConnection.d.ts +0 -41
- package/dist/sandbox/sseConnection.js +0 -166
- package/dist/sandbox/sshService.d.ts +0 -30
- package/dist/sandbox/sshService.js +0 -680
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { JsonValue } from "./serde_json/JsonValue";
|
|
2
|
-
import type { WebSearchAction } from "./v2/WebSearchAction";
|
|
3
|
-
export type WebSearchItem = {
|
|
4
|
-
id: string;
|
|
5
|
-
query: string;
|
|
6
|
-
action: WebSearchAction | null;
|
|
7
|
-
/**
|
|
8
|
-
* Structured search results returned out-of-band by standalone web search.
|
|
9
|
-
*
|
|
10
|
-
* These stay as opaque JSON at the extension/app-server boundary so new
|
|
11
|
-
* result fields and result types can pass through without a Codex release.
|
|
12
|
-
*/
|
|
13
|
-
results: Array<JsonValue> | null;
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type AgentMessageDelivery = "async";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type CollabAgentStatus = "pendingInit" | "running" | "interrupted" | "completed" | "errored" | "shutdown" | "notFound";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type CollabAgentTool = "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent" | "sendMessage" | "followupTask" | "interruptAgent" | "listAgents";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type CollabAgentToolCallStatus = "inProgress" | "completed" | "failed" | "interrupted";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { LegacyAppPathString } from "../LegacyAppPathString";
|
|
2
|
-
export type CommandAction = {
|
|
3
|
-
"type": "read";
|
|
4
|
-
command: string;
|
|
5
|
-
name: string;
|
|
6
|
-
path: LegacyAppPathString;
|
|
7
|
-
} | {
|
|
8
|
-
"type": "listFiles";
|
|
9
|
-
command: string;
|
|
10
|
-
path: string | null;
|
|
11
|
-
} | {
|
|
12
|
-
"type": "search";
|
|
13
|
-
command: string;
|
|
14
|
-
query: string | null;
|
|
15
|
-
path: string | null;
|
|
16
|
-
} | {
|
|
17
|
-
"type": "unknown";
|
|
18
|
-
command: string;
|
|
19
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type CommandExecutionSource = "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type CommandExecutionStatus = "inProgress" | "completed" | "failed" | "declined";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type DynamicToolCallStatus = "inProgress" | "completed" | "failed";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type McpAppDisplayMode = "inline" | "fullscreen";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { McpAppDisplayMode } from "./McpAppDisplayMode";
|
|
2
|
-
/**
|
|
3
|
-
* UI resource and display preference for model invocations, captured from the tool descriptor.
|
|
4
|
-
*/
|
|
5
|
-
export type McpAppUi = {
|
|
6
|
-
resourceUri: string;
|
|
7
|
-
preferredModelDisplayMode: McpAppDisplayMode;
|
|
8
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type McpToolCallStatus = "inProgress" | "completed" | "failed";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type PatchApplyStatus = "inProgress" | "completed" | "failed" | "declined";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type SubAgentActivityKind = "started" | "interacted" | "interrupted" | "completed";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ByteRange } from "./ByteRange";
|
|
2
|
-
export type TextElement = {
|
|
3
|
-
/**
|
|
4
|
-
* Byte range in the parent `text` buffer that this element occupies.
|
|
5
|
-
*/
|
|
6
|
-
byteRange: ByteRange;
|
|
7
|
-
/**
|
|
8
|
-
* Optional human-readable placeholder for the element, displayed in the UI.
|
|
9
|
-
*/
|
|
10
|
-
placeholder: string | null;
|
|
11
|
-
};
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
import type { FunctionCallOutputBody } from "../FunctionCallOutputBody";
|
|
2
|
-
import type { ImageGenerationItem } from "../ImageGenerationItem";
|
|
3
|
-
import type { LegacyAppPathString } from "../LegacyAppPathString";
|
|
4
|
-
import type { MessagePhase } from "../MessagePhase";
|
|
5
|
-
import type { ReasoningEffort } from "../ReasoningEffort";
|
|
6
|
-
import type { SleepItem } from "../SleepItem";
|
|
7
|
-
import type { WebSearchItem } from "../WebSearchItem";
|
|
8
|
-
import type { JsonValue } from "../serde_json/JsonValue";
|
|
9
|
-
import type { AgentMessageDelivery } from "./AgentMessageDelivery";
|
|
10
|
-
import type { AsyncUserInputQuestion } from "./AsyncUserInputQuestion";
|
|
11
|
-
import type { CollabAgentState } from "./CollabAgentState";
|
|
12
|
-
import type { CollabAgentTool } from "./CollabAgentTool";
|
|
13
|
-
import type { CollabAgentToolCallStatus } from "./CollabAgentToolCallStatus";
|
|
14
|
-
import type { CommandAction } from "./CommandAction";
|
|
15
|
-
import type { CommandExecutionSource } from "./CommandExecutionSource";
|
|
16
|
-
import type { CommandExecutionStatus } from "./CommandExecutionStatus";
|
|
17
|
-
import type { DynamicToolCallOutputContentItem } from "./DynamicToolCallOutputContentItem";
|
|
18
|
-
import type { DynamicToolCallStatus } from "./DynamicToolCallStatus";
|
|
19
|
-
import type { FileUpdateChange } from "./FileUpdateChange";
|
|
20
|
-
import type { HookPromptFragment } from "./HookPromptFragment";
|
|
21
|
-
import type { McpAppUi } from "./McpAppUi";
|
|
22
|
-
import type { McpToolCallAppContext } from "./McpToolCallAppContext";
|
|
23
|
-
import type { McpToolCallError } from "./McpToolCallError";
|
|
24
|
-
import type { McpToolCallResult } from "./McpToolCallResult";
|
|
25
|
-
import type { McpToolCallStatus } from "./McpToolCallStatus";
|
|
26
|
-
import type { MemoryCitation } from "./MemoryCitation";
|
|
27
|
-
import type { PatchApplyStatus } from "./PatchApplyStatus";
|
|
28
|
-
import type { SubAgentActivityKind } from "./SubAgentActivityKind";
|
|
29
|
-
import type { UserInput } from "./UserInput";
|
|
30
|
-
export type ThreadItem = {
|
|
31
|
-
"type": "userMessage";
|
|
32
|
-
id: string;
|
|
33
|
-
clientId: string | null;
|
|
34
|
-
content: Array<UserInput>;
|
|
35
|
-
} | {
|
|
36
|
-
"type": "hookPrompt";
|
|
37
|
-
id: string;
|
|
38
|
-
fragments: Array<HookPromptFragment>;
|
|
39
|
-
} | {
|
|
40
|
-
"type": "agentMessage";
|
|
41
|
-
id: string;
|
|
42
|
-
text: string;
|
|
43
|
-
phase: MessagePhase | null;
|
|
44
|
-
memoryCitation: MemoryCitation | null;
|
|
45
|
-
delivery: AgentMessageDelivery | null;
|
|
46
|
-
questions: Array<AsyncUserInputQuestion> | null;
|
|
47
|
-
} | {
|
|
48
|
-
"type": "functionCallOutput";
|
|
49
|
-
id: string;
|
|
50
|
-
name: string;
|
|
51
|
-
namespace: string | null;
|
|
52
|
-
output: FunctionCallOutputBody;
|
|
53
|
-
} | {
|
|
54
|
-
"type": "plan";
|
|
55
|
-
id: string;
|
|
56
|
-
text: string;
|
|
57
|
-
} | {
|
|
58
|
-
"type": "reasoning";
|
|
59
|
-
id: string;
|
|
60
|
-
summary: Array<string>;
|
|
61
|
-
content: Array<string>;
|
|
62
|
-
} | {
|
|
63
|
-
"type": "commandExecution";
|
|
64
|
-
id: string;
|
|
65
|
-
/**
|
|
66
|
-
* Trusted first-party plugin id when this command resolves to one plugin script.
|
|
67
|
-
*/
|
|
68
|
-
pluginId: string | null;
|
|
69
|
-
/**
|
|
70
|
-
* Safe plugin-relative path when this command resolves to one plugin script.
|
|
71
|
-
*/
|
|
72
|
-
scriptPath: string | null;
|
|
73
|
-
/**
|
|
74
|
-
* The command to be executed.
|
|
75
|
-
*/
|
|
76
|
-
command: string;
|
|
77
|
-
/**
|
|
78
|
-
* The command's working directory.
|
|
79
|
-
*/
|
|
80
|
-
cwd: LegacyAppPathString;
|
|
81
|
-
/**
|
|
82
|
-
* Identifier for the underlying PTY process (when available).
|
|
83
|
-
*/
|
|
84
|
-
processId: string | null;
|
|
85
|
-
source: CommandExecutionSource;
|
|
86
|
-
status: CommandExecutionStatus;
|
|
87
|
-
/**
|
|
88
|
-
* A best-effort parsing of the command to understand the action(s) it will perform.
|
|
89
|
-
* This returns a list of CommandAction objects because a single shell command may
|
|
90
|
-
* be composed of many commands piped together.
|
|
91
|
-
*/
|
|
92
|
-
commandActions: Array<CommandAction>;
|
|
93
|
-
/**
|
|
94
|
-
* The command's output, aggregated from stdout and stderr.
|
|
95
|
-
*/
|
|
96
|
-
aggregatedOutput: string | null;
|
|
97
|
-
/**
|
|
98
|
-
* The command's exit code.
|
|
99
|
-
*/
|
|
100
|
-
exitCode: number | null;
|
|
101
|
-
/**
|
|
102
|
-
* The duration of the command execution in milliseconds.
|
|
103
|
-
*/
|
|
104
|
-
durationMs: number | null;
|
|
105
|
-
} | {
|
|
106
|
-
"type": "fileChange";
|
|
107
|
-
id: string;
|
|
108
|
-
changes: Array<FileUpdateChange>;
|
|
109
|
-
status: PatchApplyStatus;
|
|
110
|
-
} | {
|
|
111
|
-
"type": "mcpToolCall";
|
|
112
|
-
id: string;
|
|
113
|
-
server: string;
|
|
114
|
-
tool: string;
|
|
115
|
-
status: McpToolCallStatus;
|
|
116
|
-
arguments: JsonValue;
|
|
117
|
-
appContext: McpToolCallAppContext | null;
|
|
118
|
-
/**
|
|
119
|
-
* Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.
|
|
120
|
-
*/
|
|
121
|
-
mcpAppResourceUri?: string;
|
|
122
|
-
/**
|
|
123
|
-
* Presentation captured from the invoked descriptor; absent in older history.
|
|
124
|
-
*/
|
|
125
|
-
mcpAppUi: McpAppUi | null;
|
|
126
|
-
pluginId: string | null;
|
|
127
|
-
readOnlyHint: boolean | null;
|
|
128
|
-
result: McpToolCallResult | null;
|
|
129
|
-
error: McpToolCallError | null;
|
|
130
|
-
/**
|
|
131
|
-
* The duration of the MCP tool call in milliseconds.
|
|
132
|
-
*/
|
|
133
|
-
durationMs: number | null;
|
|
134
|
-
} | {
|
|
135
|
-
"type": "dynamicToolCall";
|
|
136
|
-
id: string;
|
|
137
|
-
namespace: string | null;
|
|
138
|
-
tool: string;
|
|
139
|
-
arguments: JsonValue;
|
|
140
|
-
status: DynamicToolCallStatus;
|
|
141
|
-
contentItems: Array<DynamicToolCallOutputContentItem> | null;
|
|
142
|
-
success: boolean | null;
|
|
143
|
-
/**
|
|
144
|
-
* The duration of the dynamic tool call in milliseconds.
|
|
145
|
-
*/
|
|
146
|
-
durationMs: number | null;
|
|
147
|
-
} | {
|
|
148
|
-
"type": "collabAgentToolCall";
|
|
149
|
-
/**
|
|
150
|
-
* Unique identifier for this collab tool call.
|
|
151
|
-
*/
|
|
152
|
-
id: string;
|
|
153
|
-
/**
|
|
154
|
-
* Name of the collab tool that was invoked.
|
|
155
|
-
*/
|
|
156
|
-
tool: CollabAgentTool;
|
|
157
|
-
/**
|
|
158
|
-
* Current status of the collab tool call.
|
|
159
|
-
*/
|
|
160
|
-
status: CollabAgentToolCallStatus;
|
|
161
|
-
/**
|
|
162
|
-
* Thread ID of the agent issuing the collab request.
|
|
163
|
-
*/
|
|
164
|
-
senderThreadId: string;
|
|
165
|
-
/**
|
|
166
|
-
* Thread ID of the receiving agent, when applicable. In case of spawn operation,
|
|
167
|
-
* this corresponds to the newly spawned agent.
|
|
168
|
-
*/
|
|
169
|
-
receiverThreadIds: Array<string>;
|
|
170
|
-
/**
|
|
171
|
-
* Prompt text sent as part of the collab tool call, when available.
|
|
172
|
-
*/
|
|
173
|
-
prompt: string | null;
|
|
174
|
-
/**
|
|
175
|
-
* Model requested for the spawned agent, when applicable.
|
|
176
|
-
*/
|
|
177
|
-
model: string | null;
|
|
178
|
-
/**
|
|
179
|
-
* Reasoning effort requested for the spawned agent, when applicable.
|
|
180
|
-
*/
|
|
181
|
-
reasoningEffort: ReasoningEffort | null;
|
|
182
|
-
/**
|
|
183
|
-
* Last known status of the target agents, when available.
|
|
184
|
-
*/
|
|
185
|
-
agentsStates: {
|
|
186
|
-
[key in string]?: CollabAgentState;
|
|
187
|
-
};
|
|
188
|
-
} | {
|
|
189
|
-
"type": "subAgentActivity";
|
|
190
|
-
id: string;
|
|
191
|
-
kind: SubAgentActivityKind;
|
|
192
|
-
agentThreadId: string;
|
|
193
|
-
agentPath: string;
|
|
194
|
-
} | {
|
|
195
|
-
"type": "webSearch";
|
|
196
|
-
} & WebSearchItem | {
|
|
197
|
-
"type": "imageView";
|
|
198
|
-
id: string;
|
|
199
|
-
path: LegacyAppPathString;
|
|
200
|
-
} | {
|
|
201
|
-
"type": "sleep";
|
|
202
|
-
} & SleepItem | {
|
|
203
|
-
"type": "imageGeneration";
|
|
204
|
-
} & ImageGenerationItem | {
|
|
205
|
-
"type": "enteredReviewMode";
|
|
206
|
-
id: string;
|
|
207
|
-
review: string;
|
|
208
|
-
} | {
|
|
209
|
-
"type": "exitedReviewMode";
|
|
210
|
-
id: string;
|
|
211
|
-
review: string;
|
|
212
|
-
} | {
|
|
213
|
-
"type": "contextCompaction";
|
|
214
|
-
id: string;
|
|
215
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { ImageDetail } from "../ImageDetail";
|
|
2
|
-
import type { TextElement } from "./TextElement";
|
|
3
|
-
export type UserInput = {
|
|
4
|
-
"type": "text";
|
|
5
|
-
text: string;
|
|
6
|
-
/**
|
|
7
|
-
* UI-defined spans within `text` used to render or persist special elements.
|
|
8
|
-
*/
|
|
9
|
-
text_elements: Array<TextElement>;
|
|
10
|
-
} | {
|
|
11
|
-
"type": "image";
|
|
12
|
-
detail?: ImageDetail;
|
|
13
|
-
} & ({
|
|
14
|
-
url: string;
|
|
15
|
-
} | {
|
|
16
|
-
fileId: string;
|
|
17
|
-
}) | {
|
|
18
|
-
"type": "localImage";
|
|
19
|
-
detail?: ImageDetail;
|
|
20
|
-
path: string;
|
|
21
|
-
} | {
|
|
22
|
-
"type": "audio";
|
|
23
|
-
url: string;
|
|
24
|
-
} | {
|
|
25
|
-
"type": "localAudio";
|
|
26
|
-
path: string;
|
|
27
|
-
} | {
|
|
28
|
-
"type": "skill";
|
|
29
|
-
name: string;
|
|
30
|
-
path: string;
|
|
31
|
-
} | {
|
|
32
|
-
"type": "mention";
|
|
33
|
-
name: string;
|
|
34
|
-
path: string;
|
|
35
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type WebSearchAction = {
|
|
2
|
-
"type": "search";
|
|
3
|
-
query: string | null;
|
|
4
|
-
queries: Array<string> | null;
|
|
5
|
-
} | {
|
|
6
|
-
"type": "openPage";
|
|
7
|
-
url: string | null;
|
|
8
|
-
} | {
|
|
9
|
-
"type": "findInPage";
|
|
10
|
-
url: string | null;
|
|
11
|
-
pattern: string | null;
|
|
12
|
-
} | {
|
|
13
|
-
"type": "other";
|
|
14
|
-
};
|
package/dist/cli/services.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type AgentService } from "../agent/agentService.ts";
|
|
2
|
-
import { type DimensionService } from "../dimension/service.ts";
|
|
3
|
-
import { type DockerClient } from "../lib/docker.ts";
|
|
4
|
-
import type { Sandbox } from "../sandbox/api.ts";
|
|
5
|
-
import { type GatewayService } from "../portal-gateway/gatewayService.ts";
|
|
6
|
-
import { type PortalService } from "../portal-gateway/portalService.ts";
|
|
7
|
-
/** @sealed */
|
|
8
|
-
export type Services = {
|
|
9
|
-
readonly docker: DockerClient;
|
|
10
|
-
readonly dimensions: DimensionService;
|
|
11
|
-
readonly gateways: GatewayService;
|
|
12
|
-
readonly portals: PortalService;
|
|
13
|
-
readonly agents: AgentService;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Everything runs against `host`'s docker, with state in ~/.local/share/hyperbrane of its user: this
|
|
17
|
-
* machine by default, or e.g. an SSH sandbox to drive a remote server the same way.
|
|
18
|
-
*/
|
|
19
|
-
export declare function createServices(host?: Sandbox): Services;
|