@langspan/client 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ import type { RemoteEnableCommand, RemoteDisableCommand, RemoteOutboxCommand, Re
4
4
  import type { RecordCheckCommand, FlakyTestsCommand, ForgetFlakyTestCommand, ExamplesCommand, RetireExampleCommand, ShowExampleCommand, AutoCheckEnableCommand, AutoCheckDisableCommand, WakeEnableCommand, WakeDisableCommand, ObserveWakeCommand, WakeAttachCommand, WakeAnswerCommand, CheckStatusCommand, LandingReadinessCommand, RecordLandingCommand, TakeTurnCommand, ReleaseTurnCommand, LeaveTurnQueueCommand, TurnQueueCommand } from "./checks.ts";
5
5
  import type { ObserveInterfaceCommand, ObserveInterfaceDependentsCommand, RememberCommand, ObserveNoteAnchorsCommand, ForgetCommand, DecideCommand, DecisionsCommand, SendMessageCommand, AckMessageCommand, ShowMessageCommand, MessageStatusCommand, HandoffCommand, RetractMessageCommand } from "./notes.ts";
6
6
  import type { ObserveScanCommand, ObserveCheckoutCommand, ObserveCheckoutRunCommand, ObserveUncoordinatedCommand, ObserveHostsCommand } from "./scans.ts";
7
- import type { RecapCommand, TrailsCommand, RecallCommand, HistoryCommand, TodayCommand, GitTroubleCommand, CollisionsCommand, ReportCommand, CountCommand, UsageCommand, StatusLineCommand, StatusCommand, StatusRecordsCommand, DashboardCommand, VersionCommand, EventsCommand, ChangesCommand, CompactCommand } from "./reads.ts";
7
+ import type { RecapCommand, TrailsCommand, RecallCommand, HistoryCommand, TodayCommand, GitTroubleCommand, CollisionResolveCommand, CollisionsCommand, ReportCommand, CountCommand, UsageCommand, StatusLineCommand, StatusCommand, StatusRecordsCommand, DashboardCommand, VersionCommand, EventsCommand, ChangesCommand, CompactCommand } from "./reads.ts";
8
8
  import type { RecordRefusalCommand, PolicyCommand, SetPolicyCommand, HoldersCommand, RecordWaitCommand, RecordUsageCommand } from "./policy.ts";
9
9
  import type { GraphSymbolCommand, GraphReferencesCommand, GraphImpactCommand, GraphBlindSpotsCommand, GraphPathCommand, GraphMapCommand, PlanWorkCommand, GraphContextCommand, GraphInflightCommand, GraphExportCommand, GraphImportCommand, CheckWriteCommand, CheckCallsCommand, AcknowledgeInterfaceCommand, BetweenStepsCommand, InterfaceShownCommand, OutlineReadCommand } from "./graph.ts";
10
10
  import type { SessionPromptCommand, SetPromptTargetsCommand, ObservePresenceCommand, SetPresenceCommand, SessionEndCommand, SessionStopCommand, ObserveToolBatchCommand, BriefCommand, AdoptCommand } from "./turns.ts";
@@ -19,7 +19,7 @@ export type * from "./policy.ts";
19
19
  export type * from "./graph.ts";
20
20
  export type * from "./turns.ts";
21
21
  /** Every `op` of wire version 10, sorted. */
22
- export declare const OPS: readonly ["ack_message", "acknowledge_interface", "admit", "admit_expected", "admit_tool", "adopt", "auto_check_disable", "auto_check_enable", "between_steps", "brief", "changes", "check_calls", "check_status", "check_write", "collisions", "compact", "complete", "confirm_told", "count", "dashboard", "decide", "decisions", "events", "examples", "flaky_tests", "forget", "forget_flaky_test", "forget_remote", "forget_told", "git_trouble", "graph_blind_spots", "graph_context", "graph_export", "graph_impact", "graph_import", "graph_inflight", "graph_map", "graph_path", "graph_references", "graph_symbol", "handoff", "history", "holders", "intent_end", "intent_plan", "intent_set", "interface_shown", "landing_readiness", "leave_turn_queue", "message_status", "observe", "observe_branch", "observe_checkout", "observe_checkout_run", "observe_disk", "observe_hosts", "observe_interface", "observe_interface_dependents", "observe_note_anchors", "observe_presence", "observe_remote", "observe_scan", "observe_session_liveness", "observe_source", "observe_tool", "observe_tool_batch", "observe_uncoordinated", "observe_wake", "observe_workspace_git", "outline_read", "plan_work", "policy", "recall", "recap", "record_check", "record_context", "record_git_trouble", "record_landing", "record_refusal", "record_usage", "record_wait", "release_turn", "remember", "remote_disable", "remote_enable", "remote_outbox", "remote_published", "remote_sent", "remote_withdrawn", "report", "report_keys", "reserve", "retire_example", "retract_message", "send_message", "session_end", "session_prompt", "session_register", "session_seen", "session_stop", "set_policy", "set_presence", "set_prompt_targets", "show_example", "show_message", "status", "status_line", "status_records", "take_turn", "today", "trails", "turn_queue", "usage", "version", "wake_answer", "wake_attach", "wake_disable", "wake_enable", "workspace_list", "workspace_move", "workspace_register", "workspace_remove"];
22
+ export declare const OPS: readonly ["ack_message", "acknowledge_interface", "admit", "admit_expected", "admit_tool", "adopt", "auto_check_disable", "auto_check_enable", "between_steps", "brief", "changes", "check_calls", "check_status", "check_write", "collision_resolve", "collisions", "compact", "complete", "confirm_told", "count", "dashboard", "decide", "decisions", "events", "examples", "flaky_tests", "forget", "forget_flaky_test", "forget_remote", "forget_told", "git_trouble", "graph_blind_spots", "graph_context", "graph_export", "graph_impact", "graph_import", "graph_inflight", "graph_map", "graph_path", "graph_references", "graph_symbol", "handoff", "history", "holders", "intent_end", "intent_plan", "intent_set", "interface_shown", "landing_readiness", "leave_turn_queue", "message_status", "observe", "observe_branch", "observe_checkout", "observe_checkout_run", "observe_disk", "observe_hosts", "observe_interface", "observe_interface_dependents", "observe_note_anchors", "observe_presence", "observe_remote", "observe_scan", "observe_session_liveness", "observe_source", "observe_tool", "observe_tool_batch", "observe_uncoordinated", "observe_wake", "observe_workspace_git", "outline_read", "plan_work", "policy", "recall", "recap", "record_check", "record_context", "record_git_trouble", "record_landing", "record_refusal", "record_usage", "record_wait", "release_turn", "remember", "remote_disable", "remote_enable", "remote_outbox", "remote_published", "remote_sent", "remote_withdrawn", "report", "report_keys", "reserve", "retire_example", "retract_message", "send_message", "session_end", "session_prompt", "session_register", "session_seen", "session_stop", "set_policy", "set_presence", "set_prompt_targets", "show_example", "show_message", "status", "status_line", "status_records", "take_turn", "today", "trails", "turn_queue", "usage", "version", "wake_answer", "wake_attach", "wake_disable", "wake_enable", "workspace_list", "workspace_move", "workspace_register", "workspace_remove"];
23
23
  export type Op = (typeof OPS)[number];
24
24
  /** A command of this coordinator, told apart by `op`. */
25
- export type Command = WorkspaceRegisterCommand | WorkspaceListCommand | WorkspaceMoveCommand | WorkspaceRemoveCommand | SessionRegisterCommand | ObserveSessionLivenessCommand | SessionSeenCommand | RecordContextCommand | ForgetToldCommand | ConfirmToldCommand | IntentSetCommand | IntentPlanCommand | IntentEndCommand | ReserveCommand | AdmitCommand | AdmitExpectedCommand | AdmitToolCommand | ObserveSourceCommand | ReportKeysCommand | CompleteCommand | ObserveCommand | ObserveToolCommand | ObserveDiskCommand | ObserveBranchCommand | ObserveWorkspaceGitCommand | RecordGitTroubleCommand | RemoteEnableCommand | RemoteDisableCommand | RemoteOutboxCommand | RemotePublishedCommand | RemoteSentCommand | ObserveRemoteCommand | ForgetRemoteCommand | RemoteWithdrawnCommand | RecordCheckCommand | FlakyTestsCommand | ForgetFlakyTestCommand | ExamplesCommand | RetireExampleCommand | ShowExampleCommand | AutoCheckEnableCommand | AutoCheckDisableCommand | WakeEnableCommand | WakeDisableCommand | ObserveWakeCommand | WakeAttachCommand | WakeAnswerCommand | CheckStatusCommand | LandingReadinessCommand | RecordLandingCommand | TakeTurnCommand | ReleaseTurnCommand | LeaveTurnQueueCommand | TurnQueueCommand | ObserveInterfaceCommand | ObserveInterfaceDependentsCommand | RememberCommand | ObserveNoteAnchorsCommand | ForgetCommand | DecideCommand | DecisionsCommand | SendMessageCommand | AckMessageCommand | ShowMessageCommand | MessageStatusCommand | HandoffCommand | RetractMessageCommand | ObserveScanCommand | ObserveCheckoutCommand | ObserveCheckoutRunCommand | ObserveUncoordinatedCommand | ObserveHostsCommand | RecapCommand | TrailsCommand | RecallCommand | HistoryCommand | TodayCommand | GitTroubleCommand | CollisionsCommand | ReportCommand | CountCommand | UsageCommand | StatusLineCommand | StatusCommand | StatusRecordsCommand | DashboardCommand | VersionCommand | EventsCommand | ChangesCommand | CompactCommand | RecordRefusalCommand | PolicyCommand | SetPolicyCommand | HoldersCommand | RecordWaitCommand | RecordUsageCommand | GraphSymbolCommand | GraphReferencesCommand | GraphImpactCommand | GraphBlindSpotsCommand | GraphPathCommand | GraphMapCommand | PlanWorkCommand | GraphContextCommand | GraphInflightCommand | GraphExportCommand | GraphImportCommand | CheckWriteCommand | CheckCallsCommand | AcknowledgeInterfaceCommand | BetweenStepsCommand | InterfaceShownCommand | OutlineReadCommand | SessionPromptCommand | SetPromptTargetsCommand | ObservePresenceCommand | SetPresenceCommand | SessionEndCommand | SessionStopCommand | ObserveToolBatchCommand | BriefCommand | AdoptCommand;
25
+ export type Command = WorkspaceRegisterCommand | WorkspaceListCommand | WorkspaceMoveCommand | WorkspaceRemoveCommand | SessionRegisterCommand | ObserveSessionLivenessCommand | SessionSeenCommand | RecordContextCommand | ForgetToldCommand | ConfirmToldCommand | IntentSetCommand | IntentPlanCommand | IntentEndCommand | ReserveCommand | AdmitCommand | AdmitExpectedCommand | AdmitToolCommand | ObserveSourceCommand | ReportKeysCommand | CompleteCommand | ObserveCommand | ObserveToolCommand | ObserveDiskCommand | ObserveBranchCommand | ObserveWorkspaceGitCommand | RecordGitTroubleCommand | RemoteEnableCommand | RemoteDisableCommand | RemoteOutboxCommand | RemotePublishedCommand | RemoteSentCommand | ObserveRemoteCommand | ForgetRemoteCommand | RemoteWithdrawnCommand | RecordCheckCommand | FlakyTestsCommand | ForgetFlakyTestCommand | ExamplesCommand | RetireExampleCommand | ShowExampleCommand | AutoCheckEnableCommand | AutoCheckDisableCommand | WakeEnableCommand | WakeDisableCommand | ObserveWakeCommand | WakeAttachCommand | WakeAnswerCommand | CheckStatusCommand | LandingReadinessCommand | RecordLandingCommand | TakeTurnCommand | ReleaseTurnCommand | LeaveTurnQueueCommand | TurnQueueCommand | ObserveInterfaceCommand | ObserveInterfaceDependentsCommand | RememberCommand | ObserveNoteAnchorsCommand | ForgetCommand | DecideCommand | DecisionsCommand | SendMessageCommand | AckMessageCommand | ShowMessageCommand | MessageStatusCommand | HandoffCommand | RetractMessageCommand | ObserveScanCommand | ObserveCheckoutCommand | ObserveCheckoutRunCommand | ObserveUncoordinatedCommand | ObserveHostsCommand | RecapCommand | TrailsCommand | RecallCommand | HistoryCommand | TodayCommand | GitTroubleCommand | CollisionResolveCommand | CollisionsCommand | ReportCommand | CountCommand | UsageCommand | StatusLineCommand | StatusCommand | StatusRecordsCommand | DashboardCommand | VersionCommand | EventsCommand | ChangesCommand | CompactCommand | RecordRefusalCommand | PolicyCommand | SetPolicyCommand | HoldersCommand | RecordWaitCommand | RecordUsageCommand | GraphSymbolCommand | GraphReferencesCommand | GraphImpactCommand | GraphBlindSpotsCommand | GraphPathCommand | GraphMapCommand | PlanWorkCommand | GraphContextCommand | GraphInflightCommand | GraphExportCommand | GraphImportCommand | CheckWriteCommand | CheckCallsCommand | AcknowledgeInterfaceCommand | BetweenStepsCommand | InterfaceShownCommand | OutlineReadCommand | SessionPromptCommand | SetPromptTargetsCommand | ObservePresenceCommand | SetPresenceCommand | SessionEndCommand | SessionStopCommand | ObserveToolBatchCommand | BriefCommand | AdoptCommand;
@@ -17,6 +17,7 @@ export const OPS = [
17
17
  "check_calls",
18
18
  "check_status",
19
19
  "check_write",
20
+ "collision_resolve",
20
21
  "collisions",
21
22
  "compact",
22
23
  "complete",
@@ -42,6 +42,15 @@ export interface CollisionsCommand {
42
42
  /** Leave resolved and expired items out. */
43
43
  open_only?: boolean;
44
44
  }
45
+ /** Mark one open collision resolved by hand; capability `collision_resolve`. */
46
+ export interface CollisionResolveCommand {
47
+ op: "collision_resolve";
48
+ workspace_id: string;
49
+ /** The `id` a collisions list gave. */
50
+ collision_id: string;
51
+ /** The resolving session; absent for the owner's terminal. */
52
+ session_id?: string;
53
+ }
45
54
  /** Read-only: the Git trouble seen in one workspace's agents' shells; capability `git_trouble`. */
46
55
  export interface GitTroubleCommand {
47
56
  op: "git_trouble";
@@ -2,7 +2,7 @@ import type { WorkspaceOutcome, WorkspacesOutcome, WorkspaceMovedOutcome, Worksp
2
2
  import type { IntentOutcome, IntentEndedOutcome, ReservedOutcome, AdmittedOutcome, ConflictOutcome, CompletedOutcome, ObservedOutcome, DiskObservedOutcome, BranchObservedOutcome, GitTroubleRecordedOutcome, BriefingOutcome, StaleBaseOutcome, UnreadLinesOutcome, InterfaceHeldOutcome, SourceObservedOutcome, KeysReportedOutcome } from "./admission.ts";
3
3
  import type { StatusOutcome, StatusRecordsOutcome, EventsOutcome, ChangesOutcome, WorkspaceGitOutcome, RemoteLinkOutcome, RemoteDisabledOutcome, RemoteOutboxOutcome, RemoteSentOutcome, CompactionOutcome, RemoteObservedOutcome, DashboardOutcome, VersionOutcome, ErrorOutcome } from "./log.ts";
4
4
  import type { AutoCheckOutcome, AutoCheckDisabledOutcome, WakeOutcome, CheckRecordedOutcome, ChecksOutcome, FlakyTestsOutcome, FlakyTestForgottenOutcome, ExamplesOutcome, ExampleRetiredOutcome, ExampleShownOutcome, ReadinessOutcome, LandedOutcome, TurnOutcome, TurnBusyOutcome, TurnWaitingOutcome, TurnUnavailableOutcome, TurnQueueOutcome, TurnQueueLeftOutcome, TurnReleasedOutcome } from "./checks.ts";
5
- import type { InterfaceObservedOutcome, InterfaceDependentsObservedOutcome, RememberedOutcome, NoteAnchorsObservedOutcome, DecidedOutcome, DecisionsOutcome, ForgottenOutcome, MessageSentOutcome, MessageAcknowledgedOutcome, MessageShownOutcome, MessageStatusOutcome, MessageRetractedOutcome, RecapOutcome, TrailsOutcome, RecallOutcome, HistoryOutcome, TodayOutcome, GitTroubleOutcome, CollisionsOutcome, ReportOutcome, CountOutcome, UsageOutcome, StatusLineOutcome, RefusalRecordedOutcome, PolicyOutcome, HoldersOutcome, WaitRecordedOutcome, UsageRecordedOutcome } from "./notes.ts";
5
+ import type { InterfaceObservedOutcome, InterfaceDependentsObservedOutcome, RememberedOutcome, NoteAnchorsObservedOutcome, DecidedOutcome, DecisionsOutcome, ForgottenOutcome, MessageSentOutcome, MessageAcknowledgedOutcome, MessageShownOutcome, MessageStatusOutcome, MessageRetractedOutcome, RecapOutcome, TrailsOutcome, RecallOutcome, HistoryOutcome, TodayOutcome, GitTroubleOutcome, CollisionResolvedOutcome, CollisionsOutcome, ReportOutcome, CountOutcome, UsageOutcome, StatusLineOutcome, RefusalRecordedOutcome, PolicyOutcome, HoldersOutcome, WaitRecordedOutcome, UsageRecordedOutcome } from "./notes.ts";
6
6
  import type { ScanObservedOutcome, HostsObservedOutcome, CheckoutObservedOutcome, CheckoutRunObservedOutcome, UncoordinatedObservedOutcome, GraphOutcome, GraphContextOutcome, GraphInflightOutcome, GraphPathOutcome, GraphMapOutcome, PlanWorkOutcome, GraphExportedOutcome, GraphImportedOutcome, CallBreaksOutcome, WriteCheckOutcome, GraphBlindSpotsOutcome, InterfaceAcknowledgedOutcome, ReadOutlineOutcome, BetweenStepsOutcome } from "./graph.ts";
7
7
  export type * from "./sessions.ts";
8
8
  export type * from "./admission.ts";
@@ -11,10 +11,10 @@ export type * from "./checks.ts";
11
11
  export type * from "./notes.ts";
12
12
  export type * from "./graph.ts";
13
13
  /** Every outcome `type` of wire version 10, sorted. */
14
- export declare const OUTCOME_TYPES: readonly ["admitted", "adopted", "auto_check", "auto_check_disabled", "between_steps", "branch_observed", "briefing", "call_breaks", "changes", "check_recorded", "checkout_observed", "checkout_run_observed", "checks", "collisions", "compaction", "completed", "conflict", "context_recorded", "count", "dashboard", "decided", "decisions", "disk_observed", "error", "events", "example_retired", "example_shown", "examples", "flaky_test_forgotten", "flaky_tests", "forgotten", "git_trouble", "git_trouble_recorded", "graph", "graph_blind_spots", "graph_context", "graph_exported", "graph_imported", "graph_inflight", "graph_map", "graph_path", "history", "holders", "hosts_observed", "intent", "intent_ended", "interface_acknowledged", "interface_dependents_observed", "interface_held", "interface_observed", "keys_reported", "landed", "message_acknowledged", "message_retracted", "message_sent", "message_shown", "message_status", "note_anchors_observed", "observed", "plan_work", "policy", "presence", "presence_observed", "prompt_targets", "read_outline", "readiness", "recall", "recap", "refusal_recorded", "remembered", "remote_disabled", "remote_link", "remote_observed", "remote_outbox", "remote_sent", "report", "reserved", "scan_observed", "session", "session_ended", "session_liveness", "session_prompted", "session_seen", "session_stopped", "source_observed", "stale_base", "status", "status_line", "status_records", "today", "told_confirmed", "told_forgotten", "tool_batch_observed", "trails", "turn", "turn_busy", "turn_queue", "turn_queue_left", "turn_released", "turn_unavailable", "turn_waiting", "uncoordinated_observed", "unread_lines", "usage", "usage_recorded", "version", "wait_recorded", "wake", "workspace", "workspace_git", "workspace_moved", "workspace_removal", "workspaces", "write_check"];
14
+ export declare const OUTCOME_TYPES: readonly ["admitted", "adopted", "auto_check", "auto_check_disabled", "between_steps", "branch_observed", "briefing", "call_breaks", "changes", "check_recorded", "checkout_observed", "checkout_run_observed", "checks", "collision_resolved", "collisions", "compaction", "completed", "conflict", "context_recorded", "count", "dashboard", "decided", "decisions", "disk_observed", "error", "events", "example_retired", "example_shown", "examples", "flaky_test_forgotten", "flaky_tests", "forgotten", "git_trouble", "git_trouble_recorded", "graph", "graph_blind_spots", "graph_context", "graph_exported", "graph_imported", "graph_inflight", "graph_map", "graph_path", "history", "holders", "hosts_observed", "intent", "intent_ended", "interface_acknowledged", "interface_dependents_observed", "interface_held", "interface_observed", "keys_reported", "landed", "message_acknowledged", "message_retracted", "message_sent", "message_shown", "message_status", "note_anchors_observed", "observed", "plan_work", "policy", "presence", "presence_observed", "prompt_targets", "read_outline", "readiness", "recall", "recap", "refusal_recorded", "remembered", "remote_disabled", "remote_link", "remote_observed", "remote_outbox", "remote_sent", "report", "reserved", "scan_observed", "session", "session_ended", "session_liveness", "session_prompted", "session_seen", "session_stopped", "source_observed", "stale_base", "status", "status_line", "status_records", "today", "told_confirmed", "told_forgotten", "tool_batch_observed", "trails", "turn", "turn_busy", "turn_queue", "turn_queue_left", "turn_released", "turn_unavailable", "turn_waiting", "uncoordinated_observed", "unread_lines", "usage", "usage_recorded", "version", "wait_recorded", "wake", "workspace", "workspace_git", "workspace_moved", "workspace_removal", "workspaces", "write_check"];
15
15
  export type OutcomeType = (typeof OUTCOME_TYPES)[number];
16
16
  /** An answer's outcome, told apart by `type`. */
17
- export type Outcome = WorkspaceOutcome | WorkspacesOutcome | WorkspaceMovedOutcome | WorkspaceRemovalOutcome | SessionOutcome | SessionLivenessOutcome | SessionSeenOutcome | ContextRecordedOutcome | ToldForgottenOutcome | ToldConfirmedOutcome | SessionPromptedOutcome | PromptTargetsOutcome | PresenceObservedOutcome | PresenceOutcome | SessionEndedOutcome | AdoptedOutcome | SessionStoppedOutcome | ToolBatchObservedOutcome | IntentOutcome | IntentEndedOutcome | ReservedOutcome | AdmittedOutcome | ConflictOutcome | CompletedOutcome | ObservedOutcome | DiskObservedOutcome | BranchObservedOutcome | GitTroubleRecordedOutcome | BriefingOutcome | StaleBaseOutcome | UnreadLinesOutcome | InterfaceHeldOutcome | SourceObservedOutcome | KeysReportedOutcome | StatusOutcome | StatusRecordsOutcome | EventsOutcome | ChangesOutcome | WorkspaceGitOutcome | RemoteLinkOutcome | RemoteDisabledOutcome | RemoteOutboxOutcome | RemoteSentOutcome | CompactionOutcome | RemoteObservedOutcome | DashboardOutcome | VersionOutcome | ErrorOutcome | AutoCheckOutcome | AutoCheckDisabledOutcome | WakeOutcome | CheckRecordedOutcome | ChecksOutcome | FlakyTestsOutcome | FlakyTestForgottenOutcome | ExamplesOutcome | ExampleRetiredOutcome | ExampleShownOutcome | ReadinessOutcome | LandedOutcome | TurnOutcome | TurnBusyOutcome | TurnWaitingOutcome | TurnUnavailableOutcome | TurnQueueOutcome | TurnQueueLeftOutcome | TurnReleasedOutcome | InterfaceObservedOutcome | InterfaceDependentsObservedOutcome | RememberedOutcome | NoteAnchorsObservedOutcome | DecidedOutcome | DecisionsOutcome | ForgottenOutcome | MessageSentOutcome | MessageAcknowledgedOutcome | MessageShownOutcome | MessageStatusOutcome | MessageRetractedOutcome | RecapOutcome | TrailsOutcome | RecallOutcome | HistoryOutcome | TodayOutcome | GitTroubleOutcome | CollisionsOutcome | ReportOutcome | CountOutcome | UsageOutcome | StatusLineOutcome | RefusalRecordedOutcome | PolicyOutcome | HoldersOutcome | WaitRecordedOutcome | UsageRecordedOutcome | ScanObservedOutcome | HostsObservedOutcome | CheckoutObservedOutcome | CheckoutRunObservedOutcome | UncoordinatedObservedOutcome | GraphOutcome | GraphContextOutcome | GraphInflightOutcome | GraphPathOutcome | GraphMapOutcome | PlanWorkOutcome | GraphExportedOutcome | GraphImportedOutcome | CallBreaksOutcome | WriteCheckOutcome | GraphBlindSpotsOutcome | InterfaceAcknowledgedOutcome | ReadOutlineOutcome | BetweenStepsOutcome;
17
+ export type Outcome = WorkspaceOutcome | WorkspacesOutcome | WorkspaceMovedOutcome | WorkspaceRemovalOutcome | SessionOutcome | SessionLivenessOutcome | SessionSeenOutcome | ContextRecordedOutcome | ToldForgottenOutcome | ToldConfirmedOutcome | SessionPromptedOutcome | PromptTargetsOutcome | PresenceObservedOutcome | PresenceOutcome | SessionEndedOutcome | AdoptedOutcome | SessionStoppedOutcome | ToolBatchObservedOutcome | IntentOutcome | IntentEndedOutcome | ReservedOutcome | AdmittedOutcome | ConflictOutcome | CompletedOutcome | ObservedOutcome | DiskObservedOutcome | BranchObservedOutcome | GitTroubleRecordedOutcome | BriefingOutcome | StaleBaseOutcome | UnreadLinesOutcome | InterfaceHeldOutcome | SourceObservedOutcome | KeysReportedOutcome | StatusOutcome | StatusRecordsOutcome | EventsOutcome | ChangesOutcome | WorkspaceGitOutcome | RemoteLinkOutcome | RemoteDisabledOutcome | RemoteOutboxOutcome | RemoteSentOutcome | CompactionOutcome | RemoteObservedOutcome | DashboardOutcome | VersionOutcome | ErrorOutcome | AutoCheckOutcome | AutoCheckDisabledOutcome | WakeOutcome | CheckRecordedOutcome | ChecksOutcome | FlakyTestsOutcome | FlakyTestForgottenOutcome | ExamplesOutcome | ExampleRetiredOutcome | ExampleShownOutcome | ReadinessOutcome | LandedOutcome | TurnOutcome | TurnBusyOutcome | TurnWaitingOutcome | TurnUnavailableOutcome | TurnQueueOutcome | TurnQueueLeftOutcome | TurnReleasedOutcome | InterfaceObservedOutcome | InterfaceDependentsObservedOutcome | RememberedOutcome | NoteAnchorsObservedOutcome | DecidedOutcome | DecisionsOutcome | ForgottenOutcome | MessageSentOutcome | MessageAcknowledgedOutcome | MessageShownOutcome | MessageStatusOutcome | MessageRetractedOutcome | RecapOutcome | TrailsOutcome | RecallOutcome | HistoryOutcome | TodayOutcome | GitTroubleOutcome | CollisionResolvedOutcome | CollisionsOutcome | ReportOutcome | CountOutcome | UsageOutcome | StatusLineOutcome | RefusalRecordedOutcome | PolicyOutcome | HoldersOutcome | WaitRecordedOutcome | UsageRecordedOutcome | ScanObservedOutcome | HostsObservedOutcome | CheckoutObservedOutcome | CheckoutRunObservedOutcome | UncoordinatedObservedOutcome | GraphOutcome | GraphContextOutcome | GraphInflightOutcome | GraphPathOutcome | GraphMapOutcome | PlanWorkOutcome | GraphExportedOutcome | GraphImportedOutcome | CallBreaksOutcome | WriteCheckOutcome | GraphBlindSpotsOutcome | InterfaceAcknowledgedOutcome | ReadOutlineOutcome | BetweenStepsOutcome;
18
18
  /** Whether this client knows the outcome's `type`, and so its fields. */
19
19
  export declare function isKnownOutcome(outcome: {
20
20
  type: string;
@@ -17,6 +17,7 @@ export const OUTCOME_TYPES = [
17
17
  "checkout_observed",
18
18
  "checkout_run_observed",
19
19
  "checks",
20
+ "collision_resolved",
20
21
  "collisions",
21
22
  "compaction",
22
23
  "completed",
@@ -1,4 +1,4 @@
1
- import type { Conflict, History, InterfaceNotice, CollisionList, LiveTrouble, Message, MessageStatus, Note, PolicyRow, PushReason, Recall, Recap, RecordedDecision, RefusalCount, Report, ShownMessage, StatusLine, Today, TrailView, UsageTotals } from "../records.ts";
1
+ import type { Conflict, History, InterfaceNotice, Collision, CollisionList, LiveTrouble, Message, MessageStatus, Note, PolicyRow, PushReason, Recall, Recap, RecordedDecision, RefusalCount, Report, ShownMessage, StatusLine, Today, TrailView, UsageTotals } from "../records.ts";
2
2
  export interface InterfaceObservedOutcome {
3
3
  type: "interface_observed";
4
4
  notice: InterfaceNotice;
@@ -97,6 +97,11 @@ export interface CollisionsOutcome {
97
97
  workspace_id: string;
98
98
  list: CollisionList;
99
99
  }
100
+ /** The collision as it now stands; one already closed is returned as it is and nothing is recorded. */
101
+ export interface CollisionResolvedOutcome {
102
+ type: "collision_resolved";
103
+ collision: Collision;
104
+ }
100
105
  export interface GitTroubleOutcome {
101
106
  type: "git_trouble";
102
107
  live: LiveTrouble;
@@ -14,7 +14,7 @@ export declare const MAX_FRAME_BYTES = 65536;
14
14
  * knows. Pinned to `src/protocol.rs` and `fixtures/capabilities/answer.json`
15
15
  * by the tests.
16
16
  */
17
- export declare const CAPABILITIES: readonly ["anchored_notes", "briefing_memory", "briefing_outcomes", "build_errors", "chained_events", "collisions", "composition_table", "confirmed_briefings", "git_trouble", "inflight_partial", "intent_contracts", "intent_frames", "intent_overlaps", "interface_held", "interface_notices", "landing_held", "landing_rewrites", "message_paths", "notice_recipients", "opaque_events", "outline_reads", "place_told", "push_messages", "recap_since", "refusal_outcomes", "refused_roots", "remote_messages", "rename_held", "rename_holds", "renames", "reservations", "same_task", "sender_source", "session_limits", "standing_decisions", "subscriptions", "symbol_findings", "tolerant_responses", "trails", "unreadable_waits", "usage", "versioned_keys", "wake", "withheld_events", "worked_examples"];
17
+ export declare const CAPABILITIES: readonly ["anchored_notes", "briefing_memory", "briefing_outcomes", "build_errors", "chained_events", "collision_resolve", "collisions", "composition_table", "confirmed_briefings", "git_trouble", "inflight_partial", "intent_contracts", "intent_frames", "intent_overlaps", "interface_held", "interface_notices", "landing_held", "landing_rewrites", "message_paths", "notice_recipients", "opaque_events", "outline_reads", "place_told", "push_messages", "recap_since", "refusal_outcomes", "refused_roots", "remote_messages", "rename_held", "rename_holds", "renames", "reservations", "same_task", "sender_source", "session_limits", "standing_decisions", "subscriptions", "symbol_findings", "tolerant_responses", "trails", "unreadable_waits", "usage", "versioned_keys", "wake", "withheld_events", "worked_examples"];
18
18
  /**
19
19
  * What the coordinator serves and this client does not speak yet (ADR 0043,
20
20
  * "Transport"). The client names the `subscriptions` capability, which
package/dist/protocol.js CHANGED
@@ -20,6 +20,7 @@ export const CAPABILITIES = [
20
20
  "briefing_outcomes",
21
21
  "build_errors",
22
22
  "chained_events",
23
+ "collision_resolve",
23
24
  "collisions",
24
25
  "composition_table",
25
26
  "confirmed_briefings",
package/dist/records.d.ts CHANGED
@@ -200,6 +200,8 @@ export interface Collision {
200
200
  /** Wall time (Unix milliseconds) of the latest refusal of the item. */
201
201
  at_ms: number;
202
202
  state: CollisionState;
203
+ /** The session that marked it resolved by hand; absent for the owner's terminal and for a later write's resolution. */
204
+ resolved_by?: string;
203
205
  }
204
206
  /** Open items first, then the closed ones, each newest first. */
205
207
  export interface CollisionList {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langspan/client",
3
- "version": "0.25.0",
3
+ "version": "0.26.0",
4
4
  "description": "A TypeScript client for the LangSpan coordination protocol",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/Langspan/LangSpan.dev/tree/main/clients/typescript",