Files
dev/go/frame/testdata/http.json
zeekayandHanzo Dev e03c25e44b ZAP calls: descriptor, session and shell snapshot ride the session, not HTTP
A ZAP runtime has no HTTP. The three questions a client asks before it opens
the frame stream are methods 1, 2 and 3 on the same session, answered with the
body the Dev server's route returns: the client (packages/client-runtime), the
local server (apps/server/src/zap, the same code as the routes) and the wasm
adapter (frame.Adapter.Call, Snapshot) all speak them. A call's promise id has
bit 30 set so a response says what it answers; the bearer authenticates the
stream on whichever envelope carries it, and only the descriptor is public.


Co-authored-by: Hanzo Dev <[email protected]>
2026-11-21 01:52:31 -08:00

1 line
9.5 KiB
JSON

{"descriptor":{"environmentId":"ec08e842-07b8-4297-87c9-3b1f4a91df02","label":"Hanzo Cloud","platform":{"os":"darwin","arch":"arm64","machine":"laptop"},"serverVersion":"0.1.10","orchestrationProtocolVersion":2,"databaseMigration":99,"capabilities":{"repositoryIdentity":true,"connectionProbe":true,"accessTokenRenewal":true,"attachmentUploads":true,"questionAttachments":true,"fileAttachments":{"maxUploadBytes":52428800},"pullRequests":true,"pullRequestChecks":true,"issues":true,"sideChats":true,"vcsBranchStatus":true,"inlineMessageContext":true,"requiredWorktreeBootstrap":true,"threadSettlement":true,"threadAutoSettlement":true,"storageCleanup":true,"storageCleanupRun":true,"databaseStorage":true,"otlpEndpointCheck":true,"secretSourceCheck":true,"projectWorktreeCleanup":true,"settledWorktreeCleanup":true,"worktreesDirectory":true,"fastWorktreeCheckout":true,"threadAutoSettlementScope":true,"threadRestartContinuation":true,"projectSettingsOverrides":true,"projectProviderInstanceOverrides":true,"threadSnooze":true,"threadForceStop":true,"environmentThemes":true,"usageLimitSources":true,"providerWorkspaceSnapshotsOnDemand":true,"modelCatalogRefresh":true,"usagePriceOverrides":true,"usageModelAliases":true,"threadPinning":true,"threadPinReorder":true,"threadActiveReorder":true,"threadAutoSettleOptOut":true,"threadProjectFromScratch":true,"threadTitleRegeneration":true,"threadVisitedTracking":true,"threadPullRequestLinking":true,"serverResolvedCommandContext":true,"threadStop":true,"localServerStop":true,"threadPullRequests":true,"threadPullRequestWatch":true,"pullRequestStackActions":true,"npmReleaseLookup":true,"agentActivityPublishing":false,"projectCloneTracking":true,"projectOrganization":true,"ignoredFileListing":true,"ignoredFileSearch":true,"environmentIcon":true,"commandOutputStreaming":true,"serverBrowser":true,"peerLinks":true,"mcpModeLimitHeader":true,"linkFence":true,"mcpApprovalCodes":true,"peerLinkPairingCodes":true,"mcpHostedApproval":true,"triage":true,"oneTimeSchedules":true,"freshContext":true,"scheduledTaskThreadModes":true,"voiceTranscription":true,"cloudVoiceTranscription":true,"shellThreadFamilies":true,"shellOlderSettled":true,"linkedThreadRefreshes":true,"issueLinkedThreads":true}},"session":{"authenticated":true,"auth":{"policy":"loopback-browser","bootstrapMethods":["one-time-token"],"sessionMethods":["browser-session-cookie","bearer-access-token","dpop-access-token"],"sessionCookieName":"hanzo_session","serverUpdateScope":"environment:maintain"},"scopes":["orchestration:read","orchestration:operate","terminal:operate","relay:read","access:read","access:write","relay:write"],"permissions":["orchestration:read","orchestration:operate","settings:write","providers:manage","environment:maintain","preview:operate","diagnostics:read","terminal:read","terminal:operate","source-control:write","filesystem:read","filesystem:write","relay:read","access:read","access:write","relay:write"],"sessionMethod":"browser-session-cookie","expiresAt":"2026-12-21T08:39:23.031Z"},"shell":{"schemaVersion":2,"snapshotSequence":216,"threads":[{"createdBy":"user","creationSource":"web","id":"8f4f5790-6d8c-4273-8bfe-c56d4af0c357","projectId":"dc2121b7-c8bb-4648-8e57-cd02d972dabc","title":"Hello Notes","providerInstanceId":"hanzo","modelSelection":{"instanceId":"hanzo","model":"enso-auto"},"runtimeMode":"full-access","interactionMode":"default","branch":null,"worktreePath":"/scratch/2026-11-21-say-hello-in-one-word-4af0c357","pullRequests":[],"lineage":{"parentThreadId":null,"relationshipToParent":null,"rootThreadId":"8f4f5790-6d8c-4273-8bfe-c56d4af0c357"},"forkedFrom":null,"activeProviderThreadId":"provider-thread:provider:hanzo:native-thread:pending%3Arun%3Athread%3A8f4f5790-6d8c-4273-8bfe-c56d4af0c357%3Aordinal%3A1","latestRunId":"run:thread:8f4f5790-6d8c-4273-8bfe-c56d4af0c357:ordinal:2","latestRunRequestedAt":"2026-11-21T08:47:20.610Z","latestRunStartedAt":"2026-11-21T08:47:20.693Z","latestRunCompletedAt":"2026-11-21T08:47:28.859Z","latestRunStopRequested":false,"latestRunBackgroundWake":false,"activeRunId":null,"activityRunStartedAt":null,"activityRunStatus":null,"blockedOnThreadWait":false,"status":"completed","lastError":null,"lastErrorClass":null,"lastErrorCode":null,"usageLimitResetAt":null,"pendingRuntimeRequest":null,"pendingGuestMessageCount":0,"latestVisibleMessage":null,"latestUserMessageAt":"2026-11-21T08:47:20.610Z","latestUserAuthoredMessageAt":"2026-11-21T08:47:20.610Z","hasActionableProposedPlan":false,"pendingBackgroundTasks":[],"providerInstanceHistory":["hanzo"],"goal":null,"itemCount":7,"visibleItemCount":7,"createdAt":"2026-11-21T08:46:49.078Z","updatedAt":"2026-11-21T08:47:52.575Z","archivedAt":null,"settledOverride":"settled","settledAt":"2026-11-21T08:47:52.575Z","unsettledAt":null,"snoozedUntil":null,"snoozedAt":null,"limitRecovery":null,"pinnedAt":null,"autoSettleDisabledAt":null,"pinOrderKey":null,"activeOrderKey":null,"lastVisitedAt":"2026-11-21T08:47:19.064Z","opens":{"openedAt":1795250839068,"score":1,"picks":[]},"titleRegeneration":null,"lastTitleRegeneration":null,"deletedAt":null},{"createdBy":"user","creationSource":"web","id":"cf2007af-da22-4ed2-941d-a50899bb82fe","projectId":"dc2121b7-c8bb-4648-8e57-cd02d972dabc","title":"Hello Notes","providerInstanceId":"hanzo","modelSelection":{"instanceId":"hanzo","model":"enso-auto"},"runtimeMode":"full-access","interactionMode":"default","branch":null,"worktreePath":"/scratch/2026-11-21-say-hello-in-one-word-99bb82fe","pullRequests":[],"lineage":{"parentThreadId":null,"relationshipToParent":null,"rootThreadId":"cf2007af-da22-4ed2-941d-a50899bb82fe"},"forkedFrom":null,"activeProviderThreadId":"provider-thread:provider:hanzo:native-thread:pending%3Arun%3Athread%3Acf2007af-da22-4ed2-941d-a50899bb82fe%3Aordinal%3A1","latestRunId":"run:thread:cf2007af-da22-4ed2-941d-a50899bb82fe:ordinal:2","latestRunRequestedAt":"2026-11-21T08:48:52.931Z","latestRunStartedAt":"2026-11-21T08:48:52.968Z","latestRunCompletedAt":"2026-11-21T08:49:01.658Z","latestRunStopRequested":false,"latestRunBackgroundWake":false,"activeRunId":null,"activityRunStartedAt":null,"activityRunStatus":null,"blockedOnThreadWait":false,"status":"completed","lastError":null,"lastErrorClass":null,"lastErrorCode":null,"usageLimitResetAt":null,"pendingRuntimeRequest":null,"pendingGuestMessageCount":0,"latestVisibleMessage":null,"latestUserMessageAt":"2026-11-21T08:48:52.931Z","latestUserAuthoredMessageAt":"2026-11-21T08:48:52.931Z","hasActionableProposedPlan":false,"pendingBackgroundTasks":[],"providerInstanceHistory":["hanzo"],"goal":null,"itemCount":7,"visibleItemCount":7,"createdAt":"2026-11-21T08:48:21.346Z","updatedAt":"2026-11-21T08:49:24.926Z","archivedAt":null,"settledOverride":"settled","settledAt":"2026-11-21T08:49:24.926Z","unsettledAt":null,"snoozedUntil":null,"snoozedAt":null,"limitRecovery":null,"pinnedAt":null,"autoSettleDisabledAt":null,"pinOrderKey":null,"activeOrderKey":null,"lastVisitedAt":"2026-11-21T08:48:51.417Z","opens":{"openedAt":1795250931419,"score":1,"picks":[]},"titleRegeneration":null,"lastTitleRegeneration":null,"deletedAt":null},{"createdBy":"user","creationSource":"web","id":"c725f1b1-1a54-42bf-a1a3-a1afa2c3e226","projectId":"dc2121b7-c8bb-4648-8e57-cd02d972dabc","title":"Ping Pong Notes","providerInstanceId":"hanzo","modelSelection":{"instanceId":"hanzo","model":"enso-auto"},"runtimeMode":"full-access","interactionMode":"default","branch":null,"worktreePath":"/scratch/2026-11-21-reply-with-exactly-the-word-a2c3e226","pullRequests":[],"lineage":{"parentThreadId":null,"relationshipToParent":null,"rootThreadId":"c725f1b1-1a54-42bf-a1a3-a1afa2c3e226"},"forkedFrom":null,"activeProviderThreadId":"provider-thread:provider:hanzo:native-thread:pending%3Arun%3Athread%3Ac725f1b1-1a54-42bf-a1a3-a1afa2c3e226%3Aordinal%3A1","latestRunId":"run:thread:c725f1b1-1a54-42bf-a1a3-a1afa2c3e226:ordinal:2","latestRunRequestedAt":"2026-11-21T08:45:24.349Z","latestRunStartedAt":"2026-11-21T08:45:24.883Z","latestRunCompletedAt":"2026-11-21T08:45:32.545Z","latestRunStopRequested":false,"latestRunBackgroundWake":false,"activeRunId":null,"activityRunStartedAt":null,"activityRunStatus":null,"blockedOnThreadWait":false,"status":"completed","lastError":null,"lastErrorClass":null,"lastErrorCode":null,"usageLimitResetAt":null,"pendingRuntimeRequest":null,"pendingGuestMessageCount":0,"latestVisibleMessage":null,"latestUserMessageAt":"2026-11-21T08:45:24.349Z","latestUserAuthoredMessageAt":"2026-11-21T08:45:24.349Z","hasActionableProposedPlan":false,"pendingBackgroundTasks":[],"providerInstanceHistory":["hanzo"],"goal":null,"itemCount":7,"visibleItemCount":7,"createdAt":"2026-11-21T08:42:08.451Z","updatedAt":"2026-11-21T09:19:24.984Z","archivedAt":null,"settledOverride":null,"settledAt":null,"unsettledAt":"2026-11-21T08:45:24.347Z","snoozedUntil":null,"snoozedAt":null,"limitRecovery":null,"pinnedAt":null,"autoSettleDisabledAt":null,"pinOrderKey":null,"activeOrderKey":null,"lastVisitedAt":"2026-11-21T08:45:32.545Z","opens":{"openedAt":1795250530003,"score":1,"picks":[]},"titleRegeneration":null,"lastTitleRegeneration":null,"deletedAt":null}],"archivedThreads":[],"projects":[{"id":"dc2121b7-c8bb-4648-8e57-cd02d972dabc","title":"No project","hasCustomTitle":false,"workspaceRoot":"/scratch","repositoryIdentity":null,"defaultModelSelection":null,"defaultThreadEnvMode":null,"autoPull":false,"faviconPath":null,"projectIcon":{"kind":"lucide","name":"message-square-dashed","color":"gray"},"scripts":[],"pinnedAt":null,"archivedAt":null,"createdAt":"2026-11-21T08:39:26.035Z","updatedAt":"2026-11-21T08:39:27.031Z"}],"olderSettled":{"before":"2026-11-21T08:47:52.575Z","asOfSequence":216,"counts":[]},"projectIdentities":"nV4Y6T6h2d77cJV6Mlv2TUQg52-y9Xd4p96AKn_BQHo"}}