@leitwerk-dev/protocol 0.1.2 → 0.1.4

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 +33 -34
  2. package/dist/config-snapshot.d.ts.map +1 -0
  3. package/dist/config-snapshot.js +1 -1
  4. package/dist/config-snapshot.js.map +1 -1
  5. package/dist/external-review.d.ts +8 -0
  6. package/dist/external-review.d.ts.map +1 -0
  7. package/dist/external-review.js +2 -0
  8. package/dist/external-review.js.map +1 -0
  9. package/dist/form-contract.d.ts +10 -11
  10. package/dist/form-contract.d.ts.map +1 -0
  11. package/dist/form-contract.js +1 -1
  12. package/dist/form-contract.js.map +1 -1
  13. package/dist/http-contracts.d.ts +959 -7
  14. package/dist/http-contracts.d.ts.map +1 -0
  15. package/dist/http-contracts.js +432 -31
  16. package/dist/http-contracts.js.map +1 -1
  17. package/dist/index.d.ts +21 -177
  18. package/dist/index.d.ts.map +1 -0
  19. package/dist/index.js +20 -1087
  20. package/dist/index.js.map +1 -1
  21. package/dist/initial-prompt.d.ts +8 -0
  22. package/dist/initial-prompt.d.ts.map +1 -0
  23. package/dist/initial-prompt.js +103 -0
  24. package/dist/initial-prompt.js.map +1 -0
  25. package/dist/launcher-contract.d.ts +10 -12
  26. package/dist/launcher-contract.d.ts.map +1 -0
  27. package/dist/launcher-contract.js +1 -1
  28. package/dist/launcher-contract.js.map +1 -1
  29. package/dist/live-turn-projection.d.ts +39 -0
  30. package/dist/live-turn-projection.d.ts.map +1 -0
  31. package/dist/live-turn-projection.js +395 -0
  32. package/dist/live-turn-projection.js.map +1 -0
  33. package/dist/pi-session-message.d.ts +25 -0
  34. package/dist/pi-session-message.d.ts.map +1 -0
  35. package/dist/pi-session-message.js +27 -0
  36. package/dist/pi-session-message.js.map +1 -0
  37. package/dist/primary-path-snapshot.d.ts +77 -0
  38. package/dist/primary-path-snapshot.d.ts.map +1 -0
  39. package/dist/primary-path-snapshot.js +2 -0
  40. package/dist/primary-path-snapshot.js.map +1 -0
  41. package/dist/protocol.d.ts +428 -0
  42. package/dist/protocol.d.ts.map +1 -0
  43. package/dist/protocol.js +261 -0
  44. package/dist/protocol.js.map +1 -0
  45. package/dist/session-entry-tree.d.ts +15 -0
  46. package/dist/session-entry-tree.d.ts.map +1 -0
  47. package/dist/session-entry-tree.js +42 -0
  48. package/dist/session-entry-tree.js.map +1 -0
  49. package/dist/streamable-events.d.ts +4 -0
  50. package/dist/streamable-events.d.ts.map +1 -0
  51. package/dist/streamable-events.js +17 -0
  52. package/dist/streamable-events.js.map +1 -0
  53. package/dist/text-preview.d.ts +7 -0
  54. package/dist/text-preview.d.ts.map +1 -0
  55. package/dist/text-preview.js +23 -0
  56. package/dist/text-preview.js.map +1 -0
  57. package/dist/timeline-projection.d.ts +9 -0
  58. package/dist/timeline-projection.d.ts.map +1 -0
  59. package/dist/timeline-projection.js +30 -0
  60. package/dist/timeline-projection.js.map +1 -0
  61. package/dist/timestamp-ordering.d.ts +3 -0
  62. package/dist/timestamp-ordering.d.ts.map +1 -0
  63. package/dist/timestamp-ordering.js +15 -0
  64. package/dist/timestamp-ordering.js.map +1 -0
  65. package/dist/tool-renderer-contract.d.ts +8 -9
  66. package/dist/tool-renderer-contract.d.ts.map +1 -0
  67. package/dist/tool-renderer-contract.js +21 -10
  68. package/dist/tool-renderer-contract.js.map +1 -1
  69. package/dist/turn-continuation.d.ts +36 -0
  70. package/dist/turn-continuation.d.ts.map +1 -0
  71. package/dist/turn-continuation.js +179 -0
  72. package/dist/turn-continuation.js.map +1 -0
  73. package/dist/usage-by-turn-record.d.ts +5 -0
  74. package/dist/usage-by-turn-record.d.ts.map +1 -0
  75. package/dist/usage-by-turn-record.js +25 -0
  76. package/dist/usage-by-turn-record.js.map +1 -0
  77. package/dist/usage-snapshot.d.ts +25 -0
  78. package/dist/usage-snapshot.d.ts.map +1 -0
  79. package/dist/usage-snapshot.js +120 -0
  80. package/dist/usage-snapshot.js.map +1 -0
  81. package/dist/ws-event-payloads.d.ts +18 -0
  82. package/dist/ws-event-payloads.d.ts.map +1 -0
  83. package/dist/ws-event-payloads.js +47 -0
  84. package/dist/ws-event-payloads.js.map +1 -0
  85. package/package.json +2 -2
@@ -1,23 +1,23 @@
1
- interface ExtensionLoadingConfigSnapshot {
1
+ export interface ExtensionLoadingConfigSnapshot {
2
2
  sources: string[];
3
3
  }
4
- interface ServerWebsocketConfigSnapshot {
4
+ export interface ServerWebsocketConfigSnapshot {
5
5
  heartbeat_interval: string;
6
6
  client_timeout: string;
7
7
  toast_ttl: string;
8
8
  }
9
- interface ServerConfigSnapshot {
9
+ export interface ServerConfigSnapshot {
10
10
  host: string;
11
11
  port: number;
12
12
  base_url: string;
13
13
  websocket: ServerWebsocketConfigSnapshot;
14
14
  }
15
- interface StorageConfigSnapshot {
15
+ export interface StorageConfigSnapshot {
16
16
  sqlite_path: string;
17
17
  process_workspaces_dir: string;
18
18
  tree_files_dir: string;
19
19
  }
20
- interface ComponentConfigSnapshot {
20
+ export interface ComponentConfigSnapshot {
21
21
  repo: string;
22
22
  default_branch: string;
23
23
  /**
@@ -27,12 +27,12 @@ interface ComponentConfigSnapshot {
27
27
  */
28
28
  worker_runtime_profile?: string;
29
29
  }
30
- interface WorkersCleanupConfigSnapshot {
30
+ export interface WorkersCleanupConfigSnapshot {
31
31
  transient_ttl: string;
32
32
  completed_process_retention: string;
33
33
  error_process_retention: string;
34
34
  }
35
- interface WorkersConfigSnapshot {
35
+ export 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 @@ interface WorkersConfigSnapshot {
57
57
  log_worker_events_to_stdout: boolean;
58
58
  cleanup: WorkersCleanupConfigSnapshot;
59
59
  }
60
- interface WorkerRuntimeConfigSnapshot {
60
+ export 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
- interface ModelProfileSnapshot {
66
+ export interface ModelProfileSnapshot {
67
67
  id: string;
68
68
  provider: string;
69
69
  model_id: string;
@@ -71,7 +71,7 @@ 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
- interface PiProviderRetryConfigSnapshot {
74
+ export 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 @@ interface PiProviderRetryConfigSnapshot {
79
79
  /** Maximum provider-requested retry delay before failing fast. */
80
80
  max_retry_delay: string;
81
81
  }
82
- interface PiRetryConfigSnapshot {
82
+ export interface PiRetryConfigSnapshot {
83
83
  enabled: boolean;
84
84
  max_retries: number;
85
85
  base_delay: string;
86
86
  provider: PiProviderRetryConfigSnapshot;
87
87
  }
88
- interface PiProcessTitleGenerationRetryConfigSnapshot {
88
+ export 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 @@ interface PiProcessTitleGenerationRetryConfigSnapshot {
93
93
  /** Maximum outer retry delay for failed title-generation jobs. */
94
94
  max_delay: string;
95
95
  }
96
- interface PiProcessTitleGenerationConfigSnapshot {
96
+ export interface PiProcessTitleGenerationConfigSnapshot {
97
97
  model_profile: string | null;
98
98
  retry: PiProcessTitleGenerationRetryConfigSnapshot;
99
99
  }
100
- interface PiConfigSnapshot {
100
+ export 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 @@ interface PiConfigSnapshot {
108
108
  /** Leitwerk-managed Pi retry/runtime settings for newly created worker sessions. */
109
109
  retry: PiRetryConfigSnapshot;
110
110
  }
111
- interface ProcessPiConfigSnapshot {
111
+ export interface ProcessPiConfigSnapshot {
112
112
  system_prompt_template?: string;
113
113
  append_system_prompt_template?: string;
114
114
  }
115
- interface ProcessTurnConfigSnapshot {
115
+ export interface ProcessTurnConfigSnapshot {
116
116
  model_profile?: string;
117
117
  }
118
- interface WatcherLaunchConfigSnapshot {
118
+ export interface WatcherLaunchConfigSnapshot {
119
119
  default_model_profile?: string;
120
120
  turn_configs?: Record<string, ProcessTurnConfigSnapshot>;
121
121
  }
122
- interface JiraWatcherLabelsConfigSnapshot {
122
+ export interface JiraWatcherLabelsConfigSnapshot {
123
123
  trigger: string;
124
124
  done: string;
125
125
  required?: string[];
126
126
  forbidden?: string[];
127
127
  }
128
- interface JiraProcessWatcherConfigSnapshot {
128
+ export interface JiraProcessWatcherConfigSnapshot {
129
129
  type: "jira";
130
130
  enabled: boolean;
131
131
  project: string;
@@ -134,11 +134,11 @@ interface JiraProcessWatcherConfigSnapshot {
134
134
  target_branch_label_prefix: string;
135
135
  launch?: WatcherLaunchConfigSnapshot;
136
136
  }
137
- interface GitLabMrWatcherLabelsConfigSnapshot {
137
+ export interface GitLabMrWatcherLabelsConfigSnapshot {
138
138
  trigger: string;
139
139
  done: string;
140
140
  }
141
- interface GitLabMrProcessWatcherConfigSnapshot {
141
+ export interface GitLabMrProcessWatcherConfigSnapshot {
142
142
  type: "gitlab_mr";
143
143
  enabled: boolean;
144
144
  group: string;
@@ -146,16 +146,16 @@ interface GitLabMrProcessWatcherConfigSnapshot {
146
146
  labels: GitLabMrWatcherLabelsConfigSnapshot;
147
147
  launch?: WatcherLaunchConfigSnapshot;
148
148
  }
149
- interface FilesystemProcessWatcherConfigSnapshot {
149
+ export 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
- type ProcessWatcherConfigSnapshot = JiraProcessWatcherConfigSnapshot | GitLabMrProcessWatcherConfigSnapshot | FilesystemProcessWatcherConfigSnapshot;
157
- type ProcessWatcherType = ProcessWatcherConfigSnapshot["type"];
158
- interface ProcessConfigSnapshot {
156
+ export type ProcessWatcherConfigSnapshot = JiraProcessWatcherConfigSnapshot | GitLabMrProcessWatcherConfigSnapshot | FilesystemProcessWatcherConfigSnapshot;
157
+ export type ProcessWatcherType = ProcessWatcherConfigSnapshot["type"];
158
+ export interface ProcessConfigSnapshot {
159
159
  default_model_profile?: string;
160
160
  /**
161
161
  * Restricts which model profiles this process may use.
@@ -172,29 +172,29 @@ interface ProcessConfigSnapshot {
172
172
  turn_configs: Record<string, ProcessTurnConfigSnapshot>;
173
173
  watchers?: Record<string, ProcessWatcherConfigSnapshot>;
174
174
  }
175
- interface WorkerProcessConfigSnapshot {
175
+ export interface WorkerProcessConfigSnapshot {
176
176
  pi?: ProcessPiConfigSnapshot;
177
177
  }
178
- interface NotificationChannelConfigSnapshot {
178
+ export interface NotificationChannelConfigSnapshot {
179
179
  enabled: boolean;
180
180
  type: string;
181
181
  url: string;
182
182
  }
183
- interface SquadNotificationRouteSnapshot {
183
+ export interface SquadNotificationRouteSnapshot {
184
184
  url: string;
185
185
  }
186
- interface SquadNotificationConfigSnapshot {
186
+ export interface SquadNotificationConfigSnapshot {
187
187
  enabled: boolean;
188
188
  type: string;
189
189
  routing_field: string;
190
190
  routes: Record<string, SquadNotificationRouteSnapshot>;
191
191
  }
192
- interface NotificationsConfigSnapshot {
192
+ export interface NotificationsConfigSnapshot {
193
193
  all: NotificationChannelConfigSnapshot;
194
194
  debug: NotificationChannelConfigSnapshot;
195
195
  squad: SquadNotificationConfigSnapshot;
196
196
  }
197
- interface SandboxConfigSnapshot {
197
+ export interface SandboxConfigSnapshot {
198
198
  enabled: boolean;
199
199
  profile: string;
200
200
  }
@@ -203,10 +203,9 @@ interface SandboxConfigSnapshot {
203
203
  * time. Server-only wiring and unused operator/server config are intentionally
204
204
  * excluded.
205
205
  */
206
- interface ConfigSnapshot {
206
+ export interface ConfigSnapshot {
207
207
  workers: WorkerRuntimeConfigSnapshot;
208
208
  pi: PiConfigSnapshot;
209
209
  process_configs?: Record<string, WorkerProcessConfigSnapshot>;
210
210
  }
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 };
211
+ //# sourceMappingURL=config-snapshot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-snapshot.d.ts","sourceRoot":"","sources":["../src/config-snapshot.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,8BAA8B;IAC9C,OAAO,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,6BAA6B;IAC7C,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACp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C;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;CAC9D"}
@@ -1,2 +1,2 @@
1
- import "./chunk-6L4W7WPV.js";
1
+ export {};
2
2
  //# sourceMappingURL=config-snapshot.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"file":"config-snapshot.js","sourceRoot":"","sources":["../src/config-snapshot.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ /** Repository review created by a worker-side handoff and persisted by the server. */
2
+ export interface CreatedExternalReview {
3
+ projectKey: string;
4
+ externalId: string;
5
+ externalUrl: string;
6
+ baseBranch: string;
7
+ }
8
+ //# sourceMappingURL=external-review.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"external-review.d.ts","sourceRoot":"","sources":["../src/external-review.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,MAAM,WAAW,qBAAqB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=external-review.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"external-review.js","sourceRoot":"","sources":["../src/external-review.ts"],"names":[],"mappings":""}
@@ -1,18 +1,18 @@
1
- type FormFieldKind = "text" | "textarea" | "number" | "boolean" | "select";
2
- interface FormFieldOptionDefinition {
1
+ export type FormFieldKind = "text" | "textarea" | "number" | "boolean" | "select";
2
+ export interface FormFieldOptionDefinition {
3
3
  value: string;
4
4
  label: string;
5
5
  description?: string;
6
6
  }
7
- interface FormFieldPublishDefinition {
7
+ export interface FormFieldPublishDefinition {
8
8
  /** Product name to publish. Defaults to the field id. */
9
9
  product?: string;
10
10
  }
11
- interface FormFieldStateDefinition {
11
+ export interface FormFieldStateDefinition {
12
12
  /** Dot-separated path in process state to write the submitted field value to. */
13
13
  path: string;
14
14
  }
15
- interface FormFieldDefinition<TKind extends FormFieldKind = FormFieldKind> {
15
+ export interface FormFieldDefinition<TKind extends FormFieldKind = FormFieldKind> {
16
16
  id: string;
17
17
  label: string;
18
18
  kind: TKind;
@@ -26,17 +26,16 @@ interface FormFieldDefinition<TKind extends FormFieldKind = FormFieldKind> {
26
26
  /** Persist this field value into process state. */
27
27
  state?: FormFieldStateDefinition;
28
28
  }
29
- type ActionFormFieldKind = Exclude<FormFieldKind, "select">;
30
- type ActionFormFieldDefinition = Omit<FormFieldDefinition<ActionFormFieldKind>, "options" | "rememberRecentValues"> & {
29
+ export type ActionFormFieldKind = Exclude<FormFieldKind, "select">;
30
+ export 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
- interface FormDefinition<TField extends FormFieldDefinition = FormFieldDefinition> {
34
+ export 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
- type ActionFormDefinition = FormDefinition<ActionFormFieldDefinition>;
41
-
42
- export type { ActionFormDefinition, ActionFormFieldDefinition, ActionFormFieldKind, FormDefinition, FormFieldDefinition, FormFieldKind, FormFieldOptionDefinition, FormFieldPublishDefinition, FormFieldStateDefinition };
40
+ export type ActionFormDefinition = FormDefinition<ActionFormFieldDefinition>;
41
+ //# sourceMappingURL=form-contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-contract.d.ts","sourceRoot":"","sources":["../src/form-contract.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAElF,MAAM,WAAW,yBAAyB;IACzC,KAAK,E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AC,CAAC"}
@@ -1,2 +1,2 @@
1
- import "./chunk-AAV3AAOF.js";
1
+ export {};
2
2
  //# sourceMappingURL=form-contract.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"file":"form-contract.js","sourceRoot":"","sources":["../src/form-contract.ts"],"names":[],"mappings":""}