@leitwerk-dev/protocol 0.1.0 → 0.1.2

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.
Files changed (85) hide show
  1. package/dist/config-snapshot.d.ts +34 -33
  2. package/dist/config-snapshot.js +1 -1
  3. package/dist/config-snapshot.js.map +1 -1
  4. package/dist/form-contract.d.ts +11 -10
  5. package/dist/form-contract.js +1 -1
  6. package/dist/form-contract.js.map +1 -1
  7. package/dist/http-contracts.d.ts +7 -959
  8. package/dist/http-contracts.js +31 -432
  9. package/dist/http-contracts.js.map +1 -1
  10. package/dist/index.d.ts +177 -21
  11. package/dist/index.js +1087 -20
  12. package/dist/index.js.map +1 -1
  13. package/dist/launcher-contract.d.ts +12 -10
  14. package/dist/launcher-contract.js +1 -1
  15. package/dist/launcher-contract.js.map +1 -1
  16. package/dist/tool-renderer-contract.d.ts +9 -8
  17. package/dist/tool-renderer-contract.js +10 -21
  18. package/dist/tool-renderer-contract.js.map +1 -1
  19. package/package.json +2 -2
  20. package/dist/config-snapshot.d.ts.map +0 -1
  21. package/dist/external-review.d.ts +0 -8
  22. package/dist/external-review.d.ts.map +0 -1
  23. package/dist/external-review.js +0 -2
  24. package/dist/external-review.js.map +0 -1
  25. package/dist/form-contract.d.ts.map +0 -1
  26. package/dist/http-contracts.d.ts.map +0 -1
  27. package/dist/index.d.ts.map +0 -1
  28. package/dist/initial-prompt.d.ts +0 -8
  29. package/dist/initial-prompt.d.ts.map +0 -1
  30. package/dist/initial-prompt.js +0 -103
  31. package/dist/initial-prompt.js.map +0 -1
  32. package/dist/launcher-contract.d.ts.map +0 -1
  33. package/dist/live-turn-projection.d.ts +0 -39
  34. package/dist/live-turn-projection.d.ts.map +0 -1
  35. package/dist/live-turn-projection.js +0 -395
  36. package/dist/live-turn-projection.js.map +0 -1
  37. package/dist/pi-session-message.d.ts +0 -25
  38. package/dist/pi-session-message.d.ts.map +0 -1
  39. package/dist/pi-session-message.js +0 -27
  40. package/dist/pi-session-message.js.map +0 -1
  41. package/dist/primary-path-snapshot.d.ts +0 -77
  42. package/dist/primary-path-snapshot.d.ts.map +0 -1
  43. package/dist/primary-path-snapshot.js +0 -2
  44. package/dist/primary-path-snapshot.js.map +0 -1
  45. package/dist/protocol.d.ts +0 -428
  46. package/dist/protocol.d.ts.map +0 -1
  47. package/dist/protocol.js +0 -261
  48. package/dist/protocol.js.map +0 -1
  49. package/dist/session-entry-tree.d.ts +0 -15
  50. package/dist/session-entry-tree.d.ts.map +0 -1
  51. package/dist/session-entry-tree.js +0 -42
  52. package/dist/session-entry-tree.js.map +0 -1
  53. package/dist/streamable-events.d.ts +0 -4
  54. package/dist/streamable-events.d.ts.map +0 -1
  55. package/dist/streamable-events.js +0 -17
  56. package/dist/streamable-events.js.map +0 -1
  57. package/dist/text-preview.d.ts +0 -7
  58. package/dist/text-preview.d.ts.map +0 -1
  59. package/dist/text-preview.js +0 -23
  60. package/dist/text-preview.js.map +0 -1
  61. package/dist/timeline-projection.d.ts +0 -9
  62. package/dist/timeline-projection.d.ts.map +0 -1
  63. package/dist/timeline-projection.js +0 -30
  64. package/dist/timeline-projection.js.map +0 -1
  65. package/dist/timestamp-ordering.d.ts +0 -3
  66. package/dist/timestamp-ordering.d.ts.map +0 -1
  67. package/dist/timestamp-ordering.js +0 -15
  68. package/dist/timestamp-ordering.js.map +0 -1
  69. package/dist/tool-renderer-contract.d.ts.map +0 -1
  70. package/dist/turn-continuation.d.ts +0 -36
  71. package/dist/turn-continuation.d.ts.map +0 -1
  72. package/dist/turn-continuation.js +0 -179
  73. package/dist/turn-continuation.js.map +0 -1
  74. package/dist/usage-by-turn-record.d.ts +0 -5
  75. package/dist/usage-by-turn-record.d.ts.map +0 -1
  76. package/dist/usage-by-turn-record.js +0 -25
  77. package/dist/usage-by-turn-record.js.map +0 -1
  78. package/dist/usage-snapshot.d.ts +0 -25
  79. package/dist/usage-snapshot.d.ts.map +0 -1
  80. package/dist/usage-snapshot.js +0 -120
  81. package/dist/usage-snapshot.js.map +0 -1
  82. package/dist/ws-event-payloads.d.ts +0 -18
  83. package/dist/ws-event-payloads.d.ts.map +0 -1
  84. package/dist/ws-event-payloads.js +0 -47
  85. package/dist/ws-event-payloads.js.map +0 -1
@@ -1,23 +1,23 @@
1
- export interface ExtensionLoadingConfigSnapshot {
1
+ interface ExtensionLoadingConfigSnapshot {
2
2
  sources: string[];
3
3
  }
4
- export interface ServerWebsocketConfigSnapshot {
4
+ interface ServerWebsocketConfigSnapshot {
5
5
  heartbeat_interval: string;
6
6
  client_timeout: string;
7
7
  toast_ttl: string;
8
8
  }
9
- export interface ServerConfigSnapshot {
9
+ interface ServerConfigSnapshot {
10
10
  host: string;
11
11
  port: number;
12
12
  base_url: string;
13
13
  websocket: ServerWebsocketConfigSnapshot;
14
14
  }
15
- export interface StorageConfigSnapshot {
15
+ interface StorageConfigSnapshot {
16
16
  sqlite_path: string;
17
17
  process_workspaces_dir: string;
18
18
  tree_files_dir: string;
19
19
  }
20
- export interface ComponentConfigSnapshot {
20
+ interface ComponentConfigSnapshot {
21
21
  repo: string;
22
22
  default_branch: string;
23
23
  /**
@@ -27,12 +27,12 @@ export interface ComponentConfigSnapshot {
27
27
  */
28
28
  worker_runtime_profile?: string;
29
29
  }
30
- export interface WorkersCleanupConfigSnapshot {
30
+ interface WorkersCleanupConfigSnapshot {
31
31
  transient_ttl: string;
32
32
  completed_process_retention: string;
33
33
  error_process_retention: string;
34
34
  }
35
- export interface WorkersConfigSnapshot {
35
+ interface WorkersConfigSnapshot {
36
36
  /** Worker execution run mode. Docker/Kubernetes are production; local is test/development only. */
37
37
  runner: "docker" | "kubernetes" | "local";
38
38
  /**
@@ -57,13 +57,13 @@ export interface WorkersConfigSnapshot {
57
57
  log_worker_events_to_stdout: boolean;
58
58
  cleanup: WorkersCleanupConfigSnapshot;
59
59
  }
60
- export interface WorkerRuntimeConfigSnapshot {
60
+ interface WorkerRuntimeConfigSnapshot {
61
61
  heartbeat_interval: string;
62
62
  turn_max_duration: string;
63
63
  turn_inactivity_timeout: string;
64
64
  turn_abort_grace_period: string;
65
65
  }
66
- export interface ModelProfileSnapshot {
66
+ interface ModelProfileSnapshot {
67
67
  id: string;
68
68
  provider: string;
69
69
  model_id: string;
@@ -71,7 +71,7 @@ export interface ModelProfileSnapshot {
71
71
  /** Non-secret provider-owned defaults applied to each new LLM start. */
72
72
  provider_options?: Record<string, string>;
73
73
  }
74
- export interface PiProviderRetryConfigSnapshot {
74
+ interface PiProviderRetryConfigSnapshot {
75
75
  /** Optional provider/SDK request timeout. Null defers to the provider SDK default. */
76
76
  timeout: string | null;
77
77
  /** Optional provider/SDK retry attempts. Null defers to the provider SDK default. */
@@ -79,13 +79,13 @@ export interface PiProviderRetryConfigSnapshot {
79
79
  /** Maximum provider-requested retry delay before failing fast. */
80
80
  max_retry_delay: string;
81
81
  }
82
- export interface PiRetryConfigSnapshot {
82
+ interface PiRetryConfigSnapshot {
83
83
  enabled: boolean;
84
84
  max_retries: number;
85
85
  base_delay: string;
86
86
  provider: PiProviderRetryConfigSnapshot;
87
87
  }
88
- export interface PiProcessTitleGenerationRetryConfigSnapshot {
88
+ interface PiProcessTitleGenerationRetryConfigSnapshot {
89
89
  /** Total title-generation attempts including the first immediate try. */
90
90
  max_attempts: number;
91
91
  /** Base outer retry delay after a failed server-side title request. */
@@ -93,11 +93,11 @@ export interface PiProcessTitleGenerationRetryConfigSnapshot {
93
93
  /** Maximum outer retry delay for failed title-generation jobs. */
94
94
  max_delay: string;
95
95
  }
96
- export interface PiProcessTitleGenerationConfigSnapshot {
96
+ interface PiProcessTitleGenerationConfigSnapshot {
97
97
  model_profile: string | null;
98
98
  retry: PiProcessTitleGenerationRetryConfigSnapshot;
99
99
  }
100
- export interface PiConfigSnapshot {
100
+ interface PiConfigSnapshot {
101
101
  /** Leitwerk-managed Pi agent directory. Local workers use it as PI_CODING_AGENT_DIR. */
102
102
  agent_dir: string;
103
103
  model_profiles: ModelProfileSnapshot[];
@@ -108,24 +108,24 @@ export interface PiConfigSnapshot {
108
108
  /** Leitwerk-managed Pi retry/runtime settings for newly created worker sessions. */
109
109
  retry: PiRetryConfigSnapshot;
110
110
  }
111
- export interface ProcessPiConfigSnapshot {
111
+ interface ProcessPiConfigSnapshot {
112
112
  system_prompt_template?: string;
113
113
  append_system_prompt_template?: string;
114
114
  }
115
- export interface ProcessTurnConfigSnapshot {
115
+ interface ProcessTurnConfigSnapshot {
116
116
  model_profile?: string;
117
117
  }
118
- export interface WatcherLaunchConfigSnapshot {
118
+ interface WatcherLaunchConfigSnapshot {
119
119
  default_model_profile?: string;
120
120
  turn_configs?: Record<string, ProcessTurnConfigSnapshot>;
121
121
  }
122
- export interface JiraWatcherLabelsConfigSnapshot {
122
+ interface JiraWatcherLabelsConfigSnapshot {
123
123
  trigger: string;
124
124
  done: string;
125
125
  required?: string[];
126
126
  forbidden?: string[];
127
127
  }
128
- export interface JiraProcessWatcherConfigSnapshot {
128
+ interface JiraProcessWatcherConfigSnapshot {
129
129
  type: "jira";
130
130
  enabled: boolean;
131
131
  project: string;
@@ -134,11 +134,11 @@ export interface JiraProcessWatcherConfigSnapshot {
134
134
  target_branch_label_prefix: string;
135
135
  launch?: WatcherLaunchConfigSnapshot;
136
136
  }
137
- export interface GitLabMrWatcherLabelsConfigSnapshot {
137
+ interface GitLabMrWatcherLabelsConfigSnapshot {
138
138
  trigger: string;
139
139
  done: string;
140
140
  }
141
- export interface GitLabMrProcessWatcherConfigSnapshot {
141
+ interface GitLabMrProcessWatcherConfigSnapshot {
142
142
  type: "gitlab_mr";
143
143
  enabled: boolean;
144
144
  group: string;
@@ -146,16 +146,16 @@ export interface GitLabMrProcessWatcherConfigSnapshot {
146
146
  labels: GitLabMrWatcherLabelsConfigSnapshot;
147
147
  launch?: WatcherLaunchConfigSnapshot;
148
148
  }
149
- export interface FilesystemProcessWatcherConfigSnapshot {
149
+ interface FilesystemProcessWatcherConfigSnapshot {
150
150
  type: "filesystem";
151
151
  enabled: boolean;
152
152
  poll_interval: string;
153
153
  file_path: string;
154
154
  launch?: WatcherLaunchConfigSnapshot;
155
155
  }
156
- export type ProcessWatcherConfigSnapshot = JiraProcessWatcherConfigSnapshot | GitLabMrProcessWatcherConfigSnapshot | FilesystemProcessWatcherConfigSnapshot;
157
- export type ProcessWatcherType = ProcessWatcherConfigSnapshot["type"];
158
- export interface ProcessConfigSnapshot {
156
+ type ProcessWatcherConfigSnapshot = JiraProcessWatcherConfigSnapshot | GitLabMrProcessWatcherConfigSnapshot | FilesystemProcessWatcherConfigSnapshot;
157
+ type ProcessWatcherType = ProcessWatcherConfigSnapshot["type"];
158
+ interface ProcessConfigSnapshot {
159
159
  default_model_profile?: string;
160
160
  /**
161
161
  * Restricts which model profiles this process may use.
@@ -172,29 +172,29 @@ export interface ProcessConfigSnapshot {
172
172
  turn_configs: Record<string, ProcessTurnConfigSnapshot>;
173
173
  watchers?: Record<string, ProcessWatcherConfigSnapshot>;
174
174
  }
175
- export interface WorkerProcessConfigSnapshot {
175
+ interface WorkerProcessConfigSnapshot {
176
176
  pi?: ProcessPiConfigSnapshot;
177
177
  }
178
- export interface NotificationChannelConfigSnapshot {
178
+ interface NotificationChannelConfigSnapshot {
179
179
  enabled: boolean;
180
180
  type: string;
181
181
  url: string;
182
182
  }
183
- export interface SquadNotificationRouteSnapshot {
183
+ interface SquadNotificationRouteSnapshot {
184
184
  url: string;
185
185
  }
186
- export interface SquadNotificationConfigSnapshot {
186
+ interface SquadNotificationConfigSnapshot {
187
187
  enabled: boolean;
188
188
  type: string;
189
189
  routing_field: string;
190
190
  routes: Record<string, SquadNotificationRouteSnapshot>;
191
191
  }
192
- export interface NotificationsConfigSnapshot {
192
+ interface NotificationsConfigSnapshot {
193
193
  all: NotificationChannelConfigSnapshot;
194
194
  debug: NotificationChannelConfigSnapshot;
195
195
  squad: SquadNotificationConfigSnapshot;
196
196
  }
197
- export interface SandboxConfigSnapshot {
197
+ interface SandboxConfigSnapshot {
198
198
  enabled: boolean;
199
199
  profile: string;
200
200
  }
@@ -203,9 +203,10 @@ export interface SandboxConfigSnapshot {
203
203
  * time. Server-only wiring and unused operator/server config are intentionally
204
204
  * excluded.
205
205
  */
206
- export interface ConfigSnapshot {
206
+ interface ConfigSnapshot {
207
207
  workers: WorkerRuntimeConfigSnapshot;
208
208
  pi: PiConfigSnapshot;
209
209
  process_configs?: Record<string, WorkerProcessConfigSnapshot>;
210
210
  }
211
- //# sourceMappingURL=config-snapshot.d.ts.map
211
+
212
+ export type { ComponentConfigSnapshot, ConfigSnapshot, ExtensionLoadingConfigSnapshot, FilesystemProcessWatcherConfigSnapshot, GitLabMrProcessWatcherConfigSnapshot, GitLabMrWatcherLabelsConfigSnapshot, JiraProcessWatcherConfigSnapshot, JiraWatcherLabelsConfigSnapshot, ModelProfileSnapshot, NotificationChannelConfigSnapshot, NotificationsConfigSnapshot, PiConfigSnapshot, PiProcessTitleGenerationConfigSnapshot, PiProcessTitleGenerationRetryConfigSnapshot, PiProviderRetryConfigSnapshot, PiRetryConfigSnapshot, ProcessConfigSnapshot, ProcessPiConfigSnapshot, ProcessTurnConfigSnapshot, ProcessWatcherConfigSnapshot, ProcessWatcherType, SandboxConfigSnapshot, ServerConfigSnapshot, ServerWebsocketConfigSnapshot, SquadNotificationConfigSnapshot, SquadNotificationRouteSnapshot, StorageConfigSnapshot, WatcherLaunchConfigSnapshot, WorkerProcessConfigSnapshot, WorkerRuntimeConfigSnapshot, WorkersCleanupConfigSnapshot, WorkersConfigSnapshot };
@@ -1,2 +1,2 @@
1
- export {};
1
+ import "./chunk-6L4W7WPV.js";
2
2
  //# sourceMappingURL=config-snapshot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-snapshot.js","sourceRoot":"","sources":["../src/config-snapshot.ts"],"names":[],"mappings":""}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,18 +1,18 @@
1
- export type FormFieldKind = "text" | "textarea" | "number" | "boolean" | "select";
2
- export interface FormFieldOptionDefinition {
1
+ type FormFieldKind = "text" | "textarea" | "number" | "boolean" | "select";
2
+ interface FormFieldOptionDefinition {
3
3
  value: string;
4
4
  label: string;
5
5
  description?: string;
6
6
  }
7
- export interface FormFieldPublishDefinition {
7
+ interface FormFieldPublishDefinition {
8
8
  /** Product name to publish. Defaults to the field id. */
9
9
  product?: string;
10
10
  }
11
- export interface FormFieldStateDefinition {
11
+ interface FormFieldStateDefinition {
12
12
  /** Dot-separated path in process state to write the submitted field value to. */
13
13
  path: string;
14
14
  }
15
- export interface FormFieldDefinition<TKind extends FormFieldKind = FormFieldKind> {
15
+ interface FormFieldDefinition<TKind extends FormFieldKind = FormFieldKind> {
16
16
  id: string;
17
17
  label: string;
18
18
  kind: TKind;
@@ -26,16 +26,17 @@ export interface FormFieldDefinition<TKind extends FormFieldKind = FormFieldKind
26
26
  /** Persist this field value into process state. */
27
27
  state?: FormFieldStateDefinition;
28
28
  }
29
- export type ActionFormFieldKind = Exclude<FormFieldKind, "select">;
30
- export type ActionFormFieldDefinition = Omit<FormFieldDefinition<ActionFormFieldKind>, "options" | "rememberRecentValues"> & {
29
+ type ActionFormFieldKind = Exclude<FormFieldKind, "select">;
30
+ type ActionFormFieldDefinition = Omit<FormFieldDefinition<ActionFormFieldKind>, "options" | "rememberRecentValues"> & {
31
31
  /** Share this textual value across compatible action forms as their primary prompt. */
32
32
  primaryPrompt?: true;
33
33
  };
34
- export interface FormDefinition<TField extends FormFieldDefinition = FormFieldDefinition> {
34
+ interface FormDefinition<TField extends FormFieldDefinition = FormFieldDefinition> {
35
35
  id: string;
36
36
  title: string;
37
37
  fields: readonly TField[];
38
38
  submitLabel?: string;
39
39
  }
40
- export type ActionFormDefinition = FormDefinition<ActionFormFieldDefinition>;
41
- //# sourceMappingURL=form-contract.d.ts.map
40
+ type ActionFormDefinition = FormDefinition<ActionFormFieldDefinition>;
41
+
42
+ export type { ActionFormDefinition, ActionFormFieldDefinition, ActionFormFieldKind, FormDefinition, FormFieldDefinition, FormFieldKind, FormFieldOptionDefinition, FormFieldPublishDefinition, FormFieldStateDefinition };
@@ -1,2 +1,2 @@
1
- export {};
1
+ import "./chunk-AAV3AAOF.js";
2
2
  //# sourceMappingURL=form-contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-contract.js","sourceRoot":"","sources":["../src/form-contract.ts"],"names":[],"mappings":""}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}