@leitwerk-dev/protocol 0.1.8 → 0.2.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.
- package/dist/api-token-contracts.d.ts +25 -0
- package/dist/api-token-contracts.d.ts.map +1 -0
- package/dist/{chunk-ABLI5SG5.js → chunk-J4VMD5ST.js} +17 -26
- package/dist/chunk-J4VMD5ST.js.map +1 -0
- package/dist/{chunk-J7LXDQAN.js → chunk-Z4IU6KEN.js} +40 -6
- package/dist/chunk-Z4IU6KEN.js.map +1 -0
- package/dist/compact-turn-summary.d.ts +31 -0
- package/dist/compact-turn-summary.d.ts.map +1 -0
- package/dist/config-snapshot.d.ts +2 -0
- package/dist/config-snapshot.d.ts.map +1 -1
- package/dist/config-snapshot.js +1 -1
- package/dist/config-snapshot.js.map +1 -1
- package/dist/extension-ui-contracts.d.ts +27 -0
- package/dist/extension-ui-contracts.d.ts.map +1 -0
- package/dist/form-contract.js +1 -1
- package/dist/form-contract.js.map +1 -1
- package/dist/{http-contracts-ClFoqwI3.d.ts → http-contracts-ht8DDU4J.d.ts} +152 -29
- package/dist/http-contracts.d.ts +98 -30
- package/dist/http-contracts.d.ts.map +1 -1
- package/dist/http-contracts.js +32 -432
- package/dist/http-contracts.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1196 -20
- package/dist/index.js.map +1 -1
- package/dist/initial-prompt.d.ts.map +1 -1
- package/dist/launcher-contract.js +1 -1
- package/dist/launcher-contract.js.map +1 -1
- package/dist/live-turn-projection.d.ts +1 -1
- package/dist/live-turn-projection.d.ts.map +1 -1
- package/dist/protocol.d.ts +63 -16
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +37 -259
- package/dist/protocol.js.map +1 -1
- package/dist/streamable-events.d.ts +1 -1
- package/dist/streamable-events.d.ts.map +1 -1
- package/dist/ticket-creation-contracts.d.ts +33 -0
- package/dist/ticket-creation-contracts.d.ts.map +1 -0
- package/dist/timeline-projection.d.ts +1 -1
- package/dist/timeline-projection.d.ts.map +1 -1
- package/dist/tool-renderer-contract.js +10 -21
- package/dist/tool-renderer-contract.js.map +1 -1
- package/dist/tool-result-truncation.d.ts +6 -0
- package/dist/tool-result-truncation.d.ts.map +1 -0
- package/dist/turn-continuation.d.ts +1 -1
- package/dist/turn-continuation.d.ts.map +1 -1
- package/dist/turn-trace-projection.d.ts +5 -0
- package/dist/turn-trace-projection.d.ts.map +1 -0
- package/dist/usage-snapshot.d.ts +3 -1
- package/dist/usage-snapshot.d.ts.map +1 -1
- package/dist/ws-event-payloads.d.ts +2 -1
- package/dist/ws-event-payloads.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/api-token-contracts.ts +24 -0
- package/src/compact-turn-summary.ts +119 -0
- package/src/config-snapshot.ts +2 -0
- package/src/extension-ui-contracts.ts +45 -0
- package/src/http-contracts.ts +128 -59
- package/src/index.ts +5 -0
- package/src/initial-prompt.ts +3 -6
- package/src/live-turn-projection.ts +41 -113
- package/src/protocol.ts +52 -12
- package/src/streamable-events.ts +2 -0
- package/src/ticket-creation-contracts.ts +34 -0
- package/src/timeline-projection.ts +5 -1
- package/src/tool-result-truncation.ts +94 -0
- package/src/turn-continuation.ts +22 -46
- package/src/turn-trace-projection.ts +42 -0
- package/src/usage-snapshot.ts +25 -59
- package/src/ws-event-payloads.ts +5 -14
- package/dist/chunk-ABLI5SG5.js.map +0 -1
- package/dist/chunk-J7LXDQAN.js.map +0 -1
- package/dist/external-review.js +0 -2
- package/dist/external-review.js.map +0 -1
- package/dist/initial-prompt.js +0 -103
- package/dist/initial-prompt.js.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.js +0 -27
- package/dist/pi-session-message.js.map +0 -1
- package/dist/primary-path-snapshot.js +0 -2
- package/dist/primary-path-snapshot.js.map +0 -1
- package/dist/session-entry-tree.js +0 -42
- package/dist/session-entry-tree.js.map +0 -1
- package/dist/streamable-events.js +0 -17
- package/dist/streamable-events.js.map +0 -1
- package/dist/text-preview.js +0 -23
- package/dist/text-preview.js.map +0 -1
- package/dist/timeline-projection.js +0 -30
- package/dist/timeline-projection.js.map +0 -1
- package/dist/timestamp-ordering.js +0 -15
- package/dist/timestamp-ordering.js.map +0 -1
- package/dist/turn-continuation.js +0 -179
- package/dist/turn-continuation.js.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.js +0 -120
- package/dist/usage-snapshot.js.map +0 -1
- package/dist/ws-event-payloads.js +0 -47
- package/dist/ws-event-payloads.js.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _leitwerk_dev_domain from '@leitwerk-dev/domain';
|
|
2
|
+
import { SemanticEntryRef, ProcessSemanticEntryRefs, ProcessTurnAnnotation, WorkerLease, ProcessTurnRecord, Actor, DurableModelSelection, FutureExecutionBlockReason, LaunchModelConfigInput, LaunchRun, ProcessSelectedTurnModelSource, ProcessInstance, ProcessProject, ProcessFlowView, ProcessTurnType, ProcessRowSlot, ProcessInput, ProcessEvent, ProcessLeafOutcomeSnapshot, SerializedProcessGraph, ProcessQuestionRequest, ProcessToolApprovalRequest, TurnProgressReport, QuestionAnswerDraft, InstanceTurnConfigMap } from '@leitwerk-dev/domain';
|
|
2
3
|
import * as v from 'valibot';
|
|
3
4
|
import { FormFieldOptionDefinition, ActionFormFieldDefinition, ActionFormDefinition } from './form-contract.js';
|
|
4
5
|
import { LauncherValidationError, UiLauncherSummaryBase } from './launcher-contract.js';
|
|
@@ -12,7 +13,7 @@ interface UsageCostSnapshot {
|
|
|
12
13
|
cacheWrite: number;
|
|
13
14
|
total: number;
|
|
14
15
|
}
|
|
15
|
-
interface
|
|
16
|
+
interface UsageTokenCounts {
|
|
16
17
|
input: number;
|
|
17
18
|
output: number;
|
|
18
19
|
/** Provider-reported reasoning/thinking tokens. This is a subset of output tokens. */
|
|
@@ -20,6 +21,8 @@ interface UsageSnapshot {
|
|
|
20
21
|
cacheRead: number;
|
|
21
22
|
cacheWrite: number;
|
|
22
23
|
totalTokens: number;
|
|
24
|
+
}
|
|
25
|
+
interface UsageSnapshot extends UsageTokenCounts {
|
|
23
26
|
cost: UsageCostSnapshot | null;
|
|
24
27
|
/** Number of model requests represented by this aggregate, when known. */
|
|
25
28
|
requestCount?: number;
|
|
@@ -105,10 +108,79 @@ interface PrimaryPathSnapshot {
|
|
|
105
108
|
turnState: PrimaryPathTurnStateSnapshot;
|
|
106
109
|
}
|
|
107
110
|
|
|
111
|
+
declare const REASONING_PREVIEW_MAX_CHARS = 1024;
|
|
112
|
+
interface CompactTurnSummary {
|
|
113
|
+
assistant: {
|
|
114
|
+
text: string;
|
|
115
|
+
thinking: string;
|
|
116
|
+
lastUpdatedAt: string | null;
|
|
117
|
+
};
|
|
118
|
+
currentTool: Pick<PrimaryPathToolCallSnapshot, "toolCallId" | "toolName" | "status" | "isError"> | null;
|
|
119
|
+
usage: UsageSnapshot | null;
|
|
120
|
+
toolCallCount: number;
|
|
121
|
+
traceItemCount: number;
|
|
122
|
+
/** The last persisted event incorporated into this projection. */
|
|
123
|
+
throughEventSequence: number;
|
|
124
|
+
lastTraceKind: "thinking" | "tool_call" | "operational_event" | null;
|
|
125
|
+
}
|
|
126
|
+
/** Initial-page state. It never contains trace items, tool arguments or results. */
|
|
127
|
+
interface CompactActiveTurnSnapshot extends CompactTurnSummary, Pick<PrimaryPathActiveTurnSnapshot, "turnRecordId" | "turnId" | "turnType" | "pathType" | "startedAt"> {
|
|
128
|
+
summaryPending: boolean;
|
|
129
|
+
}
|
|
130
|
+
declare function emptyCompactTurnSummary(): CompactTurnSummary;
|
|
131
|
+
/** Retain paragraph context; wrapping and blank-line removal belong to the preview viewport. */
|
|
132
|
+
declare function reasoningPreviewTail(text: string): string;
|
|
133
|
+
declare function applyEventToCompactTurnSummary(previous: CompactTurnSummary, event: {
|
|
134
|
+
eventType: string;
|
|
135
|
+
data: Record<string, unknown>;
|
|
136
|
+
createdAt: string;
|
|
137
|
+
eventSequence: number;
|
|
138
|
+
}): CompactTurnSummary;
|
|
139
|
+
|
|
140
|
+
interface ApiTokenMetadata {
|
|
141
|
+
id: string;
|
|
142
|
+
prefix: string;
|
|
143
|
+
name: string;
|
|
144
|
+
createdAt: string;
|
|
145
|
+
expiresAt: string | null;
|
|
146
|
+
revokedAt: string | null;
|
|
147
|
+
lastUsedAt: string | null;
|
|
148
|
+
}
|
|
149
|
+
interface ApiTokenPolicy {
|
|
150
|
+
enabled: boolean;
|
|
151
|
+
defaultTtlMs: number;
|
|
152
|
+
maxTtlMs: number;
|
|
153
|
+
allowNoExpiry: boolean;
|
|
154
|
+
}
|
|
155
|
+
interface ApiTokensResponseBody {
|
|
156
|
+
tokens: ApiTokenMetadata[];
|
|
157
|
+
policy: ApiTokenPolicy;
|
|
158
|
+
csrfToken: string;
|
|
159
|
+
}
|
|
160
|
+
interface CreateApiTokenResponseBody {
|
|
161
|
+
token: ApiTokenMetadata;
|
|
162
|
+
secret: string;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
interface StartLaunchRunResponseBody {
|
|
166
|
+
launchRunId: string;
|
|
167
|
+
instanceId: string | null;
|
|
168
|
+
}
|
|
169
|
+
interface LaunchRunResponseBody {
|
|
170
|
+
launchRun: LaunchRun;
|
|
171
|
+
}
|
|
172
|
+
interface ProcessLaunchRunsResponseBody {
|
|
173
|
+
launchRuns: LaunchRun[];
|
|
174
|
+
}
|
|
108
175
|
interface AuthMeResponseBody {
|
|
109
176
|
authEnabled: boolean;
|
|
110
177
|
actor: Actor | null;
|
|
111
178
|
}
|
|
179
|
+
interface SessionTransferOperationView {
|
|
180
|
+
attemptId: string;
|
|
181
|
+
phase: string;
|
|
182
|
+
blocksManualTurns: boolean;
|
|
183
|
+
}
|
|
112
184
|
interface ProcessListItem {
|
|
113
185
|
process: ProcessInstance;
|
|
114
186
|
projects: ProcessProject[];
|
|
@@ -343,21 +415,8 @@ interface ProcessLaunchConfigurationView {
|
|
|
343
415
|
parameters: readonly ProcessLaunchConfigurationParameterView[];
|
|
344
416
|
projects: readonly ProcessLaunchConfigurationProjectView[];
|
|
345
417
|
}
|
|
346
|
-
interface PiSessionUsageSnapshot {
|
|
347
|
-
|
|
348
|
-
output: number;
|
|
349
|
-
/** Provider-reported reasoning/thinking tokens. This is a subset of output tokens. */
|
|
350
|
-
reasoning?: number;
|
|
351
|
-
cacheRead: number;
|
|
352
|
-
cacheWrite: number;
|
|
353
|
-
totalTokens: number;
|
|
354
|
-
cost?: {
|
|
355
|
-
input: number;
|
|
356
|
-
output: number;
|
|
357
|
-
cacheRead: number;
|
|
358
|
-
cacheWrite: number;
|
|
359
|
-
total: number;
|
|
360
|
-
};
|
|
418
|
+
interface PiSessionUsageSnapshot extends UsageTokenCounts {
|
|
419
|
+
cost?: UsageCostSnapshot;
|
|
361
420
|
}
|
|
362
421
|
type PiSessionTextContentBlock = {
|
|
363
422
|
type: "text";
|
|
@@ -514,6 +573,7 @@ interface SkillCatalogItem {
|
|
|
514
573
|
updateAvailable: boolean;
|
|
515
574
|
conflict: boolean;
|
|
516
575
|
stale: boolean;
|
|
576
|
+
modelInvocable: boolean;
|
|
517
577
|
usage: SkillUsageSummary;
|
|
518
578
|
}
|
|
519
579
|
type SkillRegistrationKind = "configuration" | "catalog";
|
|
@@ -526,6 +586,7 @@ interface InstalledSkillCatalogItem {
|
|
|
526
586
|
registrationKind: SkillRegistrationKind;
|
|
527
587
|
sourceRepositoryId: string | null;
|
|
528
588
|
updateAvailable: boolean;
|
|
589
|
+
modelInvocable: boolean;
|
|
529
590
|
usage: SkillUsageSummary;
|
|
530
591
|
}
|
|
531
592
|
interface SkillRevisionSummary {
|
|
@@ -567,16 +628,8 @@ interface ProcessOverviewItem extends ProcessRowSlot {
|
|
|
567
628
|
updatedAt: string;
|
|
568
629
|
closedAt: string | null;
|
|
569
630
|
}
|
|
570
|
-
interface FutureExecutionOverviewItemBase {
|
|
571
|
-
id: string;
|
|
572
|
-
scheduleKind: "once" | "cron";
|
|
573
|
-
processId: string;
|
|
574
|
-
nextRunAt: string;
|
|
575
|
-
cronExpression: string | null;
|
|
576
|
-
title: string;
|
|
631
|
+
interface FutureExecutionOverviewItemBase extends Omit<FutureExecutionBaseSummary, "kind" | "subtitle" | "modelSelection"> {
|
|
577
632
|
initialPromptPreview: string | null;
|
|
578
|
-
status?: "scheduled" | "blocked";
|
|
579
|
-
blockedReason?: FutureExecutionBlockReason | null;
|
|
580
633
|
}
|
|
581
634
|
interface FutureLaunchOverviewItem extends FutureExecutionOverviewItemBase {
|
|
582
635
|
kind: "launch";
|
|
@@ -675,6 +728,14 @@ interface ProcessTimelineTurnSummary {
|
|
|
675
728
|
summary: string;
|
|
676
729
|
output: string;
|
|
677
730
|
turnResultMarkdown: string;
|
|
731
|
+
resultSummary?: string;
|
|
732
|
+
reviewedTurnRecordId?: string;
|
|
733
|
+
resources?: _leitwerk_dev_domain.TurnProgressLink[];
|
|
734
|
+
transition?: {
|
|
735
|
+
selectedTurnId: string;
|
|
736
|
+
targetTurnRecordId?: string;
|
|
737
|
+
accepted: boolean;
|
|
738
|
+
};
|
|
678
739
|
pathType: ProcessTurnRecord["pathType"];
|
|
679
740
|
createdAt: string;
|
|
680
741
|
presentation: ProcessTimelineTurnPresentation;
|
|
@@ -686,9 +747,21 @@ interface ProcessTimelineTurnSummary {
|
|
|
686
747
|
startedAt: string;
|
|
687
748
|
endedAt: string | null;
|
|
688
749
|
actionSource: "ui" | "external" | "scheduled" | null;
|
|
750
|
+
progress?: TurnProgressReport | null;
|
|
751
|
+
progressRecordedAt?: string;
|
|
689
752
|
}
|
|
690
753
|
type ProcessTimelineInputSummary = Pick<ProcessInput, "id" | "sequence" | "source" | "kind" | "bodyMarkdown" | "receivedAt" | "consumedAt">;
|
|
754
|
+
interface ProcessExternalObservation {
|
|
755
|
+
summary: string;
|
|
756
|
+
links?: _leitwerk_dev_domain.TurnProgressLink[];
|
|
757
|
+
observedAt: string;
|
|
758
|
+
subject: string;
|
|
759
|
+
revision: string;
|
|
760
|
+
}
|
|
691
761
|
interface ProcessExternalTriggerSignal {
|
|
762
|
+
observation?: ProcessExternalObservation;
|
|
763
|
+
refreshError?: string | null;
|
|
764
|
+
refreshedAt?: string;
|
|
692
765
|
triggerId: string;
|
|
693
766
|
state: "error" | "armed" | "triggered" | "waiting";
|
|
694
767
|
occurredAt: string | null;
|
|
@@ -714,6 +787,7 @@ interface CurrentTurnRecoverySummary extends CurrentErrorSummary {
|
|
|
714
787
|
turnRecordId: string;
|
|
715
788
|
defaultContinuePrompt: string;
|
|
716
789
|
canContinue: boolean;
|
|
790
|
+
supportsModelOverride: boolean;
|
|
717
791
|
defaultModelProfileId: string | null;
|
|
718
792
|
providerOptions: Record<string, string>;
|
|
719
793
|
}
|
|
@@ -724,6 +798,35 @@ interface StartupRecoverySummary extends CurrentErrorSummary {
|
|
|
724
798
|
defaultModelProfileId: string | null;
|
|
725
799
|
providerOptions: Record<string, string>;
|
|
726
800
|
}
|
|
801
|
+
type StartupAttemptStatus = "starting" | "failed" | "succeeded" | "recovered" | "superseded";
|
|
802
|
+
interface StartupAttemptStepSummary {
|
|
803
|
+
/** Observed phase interval; absent for older servers or unavailable evidence. */
|
|
804
|
+
startedAt?: string | null;
|
|
805
|
+
endedAt?: string | null;
|
|
806
|
+
detail?: string;
|
|
807
|
+
id: "start_worker" | "connect_worker" | "prepare_workspace" | "start_first_turn";
|
|
808
|
+
label: string;
|
|
809
|
+
status: "pending" | "in_progress" | "completed" | "failed" | "superseded";
|
|
810
|
+
occurredAt: string | null;
|
|
811
|
+
}
|
|
812
|
+
/** Worker-start history derived from correlated start, lease, readiness, and turn records. */
|
|
813
|
+
interface StartupAttemptSummary {
|
|
814
|
+
startRecordId: string;
|
|
815
|
+
workerLeaseId: string | null;
|
|
816
|
+
status: StartupAttemptStatus;
|
|
817
|
+
startedAt: string;
|
|
818
|
+
readyAt: string | null;
|
|
819
|
+
durationMs: number | null;
|
|
820
|
+
summary: string | null;
|
|
821
|
+
recoveredByStartRecordId: string | null;
|
|
822
|
+
steps: StartupAttemptStepSummary[];
|
|
823
|
+
}
|
|
824
|
+
interface ProcessStartupSummary {
|
|
825
|
+
workerStarts?: _leitwerk_dev_domain.PhysicalWorkerStart[];
|
|
826
|
+
authoritativeAttemptId: string | null;
|
|
827
|
+
attempts: StartupAttemptSummary[];
|
|
828
|
+
recovery: StartupRecoverySummary | null;
|
|
829
|
+
}
|
|
727
830
|
type CurrentProcessErrorSummary = CurrentErrorSummary;
|
|
728
831
|
interface ProcessUsageEstimateSnapshot {
|
|
729
832
|
usage: TurnUsageSnapshot;
|
|
@@ -734,7 +837,11 @@ interface ProcessUsageEstimateSnapshot {
|
|
|
734
837
|
missingCostTurnCount: number;
|
|
735
838
|
isPartial: boolean;
|
|
736
839
|
}
|
|
737
|
-
interface PrimaryPathUiSnapshot extends PrimaryPathSnapshot {
|
|
840
|
+
interface PrimaryPathUiSnapshot extends Omit<PrimaryPathSnapshot, "turnState"> {
|
|
841
|
+
throughEventSequence: number;
|
|
842
|
+
turnState: Omit<PrimaryPathSnapshot["turnState"], "activeTurn"> & {
|
|
843
|
+
activeTurn: CompactActiveTurnSnapshot | null;
|
|
844
|
+
};
|
|
738
845
|
entryCount: number;
|
|
739
846
|
entriesOmitted: true;
|
|
740
847
|
}
|
|
@@ -746,8 +853,11 @@ type ProcessUiSnapshotProcess = Pick<ProcessInstance, "id" | "processId" | "sele
|
|
|
746
853
|
*/
|
|
747
854
|
interface ProcessDetailUiSnapshotResponseBody {
|
|
748
855
|
process: ProcessUiSnapshotProcess;
|
|
856
|
+
/** Next turn on the declared happy path, including human decisions. */
|
|
857
|
+
plannedNextTurn?: Pick<ProcessSelectedTurnSummary, "turnId" | "description"> | null;
|
|
749
858
|
/** Durable requests in Chronicle order; at most one is open for the current turn. */
|
|
750
859
|
questionRequests: ProcessQuestionRequest[];
|
|
860
|
+
toolApprovalRequests: ProcessToolApprovalRequest[];
|
|
751
861
|
leafOutcomeSnapshots: ProcessLeafOutcomeSnapshot[];
|
|
752
862
|
processDisplayName: string | null;
|
|
753
863
|
processFlow: ProcessFlowView;
|
|
@@ -763,6 +873,9 @@ interface ProcessDetailUiSnapshotResponseBody {
|
|
|
763
873
|
timeline: ProcessTimelineSnapshot;
|
|
764
874
|
instanceTree: ProcessInstanceTreeResponseBody;
|
|
765
875
|
recovery: CurrentTurnRecoverySummary | null;
|
|
876
|
+
/** Authoritative startup history and current remediation. */
|
|
877
|
+
startup: ProcessStartupSummary;
|
|
878
|
+
/** Compatibility alias for startup.recovery. */
|
|
766
879
|
startupRecovery: StartupRecoverySummary | null;
|
|
767
880
|
processError: CurrentProcessErrorSummary | null;
|
|
768
881
|
usageEstimate: ProcessUsageEstimateSnapshot | null;
|
|
@@ -770,6 +883,7 @@ interface ProcessDetailUiSnapshotResponseBody {
|
|
|
770
883
|
session: {
|
|
771
884
|
signature: string | null;
|
|
772
885
|
};
|
|
886
|
+
sessionTransfer: SessionTransferOperationView | null;
|
|
773
887
|
}
|
|
774
888
|
type InstanceTreeTurnResultState = "succeeded" | "failed" | "aborted" | "pending";
|
|
775
889
|
/** Redacted, semantic process history. Pi message/activity categories are never exposed. */
|
|
@@ -796,6 +910,8 @@ interface ProcessInstanceTreeResponseBody {
|
|
|
796
910
|
edges: InstanceTreeEdgeSummary[];
|
|
797
911
|
}
|
|
798
912
|
interface TurnReasoningDetailResponseBody {
|
|
913
|
+
state: "live" | "committed";
|
|
914
|
+
throughEventSequence: number;
|
|
799
915
|
instanceId: string;
|
|
800
916
|
turnRecordId: string;
|
|
801
917
|
sessionSignature: string | null;
|
|
@@ -848,6 +964,11 @@ interface LauncherMutationResponseBody {
|
|
|
848
964
|
errors?: LauncherValidationError[];
|
|
849
965
|
error?: string | null;
|
|
850
966
|
}
|
|
967
|
+
interface FutureLaunchMutationResponseBody {
|
|
968
|
+
kind: "scheduled";
|
|
969
|
+
futureExecution: FutureLaunchSummary | null;
|
|
970
|
+
error?: string | null;
|
|
971
|
+
}
|
|
851
972
|
type ScheduledActionMutationResponseBody = {
|
|
852
973
|
kind?: "scheduled";
|
|
853
974
|
scheduledAction?: ScheduledActionDetail | null;
|
|
@@ -962,7 +1083,9 @@ declare const normalizeFutureLaunchPayload: (payload: FutureLaunchPayloadBase) =
|
|
|
962
1083
|
};
|
|
963
1084
|
modelConfig: {
|
|
964
1085
|
defaultModelProfileId: string | null;
|
|
965
|
-
turnConfigs:
|
|
1086
|
+
turnConfigs: {
|
|
1087
|
+
[x: string]: _leitwerk_dev_domain.InstanceTurnConfigInput;
|
|
1088
|
+
};
|
|
966
1089
|
};
|
|
967
1090
|
actor: Actor | null;
|
|
968
1091
|
selectedSkillIds: string[];
|
|
@@ -1037,4 +1160,4 @@ declare function serializeFutureActionPayload(payload: unknown): string;
|
|
|
1037
1160
|
declare function parseFutureActionPayloadObject(value: unknown, context?: string): ParseResult<FutureActionPayload>;
|
|
1038
1161
|
declare function parseFutureActionPayloadJson(payloadJson: string): ParseResult<FutureActionPayload>;
|
|
1039
1162
|
|
|
1040
|
-
export { type
|
|
1163
|
+
export { type ParsedActionRequestBody as $, type ApiTokenMetadata as A, type InstalledSkillCatalogItem as B, type CompactActiveTurnSnapshot as C, type InstanceTreeEdgeSummary as D, type ErrorResponseBody as E, type FutureExecutionSummary as F, type InstanceTreeNodeSummary as G, type InstanceTreeTurnResultState as H, type InstalledSkillCatalogDetail as I, type LauncherDefaultModelPreview as J, type LauncherDefaultsResponseBody as K, type LaunchRunResponseBody as L, type LauncherModelConfigDefaults as M, type LauncherModelConfigPreview as N, type LauncherModelConfigPreviewResponseBody as O, type PrimaryPathStreamingAssistantSnapshot as P, type LauncherModelConfigSchema as Q, type LauncherMutationResponseBody as R, type LauncherOptionsResponseBody as S, type TurnTraceSnapshot as T, type UsageSnapshot as U, type LauncherRecentValuesResponseBody as V, type LauncherTurnModelConfigPreview as W, type LaunchersResponseBody as X, type ModelProfileAvailability as Y, type ModelProfileOptionSummary as Z, type ModelProviderOptionsResponseBody as _, type FutureExecutionOverviewItem as a, type ProcessesOverviewResponseBody as a$, type ParsedLauncherRequestBody as a0, type ParsedScheduleRequest as a1, type PiSessionContentBlock as a2, type PiSessionEntry as a3, type PiSessionImageContentBlock as a4, type PiSessionMessageRecord as a5, type PiSessionTextContentBlock as a6, type PiSessionThinkingContentBlock as a7, type PiSessionToolCallContentBlock as a8, type PiSessionUsageSnapshot as a9, type ProcessExternalObservation as aA, type ProcessExternalSourceSummary as aB, type ProcessExternalTriggerSignal as aC, type ProcessExternalTriggerSummary as aD, type ProcessInstanceTreeResponseBody as aE, type ProcessLaunchConfigurationParameterView as aF, type ProcessLaunchConfigurationProjectView as aG, type ProcessLaunchConfigurationView as aH, type ProcessLaunchRunsResponseBody as aI, type ProcessListItem as aJ, type ProcessModelConfigurationIssueView as aK, type ProcessModelConfigurationView as aL, type ProcessOverviewItem as aM, type ProcessRetryConfig as aN, type ProcessRetryConfigResponseBody as aO, type ProcessRunDetailsView as aP, type ProcessRunToolParameterView as aQ, type ProcessRunToolView as aR, type ProcessRunTurnView as aS, type ProcessSelectedTurnSummary as aT, type ProcessStartupSummary as aU, type ProcessTimelineInputSummary as aV, type ProcessTimelineSnapshot as aW, type ProcessTurnModelConfigurationView as aX, type ProcessUiSnapshotProcess as aY, type ProcessUsageEstimateSnapshot as aZ, type ProcessesListResponseBody as a_, type PrimaryPathDetailRailSnapshot as aa, type PrimaryPathEntrySnapshot as ab, type PrimaryPathOperationalTraceSeverity as ac, type PrimaryPathSnapshot as ad, type PrimaryPathSnapshotResponseBody as ae, type PrimaryPathThinkingTraceItemSnapshot as af, type PrimaryPathToolCallTraceItemSnapshot as ag, type PrimaryPathTurnStateSnapshot as ah, type PrimaryPathUiSnapshot as ai, type ProcessActionFieldDefinition as aj, type ProcessActionFormDefinition as ak, type ProcessActionModelPreview as al, type ProcessActionModelPreviewResponseBody as am, type ProcessActionModelResolutionPreview as an, type ProcessActionModelResolutionSource as ao, type ProcessActionPreviewSummary as ap, type ProcessActionSummary as aq, type ProcessActionWarmPromptCacheContext as ar, type ProcessBrowseFacets as as, type ProcessBrowseItem as at, type ProcessBrowsePagination as au, type ProcessBrowseResponseBody as av, type ProcessDetailData as aw, type ProcessDetailUiSnapshotResponseBody as ax, type ProcessDiagnosticsData as ay, type ProcessDiagnosticsResponseBody as az, type PrimaryPathToolCallSnapshot as b, type PromptCacheSwitchResolution as b0, type ProviderOptionChoiceSummary as b1, type ProviderOptionFieldSummary as b2, type QuestionRequestMutationResponseBody as b3, REASONING_PREVIEW_MAX_CHARS as b4, type ScheduleConfigInput as b5, type ScheduleMode as b6, type ScheduledActionDetail as b7, type ScheduledActionMutationResponseBody as b8, type SessionTransferOperationView as b9, type WatcherPresentationField as bA, type WatcherSummary as bB, type WatchersResponseBody as bC, applyEventToCompactTurnSummary as bD, cloneUsageSnapshot as bE, emptyCompactTurnSummary as bF, mergeUsageSnapshots as bG, normalizeUsageSnapshot as bH, parseActionRequestBody as bI, parseFutureActionPayloadJson as bJ, parseFutureActionPayloadObject as bK, parseFutureLaunchPayloadJson as bL, parseFutureLaunchPayloadObject as bM, parseLauncherInputJson as bN, parseLauncherModelConfigInput as bO, parseLauncherRequestBody as bP, parseLauncherTurnConfigsJson as bQ, parseScheduleRequestInput as bR, reasoningPreviewTail as bS, resolvePromptCacheSwitch as bT, serializeFutureActionPayload as bU, serializeFutureLaunchPayload as bV, validateScheduleRequestInput as bW, type SkillCatalogDetail as ba, type SkillCatalogDetailResponseBody as bb, type SkillCatalogItem as bc, type SkillRegistrationKind as bd, type SkillRepositorySummary as be, type SkillRevisionSummary as bf, type SkillUsageProcessSummary as bg, type SkillUsageSummary as bh, type SkillsCatalogResponseBody as bi, type StartLaunchRunResponseBody as bj, type StartupAttemptStatus as bk, type StartupAttemptStepSummary as bl, type StartupAttemptSummary as bm, type StartupRecoverySummary as bn, type SubmitQuestionAnswersRequestBody as bo, type TurnPiInputPart as bp, type TurnPiInputPartRole as bq, type TurnPiInputSnapshot as br, type TurnReasoningDetailResponseBody as bs, type TurnTracePreview as bt, type TurnTraceToolCallSnapshot as bu, type TurnUsageSnapshot as bv, type UiLauncherSummary as bw, type UsageCostSnapshot as bx, type UsageTokenCounts as by, type WatcherLaunchModelSummary as bz, type PrimaryPathTraceItemSnapshot as c, type PrimaryPathOperationalTraceItemSnapshot as d, type PrimaryPathActiveTurnSnapshot as e, type ProcessTimelineTurnSummary as f, type ProcessTimelineTurnPresentation as g, type ApiTokenPolicy as h, type ApiTokensResponseBody as i, type AuthMeResponseBody as j, type CompactTurnSummary as k, type CreateApiTokenResponseBody as l, type CronPreviewResponseBody as m, type CurrentErrorSummary as n, type CurrentProcessErrorSummary as o, type CurrentTurnRecoverySummary as p, type FutureActionOverviewItem as q, type FutureActionPayload as r, type FutureActionSummary as s, type FutureExecutionBaseSummary as t, type FutureExecutionDetailResponseBody as u, type FutureLaunchMutationResponseBody as v, type FutureLaunchOverviewItem as w, type FutureLaunchPayload as x, type FutureLaunchSummary as y, type InstalledSkillCatalogDetailResponseBody as z };
|
package/dist/http-contracts.d.ts
CHANGED
|
@@ -1,14 +1,31 @@
|
|
|
1
|
-
import { type Actor, type DurableModelSelection, type FutureExecutionBlockReason, type InstanceTurnConfigMap, type LaunchModelConfigInput, type ProcessEvent, type ProcessFlowView, type ProcessInput, type ProcessInstance, type ProcessLeafOutcomeSnapshot, type ProcessProject, type ProcessQuestionRequest, type ProcessRowSlot, type ProcessSelectedTurnModelSource, type ProcessTurnAnnotation, type ProcessTurnRecord, type ProcessTurnType, type QuestionAnswerDraft, type SerializedProcessGraph, type WorkerLease } from "@leitwerk-dev/domain";
|
|
1
|
+
import { type Actor, type DurableModelSelection, type FutureExecutionBlockReason, type InstanceTurnConfigMap, type LaunchModelConfigInput, type LaunchRun, type ProcessEvent, type ProcessFlowView, type ProcessInput, type ProcessInstance, type ProcessLeafOutcomeSnapshot, type ProcessProject, type ProcessQuestionRequest, type ProcessRowSlot, type ProcessSelectedTurnModelSource, type ProcessToolApprovalRequest, type ProcessTurnAnnotation, type ProcessTurnRecord, type ProcessTurnType, type QuestionAnswerDraft, type SerializedProcessGraph, type TurnProgressReport, type WorkerLease } from "@leitwerk-dev/domain";
|
|
2
2
|
import * as v from "valibot";
|
|
3
|
+
import type { CompactActiveTurnSnapshot } from "./compact-turn-summary.js";
|
|
3
4
|
import type { ActionFormDefinition, ActionFormFieldDefinition, FormFieldOptionDefinition } from "./form-contract.js";
|
|
4
5
|
import type { LauncherValidationError, UiLauncherSummaryBase } from "./launcher-contract.js";
|
|
5
6
|
import type { PrimaryPathSnapshot, PrimaryPathStreamingAssistantSnapshot, PrimaryPathToolCallSnapshot, PrimaryPathTraceItemSnapshot, TurnUsageSnapshot } from "./primary-path-snapshot.js";
|
|
6
7
|
import { type ParseResult } from "./protocol.js";
|
|
7
8
|
import type { ToolCallRendererDefinition } from "./tool-renderer-contract.js";
|
|
9
|
+
import type { UsageCostSnapshot, UsageTokenCounts } from "./usage-snapshot.js";
|
|
10
|
+
export interface StartLaunchRunResponseBody {
|
|
11
|
+
launchRunId: string;
|
|
12
|
+
instanceId: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface LaunchRunResponseBody {
|
|
15
|
+
launchRun: LaunchRun;
|
|
16
|
+
}
|
|
17
|
+
export interface ProcessLaunchRunsResponseBody {
|
|
18
|
+
launchRuns: LaunchRun[];
|
|
19
|
+
}
|
|
8
20
|
export interface AuthMeResponseBody {
|
|
9
21
|
authEnabled: boolean;
|
|
10
22
|
actor: Actor | null;
|
|
11
23
|
}
|
|
24
|
+
export interface SessionTransferOperationView {
|
|
25
|
+
attemptId: string;
|
|
26
|
+
phase: string;
|
|
27
|
+
blocksManualTurns: boolean;
|
|
28
|
+
}
|
|
12
29
|
export interface ProcessListItem {
|
|
13
30
|
process: ProcessInstance;
|
|
14
31
|
projects: ProcessProject[];
|
|
@@ -243,21 +260,8 @@ export interface ProcessLaunchConfigurationView {
|
|
|
243
260
|
parameters: readonly ProcessLaunchConfigurationParameterView[];
|
|
244
261
|
projects: readonly ProcessLaunchConfigurationProjectView[];
|
|
245
262
|
}
|
|
246
|
-
export interface PiSessionUsageSnapshot {
|
|
247
|
-
|
|
248
|
-
output: number;
|
|
249
|
-
/** Provider-reported reasoning/thinking tokens. This is a subset of output tokens. */
|
|
250
|
-
reasoning?: number;
|
|
251
|
-
cacheRead: number;
|
|
252
|
-
cacheWrite: number;
|
|
253
|
-
totalTokens: number;
|
|
254
|
-
cost?: {
|
|
255
|
-
input: number;
|
|
256
|
-
output: number;
|
|
257
|
-
cacheRead: number;
|
|
258
|
-
cacheWrite: number;
|
|
259
|
-
total: number;
|
|
260
|
-
};
|
|
263
|
+
export interface PiSessionUsageSnapshot extends UsageTokenCounts {
|
|
264
|
+
cost?: UsageCostSnapshot;
|
|
261
265
|
}
|
|
262
266
|
export type PiSessionTextContentBlock = {
|
|
263
267
|
type: "text";
|
|
@@ -414,6 +418,7 @@ export interface SkillCatalogItem {
|
|
|
414
418
|
updateAvailable: boolean;
|
|
415
419
|
conflict: boolean;
|
|
416
420
|
stale: boolean;
|
|
421
|
+
modelInvocable: boolean;
|
|
417
422
|
usage: SkillUsageSummary;
|
|
418
423
|
}
|
|
419
424
|
export type SkillRegistrationKind = "configuration" | "catalog";
|
|
@@ -426,6 +431,7 @@ export interface InstalledSkillCatalogItem {
|
|
|
426
431
|
registrationKind: SkillRegistrationKind;
|
|
427
432
|
sourceRepositoryId: string | null;
|
|
428
433
|
updateAvailable: boolean;
|
|
434
|
+
modelInvocable: boolean;
|
|
429
435
|
usage: SkillUsageSummary;
|
|
430
436
|
}
|
|
431
437
|
export interface SkillRevisionSummary {
|
|
@@ -467,16 +473,8 @@ export interface ProcessOverviewItem extends ProcessRowSlot {
|
|
|
467
473
|
updatedAt: string;
|
|
468
474
|
closedAt: string | null;
|
|
469
475
|
}
|
|
470
|
-
interface FutureExecutionOverviewItemBase {
|
|
471
|
-
id: string;
|
|
472
|
-
scheduleKind: "once" | "cron";
|
|
473
|
-
processId: string;
|
|
474
|
-
nextRunAt: string;
|
|
475
|
-
cronExpression: string | null;
|
|
476
|
-
title: string;
|
|
476
|
+
interface FutureExecutionOverviewItemBase extends Omit<FutureExecutionBaseSummary, "kind" | "subtitle" | "modelSelection"> {
|
|
477
477
|
initialPromptPreview: string | null;
|
|
478
|
-
status?: "scheduled" | "blocked";
|
|
479
|
-
blockedReason?: FutureExecutionBlockReason | null;
|
|
480
478
|
}
|
|
481
479
|
export interface FutureLaunchOverviewItem extends FutureExecutionOverviewItemBase {
|
|
482
480
|
kind: "launch";
|
|
@@ -575,6 +573,14 @@ export interface ProcessTimelineTurnSummary {
|
|
|
575
573
|
summary: string;
|
|
576
574
|
output: string;
|
|
577
575
|
turnResultMarkdown: string;
|
|
576
|
+
resultSummary?: string;
|
|
577
|
+
reviewedTurnRecordId?: string;
|
|
578
|
+
resources?: import("@leitwerk-dev/domain").TurnProgressLink[];
|
|
579
|
+
transition?: {
|
|
580
|
+
selectedTurnId: string;
|
|
581
|
+
targetTurnRecordId?: string;
|
|
582
|
+
accepted: boolean;
|
|
583
|
+
};
|
|
578
584
|
pathType: ProcessTurnRecord["pathType"];
|
|
579
585
|
createdAt: string;
|
|
580
586
|
presentation: ProcessTimelineTurnPresentation;
|
|
@@ -586,9 +592,21 @@ export interface ProcessTimelineTurnSummary {
|
|
|
586
592
|
startedAt: string;
|
|
587
593
|
endedAt: string | null;
|
|
588
594
|
actionSource: "ui" | "external" | "scheduled" | null;
|
|
595
|
+
progress?: TurnProgressReport | null;
|
|
596
|
+
progressRecordedAt?: string;
|
|
589
597
|
}
|
|
590
598
|
export type ProcessTimelineInputSummary = Pick<ProcessInput, "id" | "sequence" | "source" | "kind" | "bodyMarkdown" | "receivedAt" | "consumedAt">;
|
|
599
|
+
export interface ProcessExternalObservation {
|
|
600
|
+
summary: string;
|
|
601
|
+
links?: import("@leitwerk-dev/domain").TurnProgressLink[];
|
|
602
|
+
observedAt: string;
|
|
603
|
+
subject: string;
|
|
604
|
+
revision: string;
|
|
605
|
+
}
|
|
591
606
|
export interface ProcessExternalTriggerSignal {
|
|
607
|
+
observation?: ProcessExternalObservation;
|
|
608
|
+
refreshError?: string | null;
|
|
609
|
+
refreshedAt?: string;
|
|
592
610
|
triggerId: string;
|
|
593
611
|
state: "error" | "armed" | "triggered" | "waiting";
|
|
594
612
|
occurredAt: string | null;
|
|
@@ -614,6 +632,7 @@ export interface CurrentTurnRecoverySummary extends CurrentErrorSummary {
|
|
|
614
632
|
turnRecordId: string;
|
|
615
633
|
defaultContinuePrompt: string;
|
|
616
634
|
canContinue: boolean;
|
|
635
|
+
supportsModelOverride: boolean;
|
|
617
636
|
defaultModelProfileId: string | null;
|
|
618
637
|
providerOptions: Record<string, string>;
|
|
619
638
|
}
|
|
@@ -624,6 +643,35 @@ export interface StartupRecoverySummary extends CurrentErrorSummary {
|
|
|
624
643
|
defaultModelProfileId: string | null;
|
|
625
644
|
providerOptions: Record<string, string>;
|
|
626
645
|
}
|
|
646
|
+
export type StartupAttemptStatus = "starting" | "failed" | "succeeded" | "recovered" | "superseded";
|
|
647
|
+
export interface StartupAttemptStepSummary {
|
|
648
|
+
/** Observed phase interval; absent for older servers or unavailable evidence. */
|
|
649
|
+
startedAt?: string | null;
|
|
650
|
+
endedAt?: string | null;
|
|
651
|
+
detail?: string;
|
|
652
|
+
id: "start_worker" | "connect_worker" | "prepare_workspace" | "start_first_turn";
|
|
653
|
+
label: string;
|
|
654
|
+
status: "pending" | "in_progress" | "completed" | "failed" | "superseded";
|
|
655
|
+
occurredAt: string | null;
|
|
656
|
+
}
|
|
657
|
+
/** Worker-start history derived from correlated start, lease, readiness, and turn records. */
|
|
658
|
+
export interface StartupAttemptSummary {
|
|
659
|
+
startRecordId: string;
|
|
660
|
+
workerLeaseId: string | null;
|
|
661
|
+
status: StartupAttemptStatus;
|
|
662
|
+
startedAt: string;
|
|
663
|
+
readyAt: string | null;
|
|
664
|
+
durationMs: number | null;
|
|
665
|
+
summary: string | null;
|
|
666
|
+
recoveredByStartRecordId: string | null;
|
|
667
|
+
steps: StartupAttemptStepSummary[];
|
|
668
|
+
}
|
|
669
|
+
export interface ProcessStartupSummary {
|
|
670
|
+
workerStarts?: import("@leitwerk-dev/domain").PhysicalWorkerStart[];
|
|
671
|
+
authoritativeAttemptId: string | null;
|
|
672
|
+
attempts: StartupAttemptSummary[];
|
|
673
|
+
recovery: StartupRecoverySummary | null;
|
|
674
|
+
}
|
|
627
675
|
export type CurrentProcessErrorSummary = CurrentErrorSummary;
|
|
628
676
|
export interface ProcessUsageEstimateSnapshot {
|
|
629
677
|
usage: TurnUsageSnapshot;
|
|
@@ -634,7 +682,11 @@ export interface ProcessUsageEstimateSnapshot {
|
|
|
634
682
|
missingCostTurnCount: number;
|
|
635
683
|
isPartial: boolean;
|
|
636
684
|
}
|
|
637
|
-
export interface PrimaryPathUiSnapshot extends PrimaryPathSnapshot {
|
|
685
|
+
export interface PrimaryPathUiSnapshot extends Omit<PrimaryPathSnapshot, "turnState"> {
|
|
686
|
+
throughEventSequence: number;
|
|
687
|
+
turnState: Omit<PrimaryPathSnapshot["turnState"], "activeTurn"> & {
|
|
688
|
+
activeTurn: CompactActiveTurnSnapshot | null;
|
|
689
|
+
};
|
|
638
690
|
entryCount: number;
|
|
639
691
|
entriesOmitted: true;
|
|
640
692
|
}
|
|
@@ -646,8 +698,11 @@ export type ProcessUiSnapshotProcess = Pick<ProcessInstance, "id" | "processId"
|
|
|
646
698
|
*/
|
|
647
699
|
export interface ProcessDetailUiSnapshotResponseBody {
|
|
648
700
|
process: ProcessUiSnapshotProcess;
|
|
701
|
+
/** Next turn on the declared happy path, including human decisions. */
|
|
702
|
+
plannedNextTurn?: Pick<ProcessSelectedTurnSummary, "turnId" | "description"> | null;
|
|
649
703
|
/** Durable requests in Chronicle order; at most one is open for the current turn. */
|
|
650
704
|
questionRequests: ProcessQuestionRequest[];
|
|
705
|
+
toolApprovalRequests: ProcessToolApprovalRequest[];
|
|
651
706
|
leafOutcomeSnapshots: ProcessLeafOutcomeSnapshot[];
|
|
652
707
|
processDisplayName: string | null;
|
|
653
708
|
processFlow: ProcessFlowView;
|
|
@@ -663,6 +718,9 @@ export interface ProcessDetailUiSnapshotResponseBody {
|
|
|
663
718
|
timeline: ProcessTimelineSnapshot;
|
|
664
719
|
instanceTree: ProcessInstanceTreeResponseBody;
|
|
665
720
|
recovery: CurrentTurnRecoverySummary | null;
|
|
721
|
+
/** Authoritative startup history and current remediation. */
|
|
722
|
+
startup: ProcessStartupSummary;
|
|
723
|
+
/** Compatibility alias for startup.recovery. */
|
|
666
724
|
startupRecovery: StartupRecoverySummary | null;
|
|
667
725
|
processError: CurrentProcessErrorSummary | null;
|
|
668
726
|
usageEstimate: ProcessUsageEstimateSnapshot | null;
|
|
@@ -670,6 +728,7 @@ export interface ProcessDetailUiSnapshotResponseBody {
|
|
|
670
728
|
session: {
|
|
671
729
|
signature: string | null;
|
|
672
730
|
};
|
|
731
|
+
sessionTransfer: SessionTransferOperationView | null;
|
|
673
732
|
}
|
|
674
733
|
export type InstanceTreeTurnResultState = "succeeded" | "failed" | "aborted" | "pending";
|
|
675
734
|
/** Redacted, semantic process history. Pi message/activity categories are never exposed. */
|
|
@@ -696,6 +755,8 @@ export interface ProcessInstanceTreeResponseBody {
|
|
|
696
755
|
edges: InstanceTreeEdgeSummary[];
|
|
697
756
|
}
|
|
698
757
|
export interface TurnReasoningDetailResponseBody {
|
|
758
|
+
state: "live" | "committed";
|
|
759
|
+
throughEventSequence: number;
|
|
699
760
|
instanceId: string;
|
|
700
761
|
turnRecordId: string;
|
|
701
762
|
sessionSignature: string | null;
|
|
@@ -748,6 +809,11 @@ export interface LauncherMutationResponseBody {
|
|
|
748
809
|
errors?: LauncherValidationError[];
|
|
749
810
|
error?: string | null;
|
|
750
811
|
}
|
|
812
|
+
export interface FutureLaunchMutationResponseBody {
|
|
813
|
+
kind: "scheduled";
|
|
814
|
+
futureExecution: FutureLaunchSummary | null;
|
|
815
|
+
error?: string | null;
|
|
816
|
+
}
|
|
751
817
|
export type ScheduledActionMutationResponseBody = {
|
|
752
818
|
kind?: "scheduled";
|
|
753
819
|
scheduledAction?: ScheduledActionDetail | null;
|
|
@@ -762,7 +828,7 @@ export type PrimaryPathSnapshotResponseBody = PrimaryPathSnapshot;
|
|
|
762
828
|
export type CronPreviewResponseBody = {
|
|
763
829
|
nextRunAt: string;
|
|
764
830
|
};
|
|
765
|
-
type ParsedLauncherRequestBody = {
|
|
831
|
+
export type ParsedLauncherRequestBody = {
|
|
766
832
|
title: string | null;
|
|
767
833
|
titleProvided: boolean;
|
|
768
834
|
launcherInput: Record<string, unknown>;
|
|
@@ -773,7 +839,7 @@ type ParsedLauncherRequestBody = {
|
|
|
773
839
|
schedule: ParsedScheduleRequest;
|
|
774
840
|
scheduleProvided: boolean;
|
|
775
841
|
};
|
|
776
|
-
type ParsedActionRequestBody = {
|
|
842
|
+
export type ParsedActionRequestBody = {
|
|
777
843
|
input: Record<string, unknown>;
|
|
778
844
|
inputProvided: boolean;
|
|
779
845
|
nextTurnModelProfileId?: string | null;
|
|
@@ -862,7 +928,9 @@ declare const normalizeFutureLaunchPayload: (payload: FutureLaunchPayloadBase) =
|
|
|
862
928
|
};
|
|
863
929
|
modelConfig: {
|
|
864
930
|
defaultModelProfileId: string | null;
|
|
865
|
-
turnConfigs:
|
|
931
|
+
turnConfigs: {
|
|
932
|
+
[x: string]: import("@leitwerk-dev/domain").InstanceTurnConfigInput;
|
|
933
|
+
};
|
|
866
934
|
};
|
|
867
935
|
actor: Actor | null;
|
|
868
936
|
selectedSkillIds: string[];
|
|
@@ -936,5 +1004,5 @@ export declare function parseFutureLaunchPayloadJson(payloadJson: string): Parse
|
|
|
936
1004
|
export declare function serializeFutureActionPayload(payload: unknown): string;
|
|
937
1005
|
export declare function parseFutureActionPayloadObject(value: unknown, context?: string): ParseResult<FutureActionPayload>;
|
|
938
1006
|
export declare function parseFutureActionPayloadJson(payloadJson: string): ParseResult<FutureActionPayload>;
|
|
939
|
-
export {};
|
|
1007
|
+
export type { ApiTokenMetadata, ApiTokenPolicy, ApiTokensResponseBody, CreateApiTokenResponseBody, } from "./api-token-contracts.js";
|
|
940
1008
|
//# sourceMappingURL=http-contracts.d.ts.map
|