@treeseed/sdk 0.5.3 → 0.6.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/index.d.ts +2 -0
- package/dist/index.js +46 -0
- package/dist/operations/providers/default.js +1 -1
- package/dist/operations/services/config-runtime.d.ts +49 -42
- package/dist/operations/services/config-runtime.js +449 -136
- package/dist/operations/services/deploy.d.ts +298 -0
- package/dist/operations/services/deploy.js +381 -137
- package/dist/operations/services/git-workflow.d.ts +9 -0
- package/dist/operations/services/git-workflow.js +32 -0
- package/dist/operations/services/github-api.d.ts +115 -0
- package/dist/operations/services/github-api.js +455 -0
- package/dist/operations/services/github-automation.d.ts +19 -33
- package/dist/operations/services/github-automation.js +44 -131
- package/dist/operations/services/key-agent.d.ts +20 -1
- package/dist/operations/services/key-agent.js +267 -102
- package/dist/operations/services/knowledge-coop-launch.d.ts +2 -3
- package/dist/operations/services/knowledge-coop-launch.js +26 -12
- package/dist/operations/services/project-platform.d.ts +157 -150
- package/dist/operations/services/project-platform.js +129 -26
- package/dist/operations/services/railway-api.d.ts +244 -0
- package/dist/operations/services/railway-api.js +882 -0
- package/dist/operations/services/railway-deploy.d.ts +171 -27
- package/dist/operations/services/railway-deploy.js +672 -172
- package/dist/operations/services/runtime-tools.d.ts +18 -0
- package/dist/operations/services/runtime-tools.js +19 -6
- package/dist/operations/services/workspace-preflight.js +2 -2
- package/dist/platform/contracts.d.ts +7 -0
- package/dist/platform/deploy-config.js +23 -0
- package/dist/platform/deploy-runtime.d.ts +1 -0
- package/dist/platform/deploy-runtime.js +7 -9
- package/dist/platform/env.yaml +10 -9
- package/dist/platform/environment.js +4 -0
- package/dist/platform/plugin.d.ts +6 -0
- package/dist/platform/plugins/constants.d.ts +1 -0
- package/dist/platform/plugins/constants.js +1 -0
- package/dist/platform/plugins/runtime.d.ts +4 -0
- package/dist/platform/plugins/runtime.js +8 -1
- package/dist/platform/published-content.js +27 -4
- package/dist/platform/tenant/runtime-config.js +33 -24
- package/dist/plugin-default.d.ts +1 -0
- package/dist/plugin-default.js +1 -0
- package/dist/reconcile/builtin-adapters.d.ts +3 -0
- package/dist/reconcile/builtin-adapters.js +2093 -0
- package/dist/reconcile/contracts.d.ts +155 -0
- package/dist/reconcile/contracts.js +0 -0
- package/dist/reconcile/desired-state.d.ts +179 -0
- package/dist/reconcile/desired-state.js +319 -0
- package/dist/reconcile/engine.d.ts +405 -0
- package/dist/reconcile/engine.js +356 -0
- package/dist/reconcile/errors.d.ts +5 -0
- package/dist/reconcile/errors.js +13 -0
- package/dist/reconcile/index.d.ts +7 -0
- package/dist/reconcile/index.js +7 -0
- package/dist/reconcile/registry.d.ts +7 -0
- package/dist/reconcile/registry.js +64 -0
- package/dist/reconcile/state.d.ts +7 -0
- package/dist/reconcile/state.js +303 -0
- package/dist/reconcile/units.d.ts +6 -0
- package/dist/reconcile/units.js +68 -0
- package/dist/scripts/config-treeseed.js +27 -19
- package/dist/scripts/tenant-deploy.js +35 -14
- package/dist/workflow/operations.js +127 -22
- package/dist/workflow-support.d.ts +3 -1
- package/dist/workflow-support.js +50 -0
- package/dist/workflow.d.ts +2 -0
- package/package.json +7 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { projectConnectionModeFromHosting } from './sdk-types.ts';
|
|
|
4
4
|
export { createControlPlaneReporter } from './control-plane.ts';
|
|
5
5
|
export { ControlPlaneClient } from './control-plane-client.ts';
|
|
6
6
|
export { executeKnowledgeCoopManagedLaunch, validateKnowledgeCoopManagedLaunchPrerequisites, } from './operations/services/knowledge-coop-launch.ts';
|
|
7
|
+
export { ensureRailwayEnvironment, ensureRailwayProject, ensureRailwayService, getRailwayAuthProfile, listRailwayEnvironments, listRailwayProjects, listRailwayServices, listRailwayVariables, railwayGraphqlRequest, resolveRailwayApiToken, resolveRailwayApiUrl, resolveRailwayWorkspace, resolveRailwayWorkspaceContext, upsertRailwayVariables, } from './operations/services/railway-api.ts';
|
|
7
8
|
export { buildKnowledgeCoopKnowledgePackPackage, buildKnowledgeCoopTemplatePackage, importKnowledgeCoopKnowledgePack, } from './operations/services/knowledge-coop-packaging.ts';
|
|
8
9
|
export { KNOWLEDGE_COOP_AGENT_MESSAGE_KINDS, KNOWLEDGE_COOP_JOB_STATUSES, KNOWLEDGE_COOP_RELEASE_STATES, KNOWLEDGE_COOP_SHARE_PACKAGE_STATES, KNOWLEDGE_COOP_TEAM_CAPABILITIES, KNOWLEDGE_COOP_WORKSTREAM_STATES, normalizeKnowledgeCoopJobStatus, normalizeRemoteJobStatus, } from './knowledge-coop.ts';
|
|
9
10
|
export { PUBLISHED_CONTENT_MANIFEST_SCHEMA_VERSION, EDITORIAL_PREVIEW_COOKIE, TeamScopedR2OverlayContentRuntimeProvider, TeamScopedR2OverlayContentPublishProvider, createTeamScopedR2OverlayContentRuntimeProvider, createTeamScopedR2OverlayContentPublishProvider, isTeamScopedR2ContentEnabled, parsePublishedCollectionIndex, parsePublishedContentManifest, parsePublishedOverlayManifest, readPublishedContentManifest, readPublishedOverlayManifest, resolveCloudflareR2Bucket, resolvePublishedContentBucketBinding, resolvePublishedContentManifestKey, resolvePublishedContentPreviewRoot, resolvePublishedContentPreviewTtlHours, resolveTeamScopedContentLocator, signEditorialPreviewToken, verifyEditorialPreviewToken, } from './platform/published-content.ts';
|
|
@@ -23,6 +24,7 @@ export { TREESEED_REMOTE_CONTRACT_HEADER, TREESEED_REMOTE_CONTRACT_VERSION, Clou
|
|
|
23
24
|
export { TRESEED_OPERATION_SPECS, findTreeseedOperation, listTreeseedOperationNames, } from './operations-registry.ts';
|
|
24
25
|
export { TreeseedOperationsSdk } from './operations/runtime.ts';
|
|
25
26
|
export { TreeseedWorkflowSdk } from './workflow.ts';
|
|
27
|
+
export { collectTreeseedReconcileStatus, createTreeseedReconcileRegistry, deriveTreeseedDesiredUnits, destroyTreeseedTargetUnits, observeTreeseedUnits, planTreeseedReconciliation, reconcileTreeseedTarget, } from './reconcile/index.ts';
|
|
26
28
|
export { getTreeseedVerifyDriverStatus, runTreeseedVerifyDriver } from './verification.ts';
|
|
27
29
|
export type { KnowledgeCoopLaunchPreflightReport, KnowledgeCoopLaunchFailurePhase, KnowledgeCoopManagedLaunchInput, KnowledgeCoopManagedLaunchResult, AgentMessageKind, AgentMessageRecord, AgentStatusRecord, DirectBoardItemSummary, InboxItem, KnowledgeCoopJobStatus, LaunchProjectRequest, LaunchProjectResult, LinkedProjectRecordRef, ProjectConnectionStatus, ProjectOverviewSummary, ReleaseDetail, ReleaseState, ReleaseSummary, SharePackageState, SharePackageStatus, TeamCapability, TeamHomeSummary, TeamMemberSummary, WorkstreamDetail, WorkstreamEvent, WorkstreamState, WorkstreamSummary, SdkContentEntry, SdkDispatchCapability, SdkDispatchConfig, SdkDispatchCredentialSource, SdkDispatchExecutionClass, SdkDispatchNamespace, SdkDispatchPolicy, SdkDispatchRequest, SdkDispatchResult, SdkDispatchTarget, SdkCursorEntity, SdkFilterCondition, SdkFollowRequest, SdkGraphEdge, SdkGraphEdgeType, SdkGraphDslRelation, SdkGraphDslParseResult, SdkGraphModelConfig, SdkGraphNode, SdkGraphNodeType, SdkGraphPathExplanation, SdkGraphQueryStage, SdkGraphQueryView, SdkGraphQueryOptions, SdkGraphQueryRequest, SdkGraphQueryResult, SdkGraphRankingBuildInput, SdkGraphRankingDiagnostics, SdkGraphRankingIndex, SdkGraphRankingNodeResult, SdkGraphRankingProvider, SdkGraphRankingQueryRequest, SdkGraphRankingQueryResult, SdkGraphRankingSearchRequest, SdkGraphRefreshPayload, SdkGraphRefreshRequest, SdkGraphSearchOptions, SdkGraphSearchResult, SdkGraphSeed, SdkGraphSeedResolution, SdkGraphTraversalResult, SdkGraphWhereFilter, SdkContextPack, SdkContextPackRequest, SdkGetRequest, SdkJsonEnvelope, SdkLeaseEntity, SdkManagerContextPayload, SdkMessageEntity, SdkModelFieldBinding, SdkModelDefinition, SdkModelRegistry, SdkModelName, SdkMutationRequest, SdkOperation, SdkPickRequest, SdkPickResult, SdkQueueMessageEnvelope, SdkRunEntity, SdkSearchRequest, SdkTaskEntity, SdkTaskEventEntity, SdkTaskOutputEntity, SdkWorkDayEntity, SdkGraphRunEntity, SdkReportEntity, SdkSubscriptionEntity, SdkTemplateCatalogEntry, SdkTemplateCatalogPublisher, SdkTemplateCatalogResponse, SdkTemplateCatalogSource, SdkUpdateRequest, ProjectCapabilityGrant, ProjectConnection, ProjectConnectionMode, ProjectDeployment, ProjectDeploymentKind, ProjectDeploymentStatus, ProjectEnvironment, ProjectExecutionOwner, ProjectHosting, ProjectInfrastructureResource, ProjectInfrastructureResourceKind, ProjectInfrastructureResourceProvider, ProjectRunnerRegistrationState, RemoteJob, RemoteJobEvent, RemoteJobStatus, AgentPool, AgentPoolAutoscalePolicy, AgentPoolRegistration, AgentPoolScaleDecision, AgentPoolStatus, CatalogArtifactVersion, CatalogItem, CatalogItemFilters, CatalogItemOfferMode, ProjectEnvironmentName, ProjectWorkdaySummary, TreeseedHostingKind, TreeseedHostingRegistration, PriorityOverride, WorkdayWindow, WorkdaySchedule, TaskCreditWeight, TaskCreditBudget, WorkdayPolicy, PrioritySnapshotItem, PrioritySnapshot, TaskCreditLedgerEntry, ScaleDecision, TeamStorageLocator, UpsertAgentPoolRequest, UpsertCatalogArtifactVersionRequest, UpsertCatalogItemRequest, UpsertProjectEnvironmentRequest, UpsertProjectHostingRequest, UpsertProjectInfrastructureResourceRequest, UpsertTeamStorageLocatorRequest, CreateProjectDeploymentRequest, RecordAgentPoolRegistrationRequest, WorkerPoolScaleResult, WorkerPoolScaler, } from './sdk-types.ts';
|
|
28
30
|
export type * from './knowledge-coop.ts';
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,22 @@ import {
|
|
|
7
7
|
executeKnowledgeCoopManagedLaunch,
|
|
8
8
|
validateKnowledgeCoopManagedLaunchPrerequisites
|
|
9
9
|
} from "./operations/services/knowledge-coop-launch.js";
|
|
10
|
+
import {
|
|
11
|
+
ensureRailwayEnvironment,
|
|
12
|
+
ensureRailwayProject,
|
|
13
|
+
ensureRailwayService,
|
|
14
|
+
getRailwayAuthProfile,
|
|
15
|
+
listRailwayEnvironments,
|
|
16
|
+
listRailwayProjects,
|
|
17
|
+
listRailwayServices,
|
|
18
|
+
listRailwayVariables,
|
|
19
|
+
railwayGraphqlRequest,
|
|
20
|
+
resolveRailwayApiToken,
|
|
21
|
+
resolveRailwayApiUrl,
|
|
22
|
+
resolveRailwayWorkspace,
|
|
23
|
+
resolveRailwayWorkspaceContext,
|
|
24
|
+
upsertRailwayVariables
|
|
25
|
+
} from "./operations/services/railway-api.js";
|
|
10
26
|
import {
|
|
11
27
|
buildKnowledgeCoopKnowledgePackPackage,
|
|
12
28
|
buildKnowledgeCoopTemplatePackage,
|
|
@@ -115,6 +131,15 @@ import {
|
|
|
115
131
|
} from "./operations-registry.js";
|
|
116
132
|
import { TreeseedOperationsSdk } from "./operations/runtime.js";
|
|
117
133
|
import { TreeseedWorkflowSdk } from "./workflow.js";
|
|
134
|
+
import {
|
|
135
|
+
collectTreeseedReconcileStatus,
|
|
136
|
+
createTreeseedReconcileRegistry,
|
|
137
|
+
deriveTreeseedDesiredUnits,
|
|
138
|
+
destroyTreeseedTargetUnits,
|
|
139
|
+
observeTreeseedUnits,
|
|
140
|
+
planTreeseedReconciliation,
|
|
141
|
+
reconcileTreeseedTarget
|
|
142
|
+
} from "./reconcile/index.js";
|
|
118
143
|
import { getTreeseedVerifyDriverStatus, runTreeseedVerifyDriver } from "./verification.js";
|
|
119
144
|
import { CloudflareHttpD1Database } from "./d1-http.js";
|
|
120
145
|
export {
|
|
@@ -158,21 +183,33 @@ export {
|
|
|
158
183
|
buildModelRegistry,
|
|
159
184
|
buildScopedModelRegistry,
|
|
160
185
|
canonicalizeFrontmatter,
|
|
186
|
+
collectTreeseedReconcileStatus,
|
|
161
187
|
createControlPlaneReporter,
|
|
162
188
|
createDefaultGraphRankingProvider,
|
|
163
189
|
createFilesystemContentSource,
|
|
164
190
|
createPublishedContentPipeline,
|
|
165
191
|
createTeamScopedR2OverlayContentPublishProvider,
|
|
166
192
|
createTeamScopedR2OverlayContentRuntimeProvider,
|
|
193
|
+
createTreeseedReconcileRegistry,
|
|
194
|
+
deriveTreeseedDesiredUnits,
|
|
195
|
+
destroyTreeseedTargetUnits,
|
|
196
|
+
ensureRailwayEnvironment,
|
|
197
|
+
ensureRailwayProject,
|
|
198
|
+
ensureRailwayService,
|
|
167
199
|
executeKnowledgeCoopManagedLaunch,
|
|
168
200
|
executeSdkOperation,
|
|
169
201
|
findDispatchCapability,
|
|
170
202
|
findSdkOperation,
|
|
171
203
|
findTreeseedOperation,
|
|
204
|
+
getRailwayAuthProfile,
|
|
172
205
|
getTenantContentRoot,
|
|
173
206
|
getTreeseedVerifyDriverStatus,
|
|
174
207
|
importKnowledgeCoopKnowledgePack,
|
|
175
208
|
isTeamScopedR2ContentEnabled,
|
|
209
|
+
listRailwayEnvironments,
|
|
210
|
+
listRailwayProjects,
|
|
211
|
+
listRailwayServices,
|
|
212
|
+
listRailwayVariables,
|
|
176
213
|
listSdkDispatchCapabilities,
|
|
177
214
|
listSdkOperationNames,
|
|
178
215
|
listTreeseedOperationNames,
|
|
@@ -188,16 +225,20 @@ export {
|
|
|
188
225
|
normalizeRecordToCanonicalShape,
|
|
189
226
|
normalizeRemoteJobStatus,
|
|
190
227
|
normalizeSortFields,
|
|
228
|
+
observeTreeseedUnits,
|
|
191
229
|
parseGraphDsl,
|
|
192
230
|
parsePublishedCollectionIndex,
|
|
193
231
|
parsePublishedContentManifest,
|
|
194
232
|
parsePublishedOverlayManifest,
|
|
195
233
|
parseTemplateCatalogResponse,
|
|
234
|
+
planTreeseedReconciliation,
|
|
196
235
|
preprocessAliasedRecord,
|
|
197
236
|
projectConnectionModeFromHosting,
|
|
237
|
+
railwayGraphqlRequest,
|
|
198
238
|
readCanonicalFieldValue,
|
|
199
239
|
readPublishedContentManifest,
|
|
200
240
|
readPublishedOverlayManifest,
|
|
241
|
+
reconcileTreeseedTarget,
|
|
201
242
|
resolveAliasedField,
|
|
202
243
|
resolveCloudflareR2Bucket,
|
|
203
244
|
resolveModelDefinition,
|
|
@@ -206,6 +247,10 @@ export {
|
|
|
206
247
|
resolvePublishedContentManifestKey,
|
|
207
248
|
resolvePublishedContentPreviewRoot,
|
|
208
249
|
resolvePublishedContentPreviewTtlHours,
|
|
250
|
+
resolveRailwayApiToken,
|
|
251
|
+
resolveRailwayApiUrl,
|
|
252
|
+
resolveRailwayWorkspace,
|
|
253
|
+
resolveRailwayWorkspaceContext,
|
|
209
254
|
resolveSdkRecordVersion,
|
|
210
255
|
resolveTeamScopedContentLocator,
|
|
211
256
|
resolveTreeseedTenantRoot,
|
|
@@ -213,6 +258,7 @@ export {
|
|
|
213
258
|
signEditorialPreviewToken,
|
|
214
259
|
tenantFeatureEnabled,
|
|
215
260
|
tenantModelRendered,
|
|
261
|
+
upsertRailwayVariables,
|
|
216
262
|
validateKnowledgeCoopManagedLaunchPrerequisites,
|
|
217
263
|
validateModelFieldAliases,
|
|
218
264
|
verifyEditorialPreviewToken
|
|
@@ -212,7 +212,7 @@ class PreflightOperation extends BaseOperation {
|
|
|
212
212
|
cwd: context.cwd,
|
|
213
213
|
requireAuth: input.requireAuth ?? this.requireAuth
|
|
214
214
|
});
|
|
215
|
-
const launch = input.launch === true || input.managedLaunch === true ? validateKnowledgeCoopManagedLaunchPrerequisites(context.cwd) : null;
|
|
215
|
+
const launch = input.launch === true || input.managedLaunch === true ? await validateKnowledgeCoopManagedLaunchPrerequisites(context.cwd) : null;
|
|
216
216
|
const stdout = [formatCliPreflightReport(report)];
|
|
217
217
|
if (launch) {
|
|
218
218
|
stdout.push(
|
|
@@ -6,6 +6,21 @@ export declare const DEFAULT_TREESEED_API_BASE_URL = "https://api.treeseed.ai";
|
|
|
6
6
|
export declare const DEFAULT_TEMPLATE_CATALOG_URL = "https://api.treeseed.ai/search/templates";
|
|
7
7
|
export declare const TREESEED_TEMPLATE_CATALOG_URL_ENV = "TREESEED_TEMPLATE_CATALOG_URL";
|
|
8
8
|
export declare const TREESEED_API_BASE_URL_ENV = "TREESEED_API_BASE_URL";
|
|
9
|
+
export declare function inspectTreeseedPassphraseEnvDiagnostic(env?: NodeJS.ProcessEnv): {
|
|
10
|
+
envVar: string;
|
|
11
|
+
configured: boolean;
|
|
12
|
+
recommendedLaunch: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function inspectTreeseedKeyAgentTransportDiagnostic(): Promise<{
|
|
15
|
+
socketPath: string;
|
|
16
|
+
pidPath: string;
|
|
17
|
+
socketPresent: boolean;
|
|
18
|
+
socketKind: "missing" | "socket" | "fifo" | "file" | "directory" | "other";
|
|
19
|
+
socketConnectable: boolean;
|
|
20
|
+
healthOk: boolean;
|
|
21
|
+
daemonPid: number | null;
|
|
22
|
+
lastError: string | null;
|
|
23
|
+
}>;
|
|
9
24
|
export declare function listDeprecatedTreeseedLocalEnvFiles(tenantRoot: any): string[];
|
|
10
25
|
export declare function warnDeprecatedTreeseedLocalEnvFiles(tenantRoot: any, write?: (line: string) => void): string[];
|
|
11
26
|
export declare function getTreeseedMachineConfigPaths(tenantRoot: any): {
|
|
@@ -212,7 +227,9 @@ export declare function applyTreeseedSafeRepairs(tenantRoot: string): TreeseedRe
|
|
|
212
227
|
export declare function resolveTreeseedMachineEnvironmentValues(tenantRoot: any, scope: any): {};
|
|
213
228
|
export declare function setTreeseedMachineEnvironmentValue(tenantRoot: any, scope: any, entry: any, value: any): any;
|
|
214
229
|
export declare function collectTreeseedEnvironmentContext(tenantRoot: any): import("../../platform/environment.ts").TreeseedResolvedEnvironmentRegistry;
|
|
215
|
-
export declare function collectTreeseedConfigSeedValues(tenantRoot: any, scope: any, env?: NodeJS.ProcessEnv): {
|
|
230
|
+
export declare function collectTreeseedConfigSeedValues(tenantRoot: any, scope: any, env?: NodeJS.ProcessEnv): {
|
|
231
|
+
[k: string]: unknown;
|
|
232
|
+
};
|
|
216
233
|
export declare function resolveTreeseedLaunchEnvironment({ tenantRoot, scope, baseEnv, overrides, }: {
|
|
217
234
|
tenantRoot: string;
|
|
218
235
|
scope: TreeseedConfigScope;
|
|
@@ -284,7 +301,7 @@ export declare function ensureTreeseedActVerificationTooling({ tenantRoot, insta
|
|
|
284
301
|
export declare function checkTreeseedProviderConnections({ tenantRoot, scope, env }?: {
|
|
285
302
|
scope?: string | undefined;
|
|
286
303
|
env?: NodeJS.ProcessEnv | undefined;
|
|
287
|
-
}): {
|
|
304
|
+
}): Promise<{
|
|
288
305
|
scope: string;
|
|
289
306
|
ok: boolean;
|
|
290
307
|
checks: {
|
|
@@ -293,17 +310,17 @@ export declare function checkTreeseedProviderConnections({ tenantRoot, scope, en
|
|
|
293
310
|
detail: any;
|
|
294
311
|
}[];
|
|
295
312
|
issues: any[];
|
|
296
|
-
}
|
|
313
|
+
}>;
|
|
297
314
|
export declare function formatTreeseedProviderConnectionReport(report: any): string;
|
|
298
315
|
export declare function syncTreeseedGitHubEnvironment({ tenantRoot, scope, dryRun }?: {
|
|
299
316
|
scope?: string | undefined;
|
|
300
317
|
dryRun?: boolean | undefined;
|
|
301
|
-
}): {
|
|
318
|
+
}): Promise<{
|
|
302
319
|
secrets: never[];
|
|
303
320
|
variables: never[];
|
|
304
321
|
repository: string;
|
|
305
322
|
scope: string;
|
|
306
|
-
}
|
|
323
|
+
}>;
|
|
307
324
|
export declare function syncTreeseedCloudflareEnvironment({ tenantRoot, scope, dryRun }?: {
|
|
308
325
|
scope?: string | undefined;
|
|
309
326
|
dryRun?: boolean | undefined;
|
|
@@ -329,7 +346,7 @@ export declare function syncTreeseedRailwayEnvironment({ tenantRoot, scope, dryR
|
|
|
329
346
|
serviceId: string;
|
|
330
347
|
rootDir: string;
|
|
331
348
|
baseUrl: any;
|
|
332
|
-
environmentName:
|
|
349
|
+
environmentName: string;
|
|
333
350
|
secrets: string[];
|
|
334
351
|
variables: string[];
|
|
335
352
|
dryRun: boolean;
|
|
@@ -338,46 +355,21 @@ export declare function syncTreeseedRailwayEnvironment({ tenantRoot, scope, dryR
|
|
|
338
355
|
export declare function initializeTreeseedPersistentEnvironment({ tenantRoot, scope, dryRun }?: {
|
|
339
356
|
scope?: string | undefined;
|
|
340
357
|
dryRun?: boolean | undefined;
|
|
341
|
-
}): {
|
|
358
|
+
}): Promise<{
|
|
342
359
|
scope: string;
|
|
343
360
|
target: {
|
|
344
361
|
kind: string;
|
|
345
362
|
scope: string;
|
|
346
363
|
};
|
|
347
364
|
summary: {
|
|
348
|
-
target:
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
formGuardKv: any;
|
|
354
|
-
sessionKv: any;
|
|
355
|
-
siteDataDb: any;
|
|
356
|
-
queue: any;
|
|
357
|
-
content: any;
|
|
358
|
-
webCache: {
|
|
359
|
-
webHost: any;
|
|
360
|
-
contentHost: any;
|
|
361
|
-
rulesManaged: boolean;
|
|
362
|
-
lastSyncedAt: any;
|
|
363
|
-
lastError: any;
|
|
364
|
-
policy: {
|
|
365
|
-
sourcePages: {
|
|
366
|
-
paths: string[];
|
|
367
|
-
browserTtlSeconds: number;
|
|
368
|
-
edgeTtlSeconds: number;
|
|
369
|
-
staleWhileRevalidateSeconds: number;
|
|
370
|
-
staleIfErrorSeconds: number;
|
|
371
|
-
};
|
|
372
|
-
contentPages: Required<import("../../platform/contracts.ts").TreeseedWebCachePolicyConfig>;
|
|
373
|
-
r2PublishedObjects: Required<import("../../platform/contracts.ts").TreeseedWebCachePolicyConfig>;
|
|
374
|
-
};
|
|
375
|
-
deployPurge: any;
|
|
376
|
-
contentPurge: any;
|
|
377
|
-
};
|
|
365
|
+
target: import("../../reconcile/contracts.ts").TreeseedReconcileTarget;
|
|
366
|
+
units: import("../../reconcile/contracts.ts").TreeseedDesiredUnit[];
|
|
367
|
+
plans: import("../../reconcile/contracts.ts").TreeseedReconcilePlan[];
|
|
368
|
+
results: import("../../reconcile/contracts.ts").TreeseedReconcileResult[];
|
|
369
|
+
state: import("../../reconcile/contracts.ts").TreeseedReconcileStateRecord;
|
|
378
370
|
};
|
|
379
371
|
secrets: string[];
|
|
380
|
-
}
|
|
372
|
+
}>;
|
|
381
373
|
declare function createConfigReadiness(values: any, validation: any): {
|
|
382
374
|
github: {
|
|
383
375
|
configured: boolean;
|
|
@@ -420,14 +412,29 @@ export declare function finalizeTreeseedConfig({ tenantRoot, scopes, sync, env,
|
|
|
420
412
|
checkConnections?: boolean;
|
|
421
413
|
initializePersistent?: boolean;
|
|
422
414
|
onProgress?: (message: string) => void;
|
|
423
|
-
}): {
|
|
415
|
+
}): Promise<{
|
|
424
416
|
scopes: ("local" | "staging" | "prod")[];
|
|
425
417
|
synced: Record<string, unknown>;
|
|
426
|
-
|
|
418
|
+
reconciled: Array<{
|
|
427
419
|
scope: TreeseedConfigScope;
|
|
428
|
-
secrets: number;
|
|
429
420
|
target: string;
|
|
421
|
+
units: number;
|
|
422
|
+
actions: Array<{
|
|
423
|
+
unitId: string;
|
|
424
|
+
unitType: string;
|
|
425
|
+
provider: string;
|
|
426
|
+
action: string;
|
|
427
|
+
verified: boolean;
|
|
428
|
+
missing: string[];
|
|
429
|
+
drifted: string[];
|
|
430
|
+
}>;
|
|
430
431
|
}>;
|
|
432
|
+
deployed: Array<{
|
|
433
|
+
scope: TreeseedConfigScope;
|
|
434
|
+
branchBootstrap?: Record<string, unknown> | null;
|
|
435
|
+
result: Record<string, unknown>;
|
|
436
|
+
}>;
|
|
437
|
+
resourceInventoryByScope: Record<TreeseedConfigScope, Record<string, unknown>>;
|
|
431
438
|
connectionChecks: ReturnType<typeof checkTreeseedProviderConnections>[];
|
|
432
439
|
validationByScope: Record<TreeseedConfigScope, ReturnType<typeof validateTreeseedEnvironmentValues>>;
|
|
433
440
|
readinessByScope: Record<TreeseedConfigScope, {
|
|
@@ -439,7 +446,7 @@ export declare function finalizeTreeseedConfig({ tenantRoot, scopes, sync, env,
|
|
|
439
446
|
warnings: string[];
|
|
440
447
|
checks: Record<string, unknown>;
|
|
441
448
|
}>;
|
|
442
|
-
}
|
|
449
|
+
}>;
|
|
443
450
|
export declare function collectTreeseedPrintEnvReport({ tenantRoot, scope, env, revealSecrets, }: {
|
|
444
451
|
tenantRoot: string;
|
|
445
452
|
scope: TreeseedConfigScope;
|