mirror of
https://github.com/stablyai/orca.git
synced 2026-11-17 11:24:37 +00:00
* Open large pasted text and attached text in structured chats * Read pending pasted text before its host route resolves * Pass structured attachment eligibility from the owning chat * Preserve composer and Markdown state when inspecting text attachments * fix: preserve attachment identity and cancel deferred reads * test: consolidate phone attachment rendering contracts * Scope attachment previews to visible chats and share route indexes * test: consolidate duplicate attachment preview coverage * perf: share remaining workspace catalog derivations * feat(chat): open text attachments from structured goal objectives * fix(chat): reuse preview owner and bind app hooks * refactor(chat): trim duplicate tests and unused capability initialization * test(chat): share routing scope mount fixture * Fix routing performance attribution and folder row imports * Share attachment capability through its domain module * Align attachment fixtures and warm routing contracts with current gates * Preserve relay connection timeout default for ordinary requests * Share image classification ownership and repair integration fixtures * Repair real attachment integration fixture boundaries * Expose e2e compiler diagnostics and prune stale read allowance * Type the recall fixture row ref as a div * Keep text attachment capability in its existing capability owner * Keep image MIME bindings in the media type owner * Own private bridge response completion at the request boundary * Complete bridge fixture return and retention types * Localize native chat text attachment preview controls * Complete attachment preview localization at presentation boundaries * Preserve legacy preview locale identity and complete localization controls * Fix typed mobile host witness lookup * Commit attachment page edits and reset mobile page scroll * test(chat): remove duplicate preview localization coverage * fix(mobile): apply page input font and footer safe area * fix(chat): commit edited page before admitted navigation * fix(chat): retain field readiness on pending commit * fix: preserve attachment field focus until control activation * fix: restore attachment preview styles and canonical close * Bind mobile input font role to the central theme * Type font source fixture cases as tuples * Attribute inherited owner filter work and qualify folder fixtures * Keep owner filter fixture input types source-derived * test: retain attachment capability assertion import * test: focus attachment coverage on important regressions * Replace text attachment paging with bounded scrolling and trim tests * Preserve literal phone attachment whitespace and trim unused test meter * Keep scroll view refs and measurements out of render * Keep preview collection independent of native clipboard initialization * Give the phone scroll fixture coherent measured DOM geometry * Commit attachment scroll extent before restoring its anchor * Preserve text viewport geometry across bounded reads * Unify bounded text scrolling around the viewport * Preserve the live text anchor across viewport resizing * Measure committed text viewport bounds from the host * Preserve live attachment position across native client extent changes * Use the actual first source block in the resize regression fixture * Reuse subscription handle type * Keep attachment effects keyed to their existing triggers * Keep attachment rows within the committed track * Allow the full attachment renderer contract to settle * Open text attachment previews in a large modal * Preserve attachment modal header layout with primitive-owned styles
146 lines
7.1 KiB
TypeScript
146 lines
7.1 KiB
TypeScript
import { ACCOUNT_RUNTIME_CAPABILITIES } from './account-runtime-capabilities'
|
|
import * as agentLaunchCapabilities from './agent-launch-runtime-capability'
|
|
import {
|
|
AGENT_SESSION_BOUNDARY_RUNTIME_CAPABILITY,
|
|
AGENT_SESSION_RUNTIME_CAPABILITIES
|
|
} from './agent-session/agent-session-runtime-capabilities'
|
|
import { AI_VAULT_RUNTIME_CAPABILITIES } from './ai-vault-runtime-capabilities'
|
|
import {
|
|
AUTOMATION_RUNTIME_CAPABILITIES,
|
|
AUTOMATION_RUNTIME_CLIENT_CAPABILITIES
|
|
} from './automation-runtime-capabilities'
|
|
import { BROWSER_RUNTIME_CAPABILITIES } from './browser-runtime-capabilities'
|
|
import { DEVICE_KEY_RUNTIME_CAPABILITIES } from './device-key-capability'
|
|
import { FILES_RUNTIME_CAPABILITIES } from './files-runtime-capabilities'
|
|
import { HOST_RUNTIME_CAPABILITIES } from './host-runtime-capabilities'
|
|
import { MOBILE_RUNTIME_CAPABILITIES } from './mobile-runtime-capabilities'
|
|
import { ORCAD_RUNTIME_CAPABILITIES } from './orcad-runtime-capabilities'
|
|
import { ORCHESTRATION_RUNTIME_CAPABILITIES } from './orchestration-runtime-capabilities'
|
|
import { PREFLIGHT_RUNTIME_CAPABILITIES } from './preflight-runtime-capabilities'
|
|
import {
|
|
SESSION_TAB_CLOSE_INTENT_RUNTIME_CAPABILITY,
|
|
SESSION_TABS_RUNTIME_CAPABILITIES
|
|
} from './session-tabs-runtime-capabilities'
|
|
import { SKILL_RUNTIME_CAPABILITIES } from './skill-install-capability'
|
|
import { SOURCE_CONTROL_RUNTIME_CAPABILITIES } from './source-control-runtime-capabilities'
|
|
import { TASK_SOURCE_RUNTIME_CAPABILITIES } from './task-source-runtime-capabilities'
|
|
import { TERMINAL_RUNTIME_CAPABILITIES } from './terminal-runtime-capabilities'
|
|
import { WORKSPACE_PORTS_RUNTIME_CAPABILITIES } from './workspace-ports-runtime-capabilities'
|
|
import {
|
|
REPO_SEARCH_QUALIFIED_REFS_RUNTIME_CAPABILITY,
|
|
WORKTREE_GITHUB_PR_SUPPRESSION_RUNTIME_CAPABILITY,
|
|
WORKTREE_RUNTIME_CAPABILITIES,
|
|
WORKTREE_VISIBILITY_DEFAULTS_RUNTIME_CAPABILITY,
|
|
WORKTREE_VISIBILITY_SOURCE_DEFAULTS_RUNTIME_CAPABILITY
|
|
} from './worktree-runtime-capabilities'
|
|
|
|
// Runtime protocol ranges permit app-version drift across desktop/server/CLI/mobile. Bump for removed methods/required params,
|
|
// changed field meaning (units/nullability), framing or auth; optional fields, new methods and ignorable events are additive.
|
|
// Raise minimum client/server versions to refuse unsupported peers; never require equal app versions.
|
|
|
|
export const RUNTIME_PROTOCOL_VERSION = 3
|
|
export const MIN_COMPATIBLE_RUNTIME_CLIENT_VERSION = 2
|
|
export const MIN_COMPATIBLE_RUNTIME_SERVER_VERSION = 2
|
|
|
|
// Why stars: importers keep reading every capability from here while each area owns its module.
|
|
export * from './ai-vault-runtime-capabilities'
|
|
export * from './browser-runtime-capabilities'
|
|
export * from './files-runtime-capabilities'
|
|
export * from './host-runtime-capabilities'
|
|
|
|
export * from './mobile-runtime-capabilities'
|
|
export * from './preflight-runtime-capabilities'
|
|
export * from './source-control-runtime-capabilities'
|
|
export * from './task-source-runtime-capabilities'
|
|
export * from './terminal-runtime-capabilities'
|
|
export * from './workspace-ports-runtime-capabilities'
|
|
export * from './worktree-runtime-capabilities'
|
|
export { REMOTE_SERVER_UPDATE_CAPABILITY } from './remote-server-update'
|
|
export { TERMINAL_QUICK_COMMANDS_RUNTIME_CAPABILITY } from './terminal-quick-command-capabilities'
|
|
export {
|
|
AUTOMATION_LIST_HOST_SCOPE_RUNTIME_CAPABILITY,
|
|
AUTOMATION_LIST_HOST_SCOPE_UPDATE_REQUIRED_MESSAGE,
|
|
AUTOMATION_OWNER_FENCING_RUNTIME_CAPABILITY,
|
|
AUTOMATION_OWNER_FENCING_UPDATE_REQUIRED_MESSAGE,
|
|
AUTOMATION_CREATE_IDEMPOTENCY_RUNTIME_CAPABILITY,
|
|
AUTOMATION_EXTRA_AGENT_ARGS_RUNTIME_CAPABILITY,
|
|
AUTOMATION_SETUP_CHOICE_RUNTIME_CAPABILITY,
|
|
AUTOMATION_SURFACE_RUNTIME_CAPABILITY
|
|
} from './automation-runtime-capabilities'
|
|
export {
|
|
ORCHESTRATION_FEDERATION_RUNTIME_CAPABILITY,
|
|
ORCHESTRATION_FEDERATION_CONTROL_MAIL_RUNTIME_CAPABILITY,
|
|
ORCHESTRATION_FEDERATION_LIFECYCLE_SETTLEMENT_RUNTIME_CAPABILITY,
|
|
ORCHESTRATION_WORKER_STOP_VERDICT_RUNTIME_CAPABILITY,
|
|
ORCHESTRATION_WORKER_LAUNCH_PREFERENCES_RUNTIME_CAPABILITY,
|
|
ORCHESTRATION_FEDERATION_STRUCTURED_READ_RUNTIME_CAPABILITY,
|
|
ORCHESTRATION_FEDERATION_FLEET_SNAPSHOT_RUNTIME_CAPABILITY,
|
|
ORCHESTRATION_FEDERATION_RELEASE_ARCHIVE_RUNTIME_CAPABILITY,
|
|
ORCHESTRATION_WORKER_AUTO_RELEASE_RUNTIME_CAPABILITY,
|
|
ORCHESTRATION_WORKER_START_IMPLICIT_RUN_RUNTIME_CAPABILITY,
|
|
ORCHESTRATION_RETAINED_RUN_BINDINGS_RUNTIME_CAPABILITY,
|
|
ORCHESTRATION_WORKER_TURN_STOP_REPORTS_RUNTIME_CAPABILITY,
|
|
ORCHESTRATION_ASK_RETURNS_AT_ONCE_RUNTIME_CAPABILITY,
|
|
ORCHESTRATION_FEDERATION_CONTROL_MAIL_PROTOCOL_VERSION,
|
|
ORCHESTRATION_FEDERATION_LIFECYCLE_SETTLEMENT_PROTOCOL_VERSION,
|
|
ORCHESTRATION_CONTRACT_VERSION,
|
|
ORCHESTRATION_CONTRACT_RUNTIME_CAPABILITY
|
|
} from './orchestration-runtime-capabilities'
|
|
export {
|
|
AGENT_STATUS_RESTORED_UNCONFIRMED_RUNTIME_CAPABILITY,
|
|
SESSION_TAB_CLOSE_INTENT_RUNTIME_CAPABILITY,
|
|
SESSION_TABS_AUTHORITATIVE_INVENTORY_RUNTIME_CAPABILITY,
|
|
SESSION_TABS_RETIREMENT_PROOF_DELTA_RUNTIME_CAPABILITY,
|
|
SESSION_TABS_SPLIT_GROUP_PLACEMENT_RUNTIME_CAPABILITY,
|
|
SESSION_TABS_TAB_DELTA_RUNTIME_CAPABILITY
|
|
} from './session-tabs-runtime-capabilities'
|
|
|
|
// Native clients include the CLI, which cannot place Electron browser pages.
|
|
export const NATIVE_REMOTE_RUNTIME_CLIENT_CAPABILITIES = [
|
|
SESSION_TAB_CLOSE_INTENT_RUNTIME_CAPABILITY,
|
|
AGENT_SESSION_BOUNDARY_RUNTIME_CAPABILITY,
|
|
WORKTREE_VISIBILITY_DEFAULTS_RUNTIME_CAPABILITY,
|
|
WORKTREE_VISIBILITY_SOURCE_DEFAULTS_RUNTIME_CAPABILITY,
|
|
WORKTREE_GITHUB_PR_SUPPRESSION_RUNTIME_CAPABILITY,
|
|
REPO_SEARCH_QUALIFIED_REFS_RUNTIME_CAPABILITY,
|
|
...AUTOMATION_RUNTIME_CLIENT_CAPABILITIES,
|
|
agentLaunchCapabilities.AGENT_LAUNCH_RUNTIME_CAPABILITY
|
|
] as const
|
|
|
|
// Each area lists what it publishes in its own module; a new capability edits only that module.
|
|
export const SAVED_RESUME_ORIGIN_RUNTIME_CAPABILITY =
|
|
'agent-session.saved-resume-origin.v1' as const
|
|
|
|
// Individual protocol exports must not retain the unused host capability aggregate.
|
|
export const RUNTIME_CAPABILITIES = /* @__PURE__ */ (() =>
|
|
[
|
|
SAVED_RESUME_ORIGIN_RUNTIME_CAPABILITY,
|
|
...HOST_RUNTIME_CAPABILITIES,
|
|
...DEVICE_KEY_RUNTIME_CAPABILITIES,
|
|
...MOBILE_RUNTIME_CAPABILITIES,
|
|
...ORCAD_RUNTIME_CAPABILITIES,
|
|
...ORCHESTRATION_RUNTIME_CAPABILITIES,
|
|
...agentLaunchCapabilities.AGENT_LAUNCH_RUNTIME_CAPABILITIES,
|
|
...AGENT_SESSION_RUNTIME_CAPABILITIES,
|
|
...ACCOUNT_RUNTIME_CAPABILITIES,
|
|
...SKILL_RUNTIME_CAPABILITIES,
|
|
...AUTOMATION_RUNTIME_CAPABILITIES,
|
|
...WORKTREE_RUNTIME_CAPABILITIES,
|
|
...PREFLIGHT_RUNTIME_CAPABILITIES,
|
|
...WORKSPACE_PORTS_RUNTIME_CAPABILITIES,
|
|
...SESSION_TABS_RUNTIME_CAPABILITIES,
|
|
...TERMINAL_RUNTIME_CAPABILITIES,
|
|
...FILES_RUNTIME_CAPABILITIES,
|
|
...BROWSER_RUNTIME_CAPABILITIES,
|
|
...SOURCE_CONTROL_RUNTIME_CAPABILITIES,
|
|
...TASK_SOURCE_RUNTIME_CAPABILITIES,
|
|
...AI_VAULT_RUNTIME_CAPABILITIES
|
|
] as const)()
|
|
|
|
export type RuntimeCapability = (typeof RUNTIME_CAPABILITIES)[number] | (string & {})
|
|
|
|
// COMPAT(mobileProtocolAliases): added 2026-05-15 for mobile builds that
|
|
// still read desktop/mobile names; remove once mobile reads runtime names.
|
|
export const DESKTOP_PROTOCOL_VERSION = RUNTIME_PROTOCOL_VERSION
|
|
export const MIN_COMPATIBLE_MOBILE_VERSION = MIN_COMPATIBLE_RUNTIME_CLIENT_VERSION
|