@leitwerk-dev/server 0.1.7 → 0.1.8
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/app.d.ts.map +1 -1
- package/dist/app.js +2 -9
- package/dist/app.js.map +1 -1
- package/dist/{chunk-GIWHTJSL.js → chunk-ES5RBLAT.js} +30 -7
- package/dist/chunk-ES5RBLAT.js.map +1 -0
- package/dist/{chunk-OO6VH4FX.js → chunk-UC3OOEQ3.js} +14 -12
- package/dist/chunk-UC3OOEQ3.js.map +1 -0
- package/dist/config/config-loader.d.ts.map +1 -1
- package/dist/config/config-loader.js +8 -1
- package/dist/config/config-loader.js.map +1 -1
- package/dist/config/config-types.d.ts +5 -0
- package/dist/config/config-types.d.ts.map +1 -1
- package/dist/model-providers/builtin-server-adapter.d.ts.map +1 -1
- package/dist/model-providers/builtin-server-adapter.js +10 -2
- package/dist/model-providers/builtin-server-adapter.js.map +1 -1
- package/dist/supervisor/worker-start-payload-builder.d.ts +2 -4
- package/dist/supervisor/worker-start-payload-builder.d.ts.map +1 -1
- package/dist/supervisor/worker-start-payload-builder.js.map +1 -1
- package/dist/supervisor/worker-supervisor.d.ts +1 -4
- package/dist/supervisor/worker-supervisor.d.ts.map +1 -1
- package/dist/supervisor/worker-supervisor.js.map +1 -1
- package/dist/{writes-DUwQe8MD.d.ts → writes-CVXLCYce.d.ts} +39 -9
- package/package.json +10 -10
- package/src/app.ts +3 -9
- package/src/config/config-loader.ts +24 -1
- package/src/config/config-types.ts +6 -0
- package/src/model-providers/builtin-server-adapter.ts +10 -2
- package/src/supervisor/worker-start-payload-builder.ts +2 -1
- package/src/supervisor/worker-supervisor.ts +1 -4
- package/dist/chunk-GIWHTJSL.js.map +0 -1
- package/dist/chunk-OO6VH4FX.js.map +0 -1
|
@@ -113,10 +113,15 @@ interface KubernetesProcessVolumeConfig {
|
|
|
113
113
|
access_modes: string[];
|
|
114
114
|
mount_path: string;
|
|
115
115
|
}
|
|
116
|
+
interface KubernetesHostAliasConfig {
|
|
117
|
+
ip: string;
|
|
118
|
+
hostnames: string[];
|
|
119
|
+
}
|
|
116
120
|
interface KubernetesPodConfig {
|
|
117
121
|
node_selector?: Record<string, string>;
|
|
118
122
|
tolerations?: unknown[];
|
|
119
123
|
annotations?: Record<string, string>;
|
|
124
|
+
host_aliases?: KubernetesHostAliasConfig[];
|
|
120
125
|
}
|
|
121
126
|
interface KubernetesImagePullSecretCopyConfig {
|
|
122
127
|
/** Secret name in the server namespace. */
|
|
@@ -5048,6 +5053,37 @@ interface CreateModelProviderRegistryInput {
|
|
|
5048
5053
|
*/
|
|
5049
5054
|
declare function createModelProviderRegistry(input: CreateModelProviderRegistryInput): ModelProviderRegistry;
|
|
5050
5055
|
|
|
5056
|
+
type CredentialRepo = ReturnType<typeof createProviderCredentialRepo>;
|
|
5057
|
+
interface ResolvedProviderCredential {
|
|
5058
|
+
providerId: string;
|
|
5059
|
+
revision: number | null;
|
|
5060
|
+
values: Record<string, string>;
|
|
5061
|
+
}
|
|
5062
|
+
interface ProviderCredentialUpdateResult {
|
|
5063
|
+
accepted: boolean;
|
|
5064
|
+
currentRevision: number | null;
|
|
5065
|
+
safeReason?: string;
|
|
5066
|
+
}
|
|
5067
|
+
interface ModelProviderCredentialService {
|
|
5068
|
+
initialize(): void;
|
|
5069
|
+
status: ModelProviderCredentialStatusResolver;
|
|
5070
|
+
resolve(providerId: string, options?: Readonly<Record<string, string>>): ResolvedProviderCredential | null;
|
|
5071
|
+
compareAndSet(input: {
|
|
5072
|
+
providerId: string;
|
|
5073
|
+
expectedRevision: number;
|
|
5074
|
+
value: unknown;
|
|
5075
|
+
}): ProviderCredentialUpdateResult;
|
|
5076
|
+
}
|
|
5077
|
+
/**
|
|
5078
|
+
* Owns encrypted provider credential reads, startup seed/rotation, short-lived
|
|
5079
|
+
* secret projection, and revision compare-and-set. Secret values never enter
|
|
5080
|
+
* model status, receipts, or durable turn records.
|
|
5081
|
+
*/
|
|
5082
|
+
declare function createModelProviderCredentialService(input: {
|
|
5083
|
+
registry: ModelProviderRegistry;
|
|
5084
|
+
repo: CredentialRepo;
|
|
5085
|
+
}): ModelProviderCredentialService;
|
|
5086
|
+
|
|
5051
5087
|
interface CachedModelProfileStatus {
|
|
5052
5088
|
readonly profileId: string;
|
|
5053
5089
|
readonly providerId: string;
|
|
@@ -6413,10 +6449,7 @@ interface WorkerStartPayloadBuilderDeps extends Pick<RepositoryBundle, "processe
|
|
|
6413
6449
|
process: ProcessInstance;
|
|
6414
6450
|
projects: ReturnType<RepositoryBundle["projects"]["listByInstance"]>;
|
|
6415
6451
|
}): _leitwerk_dev_worker_protocol.WorkerGitSshCredential[];
|
|
6416
|
-
resolveCredential?(providerId: string, options: Readonly<Record<string, string>>):
|
|
6417
|
-
revision: number;
|
|
6418
|
-
values: Record<string, string>;
|
|
6419
|
-
} | null;
|
|
6452
|
+
resolveCredential?(providerId: string, options: Readonly<Record<string, string>>): Pick<ResolvedProviderCredential, "revision" | "values"> | null;
|
|
6420
6453
|
integrationTools?: {
|
|
6421
6454
|
declarations(names: readonly string[]): _leitwerk_dev_worker_protocol.IntegrationToolDeclaration[];
|
|
6422
6455
|
};
|
|
@@ -6487,10 +6520,7 @@ interface SupervisorDeps extends Pick<RepositoryBundle, "leases" | "processes" |
|
|
|
6487
6520
|
resolveResourceBundle?: (digest: string) => PiResourceBundle | null;
|
|
6488
6521
|
resolveRepositoryCredentials?: WorkerStartPayloadBuilderDeps["resolveRepositoryCredentials"];
|
|
6489
6522
|
integrationTools?: WorkerStartPayloadBuilderDeps["integrationTools"];
|
|
6490
|
-
resolveCredential?:
|
|
6491
|
-
revision: number;
|
|
6492
|
-
values: Record<string, string>;
|
|
6493
|
-
} | null;
|
|
6523
|
+
resolveCredential?: WorkerStartPayloadBuilderDeps["resolveCredential"];
|
|
6494
6524
|
}
|
|
6495
6525
|
interface WorkerHandle {
|
|
6496
6526
|
workerId: string;
|
|
@@ -6618,4 +6648,4 @@ interface WriteBuildFailure {
|
|
|
6618
6648
|
}
|
|
6619
6649
|
type WriteBuildResult = Writes | WriteBuildFailure;
|
|
6620
6650
|
|
|
6621
|
-
export { type CreateQuestionRequestInput as $, type ActionExecutionResult as A, type Broadcaster as B, type CreateProcessProjectInput as C, type DeferredProcessExtensionEvent as D, type ExtensionHost as E, type AuthSessionRecord as F, type CachedModelProfileStatus as G, type CreateExternalWriteLogInput as H, type IpcHandler as I, type CreateFutureExecutionInput as J, type CreateModelProviderRegistryInput as K, type LeitwerkDb as L, type ModelStatusCacheSnapshot as M, type CreateModelStatusCacheInput as N, type CreatePendingExternalSourceFireInput as O, type ProcessEngineDeps as P, type CreateProcessEventInput as Q, type ReadonlyPiSessionTree as R, type ServerProcessModelPolicy as S, type CreateProcessHandoffDedupKeyInput as T, type UpdateProcessProjectInput as U, type CreateProcessInputInput as V, type WorkerIntent as W, type CreateProcessInstanceInput as X, type CreateProcessLeafOutcomeSnapshotInput as Y, type CreateProcessTurnAnnotationInput as Z, type CreateProcessTurnRecordInput as _, type RepositoryBundle as a,
|
|
6651
|
+
export { type CreateQuestionRequestInput as $, type ActionExecutionResult as A, type Broadcaster as B, type CreateProcessProjectInput as C, type DeferredProcessExtensionEvent as D, type ExtensionHost as E, type AuthSessionRecord as F, type CachedModelProfileStatus as G, type CreateExternalWriteLogInput as H, type IpcHandler as I, type CreateFutureExecutionInput as J, type CreateModelProviderRegistryInput as K, type LeitwerkDb as L, type ModelStatusCacheSnapshot as M, type CreateModelStatusCacheInput as N, type CreatePendingExternalSourceFireInput as O, type ProcessEngineDeps as P, type CreateProcessEventInput as Q, type ReadonlyPiSessionTree as R, type ServerProcessModelPolicy as S, type CreateProcessHandoffDedupKeyInput as T, type UpdateProcessProjectInput as U, type CreateProcessInputInput as V, type WorkerIntent as W, type CreateProcessInstanceInput as X, type CreateProcessLeafOutcomeSnapshotInput as Y, type CreateProcessTurnAnnotationInput as Z, type CreateProcessTurnRecordInput as _, type RepositoryBundle as a, createProcessSkillRepo as a$, type CreateWorkerLeaseInput as a0, type CredentialCipher as a1, DatabaseSchemaMismatchError as a2, type EngineResult as a3, type EnqueueFutureExecutionTitleJobInput as a4, type EnqueueProcessTitleJobInput as a5, type FutureExecutionOverviewPageQuery as a6, type FutureExecutionOverviewQuery as a7, type FutureExecutionOverviewWindowQuery as a8, type InitializeSchemaOptions as a9, closeDatabase as aA, createAes256GcmCredentialCipher as aB, createAllRepos as aC, createAuthLoginFlowRepo as aD, createAuthSessionRepo as aE, createBroadcaster as aF, createCredentialCipherFromBase64 as aG, createCredentialCipherFromEnvironment as aH, createDatabase as aI, createExtensionHost as aJ, createExternalWriteLogRepo as aK, createFutureExecutionRepo as aL, createInMemoryDatabase as aM, createIpcHandler as aN, createLauncherRecentValueRepo as aO, createLocalWorkerStorageLayout as aP, createModelProviderCredentialService as aQ, createModelProviderRegistry as aR, createModelStatusCache as aS, createPendingExternalSourceFireRepo as aT, createProcessEventRepo as aU, createProcessHandoffDedupKeyRepo as aV, createProcessInputRepo as aW, createProcessInstanceRepo as aX, createProcessLeafOutcomeSnapshotRepo as aY, createProcessProjectRepo as aZ, createProcessQuestionRequestRepo as a_, type IpcHandlerCallbacks as aa, type IpcHandlerDeps as ab, type LauncherRecentValue as ac, PROVIDER_CREDENTIAL_KEY_ENV as ad, type PendingExternalSourceFire as ae, type ProcessHandoffDedupKeyRecord as af, type ProcessLaunchIntent as ag, type ProcessOverviewQuery as ah, type ProcessOverviewStatusFilter as ai, type ProcessOverviewWindowQuery as aj, type ProcessTitleJob as ak, type ProcessTitleJobStatus as al, type ProcessTitleJobTargetKind as am, type ProviderCredentialRecord as an, type ProviderCredentialUpdateResult as ao, type ResolvedProviderCredential as ap, type SupervisorDeps as aq, type UpdateFutureExecutionInput as ar, type UpdatePendingExternalSourceFireInput as as, type UpdateProcessInstanceInput as at, type UpdateProcessTurnAnnotationInput as au, type UpdateProcessTurnRecordInput as av, type UpdateWorkerLeaseInput as aw, type WorkerHandle as ax, type WorkerStorageLayout as ay, type WorkerTreePaths as az, buildProcessActionRegistry as b, createProcessTitleJobRepo as b0, createProcessTurnAnnotationRepo as b1, createProcessTurnRecordRepo as b2, createProcessVolumeWorkerStorageLayout as b3, createProviderCredentialRepo as b4, createSkillRepo as b5, createTurnStartRecordRepo as b6, createUnavailableCredentialCipher as b7, createWorkerLeaseRepo as b8, createWorkerStorageLayout as b9, createWorkerSupervisor as ba, defaultModelProviderCredentialStatus as bb, emitDeferredExtensionEvent as bc, initializeSchema as bd, createProcessOperationCoordinator as c, type LeitwerkConfig as d, type RegisteredModelProvider as e, type ModelProviderCredentialStatusResolver as f, type ModelProviderRegistry as g, type ModelProviderCredentialService as h, type ProcessEngine as i, type ProcessOperationCoordinator as j, type ProcessActionRegistry as k, type ModelStatusCache as l, type ProcessEngineLogger as m, type EngineFailure as n, type ProcessQuestionService as o, type WorkerSupervisor as p, type ProcessUiRegistry as q, ProcessSessionReader as r, type WorkerWebSocketIpcManager as s, type PiResourceLayer as t, type PiResourceLimits as u, type ParkProcessLifecyclePayload as v, type WriteBuildResult as w, type Writes as x, type WorkerRuntimeProfileConfig as y, type AuthLoginFlowRecord as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leitwerk-dev/server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/leitwerk-dev/leitwerk.git",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"@earendil-works/pi-coding-agent": "^0.81.1",
|
|
29
29
|
"@fastify/cookie": "11.0.2",
|
|
30
30
|
"@fastify/websocket": "^11.2.0",
|
|
31
|
-
"@leitwerk-dev/domain": "0.1.
|
|
32
|
-
"@leitwerk-dev/extension-runtime": "0.1.
|
|
33
|
-
"@leitwerk-dev/external-writes": "0.1.
|
|
34
|
-
"@leitwerk-dev/process-sdk": "0.1.
|
|
35
|
-
"@leitwerk-dev/protocol": "0.1.
|
|
36
|
-
"@leitwerk-dev/watcher-utils": "0.1.
|
|
37
|
-
"@leitwerk-dev/worker-protocol": "0.1.
|
|
38
|
-
"@leitwerk-dev/worker-runners": "0.1.
|
|
31
|
+
"@leitwerk-dev/domain": "0.1.8",
|
|
32
|
+
"@leitwerk-dev/extension-runtime": "0.1.8",
|
|
33
|
+
"@leitwerk-dev/external-writes": "0.1.8",
|
|
34
|
+
"@leitwerk-dev/process-sdk": "0.1.8",
|
|
35
|
+
"@leitwerk-dev/protocol": "0.1.8",
|
|
36
|
+
"@leitwerk-dev/watcher-utils": "0.1.8",
|
|
37
|
+
"@leitwerk-dev/worker-protocol": "0.1.8",
|
|
38
|
+
"@leitwerk-dev/worker-runners": "0.1.8",
|
|
39
39
|
"better-sqlite3": "^12.8.0",
|
|
40
40
|
"cron-parser": "^5.5.0",
|
|
41
41
|
"defu": "^6.1.7",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"yaml": "^2.8.3"
|
|
49
49
|
},
|
|
50
50
|
"optionalDependencies": {
|
|
51
|
-
"@leitwerk-dev/worker": "0.1.
|
|
51
|
+
"@leitwerk-dev/worker": "0.1.8"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/better-sqlite3": "^7.6.13",
|
package/src/app.ts
CHANGED
|
@@ -226,6 +226,7 @@ async function createConfiguredWorkerRunnerRuntime(input: {
|
|
|
226
226
|
annotations: pod.annotations,
|
|
227
227
|
nodeSelector: pod.node_selector,
|
|
228
228
|
tolerations: pod.tolerations,
|
|
229
|
+
hostAliases: pod.host_aliases,
|
|
229
230
|
}
|
|
230
231
|
: {}),
|
|
231
232
|
},
|
|
@@ -785,15 +786,8 @@ export async function createAppContext(opts: AppOptions = {}): Promise<AppContex
|
|
|
785
786
|
},
|
|
786
787
|
resolveRepositoryCredentials: (input) => repositoryCredentials.resolveWorkerCredentials(input),
|
|
787
788
|
integrationTools,
|
|
788
|
-
resolveCredential(providerId, options)
|
|
789
|
-
|
|
790
|
-
return credential && credential.revision !== null
|
|
791
|
-
? {
|
|
792
|
-
revision: credential.revision,
|
|
793
|
-
values: credential.values,
|
|
794
|
-
}
|
|
795
|
-
: null;
|
|
796
|
-
},
|
|
789
|
+
resolveCredential: (providerId, options) =>
|
|
790
|
+
modelProviderCredentials.resolve(providerId, options),
|
|
797
791
|
});
|
|
798
792
|
|
|
799
793
|
let staleHeartbeatWatchdog: ReturnType<typeof startStaleHeartbeatWatchdog> | null = null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from "node:fs";
|
|
2
|
+
import { isIP } from "node:net";
|
|
2
3
|
import { resolve } from "node:path";
|
|
3
4
|
import { parseDurationMs } from "@leitwerk-dev/watcher-utils";
|
|
4
5
|
import { createDefu } from "defu";
|
|
@@ -171,6 +172,20 @@ const authConfigSchema = v.looseObject({
|
|
|
171
172
|
});
|
|
172
173
|
|
|
173
174
|
const safeSkillIdSchema = v.pipe(v.string(), v.regex(SAFE_SKILL_ID_PATTERN));
|
|
175
|
+
const kubernetesHostAliasIpSchema = v.pipe(
|
|
176
|
+
v.string(),
|
|
177
|
+
v.nonEmpty(),
|
|
178
|
+
v.check((value) => isIP(value) !== 0, "Expected an IPv4 or IPv6 address"),
|
|
179
|
+
);
|
|
180
|
+
const kubernetesHostnameSchema = v.pipe(
|
|
181
|
+
v.string(),
|
|
182
|
+
v.nonEmpty(),
|
|
183
|
+
v.maxLength(253),
|
|
184
|
+
v.regex(
|
|
185
|
+
/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/u,
|
|
186
|
+
"Expected a lowercase DNS hostname",
|
|
187
|
+
),
|
|
188
|
+
);
|
|
174
189
|
const skillSchema = v.strictObject({
|
|
175
190
|
id: safeSkillIdSchema,
|
|
176
191
|
label: v.optional(v.pipe(v.string(), v.nonEmpty())),
|
|
@@ -357,6 +372,14 @@ const configSchema = v.looseObject({
|
|
|
357
372
|
node_selector: v.optional(v.record(v.string(), v.string())),
|
|
358
373
|
tolerations: v.optional(v.array(v.unknown())),
|
|
359
374
|
annotations: v.optional(v.record(v.string(), v.string())),
|
|
375
|
+
host_aliases: v.optional(
|
|
376
|
+
v.array(
|
|
377
|
+
v.strictObject({
|
|
378
|
+
ip: kubernetesHostAliasIpSchema,
|
|
379
|
+
hostnames: v.pipe(v.array(kubernetesHostnameSchema), v.nonEmpty()),
|
|
380
|
+
}),
|
|
381
|
+
),
|
|
382
|
+
),
|
|
360
383
|
}),
|
|
361
384
|
),
|
|
362
385
|
image_pull_secrets: v.optional(stringArraySchema),
|
|
@@ -1016,7 +1039,7 @@ export function getDefaultConfig(): LeitwerkConfig {
|
|
|
1016
1039
|
access_modes: ["ReadWriteOnce"],
|
|
1017
1040
|
mount_path: "/state",
|
|
1018
1041
|
},
|
|
1019
|
-
pod: { node_selector: {}, tolerations: [], annotations: {} },
|
|
1042
|
+
pod: { node_selector: {}, tolerations: [], annotations: {}, host_aliases: [] },
|
|
1020
1043
|
image_pull_secrets: [],
|
|
1021
1044
|
image_pull_secret_copies: [],
|
|
1022
1045
|
},
|
|
@@ -141,10 +141,16 @@ export interface KubernetesProcessVolumeConfig {
|
|
|
141
141
|
mount_path: string;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
export interface KubernetesHostAliasConfig {
|
|
145
|
+
ip: string;
|
|
146
|
+
hostnames: string[];
|
|
147
|
+
}
|
|
148
|
+
|
|
144
149
|
export interface KubernetesPodConfig {
|
|
145
150
|
node_selector?: Record<string, string>;
|
|
146
151
|
tolerations?: unknown[];
|
|
147
152
|
annotations?: Record<string, string>;
|
|
153
|
+
host_aliases?: KubernetesHostAliasConfig[];
|
|
148
154
|
}
|
|
149
155
|
|
|
150
156
|
export interface KubernetesImagePullSecretCopyConfig {
|
|
@@ -22,6 +22,12 @@ function requireApiKey(secrets: Readonly<Record<string, string>>): string {
|
|
|
22
22
|
return value;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
function configuredBaseUrl(config: unknown): string | undefined {
|
|
26
|
+
if (!config || typeof config !== "object" || Array.isArray(config)) return undefined;
|
|
27
|
+
const value = (config as { baseUrl?: unknown }).baseUrl;
|
|
28
|
+
return typeof value === "string" && value.trim() !== "" ? value.trim() : undefined;
|
|
29
|
+
}
|
|
30
|
+
|
|
25
31
|
/**
|
|
26
32
|
* Direct, server-only Pi AI adapter. It never reads PI_CODING_AGENT_DIR or an
|
|
27
33
|
* ambient auth file; the current credential revision is supplied per call.
|
|
@@ -34,10 +40,12 @@ export function createBuiltinPiServerAdapter(builtinProviderId: string): PiServe
|
|
|
34
40
|
`Built-in adapter '${builtinProviderId}' cannot serve provider '${input.providerId}'`,
|
|
35
41
|
);
|
|
36
42
|
}
|
|
37
|
-
const
|
|
38
|
-
if (!
|
|
43
|
+
const canonicalModel = getModel(builtinProviderId as never, input.modelId as never);
|
|
44
|
+
if (!canonicalModel) {
|
|
39
45
|
throw new Error(`Built-in Pi model '${builtinProviderId}/${input.modelId}' is unavailable`);
|
|
40
46
|
}
|
|
47
|
+
const baseUrl = configuredBaseUrl(input.config);
|
|
48
|
+
const model = baseUrl ? { ...canonicalModel, baseUrl } : canonicalModel;
|
|
41
49
|
const reasoning = resolveThinkingLevel(input.thinkingLevel);
|
|
42
50
|
const message = await completeSimple(
|
|
43
51
|
model,
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
} from "@leitwerk-dev/worker-protocol";
|
|
18
18
|
import type { LeitwerkConfig } from "../config/config-types.js";
|
|
19
19
|
import type { RepositoryBundle } from "../db/repositories.js";
|
|
20
|
+
import type { ResolvedProviderCredential } from "../model-providers/credentials.js";
|
|
20
21
|
import type { ProcessActionRegistry } from "../process-action-registry.js";
|
|
21
22
|
import { getProcessTurnGraph, type ProcessGraphRegistry } from "../process-graph.js";
|
|
22
23
|
import { toInputDelivery } from "../process-input-dispatch.js";
|
|
@@ -46,7 +47,7 @@ export interface WorkerStartPayloadBuilderDeps
|
|
|
46
47
|
resolveCredential?(
|
|
47
48
|
providerId: string,
|
|
48
49
|
options: Readonly<Record<string, string>>,
|
|
49
|
-
):
|
|
50
|
+
): Pick<ResolvedProviderCredential, "revision" | "values"> | null;
|
|
50
51
|
integrationTools?: {
|
|
51
52
|
declarations(
|
|
52
53
|
names: readonly string[],
|
|
@@ -81,10 +81,7 @@ export interface SupervisorDeps
|
|
|
81
81
|
resolveResourceBundle?: (digest: string) => PiResourceBundle | null;
|
|
82
82
|
resolveRepositoryCredentials?: WorkerStartPayloadBuilderDeps["resolveRepositoryCredentials"];
|
|
83
83
|
integrationTools?: WorkerStartPayloadBuilderDeps["integrationTools"];
|
|
84
|
-
resolveCredential?:
|
|
85
|
-
providerId: string,
|
|
86
|
-
options: Readonly<Record<string, string>>,
|
|
87
|
-
) => { revision: number; values: Record<string, string> } | null;
|
|
84
|
+
resolveCredential?: WorkerStartPayloadBuilderDeps["resolveCredential"];
|
|
88
85
|
}
|
|
89
86
|
|
|
90
87
|
export interface WorkerHandle {
|