@ankhorage/studio 0.0.21 → 0.1.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 +1 -2
- package/dist/cli/index.d.ts +4 -4
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +81 -66
- package/dist/cli/index.js.map +1 -1
- package/dist/hooks/useProjects.js +1 -1
- package/dist/hooks/useProjects.js.map +1 -1
- package/dist/host/createStudioHost.d.ts +13 -0
- package/dist/host/createStudioHost.d.ts.map +1 -0
- package/dist/host/createStudioHost.js +16 -0
- package/dist/host/createStudioHost.js.map +1 -0
- package/dist/host/http/security.d.ts +2 -0
- package/dist/host/http/security.d.ts.map +1 -0
- package/dist/host/http/security.js +55 -0
- package/dist/host/http/security.js.map +1 -0
- package/dist/host/http/server.d.ts +16 -0
- package/dist/host/http/server.d.ts.map +1 -0
- package/dist/host/http/server.js +549 -0
- package/dist/host/http/server.js.map +1 -0
- package/dist/host/index.d.ts +10 -0
- package/dist/host/index.d.ts.map +1 -0
- package/dist/host/index.js +10 -0
- package/dist/host/index.js.map +1 -0
- package/dist/host/layout/auth/resolveAuthLayoutPlan.d.ts +38 -0
- package/dist/host/layout/auth/resolveAuthLayoutPlan.d.ts.map +1 -0
- package/dist/host/layout/auth/resolveAuthLayoutPlan.js +262 -0
- package/dist/host/layout/auth/resolveAuthLayoutPlan.js.map +1 -0
- package/dist/host/layout/layoutGenerator.d.ts +19 -0
- package/dist/host/layout/layoutGenerator.d.ts.map +1 -0
- package/dist/host/layout/layoutGenerator.js +418 -0
- package/dist/host/layout/layoutGenerator.js.map +1 -0
- package/dist/host/layout/templates/auth/adapter.d.ts +6 -0
- package/dist/host/layout/templates/auth/adapter.d.ts.map +1 -0
- package/dist/host/layout/templates/auth/adapter.js +94 -0
- package/dist/host/layout/templates/auth/adapter.js.map +1 -0
- package/dist/host/layout/templates/auth/screen.d.ts +12 -0
- package/dist/host/layout/templates/auth/screen.d.ts.map +1 -0
- package/dist/host/layout/templates/auth/screen.js +648 -0
- package/dist/host/layout/templates/auth/screen.js.map +1 -0
- package/dist/host/layout/templates/auth/session.d.ts +2 -0
- package/dist/host/layout/templates/auth/session.d.ts.map +1 -0
- package/dist/host/layout/templates/auth/session.js +326 -0
- package/dist/host/layout/templates/auth/session.js.map +1 -0
- package/dist/host/layout/templates/auth/signOut.d.ts +2 -0
- package/dist/host/layout/templates/auth/signOut.d.ts.map +1 -0
- package/dist/host/layout/templates/auth/signOut.js +43 -0
- package/dist/host/layout/templates/auth/signOut.js.map +1 -0
- package/dist/host/layout/templates/index.d.ts +11 -0
- package/dist/host/layout/templates/index.d.ts.map +1 -0
- package/dist/host/layout/templates/index.js +10 -0
- package/dist/host/layout/templates/index.js.map +1 -0
- package/dist/host/layout/templates/navigation.d.ts +16 -0
- package/dist/host/layout/templates/navigation.d.ts.map +1 -0
- package/dist/host/layout/templates/navigation.js +332 -0
- package/dist/host/layout/templates/navigation.js.map +1 -0
- package/dist/host/layout/templates/nestedLayout.d.ts +7 -0
- package/dist/host/layout/templates/nestedLayout.d.ts.map +1 -0
- package/dist/host/layout/templates/nestedLayout.js +56 -0
- package/dist/host/layout/templates/nestedLayout.js.map +1 -0
- package/dist/host/layout/templates/redirect.d.ts +2 -0
- package/dist/host/layout/templates/redirect.d.ts.map +1 -0
- package/dist/host/layout/templates/redirect.js +10 -0
- package/dist/host/layout/templates/redirect.js.map +1 -0
- package/dist/host/layout/templates/rootLayout.d.ts +28 -0
- package/dist/host/layout/templates/rootLayout.d.ts.map +1 -0
- package/dist/host/layout/templates/rootLayout.js +507 -0
- package/dist/host/layout/templates/rootLayout.js.map +1 -0
- package/dist/host/layout/templates/screen.d.ts +6 -0
- package/dist/host/layout/templates/screen.d.ts.map +1 -0
- package/dist/host/layout/templates/screen.js +94 -0
- package/dist/host/layout/templates/screen.js.map +1 -0
- package/dist/host/layout/templates/utils/routes.d.ts +3 -0
- package/dist/host/layout/templates/utils/routes.d.ts.map +1 -0
- package/dist/host/layout/templates/utils/routes.js +15 -0
- package/dist/host/layout/templates/utils/routes.js.map +1 -0
- package/dist/host/layout/templates/utils/strings.d.ts +3 -0
- package/dist/host/layout/templates/utils/strings.d.ts.map +1 -0
- package/dist/host/layout/templates/utils/strings.js +7 -0
- package/dist/host/layout/templates/utils/strings.js.map +1 -0
- package/dist/host/layout/utils/escapeStringLiteral.d.ts +2 -0
- package/dist/host/layout/utils/escapeStringLiteral.d.ts.map +1 -0
- package/dist/host/layout/utils/escapeStringLiteral.js +8 -0
- package/dist/host/layout/utils/escapeStringLiteral.js.map +1 -0
- package/dist/host/manifestSystem/auth/index.d.ts +2 -0
- package/dist/host/manifestSystem/auth/index.d.ts.map +1 -0
- package/dist/host/manifestSystem/auth/index.js +2 -0
- package/dist/host/manifestSystem/auth/index.js.map +1 -0
- package/dist/host/manifestSystem/auth/shared/global.auth.system.tpl.d.ts +4 -0
- package/dist/host/manifestSystem/auth/shared/global.auth.system.tpl.d.ts.map +1 -0
- package/dist/host/manifestSystem/auth/shared/global.auth.system.tpl.js +7 -0
- package/dist/host/manifestSystem/auth/shared/global.auth.system.tpl.js.map +1 -0
- package/dist/host/manifestSystem/auth/shared/index.d.ts +3 -0
- package/dist/host/manifestSystem/auth/shared/index.d.ts.map +1 -0
- package/dist/host/manifestSystem/auth/shared/index.js +8 -0
- package/dist/host/manifestSystem/auth/shared/index.js.map +1 -0
- package/dist/host/manifestSystem/index.d.ts +5 -0
- package/dist/host/manifestSystem/index.d.ts.map +1 -0
- package/dist/host/manifestSystem/index.js +23 -0
- package/dist/host/manifestSystem/index.js.map +1 -0
- package/dist/host/manifestSystem/types.d.ts +8 -0
- package/dist/host/manifestSystem/types.d.ts.map +1 -0
- package/dist/host/manifestSystem/types.js +2 -0
- package/dist/host/manifestSystem/types.js.map +1 -0
- package/dist/host/modules/catalog.d.ts +40 -0
- package/dist/host/modules/catalog.d.ts.map +1 -0
- package/dist/host/modules/catalog.js +112 -0
- package/dist/host/modules/catalog.js.map +1 -0
- package/dist/host/modules/layout.d.ts +7 -0
- package/dist/host/modules/layout.d.ts.map +1 -0
- package/dist/host/modules/layout.js +2 -0
- package/dist/host/modules/layout.js.map +1 -0
- package/dist/host/modules/runtime/LocalFsTargetAdapter.d.ts +34 -0
- package/dist/host/modules/runtime/LocalFsTargetAdapter.d.ts.map +1 -0
- package/dist/host/modules/runtime/LocalFsTargetAdapter.js +85 -0
- package/dist/host/modules/runtime/LocalFsTargetAdapter.js.map +1 -0
- package/dist/host/orchestrator/generatedAppFiles.d.ts +8 -0
- package/dist/host/orchestrator/generatedAppFiles.d.ts.map +1 -0
- package/dist/host/orchestrator/generatedAppFiles.js +125 -0
- package/dist/host/orchestrator/generatedAppFiles.js.map +1 -0
- package/dist/host/orchestrator/generatedRouteCleanup.d.ts +5 -0
- package/dist/host/orchestrator/generatedRouteCleanup.d.ts.map +1 -0
- package/dist/host/orchestrator/generatedRouteCleanup.js +117 -0
- package/dist/host/orchestrator/generatedRouteCleanup.js.map +1 -0
- package/dist/host/orchestrator/infraGenerator.d.ts +35 -0
- package/dist/host/orchestrator/infraGenerator.d.ts.map +1 -0
- package/dist/host/orchestrator/infraGenerator.js +135 -0
- package/dist/host/orchestrator/infraGenerator.js.map +1 -0
- package/dist/host/orchestrator/infraRuntime.d.ts +38 -0
- package/dist/host/orchestrator/infraRuntime.d.ts.map +1 -0
- package/dist/host/orchestrator/infraRuntime.js +227 -0
- package/dist/host/orchestrator/infraRuntime.js.map +1 -0
- package/dist/host/orchestrator/infraValidation.d.ts +3 -0
- package/dist/host/orchestrator/infraValidation.d.ts.map +1 -0
- package/dist/host/orchestrator/infraValidation.js +59 -0
- package/dist/host/orchestrator/infraValidation.js.map +1 -0
- package/dist/host/orchestrator/moduleManager.d.ts +86 -0
- package/dist/host/orchestrator/moduleManager.d.ts.map +1 -0
- package/dist/host/orchestrator/moduleManager.js +312 -0
- package/dist/host/orchestrator/moduleManager.js.map +1 -0
- package/dist/host/orchestrator/projectDeletion.d.ts +27 -0
- package/dist/host/orchestrator/projectDeletion.d.ts.map +1 -0
- package/dist/host/orchestrator/projectDeletion.js +242 -0
- package/dist/host/orchestrator/projectDeletion.js.map +1 -0
- package/dist/host/orchestrator/projectManager.d.ts +87 -0
- package/dist/host/orchestrator/projectManager.d.ts.map +1 -0
- package/dist/host/orchestrator/projectManager.js +371 -0
- package/dist/host/orchestrator/projectManager.js.map +1 -0
- package/dist/host/orchestrator/projectPaths.d.ts +4 -0
- package/dist/host/orchestrator/projectPaths.d.ts.map +1 -0
- package/dist/host/orchestrator/projectPaths.js +25 -0
- package/dist/host/orchestrator/projectPaths.js.map +1 -0
- package/dist/host/orchestrator/projectStore.d.ts +24 -0
- package/dist/host/orchestrator/projectStore.d.ts.map +1 -0
- package/dist/host/orchestrator/projectStore.js +155 -0
- package/dist/host/orchestrator/projectStore.js.map +1 -0
- package/dist/host/orchestrator/resolveMutations.d.ts +3 -0
- package/dist/host/orchestrator/resolveMutations.d.ts.map +1 -0
- package/dist/host/orchestrator/resolveMutations.js +12 -0
- package/dist/host/orchestrator/resolveMutations.js.map +1 -0
- package/dist/host/orchestrator/scaffolder.d.ts +33 -0
- package/dist/host/orchestrator/scaffolder.d.ts.map +1 -0
- package/dist/host/orchestrator/scaffolder.js +246 -0
- package/dist/host/orchestrator/scaffolder.js.map +1 -0
- package/dist/host/orchestrator/templates.d.ts +83 -0
- package/dist/host/orchestrator/templates.d.ts.map +1 -0
- package/dist/host/orchestrator/templates.js +355 -0
- package/dist/host/orchestrator/templates.js.map +1 -0
- package/dist/host/orchestrator/workspaceRuntime.d.ts +2 -0
- package/dist/host/orchestrator/workspaceRuntime.d.ts.map +1 -0
- package/dist/host/orchestrator/workspaceRuntime.js +82 -0
- package/dist/host/orchestrator/workspaceRuntime.js.map +1 -0
- package/dist/host/templateRegistry/index.d.ts +16 -0
- package/dist/host/templateRegistry/index.d.ts.map +1 -0
- package/dist/host/templateRegistry/index.js +74 -0
- package/dist/host/templateRegistry/index.js.map +1 -0
- package/dist/host/utils/requirementsInference.d.ts +4 -0
- package/dist/host/utils/requirementsInference.d.ts.map +1 -0
- package/dist/host/utils/requirementsInference.js +49 -0
- package/dist/host/utils/requirementsInference.js.map +1 -0
- package/dist/host/utils/trimOutput.d.ts +7 -0
- package/dist/host/utils/trimOutput.d.ts.map +1 -0
- package/dist/host/utils/trimOutput.js +32 -0
- package/dist/host/utils/trimOutput.js.map +1 -0
- package/dist/host/utils/workspaceRoot.d.ts +2 -0
- package/dist/host/utils/workspaceRoot.d.ts.map +1 -0
- package/dist/host/utils/workspaceRoot.js +33 -0
- package/dist/host/utils/workspaceRoot.js.map +1 -0
- package/dist/host/zoraExtensions/index.d.ts +11 -0
- package/dist/host/zoraExtensions/index.d.ts.map +1 -0
- package/dist/host/zoraExtensions/index.js +54 -0
- package/dist/host/zoraExtensions/index.js.map +1 -0
- package/dist/root.d.ts +3 -0
- package/dist/root.d.ts.map +1 -0
- package/dist/root.js +3 -0
- package/dist/root.js.map +1 -0
- package/package.json +16 -3
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { execFile } from 'child_process';
|
|
2
|
+
import { promises as fs } from 'fs';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
import { promisify } from 'util';
|
|
5
|
+
const execFileAsync = promisify(execFile);
|
|
6
|
+
const DOCKER_LIST_TIMEOUT_MS = 8_000;
|
|
7
|
+
const DOCKER_REMOVE_TIMEOUT_MS = 15_000;
|
|
8
|
+
const DOCKER_IMAGE_REMOVE_TIMEOUT_MS = 15_000;
|
|
9
|
+
const MINIKUBE_IMAGE_REMOVE_TIMEOUT_MS = 20_000;
|
|
10
|
+
const EXEC_MAX_BUFFER = 1024 * 1024;
|
|
11
|
+
const defaultCommandRunner = {
|
|
12
|
+
async run(command, args, timeoutMs) {
|
|
13
|
+
const output = await execFileAsync(command, args, {
|
|
14
|
+
timeout: timeoutMs,
|
|
15
|
+
maxBuffer: EXEC_MAX_BUFFER,
|
|
16
|
+
});
|
|
17
|
+
return {
|
|
18
|
+
stdout: output.stdout,
|
|
19
|
+
stderr: output.stderr,
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
function getSupabaseContainersForProject(args) {
|
|
24
|
+
const { projectId, containerNames } = args;
|
|
25
|
+
const suffix = `_${projectId}`;
|
|
26
|
+
return containerNames.filter((name) => name.startsWith('supabase_') && name.endsWith(suffix));
|
|
27
|
+
}
|
|
28
|
+
export async function cleanupProjectGeneratedAppImage(args) {
|
|
29
|
+
const { projectPath, target, runner = defaultCommandRunner } = args;
|
|
30
|
+
if (target !== 'minikube') {
|
|
31
|
+
return {
|
|
32
|
+
removedImages: 0,
|
|
33
|
+
warnings: [],
|
|
34
|
+
skipped: {
|
|
35
|
+
reason: `Generated app image cleanup is not implemented for deployment target: ${target}.`,
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
const env = await readMinikubeEnv(projectPath);
|
|
40
|
+
const cleanupEnabled = readBooleanEnv(env, 'APP_IMAGE_CLEANUP_ON_DOWN', true);
|
|
41
|
+
if (!cleanupEnabled) {
|
|
42
|
+
return {
|
|
43
|
+
removedImages: 0,
|
|
44
|
+
warnings: [],
|
|
45
|
+
skipped: {
|
|
46
|
+
reason: 'Generated app image cleanup disabled by APP_IMAGE_CLEANUP_ON_DOWN=false.',
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
const appImage = env.get('APP_IMAGE')?.trim();
|
|
51
|
+
if (!appImage) {
|
|
52
|
+
return {
|
|
53
|
+
removedImages: 0,
|
|
54
|
+
warnings: ['Skipping generated app image cleanup because APP_IMAGE could not be resolved.'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
const profile = env.get('MINIKUBE_PROFILE')?.trim() ?? 'minikube';
|
|
58
|
+
const warnings = [];
|
|
59
|
+
let removedImages = 0;
|
|
60
|
+
if (readBooleanEnv(env, 'APP_IMAGE_CLEANUP_MINIKUBE', true)) {
|
|
61
|
+
const result = await removeMinikubeImage({ appImage, profile, runner });
|
|
62
|
+
removedImages += result.removedImages;
|
|
63
|
+
warnings.push(...result.warnings);
|
|
64
|
+
}
|
|
65
|
+
if (readBooleanEnv(env, 'APP_IMAGE_CLEANUP_DOCKER', true)) {
|
|
66
|
+
const result = await removeDockerImage({ appImage, runner });
|
|
67
|
+
removedImages += result.removedImages;
|
|
68
|
+
warnings.push(...result.warnings);
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
removedImages,
|
|
72
|
+
warnings,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export async function stopProjectSupabaseContainers(args) {
|
|
76
|
+
const { projectId, runner = defaultCommandRunner } = args;
|
|
77
|
+
if (!projectId) {
|
|
78
|
+
return {
|
|
79
|
+
removedContainers: 0,
|
|
80
|
+
warnings: [],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
try {
|
|
84
|
+
const listResult = await runner.run('docker', ['ps', '-a', '--format', '{{.Names}}'], DOCKER_LIST_TIMEOUT_MS);
|
|
85
|
+
const allContainerNames = listResult.stdout
|
|
86
|
+
.split(/\r?\n/u)
|
|
87
|
+
.map((value) => value.trim())
|
|
88
|
+
.filter((value) => value.length > 0);
|
|
89
|
+
const supabaseContainers = getSupabaseContainersForProject({
|
|
90
|
+
projectId,
|
|
91
|
+
containerNames: allContainerNames,
|
|
92
|
+
});
|
|
93
|
+
if (supabaseContainers.length === 0) {
|
|
94
|
+
return {
|
|
95
|
+
removedContainers: 0,
|
|
96
|
+
warnings: [],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
try {
|
|
100
|
+
await runner.run('docker', ['rm', '-f', ...supabaseContainers], DOCKER_REMOVE_TIMEOUT_MS);
|
|
101
|
+
}
|
|
102
|
+
catch (err) {
|
|
103
|
+
throw new Error(`Failed to remove Supabase containers: ${formatError(err)}`, { cause: err });
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
removedContainers: supabaseContainers.length,
|
|
107
|
+
warnings: [],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
catch (err) {
|
|
111
|
+
if (isMissingCommandError(err)) {
|
|
112
|
+
return {
|
|
113
|
+
removedContainers: 0,
|
|
114
|
+
warnings: ['Skipping Supabase container cleanup because docker is not available in PATH.'],
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
throw new Error(`Failed to list Docker containers: ${formatError(err)}`, { cause: err });
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
async function removeMinikubeImage(args) {
|
|
121
|
+
const { appImage, profile, runner } = args;
|
|
122
|
+
try {
|
|
123
|
+
await runner.run('minikube', ['-p', profile, 'image', 'rm', appImage], MINIKUBE_IMAGE_REMOVE_TIMEOUT_MS);
|
|
124
|
+
return {
|
|
125
|
+
removedImages: 1,
|
|
126
|
+
warnings: [],
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
catch (err) {
|
|
130
|
+
if (isMissingCommandError(err)) {
|
|
131
|
+
return {
|
|
132
|
+
removedImages: 0,
|
|
133
|
+
warnings: ['Skipping Minikube image cleanup because minikube is not available in PATH.'],
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
if (isImageNotFoundError(err)) {
|
|
137
|
+
return {
|
|
138
|
+
removedImages: 0,
|
|
139
|
+
warnings: [],
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
removedImages: 0,
|
|
144
|
+
warnings: [`Skipping Minikube image cleanup for ${appImage}: ${formatError(err)}`],
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
async function removeDockerImage(args) {
|
|
149
|
+
const { appImage, runner } = args;
|
|
150
|
+
try {
|
|
151
|
+
await runner.run('docker', ['image', 'rm', appImage], DOCKER_IMAGE_REMOVE_TIMEOUT_MS);
|
|
152
|
+
return {
|
|
153
|
+
removedImages: 1,
|
|
154
|
+
warnings: [],
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
catch (err) {
|
|
158
|
+
if (isMissingCommandError(err)) {
|
|
159
|
+
return {
|
|
160
|
+
removedImages: 0,
|
|
161
|
+
warnings: ['Skipping Docker image cleanup because docker is not available in PATH.'],
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
if (isImageNotFoundError(err)) {
|
|
165
|
+
return {
|
|
166
|
+
removedImages: 0,
|
|
167
|
+
warnings: [],
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
return {
|
|
171
|
+
removedImages: 0,
|
|
172
|
+
warnings: [`Skipping Docker image cleanup for ${appImage}: ${formatError(err)}`],
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
async function readMinikubeEnv(projectPath) {
|
|
177
|
+
const infraRoot = path.join(projectPath, 'infra', 'minikube');
|
|
178
|
+
const env = new Map();
|
|
179
|
+
await mergeEnvFile(env, path.join(infraRoot, '.env.example'));
|
|
180
|
+
await mergeEnvFile(env, path.join(infraRoot, '.env'));
|
|
181
|
+
return env;
|
|
182
|
+
}
|
|
183
|
+
async function mergeEnvFile(env, filePath) {
|
|
184
|
+
try {
|
|
185
|
+
const content = await fs.readFile(filePath, 'utf8');
|
|
186
|
+
for (const line of content.split(/\r?\n/u)) {
|
|
187
|
+
const parsed = parseEnvLine(line);
|
|
188
|
+
if (!parsed)
|
|
189
|
+
continue;
|
|
190
|
+
env.set(parsed.key, parsed.value);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
catch (err) {
|
|
194
|
+
if (isMissingFileError(err))
|
|
195
|
+
return;
|
|
196
|
+
throw err;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
function parseEnvLine(line) {
|
|
200
|
+
const trimmed = line.trim();
|
|
201
|
+
if (!trimmed || trimmed.startsWith('#'))
|
|
202
|
+
return null;
|
|
203
|
+
const assignmentIndex = trimmed.indexOf('=');
|
|
204
|
+
if (assignmentIndex <= 0)
|
|
205
|
+
return null;
|
|
206
|
+
const key = trimmed.slice(0, assignmentIndex).trim();
|
|
207
|
+
const rawValue = trimmed.slice(assignmentIndex + 1).trim();
|
|
208
|
+
const value = rawValue.replace(/^['"]|['"]$/g, '');
|
|
209
|
+
return { key, value };
|
|
210
|
+
}
|
|
211
|
+
function readBooleanEnv(env, key, fallback) {
|
|
212
|
+
const value = env.get(key)?.trim().toLowerCase();
|
|
213
|
+
if (!value)
|
|
214
|
+
return fallback;
|
|
215
|
+
if (['1', 'true', 'yes', 'on'].includes(value))
|
|
216
|
+
return true;
|
|
217
|
+
if (['0', 'false', 'no', 'off'].includes(value))
|
|
218
|
+
return false;
|
|
219
|
+
return fallback;
|
|
220
|
+
}
|
|
221
|
+
function isMissingCommandError(err) {
|
|
222
|
+
if (!err || typeof err !== 'object')
|
|
223
|
+
return false;
|
|
224
|
+
const maybeNodeErr = err;
|
|
225
|
+
return maybeNodeErr.code === 'ENOENT';
|
|
226
|
+
}
|
|
227
|
+
function isMissingFileError(err) {
|
|
228
|
+
if (!err || typeof err !== 'object')
|
|
229
|
+
return false;
|
|
230
|
+
const maybeNodeErr = err;
|
|
231
|
+
return maybeNodeErr.code === 'ENOENT';
|
|
232
|
+
}
|
|
233
|
+
function isImageNotFoundError(err) {
|
|
234
|
+
const message = formatError(err);
|
|
235
|
+
return /no such image|image .* not found|not found/i.test(message);
|
|
236
|
+
}
|
|
237
|
+
function formatError(err) {
|
|
238
|
+
if (err instanceof Error && err.message)
|
|
239
|
+
return err.message;
|
|
240
|
+
return String(err);
|
|
241
|
+
}
|
|
242
|
+
//# sourceMappingURL=projectDeletion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projectDeletion.js","sourceRoot":"","sources":["../../../src/host/orchestrator/projectDeletion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,IAAI,MAAM,MA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,CAAC,OAAO;QAAE,OAAO,GAAG,CAAC,OAAO,CAAC;IAC5D,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { AppManifest } from '@ankhorage/contracts';
|
|
2
|
+
import type { LayoutMutation } from '../modules/layout';
|
|
3
|
+
import type { ProjectTemplateSelection } from '../templateRegistry';
|
|
4
|
+
import { type ProjectSummary } from './projectStore';
|
|
5
|
+
export declare class ProjectManager {
|
|
6
|
+
private readonly rootPath;
|
|
7
|
+
private readonly store;
|
|
8
|
+
private readonly scaffolder;
|
|
9
|
+
private readonly layout;
|
|
10
|
+
private readonly appsRoot;
|
|
11
|
+
constructor(rootPath: string);
|
|
12
|
+
listProjects(): Promise<ProjectSummary[]>;
|
|
13
|
+
deleteProject(projectId: string): Promise<{
|
|
14
|
+
success: boolean;
|
|
15
|
+
infraDown: boolean;
|
|
16
|
+
warnings: string[];
|
|
17
|
+
}>;
|
|
18
|
+
createProject(name: string, templateSelection: ProjectTemplateSelection, onProjectCreated?: (projectId: string) => Promise<void>, options?: {
|
|
19
|
+
includeStudio?: boolean;
|
|
20
|
+
}): Promise<{
|
|
21
|
+
success: boolean;
|
|
22
|
+
id: string;
|
|
23
|
+
path: string;
|
|
24
|
+
}>;
|
|
25
|
+
installWorkspacePackages(): Promise<{
|
|
26
|
+
success: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
getProjectManifest(projectId: string): Promise<AppManifest>;
|
|
29
|
+
getStudioManifest(projectId: string): Promise<AppManifest>;
|
|
30
|
+
updateStudioManifestIfExists(projectId: string, updater: (manifest: AppManifest) => AppManifest): Promise<{
|
|
31
|
+
updated: boolean;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* Save manifest and (optionally) regenerate router files immediately.
|
|
35
|
+
*
|
|
36
|
+
* We take `mutations` as input to keep module boundaries clean.
|
|
37
|
+
*/
|
|
38
|
+
saveProjectManifest(args: {
|
|
39
|
+
projectId: string;
|
|
40
|
+
manifest: AppManifest;
|
|
41
|
+
mutations: LayoutMutation[];
|
|
42
|
+
regenerateRouterFiles?: boolean;
|
|
43
|
+
}): Promise<{
|
|
44
|
+
success: boolean;
|
|
45
|
+
}>;
|
|
46
|
+
saveStudioManifest(args: {
|
|
47
|
+
projectId: string;
|
|
48
|
+
manifest: AppManifest;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
success: boolean;
|
|
51
|
+
}>;
|
|
52
|
+
syncStudioRuntime(args: {
|
|
53
|
+
projectId: string;
|
|
54
|
+
manifest: AppManifest;
|
|
55
|
+
}): Promise<{
|
|
56
|
+
success: boolean;
|
|
57
|
+
}>;
|
|
58
|
+
/**
|
|
59
|
+
* Rebuild only the root layout file from manifest + mutations.
|
|
60
|
+
*/
|
|
61
|
+
rebuildRootLayout(args: {
|
|
62
|
+
projectId: string;
|
|
63
|
+
mutations: LayoutMutation[];
|
|
64
|
+
}): Promise<{
|
|
65
|
+
success: boolean;
|
|
66
|
+
}>;
|
|
67
|
+
syncProject(args: {
|
|
68
|
+
projectId: string;
|
|
69
|
+
mutations: LayoutMutation[];
|
|
70
|
+
includeStudio?: boolean;
|
|
71
|
+
}): Promise<{
|
|
72
|
+
success: boolean;
|
|
73
|
+
}>;
|
|
74
|
+
regenerateInfrastructure(projectId: string): Promise<import("./infraGenerator").InfraSyncResult>;
|
|
75
|
+
getInfrastructureStatus(projectId: string): Promise<import("./infraGenerator").InfraStatusResult>;
|
|
76
|
+
getLocalizationLocales(projectId: string): Promise<string[]>;
|
|
77
|
+
getLocalizationLocale(projectId: string, locale: string): Promise<Record<string, string>>;
|
|
78
|
+
saveLocalizationLocale(projectId: string, locale: string, dict: Record<string, string>): Promise<{
|
|
79
|
+
success: boolean;
|
|
80
|
+
}>;
|
|
81
|
+
private validateLocale;
|
|
82
|
+
private writeGeneratedFiles;
|
|
83
|
+
private writeText;
|
|
84
|
+
private shouldIncludeStudio;
|
|
85
|
+
private syncProjectScaffold;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