package daemon

import "encoding/json"

var defaultSessionLinkCommands = mustCommandRegistry([]CommandDescriptor{
	descriptor(commandDescriptorSpec{
		name:           "session.ready",
		wireType:       sessionLinkCommandReady,
		domain:         CommandDomainSession,
		kind:           CommandKindEvent,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerDaemonTransport,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       true,
		requestType:    (*readyMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "session.server_capabilities",
		wireType:       sessionLinkCommandServerCapabilities,
		domain:         CommandDomainSession,
		kind:           CommandKindEvent,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerDaemonTransport,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       true,
		requestType:    (*serverCapabilitiesCommand)(nil),
		responseType:   nil,
	}),

	descriptor(commandDescriptorSpec{
		name:           "agent.lifecycle.start",
		wireType:       sessionLinkCommandAgentStart,
		domain:         CommandDomainAgentLifecycle,
		kind:           CommandKindCommand,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerAgentRuntime,
		capabilityGate: commandCapabilityOptionalRuntimeGate,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       true,
		requestType:    (*agentStartCommandMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.lifecycle.stop",
		wireType:       sessionLinkCommandAgentStop,
		domain:         CommandDomainAgentLifecycle,
		kind:           CommandKindCommand,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerAgentRuntime,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       true,
		requestType:    (*agentStopCommand)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.lifecycle.update_identity",
		wireType:       sessionLinkCommandAgentUpdateIdentity,
		domain:         CommandDomainAgentLifecycle,
		kind:           CommandKindCommand,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerAgentRuntime,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    (*agentUpdateIdentityCommand)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.lifecycle.reset_workspace",
		wireType:       sessionLinkCommandAgentResetWorkspace,
		domain:         CommandDomainAgentLifecycle,
		kind:           CommandKindCommand,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerAgentRuntime,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       true,
		requestType:    (*agentResetWorkspaceCommand)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.delivery.deliver",
		wireType:       sessionLinkCommandAgentDeliver,
		domain:         CommandDomainAgentDelivery,
		kind:           CommandKindRequest,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerAgentRuntime,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       true,
		requestType:    (*agentDeliverCommand)(nil),
		responseType:   (*deliverAckMessage)(nil),
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.delivery.deliver_ack",
		wireType:       sessionLinkCommandAgentDeliverAck,
		domain:         CommandDomainAgentDelivery,
		kind:           CommandKindResponse,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerAgentRuntime,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       true,
		requestType:    (*deliverAckMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.delivery.status",
		wireType:       sessionLinkCommandAgentStatus,
		domain:         CommandDomainAgentDelivery,
		kind:           CommandKindEvent,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerAgentRuntime,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    (*agentStatusMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.delivery.activity",
		wireType:       sessionLinkCommandAgentActivity,
		domain:         CommandDomainAgentDelivery,
		kind:           CommandKindEvent,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerAgentRuntime,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    (*agentActivityMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.delivery.session",
		wireType:       sessionLinkCommandAgentSession,
		domain:         CommandDomainAgentDelivery,
		kind:           CommandKindEvent,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerAgentRuntime,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    (*agentSessionMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.delivery.turn_state",
		wireType:       sessionLinkCommandAgentTurnState,
		domain:         CommandDomainAgentDelivery,
		kind:           CommandKindEvent,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerAgentRuntime,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    (*agentTurnStateMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.delivery.wake_status",
		wireType:       sessionLinkCommandAgentWakeStatus,
		domain:         CommandDomainAgentDelivery,
		kind:           CommandKindEvent,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerAgentRuntime,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    (*agentWakeStatusMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.delivery.runtime_event",
		wireType:       sessionLinkCommandAgentRuntimeEvent,
		domain:         CommandDomainAgentDelivery,
		kind:           CommandKindEvent,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerAgentRuntime,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    (*agentRuntimeEventMessage)(nil),
		responseType:   nil,
	}),

	descriptor(commandDescriptorSpec{
		name:           "runtime_access.recovery_point_prepared",
		wireType:       sessionLinkCommandAgentRecoveryPointPrepared,
		domain:         CommandDomainRuntimeAccess,
		kind:           CommandKindEvent,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerRuntimeAccess,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    (*agentRecoveryPointPreparedMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "runtime_access.trajectory",
		wireType:       sessionLinkCommandAgentTrajectory,
		domain:         CommandDomainRuntimeAccess,
		kind:           CommandKindEvent,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerRuntimeAccess,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    (*agentTrajectoryMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "runtime_access.trajectory_history",
		wireType:       sessionLinkCommandAgentTrajectoryHistory,
		domain:         CommandDomainRuntimeAccess,
		kind:           CommandKindRequest,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerRuntimeAccess,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*agentTrajectoryHistoryCommand)(nil),
		responseType:   (*agentTrajectoryHistoryResultMessage)(nil),
	}),
	descriptor(commandDescriptorSpec{
		name:           "runtime_access.trajectory_history_result",
		wireType:       sessionLinkCommandAgentTrajectoryHistoryResult,
		domain:         CommandDomainRuntimeAccess,
		kind:           CommandKindResponse,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerRuntimeAccess,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*agentTrajectoryHistoryResultMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "runtime_access.restore_recovery_point",
		wireType:       sessionLinkCommandAgentRestoreRecoveryPoint,
		domain:         CommandDomainRuntimeAccess,
		kind:           CommandKindRequest,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerRuntimeAccess,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*agentRestoreRecoveryPointCommand)(nil),
		responseType:   (*agentRestoreRecoveryPointResultMessage)(nil),
	}),
	descriptor(commandDescriptorSpec{
		name:           "runtime_access.restore_recovery_point_result",
		wireType:       sessionLinkCommandAgentRestoreRecoveryPointDone,
		domain:         CommandDomainRuntimeAccess,
		kind:           CommandKindResponse,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerRuntimeAccess,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*agentRestoreRecoveryPointResultMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "runtime_access.gc_recovery_points",
		wireType:       sessionLinkCommandAgentGCRecoveryPoints,
		domain:         CommandDomainRuntimeAccess,
		kind:           CommandKindCommand,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerRuntimeAccess,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    (*agentGCRecoveryPointsCommand)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "runtime_access.memory_access_changed",
		wireType:       sessionLinkCommandAgentMemoryAccessChanged,
		domain:         CommandDomainRuntimeAccess,
		kind:           CommandKindEvent,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerRuntimeAccess,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    (*agentMemoryAccessChangedCommand)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "runtime_access.assets_access_changed",
		wireType:       sessionLinkCommandAgentAssetsAccessChanged,
		domain:         CommandDomainRuntimeAccess,
		kind:           CommandKindEvent,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerRuntimeAccess,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    (*agentAssetsAccessChangedCommand)(nil),
		responseType:   nil,
	}),

	descriptor(commandDescriptorSpec{
		name:           "agent.workspace.list",
		wireType:       sessionLinkCommandAgentWorkspaceList,
		domain:         CommandDomainAgentWorkspace,
		kind:           CommandKindRequest,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerWorkspace,
		capabilityGate: commandCapabilityOptionalRuntimeGate,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*agentWorkspaceListCommand)(nil),
		responseType:   (*fileTreeMessage)(nil),
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.workspace.file_tree",
		wireType:       sessionLinkCommandAgentWorkspaceFileTree,
		domain:         CommandDomainAgentWorkspace,
		kind:           CommandKindResponse,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerWorkspace,
		capabilityGate: commandCapabilityOptionalRuntimeGate,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*fileTreeMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.workspace.read",
		wireType:       sessionLinkCommandAgentWorkspaceRead,
		domain:         CommandDomainAgentWorkspace,
		kind:           CommandKindRequest,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerWorkspace,
		capabilityGate: commandCapabilityOptionalRuntimeGate,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*agentWorkspaceReadCommand)(nil),
		responseType:   (*fileContentMessage)(nil),
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.workspace.file_content",
		wireType:       sessionLinkCommandAgentWorkspaceFileContent,
		domain:         CommandDomainAgentWorkspace,
		kind:           CommandKindResponse,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerWorkspace,
		capabilityGate: commandCapabilityOptionalRuntimeGate,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*fileContentMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.workspace.apply_seed_files",
		wireType:       sessionLinkCommandAgentWorkspaceApplySeedFiles,
		domain:         CommandDomainAgentWorkspace,
		kind:           CommandKindRequest,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerWorkspace,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*agentWorkspaceApplySeedFilesCommand)(nil),
		responseType:   (*applySeedFilesResultMessage)(nil),
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.workspace.apply_seed_files_result",
		wireType:       sessionLinkCommandAgentWorkspaceApplySeedDone,
		domain:         CommandDomainAgentWorkspace,
		kind:           CommandKindResponse,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerWorkspace,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*applySeedFilesResultMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.workspace.delete",
		wireType:       sessionLinkCommandAgentWorkspaceDelete,
		domain:         CommandDomainAgentWorkspace,
		kind:           CommandKindRequest,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerWorkspace,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*agentWorkspaceDeleteCommand)(nil),
		responseType:   (*deleteWorkspacePathResultMessage)(nil),
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.workspace.delete_result",
		wireType:       sessionLinkCommandAgentWorkspaceDeleteResult,
		domain:         CommandDomainAgentWorkspace,
		kind:           CommandKindResponse,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerWorkspace,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*deleteWorkspacePathResultMessage)(nil),
		responseType:   nil,
	}),

	descriptor(commandDescriptorSpec{
		name:           "review.summary",
		wireType:       sessionLinkCommandAgentReviewSummary,
		domain:         CommandDomainReview,
		kind:           CommandKindRequest,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerReview,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*agentReviewSummaryCommand)(nil),
		responseType:   (*reviewSummaryResultMessage)(nil),
	}),
	descriptor(commandDescriptorSpec{
		name:           "review.summary_result",
		wireType:       sessionLinkCommandAgentReviewSummaryResult,
		domain:         CommandDomainReview,
		kind:           CommandKindResponse,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerReview,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*reviewSummaryResultMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "review.files",
		wireType:       sessionLinkCommandAgentReviewFiles,
		domain:         CommandDomainReview,
		kind:           CommandKindRequest,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerReview,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*agentReviewFilesCommand)(nil),
		responseType:   (*reviewFilesResultMessage)(nil),
	}),
	descriptor(commandDescriptorSpec{
		name:           "review.files_result",
		wireType:       sessionLinkCommandAgentReviewFilesResult,
		domain:         CommandDomainReview,
		kind:           CommandKindResponse,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerReview,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*reviewFilesResultMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "review.diff",
		wireType:       sessionLinkCommandAgentReviewDiff,
		domain:         CommandDomainReview,
		kind:           CommandKindRequest,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerReview,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*agentReviewDiffCommand)(nil),
		responseType:   (*reviewDiffResultMessage)(nil),
	}),
	descriptor(commandDescriptorSpec{
		name:           "review.diff_result",
		wireType:       sessionLinkCommandAgentReviewDiffResult,
		domain:         CommandDomainReview,
		kind:           CommandKindResponse,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerReview,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*reviewDiffResultMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "review.output_target_validate",
		wireType:       sessionLinkCommandOutputTargetValidate,
		domain:         CommandDomainReview,
		kind:           CommandKindRequest,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerReview,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*agentOutputTargetValidateCommand)(nil),
		responseType:   (*outputTargetValidateResultMessage)(nil),
	}),
	descriptor(commandDescriptorSpec{
		name:           "review.output_target_validate_result",
		wireType:       sessionLinkCommandOutputTargetValidateResult,
		domain:         CommandDomainReview,
		kind:           CommandKindResponse,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerReview,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*outputTargetValidateResultMessage)(nil),
		responseType:   nil,
	}),

	descriptor(commandDescriptorSpec{
		name:           "machine.workspace.scan",
		wireType:       sessionLinkCommandMachineWorkspaceScan,
		domain:         CommandDomainMachineWorkspace,
		kind:           CommandKindRequest,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerMachine,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*machineWorkspaceScanCommand)(nil),
		responseType:   (*scanResultMessage)(nil),
	}),
	descriptor(commandDescriptorSpec{
		name:           "machine.workspace.scan_result",
		wireType:       sessionLinkCommandMachineWorkspaceScanResult,
		domain:         CommandDomainMachineWorkspace,
		kind:           CommandKindResponse,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerMachine,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*scanResultMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "machine.workspace.delete",
		wireType:       sessionLinkCommandMachineWorkspaceDelete,
		domain:         CommandDomainMachineWorkspace,
		kind:           CommandKindRequest,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerMachine,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*machineWorkspaceDeleteCommand)(nil),
		responseType:   (*deleteResultMessage)(nil),
	}),
	descriptor(commandDescriptorSpec{
		name:           "machine.workspace.delete_result",
		wireType:       sessionLinkCommandMachineWorkspaceDeleteResult,
		domain:         CommandDomainMachineWorkspace,
		kind:           CommandKindResponse,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerMachine,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*deleteResultMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "machine.workspace.workspaces_list",
		wireType:       sessionLinkCommandMachineWorkspacesList,
		domain:         CommandDomainMachineWorkspace,
		kind:           CommandKindRequest,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerMachine,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    (*machineWorkspacesRequestMessage)(nil),
		responseType:   (*machineWorkspacesResponseMessage)(nil),
	}),
	descriptor(commandDescriptorSpec{
		name:           "machine.workspace.workspaces_list_response",
		wireType:       sessionLinkCommandMachineWorkspacesListResponse,
		domain:         CommandDomainMachineWorkspace,
		kind:           CommandKindResponse,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerMachine,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    (*machineWorkspacesResponseMessage)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.lifecycle.machine_agent_list",
		wireType:       sessionLinkCommandMachineAgentList,
		domain:         CommandDomainAgentLifecycle,
		kind:           CommandKindRequest,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerAgentRuntime,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    nil,
		responseType:   (*machineAgentListResponseCommand)(nil),
	}),
	descriptor(commandDescriptorSpec{
		name:           "agent.lifecycle.machine_agent_list_response",
		wireType:       sessionLinkCommandMachineAgentListResponse,
		domain:         CommandDomainAgentLifecycle,
		kind:           CommandKindResponse,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerAgentRuntime,
		capabilityGate: commandCapabilityNone,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    (*machineAgentListResponseCommand)(nil),
		responseType:   nil,
	}),

	descriptor(commandDescriptorSpec{
		name:           "transport.elastic_request.open",
		wireType:       sessionLinkCommandElasticRequestOpen,
		domain:         CommandDomainTransportElasticRequest,
		kind:           CommandKindCommand,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerDaemonTransport,
		capabilityGate: daemonTransportElasticRequestCapability,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    (*ElasticRequestLinkOpenCommand)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "transport.elastic_request.drain",
		wireType:       sessionLinkCommandElasticRequestDrain,
		domain:         CommandDomainTransportElasticRequest,
		kind:           CommandKindCommand,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerDaemonTransport,
		capabilityGate: daemonTransportElasticRequestCapability,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    (*ElasticRequestLinkDrainCommand)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "transport.elastic_request.cancel",
		wireType:       sessionLinkCommandElasticRequestCancel,
		domain:         CommandDomainTransportElasticRequest,
		kind:           CommandKindCommand,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerDaemonTransport,
		capabilityGate: daemonTransportElasticRequestCapability,
		linkPolicy:     CommandLinkPolicySessionOnly,
		fallback:       commandFallbackNone,
		critical:       false,
		requestType:    (*ElasticRequestLinkCancelCommand)(nil),
		responseType:   nil,
	}),
	descriptor(commandDescriptorSpec{
		name:           "transport.elastic_request.remote_request_assign",
		wireType:       sessionLinkCommandRemoteRequestAssign,
		domain:         CommandDomainTransportElasticRequest,
		kind:           CommandKindRequest,
		direction:      CommandDirectionServerToDesktop,
		owner:          commandOwnerDaemonTransport,
		capabilityGate: daemonTransportCapabilityV1,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*RemoteRequestAssignment[json.RawMessage])(nil),
		responseType:   (*RemoteRequestResult[json.RawMessage])(nil),
	}),
	descriptor(commandDescriptorSpec{
		name:           "transport.elastic_request.remote_request_result",
		wireType:       sessionLinkCommandRemoteRequestResult,
		domain:         CommandDomainTransportElasticRequest,
		kind:           CommandKindResponse,
		direction:      CommandDirectionDesktopToServer,
		owner:          commandOwnerDaemonTransport,
		capabilityGate: daemonTransportCapabilityV1,
		linkPolicy:     CommandLinkPolicySessionPreferred,
		fallback:       commandFallbackLegacySessionLink,
		critical:       false,
		requestType:    (*RemoteRequestResult[json.RawMessage])(nil),
		responseType:   nil,
	}),
})
