@langspan/client 0.21.0 → 0.23.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.
@@ -1,4 +1,5 @@
1
1
  import type { CheckReport, CheckResult, LandingAttempt, LeftQueue, Rewritten, SymbolFindings, TestResults, TurnQueueing, WiderCheck } from "../values.ts";
2
+ import type { WakeSetting, WakeStep } from "../records.ts";
2
3
  export interface RecordCheckCommand {
3
4
  op: "record_check";
4
5
  workspace_id: string;
@@ -59,6 +60,35 @@ export interface AutoCheckDisableCommand {
59
60
  op: "auto_check_disable";
60
61
  workspace_id: string;
61
62
  }
63
+ /** Start the host headless for an owner message nobody took (ADR 0049). */
64
+ export interface WakeEnableCommand {
65
+ op: "wake_enable";
66
+ workspace_id: string;
67
+ setting: WakeSetting;
68
+ }
69
+ export interface WakeDisableCommand {
70
+ op: "wake_disable";
71
+ workspace_id: string;
72
+ }
73
+ /** The coordinator's wake worker reporting one step of a wake. */
74
+ export interface ObserveWakeCommand {
75
+ op: "observe_wake";
76
+ workspace_id: string;
77
+ wake_id: string;
78
+ step: WakeStep;
79
+ }
80
+ /** A starting session names the wake that started its host. */
81
+ export interface WakeAttachCommand {
82
+ op: "wake_attach";
83
+ session_id: string;
84
+ wake_id: string;
85
+ }
86
+ /** A woken session's final reply: what its wake answers the owner. */
87
+ export interface WakeAnswerCommand {
88
+ op: "wake_answer";
89
+ session_id: string;
90
+ text: string;
91
+ }
62
92
  /** Read-only: every check record and whether it applies to `tree_oid`. */
63
93
  export interface CheckStatusCommand {
64
94
  op: "check_status";
@@ -1,7 +1,7 @@
1
1
  import type { WorkspaceRegisterCommand, WorkspaceListCommand, WorkspaceMoveCommand, WorkspaceRemoveCommand, SessionRegisterCommand, ObserveSessionLivenessCommand, SessionSeenCommand, RecordContextCommand, ForgetToldCommand, ConfirmToldCommand } from "./sessions.ts";
2
2
  import type { IntentPlanCommand, IntentSetCommand, IntentEndCommand, ReserveCommand, AdmitCommand, AdmitExpectedCommand, AdmitToolCommand, ObserveSourceCommand, ReportKeysCommand, CompleteCommand, ObserveCommand, ObserveToolCommand, ObserveDiskCommand, ObserveBranchCommand, ObserveWorkspaceGitCommand, RecordGitTroubleCommand } from "./admission.ts";
3
3
  import type { RemoteEnableCommand, RemoteDisableCommand, RemoteOutboxCommand, RemotePublishedCommand, RemoteSentCommand, ObserveRemoteCommand, ForgetRemoteCommand, RemoteWithdrawnCommand } from "./remote.ts";
4
- import type { RecordCheckCommand, FlakyTestsCommand, ForgetFlakyTestCommand, ExamplesCommand, RetireExampleCommand, ShowExampleCommand, AutoCheckEnableCommand, AutoCheckDisableCommand, CheckStatusCommand, LandingReadinessCommand, RecordLandingCommand, TakeTurnCommand, ReleaseTurnCommand, LeaveTurnQueueCommand, TurnQueueCommand } from "./checks.ts";
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
7
  import type { RecapCommand, TrailsCommand, RecallCommand, HistoryCommand, TodayCommand, GitTroubleCommand, CollisionsCommand, ReportCommand, CountCommand, UsageCommand, StatusLineCommand, StatusCommand, StatusRecordsCommand, DashboardCommand, VersionCommand, EventsCommand, ChangesCommand, CompactCommand } from "./reads.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_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", "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", "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 | 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 | 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;
@@ -70,6 +70,7 @@ export const OPS = [
70
70
  "observe_tool",
71
71
  "observe_tool_batch",
72
72
  "observe_uncoordinated",
73
+ "observe_wake",
73
74
  "observe_workspace_git",
74
75
  "outline_read",
75
76
  "plan_work",
@@ -116,6 +117,10 @@ export const OPS = [
116
117
  "turn_queue",
117
118
  "usage",
118
119
  "version",
120
+ "wake_answer",
121
+ "wake_attach",
122
+ "wake_disable",
123
+ "wake_enable",
119
124
  "workspace_list",
120
125
  "workspace_move",
121
126
  "workspace_register",
package/dist/errors.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * crate's own test pins to the enum. The usage guide's "Error codes" table
6
6
  * says what each one means.
7
7
  */
8
- export declare const ERROR_CODES: readonly ["adoption_chain", "adoption_changed", "already_adopted", "already_published", "already_retracted", "coordination_unavailable", "different_repository", "different_task", "index_export_failed", "index_import_refused", "index_unavailable", "internal", "invalid_adoption", "invalid_alert", "invalid_away", "invalid_base", "invalid_batch", "invalid_branch_oids", "invalid_branch_ref", "invalid_calls", "invalid_check", "invalid_check_report", "invalid_checkout", "invalid_command", "invalid_conflict_table", "invalid_content_digest", "invalid_coverage", "invalid_cursor", "invalid_deadline", "invalid_digest", "invalid_event", "invalid_failure", "invalid_frame", "invalid_git_oid", "invalid_graph_context", "invalid_hosts", "invalid_id", "invalid_input_digest", "invalid_key", "invalid_landing", "invalid_left", "invalid_limit", "invalid_line_digests", "invalid_lines", "invalid_message", "invalid_move", "invalid_name", "invalid_note", "invalid_notice", "invalid_number", "invalid_overwrites", "invalid_participant", "invalid_path", "invalid_paths", "invalid_payload", "invalid_policy", "invalid_presence", "invalid_process_identity", "invalid_publication", "invalid_query", "invalid_reason", "invalid_refusal", "invalid_regions", "invalid_remote", "invalid_request", "invalid_request_id", "invalid_retention", "invalid_root", "invalid_sequence", "invalid_session", "invalid_subscription", "invalid_summary", "invalid_symbol", "invalid_symbols", "invalid_tag", "invalid_test_name", "invalid_test_results", "invalid_told", "invalid_ttl", "invalid_turn", "invalid_wait", "invalid_window", "invalid_workspace_verification", "lease_expired", "lease_id_reused", "lease_not_active", "lease_not_found", "message_not_kept", "message_secret_shape", "no_current_evidence", "not_checkout_top", "not_holder", "not_queued", "not_sender", "old_root_exists", "old_root_missing", "other_workspace", "own_publication", "owner_grant_off", "policy_fixed", "presence_off", "process_identity_mismatch", "read_timeout", "receipt_unreadable", "recipient_not_found", "remote_messages_full", "remote_messages_off", "remote_messages_quota", "remote_messages_unsupported", "remote_not_enabled", "remote_sharing_on", "report_busy", "report_unavailable", "request_id_conflict", "response_too_large", "root_derived_id", "scope_unknown", "secret_in_command", "secret_in_test_name", "sender_not_in_workspace", "session_conflict", "session_ended", "session_live", "session_not_found", "snapshot_mismatch", "stale_lease", "stale_liveness_observation", "stale_session", "status_part", "storage_error", "storage_operation", "subscriptions_full", "symbol_ambiguous", "symbol_not_found", "too_many_attempts", "too_many_inputs", "too_many_keys", "too_many_paths", "too_many_related_operations", "too_many_verified_overlaps", "turn_lost", "unknown_message", "unknown_notice", "unknown_session", "unknown_workspace", "unsupported_version", "workspace_busy", "workspace_changed", "workspace_conflict", "workspace_in_use", "workspace_not_found"];
8
+ export declare const ERROR_CODES: readonly ["adoption_chain", "adoption_changed", "already_adopted", "already_published", "already_retracted", "coordination_unavailable", "different_repository", "different_task", "index_export_failed", "index_import_refused", "index_unavailable", "internal", "invalid_adoption", "invalid_alert", "invalid_away", "invalid_base", "invalid_batch", "invalid_branch_oids", "invalid_branch_ref", "invalid_calls", "invalid_check", "invalid_check_report", "invalid_checkout", "invalid_command", "invalid_conflict_table", "invalid_content_digest", "invalid_coverage", "invalid_cursor", "invalid_deadline", "invalid_digest", "invalid_event", "invalid_failure", "invalid_frame", "invalid_git_oid", "invalid_graph_context", "invalid_hosts", "invalid_id", "invalid_input_digest", "invalid_key", "invalid_landing", "invalid_left", "invalid_limit", "invalid_line_digests", "invalid_lines", "invalid_message", "invalid_move", "invalid_name", "invalid_note", "invalid_notice", "invalid_number", "invalid_overwrites", "invalid_participant", "invalid_path", "invalid_paths", "invalid_payload", "invalid_policy", "invalid_presence", "invalid_process_identity", "invalid_publication", "invalid_query", "invalid_reason", "invalid_refusal", "invalid_regions", "invalid_remote", "invalid_request", "invalid_request_id", "invalid_retention", "invalid_root", "invalid_sequence", "invalid_session", "invalid_subscription", "invalid_summary", "invalid_symbol", "invalid_symbols", "invalid_tag", "invalid_test_name", "invalid_test_results", "invalid_told", "invalid_ttl", "invalid_turn", "invalid_wait", "invalid_wake", "invalid_window", "invalid_workspace_verification", "lease_expired", "lease_id_reused", "lease_not_active", "lease_not_found", "message_not_kept", "message_secret_shape", "no_current_evidence", "not_checkout_top", "not_holder", "not_queued", "not_sender", "old_root_exists", "old_root_missing", "other_workspace", "own_publication", "owner_grant_off", "policy_fixed", "presence_off", "process_identity_mismatch", "read_timeout", "receipt_unreadable", "recipient_not_found", "remote_messages_full", "remote_messages_off", "remote_messages_quota", "remote_messages_unsupported", "remote_not_enabled", "remote_sharing_on", "report_busy", "report_unavailable", "request_id_conflict", "response_too_large", "root_derived_id", "scope_unknown", "secret_in_command", "secret_in_test_name", "sender_not_in_workspace", "session_conflict", "session_ended", "session_live", "session_not_found", "snapshot_mismatch", "stale_lease", "stale_liveness_observation", "stale_session", "status_part", "storage_error", "storage_operation", "subscriptions_full", "symbol_ambiguous", "symbol_not_found", "too_many_attempts", "too_many_inputs", "too_many_keys", "too_many_paths", "too_many_related_operations", "too_many_verified_overlaps", "turn_lost", "unknown_message", "unknown_notice", "unknown_session", "unknown_wake", "unknown_workspace", "unsupported_version", "wake_not_due", "workspace_busy", "workspace_changed", "workspace_conflict", "workspace_in_use", "workspace_not_found"];
9
9
  /** A code of `ERROR_CODES`. */
10
10
  export type ErrorCode = (typeof ERROR_CODES)[number];
11
11
  /**
package/dist/errors.js CHANGED
@@ -88,6 +88,7 @@ export const ERROR_CODES = [
88
88
  "invalid_ttl",
89
89
  "invalid_turn",
90
90
  "invalid_wait",
91
+ "invalid_wake",
91
92
  "invalid_window",
92
93
  "invalid_workspace_verification",
93
94
  "lease_expired",
@@ -151,8 +152,10 @@ export const ERROR_CODES = [
151
152
  "unknown_message",
152
153
  "unknown_notice",
153
154
  "unknown_session",
155
+ "unknown_wake",
154
156
  "unknown_workspace",
155
157
  "unsupported_version",
158
+ "wake_not_due",
156
159
  "workspace_busy",
157
160
  "workspace_changed",
158
161
  "workspace_conflict",
@@ -1,4 +1,4 @@
1
- import type { AutoCheck, CheckRecord, CheckView, FlakyTest, Landing, ListedExample, QueuedLanding, Turn } from "../records.ts";
1
+ import type { AutoCheck, CheckRecord, CheckView, FlakyTest, Landing, ListedExample, QueuedLanding, Turn, WakeWorkspace } from "../records.ts";
2
2
  export interface AutoCheckOutcome {
3
3
  type: "auto_check";
4
4
  check: AutoCheck;
@@ -7,6 +7,12 @@ export interface AutoCheckDisabledOutcome {
7
7
  type: "auto_check_disabled";
8
8
  workspace_id: string;
9
9
  }
10
+ /** Wake in the workspace after a wake command (ADR 0049). */
11
+ export interface WakeOutcome {
12
+ type: "wake";
13
+ workspace_id: string;
14
+ wake: WakeWorkspace;
15
+ }
10
16
  export interface CheckRecordedOutcome {
11
17
  type: "check_recorded";
12
18
  check: CheckRecord;
@@ -1,7 +1,7 @@
1
1
  import type { WorkspaceOutcome, WorkspacesOutcome, WorkspaceMovedOutcome, WorkspaceRemovalOutcome, SessionOutcome, SessionLivenessOutcome, SessionSeenOutcome, ContextRecordedOutcome, ToldForgottenOutcome, ToldConfirmedOutcome, SessionPromptedOutcome, PromptTargetsOutcome, PresenceObservedOutcome, PresenceOutcome, SessionEndedOutcome, AdoptedOutcome, SessionStoppedOutcome, ToolBatchObservedOutcome } from "./sessions.ts";
2
2
  import type { IntentOutcome, IntentEndedOutcome, ReservedOutcome, AdmittedOutcome, ConflictOutcome, CompletedOutcome, ObservedOutcome, DiskObservedOutcome, BranchObservedOutcome, GitTroubleRecordedOutcome, BriefingOutcome, StaleBaseOutcome, UnreadLinesOutcome, 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
- import type { AutoCheckOutcome, AutoCheckDisabledOutcome, CheckRecordedOutcome, ChecksOutcome, FlakyTestsOutcome, FlakyTestForgottenOutcome, ExamplesOutcome, ExampleRetiredOutcome, ExampleShownOutcome, ReadinessOutcome, LandedOutcome, TurnOutcome, TurnBusyOutcome, TurnWaitingOutcome, TurnUnavailableOutcome, TurnQueueOutcome, TurnQueueLeftOutcome, TurnReleasedOutcome } from "./checks.ts";
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
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";
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";
@@ -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_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", "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", "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_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 | SourceObservedOutcome | KeysReportedOutcome | StatusOutcome | StatusRecordsOutcome | EventsOutcome | ChangesOutcome | WorkspaceGitOutcome | RemoteLinkOutcome | RemoteDisabledOutcome | RemoteOutboxOutcome | RemoteSentOutcome | CompactionOutcome | RemoteObservedOutcome | DashboardOutcome | VersionOutcome | ErrorOutcome | AutoCheckOutcome | AutoCheckDisabledOutcome | 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 | 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;
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;
@@ -110,6 +110,7 @@ export const OUTCOME_TYPES = [
110
110
  "usage_recorded",
111
111
  "version",
112
112
  "wait_recorded",
113
+ "wake",
113
114
  "workspace",
114
115
  "workspace_git",
115
116
  "workspace_moved",
@@ -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_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", "withheld_events", "worked_examples"];
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_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
@@ -56,6 +56,7 @@ export const CAPABILITIES = [
56
56
  "unreadable_waits",
57
57
  "usage",
58
58
  "versioned_keys",
59
+ "wake",
59
60
  "withheld_events",
60
61
  "worked_examples",
61
62
  ];
package/dist/records.d.ts CHANGED
@@ -174,6 +174,10 @@ export interface TokenCounts {
174
174
  export type TrailView = Fields;
175
175
  export type Turn = Fields;
176
176
  export type UsageTotals = Fields;
177
+ /** Wake (ADR 0049); capability `wake`. */
178
+ export type WakeSetting = Fields;
179
+ export type WakeStep = Fields;
180
+ export type WakeWorkspace = Fields;
177
181
  export type WorkspaceEnding = Fields;
178
182
  export type WorkspaceGit = Fields;
179
183
  export type WorkspaceKept = Fields;
@@ -182,7 +186,7 @@ export type WriteCheck = Fields;
182
186
  /** Why a message sent with `now` was not pushed (`messages.rs`, ADR 0048). */
183
187
  export type PushReason = "not_accepting" | "no_listener" | "timeout" | "rate_limited";
184
188
  /** What refused the work of a collision; capability `collisions`. */
185
- export type CollisionKind = "conflict" | "stale" | "unread_lines" | "commit";
189
+ export type CollisionKind = "conflict" | "stale" | "unread_lines" | "commit" | "landing";
186
190
  /** Where a collision stands: resolved by the refused session's admitted retry, or expired after 24 hours. */
187
191
  export type CollisionState = "open" | "resolved" | "expired";
188
192
  /** A refusal still to reconcile. Paths and session IDs are repository and peer text: data. */
package/dist/values.d.ts CHANGED
@@ -272,6 +272,7 @@ export type AttemptResult = {
272
272
  type: "check_failed";
273
273
  } | {
274
274
  type: "not_combinable";
275
+ paths?: string[];
275
276
  } | {
276
277
  type: "nothing_to_land";
277
278
  } | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langspan/client",
3
- "version": "0.21.0",
3
+ "version": "0.23.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",