@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.
- package/dist/config-snapshot.d.ts +34 -33
- package/dist/config-snapshot.js +1 -1
- package/dist/config-snapshot.js.map +1 -1
- package/dist/form-contract.d.ts +11 -10
- package/dist/form-contract.js +1 -1
- package/dist/form-contract.js.map +1 -1
- package/dist/http-contracts.d.ts +7 -959
- package/dist/http-contracts.js +31 -432
- package/dist/http-contracts.js.map +1 -1
- package/dist/index.d.ts +177 -21
- package/dist/index.js +1087 -20
- package/dist/index.js.map +1 -1
- package/dist/launcher-contract.d.ts +12 -10
- package/dist/launcher-contract.js +1 -1
- package/dist/launcher-contract.js.map +1 -1
- package/dist/tool-renderer-contract.d.ts +9 -8
- package/dist/tool-renderer-contract.js +10 -21
- package/dist/tool-renderer-contract.js.map +1 -1
- package/package.json +2 -2
- package/dist/config-snapshot.d.ts.map +0 -1
- package/dist/external-review.d.ts +0 -8
- package/dist/external-review.d.ts.map +0 -1
- package/dist/external-review.js +0 -2
- package/dist/external-review.js.map +0 -1
- package/dist/form-contract.d.ts.map +0 -1
- package/dist/http-contracts.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/initial-prompt.d.ts +0 -8
- package/dist/initial-prompt.d.ts.map +0 -1
- package/dist/initial-prompt.js +0 -103
- package/dist/initial-prompt.js.map +0 -1
- package/dist/launcher-contract.d.ts.map +0 -1
- package/dist/live-turn-projection.d.ts +0 -39
- package/dist/live-turn-projection.d.ts.map +0 -1
- package/dist/live-turn-projection.js +0 -395
- package/dist/live-turn-projection.js.map +0 -1
- package/dist/pi-session-message.d.ts +0 -25
- package/dist/pi-session-message.d.ts.map +0 -1
- package/dist/pi-session-message.js +0 -27
- package/dist/pi-session-message.js.map +0 -1
- package/dist/primary-path-snapshot.d.ts +0 -77
- package/dist/primary-path-snapshot.d.ts.map +0 -1
- package/dist/primary-path-snapshot.js +0 -2
- package/dist/primary-path-snapshot.js.map +0 -1
- package/dist/protocol.d.ts +0 -428
- package/dist/protocol.d.ts.map +0 -1
- package/dist/protocol.js +0 -261
- package/dist/protocol.js.map +0 -1
- package/dist/session-entry-tree.d.ts +0 -15
- package/dist/session-entry-tree.d.ts.map +0 -1
- package/dist/session-entry-tree.js +0 -42
- package/dist/session-entry-tree.js.map +0 -1
- package/dist/streamable-events.d.ts +0 -4
- package/dist/streamable-events.d.ts.map +0 -1
- package/dist/streamable-events.js +0 -17
- package/dist/streamable-events.js.map +0 -1
- package/dist/text-preview.d.ts +0 -7
- package/dist/text-preview.d.ts.map +0 -1
- package/dist/text-preview.js +0 -23
- package/dist/text-preview.js.map +0 -1
- package/dist/timeline-projection.d.ts +0 -9
- package/dist/timeline-projection.d.ts.map +0 -1
- package/dist/timeline-projection.js +0 -30
- package/dist/timeline-projection.js.map +0 -1
- package/dist/timestamp-ordering.d.ts +0 -3
- package/dist/timestamp-ordering.d.ts.map +0 -1
- package/dist/timestamp-ordering.js +0 -15
- package/dist/timestamp-ordering.js.map +0 -1
- package/dist/tool-renderer-contract.d.ts.map +0 -1
- package/dist/turn-continuation.d.ts +0 -36
- package/dist/turn-continuation.d.ts.map +0 -1
- package/dist/turn-continuation.js +0 -179
- package/dist/turn-continuation.js.map +0 -1
- package/dist/usage-by-turn-record.d.ts +0 -5
- package/dist/usage-by-turn-record.d.ts.map +0 -1
- package/dist/usage-by-turn-record.js +0 -25
- package/dist/usage-by-turn-record.js.map +0 -1
- package/dist/usage-snapshot.d.ts +0 -25
- package/dist/usage-snapshot.d.ts.map +0 -1
- package/dist/usage-snapshot.js +0 -120
- package/dist/usage-snapshot.js.map +0 -1
- package/dist/ws-event-payloads.d.ts +0 -18
- package/dist/ws-event-payloads.d.ts.map +0 -1
- package/dist/ws-event-payloads.js +0 -47
- package/dist/ws-event-payloads.js.map +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
interface ExtensionLoadingConfigSnapshot {
|
|
2
2
|
sources: string[];
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
interface ServerWebsocketConfigSnapshot {
|
|
5
5
|
heartbeat_interval: string;
|
|
6
6
|
client_timeout: string;
|
|
7
7
|
toast_ttl: string;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
interface ServerConfigSnapshot {
|
|
10
10
|
host: string;
|
|
11
11
|
port: number;
|
|
12
12
|
base_url: string;
|
|
13
13
|
websocket: ServerWebsocketConfigSnapshot;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
interface StorageConfigSnapshot {
|
|
16
16
|
sqlite_path: string;
|
|
17
17
|
process_workspaces_dir: string;
|
|
18
18
|
tree_files_dir: string;
|
|
19
19
|
}
|
|
20
|
-
|
|
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
|
-
|
|
30
|
+
interface WorkersCleanupConfigSnapshot {
|
|
31
31
|
transient_ttl: string;
|
|
32
32
|
completed_process_retention: string;
|
|
33
33
|
error_process_retention: string;
|
|
34
34
|
}
|
|
35
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
82
|
+
interface PiRetryConfigSnapshot {
|
|
83
83
|
enabled: boolean;
|
|
84
84
|
max_retries: number;
|
|
85
85
|
base_delay: string;
|
|
86
86
|
provider: PiProviderRetryConfigSnapshot;
|
|
87
87
|
}
|
|
88
|
-
|
|
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
|
-
|
|
96
|
+
interface PiProcessTitleGenerationConfigSnapshot {
|
|
97
97
|
model_profile: string | null;
|
|
98
98
|
retry: PiProcessTitleGenerationRetryConfigSnapshot;
|
|
99
99
|
}
|
|
100
|
-
|
|
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
|
-
|
|
111
|
+
interface ProcessPiConfigSnapshot {
|
|
112
112
|
system_prompt_template?: string;
|
|
113
113
|
append_system_prompt_template?: string;
|
|
114
114
|
}
|
|
115
|
-
|
|
115
|
+
interface ProcessTurnConfigSnapshot {
|
|
116
116
|
model_profile?: string;
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
interface WatcherLaunchConfigSnapshot {
|
|
119
119
|
default_model_profile?: string;
|
|
120
120
|
turn_configs?: Record<string, ProcessTurnConfigSnapshot>;
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
interface JiraWatcherLabelsConfigSnapshot {
|
|
123
123
|
trigger: string;
|
|
124
124
|
done: string;
|
|
125
125
|
required?: string[];
|
|
126
126
|
forbidden?: string[];
|
|
127
127
|
}
|
|
128
|
-
|
|
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
|
-
|
|
137
|
+
interface GitLabMrWatcherLabelsConfigSnapshot {
|
|
138
138
|
trigger: string;
|
|
139
139
|
done: string;
|
|
140
140
|
}
|
|
141
|
-
|
|
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
|
-
|
|
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
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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
|
-
|
|
175
|
+
interface WorkerProcessConfigSnapshot {
|
|
176
176
|
pi?: ProcessPiConfigSnapshot;
|
|
177
177
|
}
|
|
178
|
-
|
|
178
|
+
interface NotificationChannelConfigSnapshot {
|
|
179
179
|
enabled: boolean;
|
|
180
180
|
type: string;
|
|
181
181
|
url: string;
|
|
182
182
|
}
|
|
183
|
-
|
|
183
|
+
interface SquadNotificationRouteSnapshot {
|
|
184
184
|
url: string;
|
|
185
185
|
}
|
|
186
|
-
|
|
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
|
-
|
|
192
|
+
interface NotificationsConfigSnapshot {
|
|
193
193
|
all: NotificationChannelConfigSnapshot;
|
|
194
194
|
debug: NotificationChannelConfigSnapshot;
|
|
195
195
|
squad: SquadNotificationConfigSnapshot;
|
|
196
196
|
}
|
|
197
|
-
|
|
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
|
-
|
|
206
|
+
interface ConfigSnapshot {
|
|
207
207
|
workers: WorkerRuntimeConfigSnapshot;
|
|
208
208
|
pi: PiConfigSnapshot;
|
|
209
209
|
process_configs?: Record<string, WorkerProcessConfigSnapshot>;
|
|
210
210
|
}
|
|
211
|
-
|
|
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 };
|
package/dist/config-snapshot.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import "./chunk-6L4W7WPV.js";
|
|
2
2
|
//# sourceMappingURL=config-snapshot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/form-contract.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
7
|
+
interface FormFieldPublishDefinition {
|
|
8
8
|
/** Product name to publish. Defaults to the field id. */
|
|
9
9
|
product?: string;
|
|
10
10
|
}
|
|
11
|
-
|
|
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
|
-
|
|
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
|
-
|
|
30
|
-
|
|
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
|
-
|
|
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
|
-
|
|
41
|
-
|
|
40
|
+
type ActionFormDefinition = FormDefinition<ActionFormFieldDefinition>;
|
|
41
|
+
|
|
42
|
+
export type { ActionFormDefinition, ActionFormFieldDefinition, ActionFormFieldKind, FormDefinition, FormFieldDefinition, FormFieldKind, FormFieldOptionDefinition, FormFieldPublishDefinition, FormFieldStateDefinition };
|
package/dist/form-contract.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import "./chunk-AAV3AAOF.js";
|
|
2
2
|
//# sourceMappingURL=form-contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|