@treeseed/sdk 0.1.2 → 0.3.1
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/README.md +97 -506
- package/dist/{src/cli-tools.d.ts → cli-tools.d.ts} +1 -1
- package/dist/cli-tools.js +5 -3
- package/dist/{src/content-store.d.ts → content-store.d.ts} +3 -2
- package/dist/content-store.js +52 -20
- package/dist/{src/d1-store.d.ts → d1-store.d.ts} +62 -1
- package/dist/d1-store.js +625 -65
- package/dist/field-aliases.d.ts +11 -0
- package/dist/field-aliases.js +41 -0
- package/dist/graph/build.d.ts +19 -0
- package/dist/graph/build.js +949 -0
- package/dist/graph/dsl.d.ts +2 -0
- package/dist/graph/dsl.js +243 -0
- package/dist/graph/query.d.ts +47 -0
- package/dist/graph/query.js +447 -0
- package/dist/graph/ranking.d.ts +3 -0
- package/dist/graph/ranking.js +483 -0
- package/dist/graph/schema.d.ts +142 -0
- package/dist/graph/schema.js +133 -0
- package/dist/graph.d.ts +52 -0
- package/dist/graph.js +133 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +91 -2
- package/dist/model-registry.d.ts +8 -0
- package/dist/model-registry.js +351 -25
- package/dist/operations/providers/default.d.ts +10 -0
- package/dist/operations/providers/default.js +514 -0
- package/dist/operations/runtime.d.ts +7 -0
- package/dist/operations/runtime.js +60 -0
- package/dist/operations/services/config-runtime.d.ts +269 -0
- package/dist/operations/services/config-runtime.js +1397 -0
- package/dist/operations/services/d1-migration.d.ts +6 -0
- package/dist/operations/services/d1-migration.js +89 -0
- package/dist/operations/services/deploy.d.ts +371 -0
- package/dist/operations/services/deploy.js +981 -0
- package/dist/operations/services/git-workflow.d.ts +49 -0
- package/dist/operations/services/git-workflow.js +218 -0
- package/dist/operations/services/github-automation.d.ts +156 -0
- package/dist/operations/services/github-automation.js +256 -0
- package/dist/operations/services/local-dev.d.ts +9 -0
- package/dist/operations/services/local-dev.js +106 -0
- package/dist/operations/services/mailpit-runtime.d.ts +4 -0
- package/dist/operations/services/mailpit-runtime.js +59 -0
- package/dist/operations/services/railway-deploy.d.ts +53 -0
- package/dist/operations/services/railway-deploy.js +123 -0
- package/dist/operations/services/runtime-paths.d.ts +19 -0
- package/dist/operations/services/runtime-paths.js +54 -0
- package/dist/operations/services/runtime-tools.d.ts +117 -0
- package/dist/operations/services/runtime-tools.js +358 -0
- package/dist/operations/services/save-deploy-preflight.d.ts +34 -0
- package/dist/operations/services/save-deploy-preflight.js +76 -0
- package/dist/operations/services/template-registry.d.ts +88 -0
- package/dist/operations/services/template-registry.js +407 -0
- package/dist/operations/services/watch-dev.d.ts +21 -0
- package/dist/operations/services/watch-dev.js +284 -0
- package/dist/operations/services/workspace-preflight.d.ts +40 -0
- package/dist/operations/services/workspace-preflight.js +165 -0
- package/dist/operations/services/workspace-save.d.ts +42 -0
- package/dist/operations/services/workspace-save.js +235 -0
- package/dist/operations/services/workspace-tools.d.ts +16 -0
- package/dist/operations/services/workspace-tools.js +270 -0
- package/dist/operations-registry.d.ts +5 -0
- package/dist/operations-registry.js +68 -0
- package/dist/operations-types.d.ts +71 -0
- package/dist/operations-types.js +17 -0
- package/dist/operations.d.ts +6 -0
- package/dist/operations.js +16 -0
- package/dist/platform/books-data.d.ts +1 -0
- package/dist/platform/books-data.js +1 -0
- package/dist/platform/contracts.d.ts +158 -0
- package/dist/platform/contracts.js +0 -0
- package/dist/platform/deploy/config.d.ts +4 -0
- package/dist/platform/deploy/config.js +222 -0
- package/dist/platform/deploy-config.d.ts +1 -0
- package/dist/platform/deploy-config.js +1 -0
- package/dist/platform/deploy-runtime.d.ts +18 -0
- package/dist/platform/deploy-runtime.js +78 -0
- package/dist/platform/env.yaml +394 -0
- package/dist/platform/environment.d.ts +130 -0
- package/dist/platform/environment.js +331 -0
- package/dist/platform/plugin.d.ts +2 -0
- package/dist/platform/plugin.js +4 -0
- package/dist/platform/plugins/constants.d.ts +22 -0
- package/dist/platform/plugins/constants.js +29 -0
- package/dist/platform/plugins/plugin.d.ts +51 -0
- package/dist/platform/plugins/plugin.js +6 -0
- package/dist/platform/plugins/runtime.d.ts +35 -0
- package/dist/platform/plugins/runtime.js +161 -0
- package/dist/platform/plugins.d.ts +6 -0
- package/dist/platform/plugins.js +38 -0
- package/dist/platform/site-config-schema.js +1 -0
- package/dist/platform/tenant/config.d.ts +9 -0
- package/dist/platform/tenant/config.js +154 -0
- package/dist/platform/tenant/runtime-config.d.ts +4 -0
- package/dist/platform/tenant/runtime-config.js +20 -0
- package/dist/platform/tenant-config.d.ts +1 -0
- package/dist/platform/tenant-config.js +1 -0
- package/dist/platform/utils/books-data.d.ts +29 -0
- package/dist/platform/utils/books-data.js +82 -0
- package/dist/platform/utils/site-config-schema.js +321 -0
- package/dist/remote.d.ts +175 -0
- package/dist/remote.js +202 -0
- package/dist/runtime.js +35 -22
- package/dist/scripts/aggregate-book.js +121 -0
- package/dist/scripts/build-dist.js +54 -13
- package/dist/scripts/build-tenant-worker.js +36 -0
- package/dist/scripts/cleanup-markdown.js +373 -0
- package/dist/scripts/cli-test-fixtures.js +48 -0
- package/dist/scripts/config-treeseed.js +95 -0
- package/dist/scripts/ensure-mailpit.js +29 -0
- package/dist/scripts/local-dev.js +129 -0
- package/dist/scripts/logs-mailpit.js +2 -0
- package/dist/scripts/patch-starlight-content-path.js +172 -0
- package/dist/scripts/release-verify.js +34 -6
- package/dist/scripts/run-fixture-astro-command.js +18 -0
- package/dist/scripts/scaffold-site.js +65 -0
- package/dist/scripts/stop-mailpit.js +5 -0
- package/dist/scripts/sync-dev-vars.js +6 -0
- package/dist/scripts/sync-template.js +20 -0
- package/dist/scripts/template-catalog.test.js +100 -0
- package/dist/scripts/template-command.js +31 -0
- package/dist/scripts/tenant-astro-command.js +3 -0
- package/dist/scripts/tenant-build.js +16 -0
- package/dist/scripts/tenant-check.js +7 -0
- package/dist/scripts/tenant-d1-migrate-local.js +11 -0
- package/dist/scripts/tenant-deploy.js +180 -0
- package/dist/scripts/tenant-destroy.js +104 -0
- package/dist/scripts/tenant-dev.js +171 -0
- package/dist/scripts/tenant-lint.js +4 -0
- package/dist/scripts/tenant-test.js +4 -0
- package/dist/scripts/test-cloudflare-local.js +212 -0
- package/dist/scripts/test-scaffold.js +314 -0
- package/dist/scripts/test-smoke.js +71 -13
- package/dist/scripts/treeseed-assert-release-tag-version.js +21 -0
- package/dist/scripts/treeseed-build-dist.js +134 -0
- package/dist/scripts/treeseed-publish-package.js +19 -0
- package/dist/scripts/treeseed-release-verify.js +131 -0
- package/dist/scripts/treeseed-run-ts.js +45 -0
- package/dist/scripts/validate-templates.js +6 -0
- package/dist/scripts/verify-driver.js +29 -0
- package/dist/scripts/workflow-commands.test.js +39 -0
- package/dist/scripts/workspace-close.js +24 -0
- package/dist/scripts/workspace-command-e2e.js +718 -0
- package/dist/scripts/workspace-lint.js +9 -0
- package/dist/scripts/workspace-preflight.js +22 -0
- package/dist/scripts/workspace-publish-changed-packages.js +16 -0
- package/dist/scripts/workspace-release-verify.js +81 -0
- package/dist/scripts/workspace-release.js +42 -0
- package/dist/scripts/workspace-save.js +124 -0
- package/dist/scripts/workspace-start-warning.js +3 -0
- package/dist/scripts/workspace-start.js +71 -0
- package/dist/scripts/workspace-test-unit.js +4 -0
- package/dist/scripts/workspace-test.js +11 -0
- package/dist/sdk-fields.d.ts +11 -0
- package/dist/sdk-fields.js +169 -0
- package/dist/sdk-filters.d.ts +4 -0
- package/dist/sdk-filters.js +12 -15
- package/dist/sdk-types.d.ts +796 -0
- package/dist/sdk-types.js +7 -1
- package/dist/sdk-version.d.ts +2 -0
- package/dist/sdk-version.js +42 -0
- package/dist/sdk.d.ts +215 -0
- package/dist/sdk.js +235 -11
- package/dist/stores/cursor-store.js +9 -3
- package/dist/stores/lease-store.js +8 -2
- package/dist/{src/stores → stores}/message-store.d.ts +1 -1
- package/dist/stores/message-store.js +27 -3
- package/dist/stores/operational-store.d.ts +24 -0
- package/dist/stores/operational-store.js +279 -0
- package/dist/stores/run-store.js +8 -1
- package/dist/stores/subscription-store.js +7 -5
- package/dist/template-catalog.d.ts +13 -0
- package/dist/template-catalog.js +141 -0
- package/dist/treeseed/services/compose.yml +7 -0
- package/dist/treeseed/template-catalog/catalog.fixture.json +55 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/astro.config.d.ts +2 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/astro.config.ts +3 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/package.json +32 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/src/config.yaml +40 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/src/content/empty/.gitkeep +1 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/src/content/knowledge/handbook/index.mdx +11 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/src/content/pages/welcome.mdx +11 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/src/content.config.d.ts +1 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/src/content.config.ts +3 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/src/env.yaml +1 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/src/manifest.yaml +19 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/treeseed.site.yaml +26 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template/tsconfig.json +9 -0
- package/dist/treeseed/template-catalog/templates/starter-basic/template.config.json +90 -0
- package/dist/utils/agents/contracts/messages.d.ts +88 -0
- package/dist/utils/agents/contracts/messages.js +138 -0
- package/dist/utils/agents/contracts/run.d.ts +20 -0
- package/dist/utils/agents/contracts/run.js +0 -0
- package/dist/utils/agents/runtime-types.d.ts +117 -0
- package/dist/utils/agents/runtime-types.js +4 -0
- package/dist/verification.d.ts +20 -0
- package/dist/verification.js +98 -0
- package/dist/workflow/operations.d.ts +396 -0
- package/dist/workflow/operations.js +841 -0
- package/dist/workflow-state.d.ts +56 -0
- package/dist/workflow-state.js +195 -0
- package/dist/workflow-support.d.ts +9 -0
- package/dist/workflow-support.js +176 -0
- package/dist/workflow.d.ts +111 -0
- package/dist/workflow.js +97 -0
- package/package.json +111 -5
- package/scripts/verify-driver.mjs +29 -0
- package/dist/scripts/.ts-run-1775630384291-crtqr3izsa.js +0 -22
- package/dist/scripts/.ts-run-1775630388025-vnjle0z75a.js +0 -129
- package/dist/scripts/assert-release-tag-version.d.ts +0 -1
- package/dist/scripts/build-dist.d.ts +0 -1
- package/dist/scripts/fixture-tools.d.ts +0 -5
- package/dist/scripts/package-tools.d.ts +0 -15
- package/dist/scripts/publish-package.d.ts +0 -1
- package/dist/scripts/release-verify.d.ts +0 -1
- package/dist/scripts/test-smoke.d.ts +0 -1
- package/dist/src/index.d.ts +0 -6
- package/dist/src/model-registry.d.ts +0 -4
- package/dist/src/sdk-filters.d.ts +0 -4
- package/dist/src/sdk-types.d.ts +0 -285
- package/dist/src/sdk.d.ts +0 -109
- package/dist/test/test-fixture.d.ts +0 -1
- package/dist/test/utils/envelopes.test.d.ts +0 -1
- package/dist/test/utils/sdk.test.d.ts +0 -1
- package/dist/vitest.config.d.ts +0 -2
- /package/dist/{src/frontmatter.d.ts → frontmatter.d.ts} +0 -0
- /package/dist/{src/git-runtime.d.ts → git-runtime.d.ts} +0 -0
- /package/dist/{src/runtime.d.ts → runtime.d.ts} +0 -0
- /package/dist/{src/stores → stores}/cursor-store.d.ts +0 -0
- /package/dist/{src/stores → stores}/envelopes.d.ts +0 -0
- /package/dist/{src/stores → stores}/helpers.d.ts +0 -0
- /package/dist/{src/stores → stores}/lease-store.d.ts +0 -0
- /package/dist/{src/stores → stores}/run-store.d.ts +0 -0
- /package/dist/{src/stores → stores}/subscription-store.d.ts +0 -0
- /package/dist/{src/types → types}/agents.d.ts +0 -0
- /package/dist/{src/types → types}/cloudflare.d.ts +0 -0
- /package/dist/{src/wrangler-d1.d.ts → wrangler-d1.d.ts} +0 -0
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import type { RemoteTreeseedConfig } from '../../remote.ts';
|
|
2
|
+
export declare const DEFAULT_TREESEED_API_BASE_URL = "https://api.treeseed.ai";
|
|
3
|
+
export declare const DEFAULT_TEMPLATE_CATALOG_URL = "https://api.treeseed.ai/search/templates";
|
|
4
|
+
export declare const TREESEED_TEMPLATE_CATALOG_URL_ENV = "TREESEED_TEMPLATE_CATALOG_URL";
|
|
5
|
+
export declare const TREESEED_API_BASE_URL_ENV = "TREESEED_API_BASE_URL";
|
|
6
|
+
export declare function getTreeseedMachineConfigPaths(tenantRoot: any): {
|
|
7
|
+
configPath: string;
|
|
8
|
+
authPath: string;
|
|
9
|
+
keyPath: string;
|
|
10
|
+
legacyKeyPath: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function getTreeseedRemoteAuthPaths(tenantRoot: any): {
|
|
13
|
+
authPath: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function createDefaultTreeseedMachineConfig({ tenantRoot, deployConfig, tenantConfig }: {
|
|
16
|
+
tenantRoot: any;
|
|
17
|
+
deployConfig: any;
|
|
18
|
+
tenantConfig: any;
|
|
19
|
+
}): {
|
|
20
|
+
version: number;
|
|
21
|
+
project: {
|
|
22
|
+
tenantRoot: any;
|
|
23
|
+
tenantId: any;
|
|
24
|
+
slug: any;
|
|
25
|
+
name: any;
|
|
26
|
+
siteUrl: any;
|
|
27
|
+
overlayPath: string;
|
|
28
|
+
};
|
|
29
|
+
settings: {
|
|
30
|
+
sync: {
|
|
31
|
+
github: boolean;
|
|
32
|
+
cloudflare: boolean;
|
|
33
|
+
};
|
|
34
|
+
templates: {
|
|
35
|
+
catalogEndpoint: string;
|
|
36
|
+
};
|
|
37
|
+
remote: {
|
|
38
|
+
activeHostId: string;
|
|
39
|
+
executionMode: string;
|
|
40
|
+
hosts: {
|
|
41
|
+
id: string;
|
|
42
|
+
label: string;
|
|
43
|
+
baseUrl: string;
|
|
44
|
+
official: boolean;
|
|
45
|
+
}[];
|
|
46
|
+
};
|
|
47
|
+
services: {
|
|
48
|
+
railway: {
|
|
49
|
+
projectId: string;
|
|
50
|
+
projectName: string;
|
|
51
|
+
apiServiceId: string;
|
|
52
|
+
apiServiceName: string;
|
|
53
|
+
agentsServiceId: string;
|
|
54
|
+
agentsServiceName: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
environments: {
|
|
59
|
+
[k: string]: {
|
|
60
|
+
values: {};
|
|
61
|
+
secrets: {};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export declare function rotateTreeseedMachineKey(tenantRoot: any): {
|
|
66
|
+
keyPath: string;
|
|
67
|
+
rotated: boolean;
|
|
68
|
+
};
|
|
69
|
+
export declare function loadTreeseedRemoteAuthState(tenantRoot: any): {
|
|
70
|
+
version: number;
|
|
71
|
+
sessions: {
|
|
72
|
+
[k: string]: {
|
|
73
|
+
accessToken: string;
|
|
74
|
+
refreshToken: string;
|
|
75
|
+
expiresAt: any;
|
|
76
|
+
principal: any;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export declare function writeTreeseedRemoteAuthState(tenantRoot: any, state: any): void;
|
|
81
|
+
export declare function setTreeseedRemoteSession(tenantRoot: any, { hostId, accessToken, refreshToken, expiresAt, principal }: {
|
|
82
|
+
hostId: any;
|
|
83
|
+
accessToken: any;
|
|
84
|
+
refreshToken: any;
|
|
85
|
+
expiresAt: any;
|
|
86
|
+
principal: any;
|
|
87
|
+
}): {
|
|
88
|
+
accessToken: string;
|
|
89
|
+
refreshToken: string;
|
|
90
|
+
expiresAt: any;
|
|
91
|
+
principal: any;
|
|
92
|
+
};
|
|
93
|
+
export declare function clearTreeseedRemoteSession(tenantRoot: any, hostId: any): {
|
|
94
|
+
version: number;
|
|
95
|
+
sessions: {
|
|
96
|
+
[k: string]: {
|
|
97
|
+
accessToken: string;
|
|
98
|
+
refreshToken: string;
|
|
99
|
+
expiresAt: any;
|
|
100
|
+
principal: any;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
export declare function resolveTreeseedRemoteSession(tenantRoot: any, hostId: any): {
|
|
105
|
+
accessToken: string;
|
|
106
|
+
refreshToken: string;
|
|
107
|
+
expiresAt: any;
|
|
108
|
+
principal: any;
|
|
109
|
+
} | null;
|
|
110
|
+
export declare function loadTreeseedMachineConfig(tenantRoot: any): any;
|
|
111
|
+
export declare function writeTreeseedMachineConfig(tenantRoot: any, config: any): void;
|
|
112
|
+
export declare function resolveTreeseedRemoteConfig(startRoot?: string, env?: NodeJS.ProcessEnv): RemoteTreeseedConfig;
|
|
113
|
+
export declare function resolveTreeseedTemplateCatalogEndpoint(startRoot?: string, env?: NodeJS.ProcessEnv): string;
|
|
114
|
+
export declare function resolveTreeseedTemplateCatalogCachePath(startRoot?: string): string;
|
|
115
|
+
export declare function ensureTreeseedGitignoreEntries(tenantRoot: any): string;
|
|
116
|
+
export declare function resolveTreeseedMachineEnvironmentValues(tenantRoot: any, scope: any): any;
|
|
117
|
+
export declare function setTreeseedMachineEnvironmentValue(tenantRoot: any, scope: any, entry: any, value: any): any;
|
|
118
|
+
export declare function collectTreeseedEnvironmentContext(tenantRoot: any): import("../../index.ts").TreeseedResolvedEnvironmentRegistry;
|
|
119
|
+
export declare function collectTreeseedConfigSeedValues(tenantRoot: any, scope: any, env?: NodeJS.ProcessEnv): any;
|
|
120
|
+
export declare function formatTreeseedConfigEnvironmentReport({ tenantRoot, scope, env, revealSecrets }: {
|
|
121
|
+
tenantRoot: any;
|
|
122
|
+
scope: any;
|
|
123
|
+
env?: NodeJS.ProcessEnv | undefined;
|
|
124
|
+
revealSecrets?: boolean | undefined;
|
|
125
|
+
}): string;
|
|
126
|
+
export declare function applyTreeseedEnvironmentToProcess({ tenantRoot, scope, override }: {
|
|
127
|
+
tenantRoot: any;
|
|
128
|
+
scope: any;
|
|
129
|
+
override?: boolean | undefined;
|
|
130
|
+
}): any;
|
|
131
|
+
export declare function validateTreeseedCommandEnvironment({ tenantRoot, scope, purpose }: {
|
|
132
|
+
tenantRoot: any;
|
|
133
|
+
scope: any;
|
|
134
|
+
purpose: any;
|
|
135
|
+
}): {
|
|
136
|
+
registry: import("../../index.ts").TreeseedResolvedEnvironmentRegistry;
|
|
137
|
+
values: any;
|
|
138
|
+
validation: import("../../index.ts").TreeseedEnvironmentValidationResult;
|
|
139
|
+
};
|
|
140
|
+
export declare function assertTreeseedCommandEnvironment({ tenantRoot, scope, purpose }: {
|
|
141
|
+
tenantRoot: any;
|
|
142
|
+
scope: any;
|
|
143
|
+
purpose: any;
|
|
144
|
+
}): {
|
|
145
|
+
registry: import("../../index.ts").TreeseedResolvedEnvironmentRegistry;
|
|
146
|
+
values: any;
|
|
147
|
+
validation: import("../../index.ts").TreeseedEnvironmentValidationResult;
|
|
148
|
+
};
|
|
149
|
+
export declare function writeTreeseedLocalEnvironmentFiles(tenantRoot: any): {
|
|
150
|
+
envLocalPath: string;
|
|
151
|
+
devVarsPath: string;
|
|
152
|
+
};
|
|
153
|
+
export declare function ensureTreeseedActVerificationTooling({ tenantRoot, installIfMissing, env, write }?: {
|
|
154
|
+
tenantRoot?: string | undefined;
|
|
155
|
+
installIfMissing?: boolean | undefined;
|
|
156
|
+
env?: NodeJS.ProcessEnv | undefined;
|
|
157
|
+
}): {
|
|
158
|
+
githubCli: {
|
|
159
|
+
name: any;
|
|
160
|
+
available: any;
|
|
161
|
+
detail: any;
|
|
162
|
+
};
|
|
163
|
+
ghActExtension: {
|
|
164
|
+
name: any;
|
|
165
|
+
available: any;
|
|
166
|
+
detail: any;
|
|
167
|
+
};
|
|
168
|
+
dockerDaemon: {
|
|
169
|
+
name: any;
|
|
170
|
+
available: any;
|
|
171
|
+
detail: any;
|
|
172
|
+
};
|
|
173
|
+
actVerificationReady: any;
|
|
174
|
+
remediation: string[];
|
|
175
|
+
};
|
|
176
|
+
export declare function checkTreeseedProviderConnections({ tenantRoot, scope, env }?: {
|
|
177
|
+
scope?: string | undefined;
|
|
178
|
+
env?: NodeJS.ProcessEnv | undefined;
|
|
179
|
+
}): {
|
|
180
|
+
scope: string;
|
|
181
|
+
ok: boolean;
|
|
182
|
+
checks: {
|
|
183
|
+
provider: any;
|
|
184
|
+
ready: any;
|
|
185
|
+
detail: any;
|
|
186
|
+
}[];
|
|
187
|
+
};
|
|
188
|
+
export declare function formatTreeseedProviderConnectionReport(report: any): string;
|
|
189
|
+
export declare function syncTreeseedGitHubEnvironment({ tenantRoot, scope, dryRun }?: {
|
|
190
|
+
scope?: string | undefined;
|
|
191
|
+
dryRun?: boolean | undefined;
|
|
192
|
+
}): {
|
|
193
|
+
secrets: never[];
|
|
194
|
+
variables: never[];
|
|
195
|
+
repository: string;
|
|
196
|
+
scope: string;
|
|
197
|
+
};
|
|
198
|
+
export declare function syncTreeseedCloudflareEnvironment({ tenantRoot, scope, dryRun }?: {
|
|
199
|
+
scope?: string | undefined;
|
|
200
|
+
dryRun?: boolean | undefined;
|
|
201
|
+
}): {
|
|
202
|
+
scope: string;
|
|
203
|
+
target: {
|
|
204
|
+
kind: string;
|
|
205
|
+
scope: string;
|
|
206
|
+
};
|
|
207
|
+
wranglerPath: string;
|
|
208
|
+
secrets: string[];
|
|
209
|
+
varsManagedByWranglerConfig: string[];
|
|
210
|
+
};
|
|
211
|
+
export declare function syncTreeseedRailwayEnvironment({ tenantRoot, scope, dryRun }?: {
|
|
212
|
+
scope?: string | undefined;
|
|
213
|
+
dryRun?: boolean | undefined;
|
|
214
|
+
}): {
|
|
215
|
+
scope: string;
|
|
216
|
+
services: ({
|
|
217
|
+
service: string;
|
|
218
|
+
projectName: any;
|
|
219
|
+
serviceName: any;
|
|
220
|
+
serviceId: string;
|
|
221
|
+
rootDir: string;
|
|
222
|
+
baseUrl: any;
|
|
223
|
+
environmentName: any;
|
|
224
|
+
secrets: string[];
|
|
225
|
+
dryRun: boolean;
|
|
226
|
+
} | null)[];
|
|
227
|
+
};
|
|
228
|
+
export declare function initializeTreeseedPersistentEnvironment({ tenantRoot, scope, dryRun }?: {
|
|
229
|
+
scope?: string | undefined;
|
|
230
|
+
dryRun?: boolean | undefined;
|
|
231
|
+
}): {
|
|
232
|
+
scope: string;
|
|
233
|
+
target: {
|
|
234
|
+
kind: string;
|
|
235
|
+
scope: string;
|
|
236
|
+
};
|
|
237
|
+
summary: {
|
|
238
|
+
target: any;
|
|
239
|
+
workerName: any;
|
|
240
|
+
siteUrl: any;
|
|
241
|
+
accountId: any;
|
|
242
|
+
formGuardKv: any;
|
|
243
|
+
sessionKv: any;
|
|
244
|
+
siteDataDb: any;
|
|
245
|
+
};
|
|
246
|
+
secrets: string[];
|
|
247
|
+
};
|
|
248
|
+
export declare function runTreeseedConfigWizard({ tenantRoot, scopes, sync, prompt, authStatus, write, env, useInk, printEnv, revealSecrets, checkConnections, }: {
|
|
249
|
+
tenantRoot: any;
|
|
250
|
+
scopes?: string[] | undefined;
|
|
251
|
+
sync?: string | undefined;
|
|
252
|
+
prompt: any;
|
|
253
|
+
authStatus: any;
|
|
254
|
+
write?: {
|
|
255
|
+
(...data: any[]): void;
|
|
256
|
+
(message?: any, ...optionalParams: any[]): void;
|
|
257
|
+
} | undefined;
|
|
258
|
+
env?: NodeJS.ProcessEnv | undefined;
|
|
259
|
+
useInk?: boolean | undefined;
|
|
260
|
+
printEnv?: boolean | undefined;
|
|
261
|
+
revealSecrets?: boolean | undefined;
|
|
262
|
+
checkConnections?: boolean | undefined;
|
|
263
|
+
}): Promise<{
|
|
264
|
+
scopes: string[];
|
|
265
|
+
updated: never[];
|
|
266
|
+
synced: {};
|
|
267
|
+
initialized: never[];
|
|
268
|
+
connectionChecks: never[];
|
|
269
|
+
}>;
|