@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
48 lines • 3.69 kB
JavaScript
/** Capability: the host answers `move_session` (senpi#3676). */
export const MOVE_SESSION_CAPABILITY = "move_session";
/** Capability: `move_session` answers op `revoke`, which seals a copy this host imported (senpi#4003). */
export const MOVE_SESSION_REVOKE_CAPABILITY = "move_session_revoke";
/** Capability: `move_session` answers op `copy`, which copies a session into a new one under a given id (senpi#5889). */
export const MOVE_SESSION_COPY_CAPABILITY = "move_session_copy";
/** Capability: `export` takes `inline` and answers `inline_files` for a bundle under the cap (senpi#6267). */
export const MOVE_SESSION_EXPORT_INLINE_CAPABILITY = "move_session_export_inline";
/** Capability: `import` takes `files`, an inline bundle, in place of `bundleDir` (senpi#6267). */
export const MOVE_SESSION_IMPORT_FILES_CAPABILITY = "move_session_import_files";
/** Capability: `import` takes `sessionDir`, the folder the session lands in (senpi#6267). */
export const MOVE_SESSION_IMPORT_SESSION_DIR_CAPABILITY = "move_session_import_session_dir";
/** Capability: `import` takes `open` and answers the opened session beside the import (senpi#6267). */
export const MOVE_SESSION_IMPORT_OPEN_CAPABILITY = "move_session_import_open";
/** The most raw bytes, over every file with the manifest, a bundle may hold to travel inline (senpi#6267). */
export const MOVE_INLINE_MAX_BYTES = 1024 * 1024;
/** The most files an inline bundle may list. */
export const MOVE_INLINE_MAX_FILES = 1024;
/** Capability: the inline cap in bytes, as `move_session_inline_max_bytes:<n>`, so a caller can read it (senpi#6267). */
export const MOVE_SESSION_INLINE_MAX_BYTES_CAPABILITY = `move_session_inline_max_bytes:${MOVE_INLINE_MAX_BYTES}`;
/** Capability: `move_session` answers op `identity`, in both its forms, without releasing anything (senpi#6435). */
export const MOVE_SESSION_IDENTITY_CAPABILITY = "move_session_identity";
/** Capability: op `prepare` checks `cwd` against `repository`, and the import lands only there (senpi#6435). */
export const MOVE_SESSION_PREPARE_REPOSITORY_CAPABILITY = "move_session_prepare_repository";
/**
* Capability: `status` for an accepted move, and a `move_fenced` refusal of a move already accepted here (an `import`
* into another folder, a `prepare` for another folder), answer where it landed (senpi#6436).
*/
export const MOVE_SESSION_STATUS_LANDED_PATH_CAPABILITY = "move_session_status_landed_path";
/**
* Capability: where an accepted move landed is answered with `writable`, and with `sealed_by` when the copy there is
* read-only (senpi#6473).
*/
export const MOVE_SESSION_STATUS_WRITABLE_CAPABILITY = "move_session_status_writable";
/**
* Capability: `status` takes `landing`, the place the move would have landed, and answers from the session file there
* before it answers from its record. A move that landed and whose record was lost then answers `accepted`.
*/
export const MOVE_SESSION_STATUS_LANDING_CAPABILITY = "move_session_status_landing";
/** A `move_session` request whose fields do not parse (op, move id, paths, answer). */
export const RPC_ERROR_INVALID_MOVE_REQUEST = "invalid_move_request";
/** `export` of a session this host still has open: release it with `release_session` reason `move` first. */
export const RPC_ERROR_SESSION_OPEN_HERE = "session_open_here";
/** `export` of a session file that is not sealed for this move by a `release_session` reason `move`. */
export const RPC_ERROR_MOVE_NOT_RELEASED = "move_not_released";
/** A move step that failed for a reason with no code of its own; `errorData.detail` says what happened. */
export const RPC_ERROR_MOVE_FAILED = "move_failed";
//# sourceMappingURL=session-move-wire.js.map