Class ServerSessionsApi
java.lang.Object
com.github.copilot.generated.rpc.ServerSessionsApi
API methods for the
sessions namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbulkDelete(SessionsBulkDeleteParams params) Session IDs to close, deactivate, and delete from disk.checkInUse(SessionsCheckInUseParams params) Session IDs to test for live in-use locks.close(SessionsCloseParams params) Session ID to close.Params to attach or detach an in-process ExtensionController delegate.connect(SessionsConnectParams params) Remote session connection parameters.delete(SessionsDeleteParams params) Session ID to delete from disk.Session metadata records to enrich with summary and context information.UUID prefix to resolve to a unique session ID.GitHub task ID to look up.fork(SessionsForkParams params) Source session identifier to fork from, optional event-ID boundary, and optional friendly name for the new session.Session ID whose board entry count should be returned.Bounded batch request for client-owned metadata from persisted local sessions.Session ID whose event-log file path to compute.Optional working-directory context used to score session relevance.getMetadata(SessionsGetMetadataParams params) Session ID whose persisted metadata should be read.Session ID to look up the persisted remote-steerable flag for.Wrapper for the singleton's current status.getSizes()Map of sessionId -> on-disk size in bytes for each session's workspace directory.list()Optional source filter, metadata-load limit, and context filter applied to the returned sessions.list(SessionsListParams params) Optional source filter, metadata-load limit, and context filter applied to the returned sessions.Limit for non-empty local session IDs.Active session ID whose deferred repo-level hooks should be loaded.open(SessionsOpenParams params) Open a session by creating, resuming, attaching, connecting to a remote, or handing off.pruneOld(SessionsPruneOldParams params) Age threshold and optional flags controlling which old sessions are pruned (or simulated when dryRun is true).Pagination options for reading an inactive or active local session's persisted event journal.releaseLock(SessionsReleaseLockParams params) Session ID whose in-use lock should be released.Active session ID and an optional flag for deferring repo-level hooks until folder trust.save(SessionsSaveParams params) Session ID whose pending events should be flushed to disk.Manager-wide additional plugins to register; replaces any previously-configured set.Patch for the singleton's steering state.Parameters for attaching the remote-control singleton to a session.Parameters for stopping the remote-control singleton.Parameters for stopping the remote-control singleton.Parameters for atomically rebinding the remote-control singleton.
-
Method Details
-
open
Open a session by creating, resuming, attaching, connecting to a remote, or handing off.- Since:
- 1.0.0
-
fork
Source session identifier to fork from, optional event-ID boundary, and optional friendly name for the new session.- Since:
- 1.0.0
-
connect
@CopilotExperimental public CompletableFuture<SessionsConnectResult> connect(SessionsConnectParams params) Remote session connection parameters.- Since:
- 1.0.0
-
list
Optional source filter, metadata-load limit, and context filter applied to the returned sessions.Invokes the method with no params, applying the runtime defaults.
- Since:
- 1.0.0
-
list
Optional source filter, metadata-load limit, and context filter applied to the returned sessions.- Since:
- 1.0.0
-
getMetadata
@CopilotExperimental public CompletableFuture<SessionsGetMetadataResult> getMetadata(SessionsGetMetadataParams params) Session ID whose persisted metadata should be read.- Since:
- 1.0.0
-
getClientMetadata
@CopilotExperimental public CompletableFuture<List<Object>> getClientMetadata(SessionsGetClientMetadataParams params) Bounded batch request for client-owned metadata from persisted local sessions.- Since:
- 1.0.0
-
readPersistedEvents
@CopilotExperimental public CompletableFuture<SessionsReadPersistedEventsResult> readPersistedEvents(SessionsReadPersistedEventsParams params) Pagination options for reading an inactive or active local session's persisted event journal.- Since:
- 1.0.0
-
listNonEmptySessionIds
@CopilotExperimental public CompletableFuture<SessionsListNonEmptySessionIdsResult> listNonEmptySessionIds(SessionsListNonEmptySessionIdsParams params) Limit for non-empty local session IDs.- Since:
- 1.0.0
-
findByTaskId
@CopilotExperimental public CompletableFuture<SessionsFindByTaskIdResult> findByTaskId(SessionsFindByTaskIdParams params) GitHub task ID to look up.- Since:
- 1.0.0
-
findByPrefix
@CopilotExperimental public CompletableFuture<SessionsFindByPrefixResult> findByPrefix(SessionsFindByPrefixParams params) UUID prefix to resolve to a unique session ID.- Since:
- 1.0.0
-
getLastForContext
@CopilotExperimental public CompletableFuture<SessionsGetLastForContextResult> getLastForContext(SessionsGetLastForContextParams params) Optional working-directory context used to score session relevance.- Since:
- 1.0.0
-
getEventFilePath
@CopilotExperimental public CompletableFuture<SessionsGetEventFilePathResult> getEventFilePath(SessionsGetEventFilePathParams params) Session ID whose event-log file path to compute.- Since:
- 1.0.0
-
getSizes
Map of sessionId -> on-disk size in bytes for each session's workspace directory.- Since:
- 1.0.0
-
checkInUse
@CopilotExperimental public CompletableFuture<SessionsCheckInUseResult> checkInUse(SessionsCheckInUseParams params) Session IDs to test for live in-use locks.- Since:
- 1.0.0
-
getPersistedRemoteSteerable
@CopilotExperimental public CompletableFuture<SessionsGetPersistedRemoteSteerableResult> getPersistedRemoteSteerable(SessionsGetPersistedRemoteSteerableParams params) Session ID to look up the persisted remote-steerable flag for.- Since:
- 1.0.0
-
close
Session ID to close.- Since:
- 1.0.0
-
bulkDelete
@CopilotExperimental public CompletableFuture<SessionsBulkDeleteResult> bulkDelete(SessionsBulkDeleteParams params) Session IDs to close, deactivate, and delete from disk.- Since:
- 1.0.0
-
delete
Session ID to delete from disk.- Since:
- 1.0.0
-
pruneOld
@CopilotExperimental public CompletableFuture<SessionsPruneOldResult> pruneOld(SessionsPruneOldParams params) Age threshold and optional flags controlling which old sessions are pruned (or simulated when dryRun is true).- Since:
- 1.0.0
-
save
Session ID whose pending events should be flushed to disk.- Since:
- 1.0.0
-
releaseLock
Session ID whose in-use lock should be released.- Since:
- 1.0.0
-
enrichMetadata
@CopilotExperimental public CompletableFuture<SessionsEnrichMetadataResult> enrichMetadata(SessionsEnrichMetadataParams params) Session metadata records to enrich with summary and context information.- Since:
- 1.0.0
-
reloadPluginHooks
@CopilotExperimental public CompletableFuture<Void> reloadPluginHooks(SessionsReloadPluginHooksParams params) Active session ID and an optional flag for deferring repo-level hooks until folder trust.- Since:
- 1.0.0
-
loadDeferredRepoHooks
@CopilotExperimental public CompletableFuture<SessionsLoadDeferredRepoHooksResult> loadDeferredRepoHooks(SessionsLoadDeferredRepoHooksParams params) Active session ID whose deferred repo-level hooks should be loaded.- Since:
- 1.0.0
-
setAdditionalPlugins
@CopilotExperimental public CompletableFuture<Void> setAdditionalPlugins(SessionsSetAdditionalPluginsParams params) Manager-wide additional plugins to register; replaces any previously-configured set.- Since:
- 1.0.0
-
getBoardEntryCount
@CopilotExperimental public CompletableFuture<SessionsGetBoardEntryCountResult> getBoardEntryCount(SessionsGetBoardEntryCountParams params) Session ID whose board entry count should be returned.- Since:
- 1.0.0
-
startRemoteControl
@CopilotExperimental public CompletableFuture<SessionsStartRemoteControlResult> startRemoteControl(SessionsStartRemoteControlParams params) Parameters for attaching the remote-control singleton to a session.- Since:
- 1.0.0
-
transferRemoteControl
@CopilotExperimental public CompletableFuture<SessionsTransferRemoteControlResult> transferRemoteControl(SessionsTransferRemoteControlParams params) Parameters for atomically rebinding the remote-control singleton.- Since:
- 1.0.0
-
setRemoteControlSteering
@CopilotExperimental public CompletableFuture<SessionsSetRemoteControlSteeringResult> setRemoteControlSteering(SessionsSetRemoteControlSteeringParams params) Patch for the singleton's steering state.- Since:
- 1.0.0
-
stopRemoteControl
Parameters for stopping the remote-control singleton.Invokes the method with no params, applying the runtime defaults.
- Since:
- 1.0.0
-
stopRemoteControl
@CopilotExperimental public CompletableFuture<SessionsStopRemoteControlResult> stopRemoteControl(SessionsStopRemoteControlParams params) Parameters for stopping the remote-control singleton.- Since:
- 1.0.0
-
getRemoteControlStatus
@CopilotExperimental public CompletableFuture<SessionsGetRemoteControlStatusResult> getRemoteControlStatus()Wrapper for the singleton's current status.- Since:
- 1.0.0
-
configureSessionExtensions
@CopilotExperimental public CompletableFuture<Void> configureSessionExtensions(SessionsConfigureSessionExtensionsParams params) Params to attach or detach an in-process ExtensionController delegate.- Since:
- 1.0.0
-