@lumenflow/cli 3.12.5 → 3.12.6
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/chunk-2D2VOCA4.js +37 -0
- package/dist/chunk-2D5KFYGX.js +284 -0
- package/dist/chunk-2GXVIN57.js +14072 -0
- package/dist/chunk-2MQ7HZWZ.js +26 -0
- package/dist/chunk-2UFQ3A3C.js +643 -0
- package/dist/chunk-3RG5ZIWI.js +10 -0
- package/dist/chunk-4N74J3UT.js +15 -0
- package/dist/chunk-5GTOXFYR.js +392 -0
- package/dist/chunk-5VY6MQMC.js +240 -0
- package/dist/chunk-67XVPMRY.js +1297 -0
- package/dist/chunk-6HO4GWJE.js +164 -0
- package/dist/chunk-6W5XHWYV.js +1890 -0
- package/dist/chunk-6X4EMYJQ.js +64 -0
- package/dist/chunk-6XYXI2NQ.js +772 -0
- package/dist/chunk-7ANSOV6Q.js +285 -0
- package/dist/chunk-A624LFLB.js +1380 -0
- package/dist/chunk-ADN5NHG4.js +126 -0
- package/dist/chunk-B7YJYJKG.js +33 -0
- package/dist/chunk-CCLHCPKG.js +210 -0
- package/dist/chunk-CK36VROC.js +1584 -0
- package/dist/chunk-D3UOFRSB.js +81 -0
- package/dist/chunk-DFR4DJBM.js +230 -0
- package/dist/chunk-DSYBDHYH.js +79 -0
- package/dist/chunk-DWMLTXKQ.js +1176 -0
- package/dist/chunk-E3REJTAJ.js +28 -0
- package/dist/chunk-EA3IVO64.js +633 -0
- package/dist/chunk-EK2AKZKD.js +55 -0
- package/dist/chunk-ELD7JTTT.js +343 -0
- package/dist/chunk-EX6TT2XI.js +195 -0
- package/dist/chunk-EXINSFZE.js +82 -0
- package/dist/chunk-EZ6ZBYBM.js +510 -0
- package/dist/chunk-FBKAPTJ2.js +16 -0
- package/dist/chunk-FVLV5RYH.js +1118 -0
- package/dist/chunk-GDNSBQVK.js +2485 -0
- package/dist/chunk-GPQHMBNN.js +278 -0
- package/dist/chunk-GTFJB67L.js +68 -0
- package/dist/chunk-HANJXVKW.js +1127 -0
- package/dist/chunk-HEVS5YLD.js +269 -0
- package/dist/chunk-HMEVZKPQ.js +9 -0
- package/dist/chunk-HRGSYNLM.js +3511 -0
- package/dist/chunk-ISZR5N4K.js +60 -0
- package/dist/chunk-J6SUPR2C.js +226 -0
- package/dist/chunk-JERYVEIZ.js +244 -0
- package/dist/chunk-JHHWGL2N.js +87 -0
- package/dist/chunk-JONWQUB5.js +775 -0
- package/dist/chunk-K2DIWWDM.js +1766 -0
- package/dist/chunk-KY4PGL5V.js +969 -0
- package/dist/chunk-L737LQ4C.js +1285 -0
- package/dist/chunk-LFTWYIB2.js +497 -0
- package/dist/chunk-LV47RFNJ.js +41 -0
- package/dist/chunk-MKSAITI7.js +15 -0
- package/dist/chunk-MZ7RKIX4.js +212 -0
- package/dist/chunk-NAP6CFSO.js +84 -0
- package/dist/chunk-ND6MY37M.js +16 -0
- package/dist/chunk-NMG736UR.js +683 -0
- package/dist/chunk-NRAXROED.js +32 -0
- package/dist/chunk-NRIZR3A7.js +690 -0
- package/dist/chunk-NX43BG3M.js +233 -0
- package/dist/chunk-O645XLSI.js +297 -0
- package/dist/chunk-OMJD6A3S.js +235 -0
- package/dist/chunk-QB6SJD4T.js +430 -0
- package/dist/chunk-QFSTL4J3.js +276 -0
- package/dist/chunk-QLGDFMFX.js +212 -0
- package/dist/chunk-RIAAGL2E.js +13 -0
- package/dist/chunk-RWO5XMZ6.js +86 -0
- package/dist/chunk-RXRKBBSM.js +149 -0
- package/dist/chunk-RZOZMML6.js +363 -0
- package/dist/chunk-U7I7FS7T.js +113 -0
- package/dist/chunk-UI42RODY.js +717 -0
- package/dist/chunk-UTVMVSCO.js +519 -0
- package/dist/chunk-V6OJGLBA.js +1746 -0
- package/dist/chunk-W2JHVH7D.js +152 -0
- package/dist/chunk-WD3Y7VQN.js +280 -0
- package/dist/chunk-WOCTQ5MS.js +303 -0
- package/dist/chunk-WZR3ZUNN.js +696 -0
- package/dist/chunk-XGI665H7.js +150 -0
- package/dist/chunk-XKY65P2T.js +304 -0
- package/dist/chunk-Y4CQZY65.js +57 -0
- package/dist/chunk-YFEXKLVE.js +194 -0
- package/dist/chunk-YHO3HS5X.js +287 -0
- package/dist/chunk-YLS7AZSX.js +738 -0
- package/dist/chunk-ZE473AO6.js +49 -0
- package/dist/chunk-ZF747T3O.js +644 -0
- package/dist/chunk-ZHCZHZH3.js +43 -0
- package/dist/chunk-ZZNZX2XY.js +87 -0
- package/dist/constants-7QAP3VQ4.js +23 -0
- package/dist/dist-IY3UUMWK.js +33 -0
- package/dist/init-templates.js +9 -9
- package/dist/invariants-runner-W5RGHCSU.js +27 -0
- package/dist/lane-lock-6J36HD5O.js +35 -0
- package/dist/mem-checkpoint-core-EANG2GVN.js +14 -0
- package/dist/mem-signal-core-2LZ2WYHW.js +19 -0
- package/dist/memory-store-OLB5FO7K.js +18 -0
- package/dist/service-6BYCOCO5.js +13 -0
- package/dist/spawn-policy-resolver-NTSZYQ6R.js +17 -0
- package/dist/spawn-task-builder-R4E2BHSW.js +22 -0
- package/dist/wu-claim.js +2 -2
- package/dist/wu-claim.js.map +1 -1
- package/dist/wu-done-gates.js +25 -4
- package/dist/wu-done-gates.js.map +1 -1
- package/dist/wu-done-ownership.js +6 -1
- package/dist/wu-done-ownership.js.map +1 -1
- package/dist/wu-done-pr-WLFFFEPJ.js +25 -0
- package/dist/wu-done-validation-3J5E36FE.js +30 -0
- package/dist/wu-done.js +6 -6
- package/dist/wu-done.js.map +1 -1
- package/dist/wu-duplicate-id-detector-5S7JHELK.js +232 -0
- package/dist/wu-edit-operations.js +58 -17
- package/dist/wu-edit-operations.js.map +1 -1
- package/dist/wu-edit-validators.js +104 -28
- package/dist/wu-edit-validators.js.map +1 -1
- package/dist/wu-edit.js +1 -1
- package/dist/wu-edit.js.map +1 -1
- package/dist/wu-spawn-prompt-builders.js +8 -7
- package/dist/wu-spawn-prompt-builders.js.map +1 -1
- package/package.json +8 -8
- package/packs/sidekick/.turbo/turbo-build.log +1 -1
- package/packs/sidekick/package.json +1 -1
- package/packs/software-delivery/.turbo/turbo-build.log +1 -1
- package/packs/software-delivery/package.json +1 -1
- package/templates/core/LUMENFLOW.md.template +1 -1
- package/templates/core/ai/onboarding/quick-ref-commands.md.template +3 -3
- package/templates/core/ai/onboarding/starting-prompt.md.template +11 -11
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createFile
|
|
3
|
+
} from "./chunk-HEVS5YLD.js";
|
|
4
|
+
import {
|
|
5
|
+
runCLI
|
|
6
|
+
} from "./chunk-2GXVIN57.js";
|
|
7
|
+
import {
|
|
8
|
+
WORKSPACE_CONFIG_FILE_NAME
|
|
9
|
+
} from "./chunk-V6OJGLBA.js";
|
|
10
|
+
|
|
11
|
+
// src/workspace-init.ts
|
|
12
|
+
import * as readline from "readline";
|
|
13
|
+
import * as path from "path";
|
|
14
|
+
import YAML from "yaml";
|
|
15
|
+
var LOG_PREFIX = "[workspace:init]";
|
|
16
|
+
var WORKSPACE_FILENAME = WORKSPACE_CONFIG_FILE_NAME;
|
|
17
|
+
var DEFAULT_WORKSPACE_ID = "default";
|
|
18
|
+
var DEFAULT_WORKSPACE_NAME = "My Project";
|
|
19
|
+
var DEFAULT_PROJECT_NAME = "my-project";
|
|
20
|
+
var DEFAULT_LANE_TITLE = "Default";
|
|
21
|
+
var DEFAULT_NAMESPACE = DEFAULT_WORKSPACE_ID;
|
|
22
|
+
var CANONICAL_BOOTSTRAP_COMMAND = "npx lumenflow";
|
|
23
|
+
var LEGACY_WORKSPACE_INIT_ENTRYPOINT = "workspace-init";
|
|
24
|
+
var LEGACY_ENTRYPOINT_MARKER = "legacy";
|
|
25
|
+
var LEGACY_ENTRYPOINT_MESSAGE_PREFIX = `${LOG_PREFIX} ${LEGACY_ENTRYPOINT_MARKER} entrypoint`;
|
|
26
|
+
var DEFAULT_DENY_OVERLAYS = ["~/.ssh", "~/.aws", "~/.gnupg", ".env"];
|
|
27
|
+
var DEFAULT_DENY_OVERLAYS_PROMPT = DEFAULT_DENY_OVERLAYS.join(", ");
|
|
28
|
+
var SANDBOX_NETWORK_PROFILE = {
|
|
29
|
+
OFF: "off",
|
|
30
|
+
FULL: "full"
|
|
31
|
+
};
|
|
32
|
+
var DEFAULT_SANDBOX_NETWORK_PROFILE = SANDBOX_NETWORK_PROFILE.OFF;
|
|
33
|
+
var CLOUD_CONNECT_RESPONSE = {
|
|
34
|
+
YES: "yes",
|
|
35
|
+
NO: "no",
|
|
36
|
+
SHORT_YES: "y",
|
|
37
|
+
BOOLEAN_TRUE: "true"
|
|
38
|
+
};
|
|
39
|
+
var CLOUD_CONNECT_TRUTHY = /* @__PURE__ */ new Set([
|
|
40
|
+
CLOUD_CONNECT_RESPONSE.YES,
|
|
41
|
+
CLOUD_CONNECT_RESPONSE.SHORT_YES,
|
|
42
|
+
CLOUD_CONNECT_RESPONSE.BOOLEAN_TRUE
|
|
43
|
+
]);
|
|
44
|
+
var SD_PACK_ID = "software-delivery";
|
|
45
|
+
var SD_PACK_VERSION = "0.1.0";
|
|
46
|
+
var EMPTY_SOFTWARE_DELIVERY_CONFIG = Object.freeze({});
|
|
47
|
+
function createEmptySoftwareDeliveryConfig() {
|
|
48
|
+
return { ...EMPTY_SOFTWARE_DELIVERY_CONFIG };
|
|
49
|
+
}
|
|
50
|
+
var DEFAULT_SOFTWARE_DELIVERY_PACK_PIN = Object.freeze({
|
|
51
|
+
id: SD_PACK_ID,
|
|
52
|
+
version: SD_PACK_VERSION,
|
|
53
|
+
integrity: "dev",
|
|
54
|
+
source: "local"
|
|
55
|
+
});
|
|
56
|
+
function createDefaultPackPins() {
|
|
57
|
+
return [{ ...DEFAULT_SOFTWARE_DELIVERY_PACK_PIN }];
|
|
58
|
+
}
|
|
59
|
+
var WORKSPACE_QUESTIONS = [
|
|
60
|
+
{
|
|
61
|
+
name: "projectName",
|
|
62
|
+
prompt: "Project name",
|
|
63
|
+
defaultValue: DEFAULT_PROJECT_NAME
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "lanes",
|
|
67
|
+
prompt: "Work lanes (comma-separated, e.g., Backend, Frontend, DevOps)",
|
|
68
|
+
defaultValue: DEFAULT_LANE_TITLE
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: "sandboxProfile",
|
|
72
|
+
prompt: "Sandbox network profile (off | full)",
|
|
73
|
+
defaultValue: DEFAULT_SANDBOX_NETWORK_PROFILE
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "deniedPaths",
|
|
77
|
+
prompt: "Denied paths (comma-separated, e.g., ~/.ssh, ~/.aws, .env)",
|
|
78
|
+
defaultValue: DEFAULT_DENY_OVERLAYS_PROMPT
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "cloudConnect",
|
|
82
|
+
prompt: "Enable cloud agent support? (yes | no)",
|
|
83
|
+
defaultValue: CLOUD_CONNECT_RESPONSE.NO
|
|
84
|
+
}
|
|
85
|
+
];
|
|
86
|
+
function buildLegacyWorkspaceInitGuidance(entrypoint = LEGACY_WORKSPACE_INIT_ENTRYPOINT) {
|
|
87
|
+
return `${LEGACY_ENTRYPOINT_MESSAGE_PREFIX} "${entrypoint}" is retired. Use "${CANONICAL_BOOTSTRAP_COMMAND}" for bootstrap-all onboarding.`;
|
|
88
|
+
}
|
|
89
|
+
function parseAnswers(answers) {
|
|
90
|
+
const lanes = answers.lanes.split(",").map((l) => l.trim()).filter(Boolean);
|
|
91
|
+
const deniedPaths = answers.deniedPaths ? answers.deniedPaths.split(",").map((p) => p.trim()).filter(Boolean) : [];
|
|
92
|
+
const cloudConnect = CLOUD_CONNECT_TRUTHY.has(answers.cloudConnect.toLowerCase());
|
|
93
|
+
const sandboxProfile = answers.sandboxProfile === SANDBOX_NETWORK_PROFILE.FULL ? SANDBOX_NETWORK_PROFILE.FULL : SANDBOX_NETWORK_PROFILE.OFF;
|
|
94
|
+
return {
|
|
95
|
+
projectName: answers.projectName,
|
|
96
|
+
lanes,
|
|
97
|
+
sandboxProfile,
|
|
98
|
+
deniedPaths,
|
|
99
|
+
cloudConnect
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function toKebabCase(title) {
|
|
103
|
+
return title.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
104
|
+
}
|
|
105
|
+
function getDefaultWorkspaceConfig() {
|
|
106
|
+
return {
|
|
107
|
+
id: DEFAULT_WORKSPACE_ID,
|
|
108
|
+
name: DEFAULT_WORKSPACE_NAME,
|
|
109
|
+
packs: createDefaultPackPins(),
|
|
110
|
+
lanes: [
|
|
111
|
+
{
|
|
112
|
+
id: DEFAULT_WORKSPACE_ID,
|
|
113
|
+
title: DEFAULT_LANE_TITLE,
|
|
114
|
+
allowed_scopes: []
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
policies: {},
|
|
118
|
+
security: {
|
|
119
|
+
allowed_scopes: [],
|
|
120
|
+
network_default: DEFAULT_SANDBOX_NETWORK_PROFILE,
|
|
121
|
+
deny_overlays: [...DEFAULT_DENY_OVERLAYS]
|
|
122
|
+
},
|
|
123
|
+
software_delivery: createEmptySoftwareDeliveryConfig(),
|
|
124
|
+
memory_namespace: DEFAULT_NAMESPACE,
|
|
125
|
+
event_namespace: DEFAULT_NAMESPACE
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
function buildWorkspaceConfig(input) {
|
|
129
|
+
const lanes = input.lanes.map((title) => ({
|
|
130
|
+
id: toKebabCase(title),
|
|
131
|
+
title,
|
|
132
|
+
allowed_scopes: []
|
|
133
|
+
}));
|
|
134
|
+
return {
|
|
135
|
+
id: toKebabCase(input.projectName),
|
|
136
|
+
name: input.projectName,
|
|
137
|
+
packs: createDefaultPackPins(),
|
|
138
|
+
lanes,
|
|
139
|
+
policies: {},
|
|
140
|
+
security: {
|
|
141
|
+
allowed_scopes: [],
|
|
142
|
+
network_default: input.sandboxProfile,
|
|
143
|
+
deny_overlays: input.deniedPaths
|
|
144
|
+
},
|
|
145
|
+
software_delivery: createEmptySoftwareDeliveryConfig(),
|
|
146
|
+
memory_namespace: toKebabCase(input.projectName),
|
|
147
|
+
event_namespace: toKebabCase(input.projectName)
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
function generateWorkspaceYaml(config) {
|
|
151
|
+
const lines = [];
|
|
152
|
+
lines.push("# LumenFlow Workspace Configuration");
|
|
153
|
+
lines.push("# Generated by workspace:init");
|
|
154
|
+
lines.push("");
|
|
155
|
+
lines.push("# Workspace ID - unique identifier for this workspace");
|
|
156
|
+
lines.push(`id: ${YAML.stringify(config.id).trim()}`);
|
|
157
|
+
lines.push("");
|
|
158
|
+
lines.push("# Human-readable project name");
|
|
159
|
+
lines.push(`name: ${YAML.stringify(config.name).trim()}`);
|
|
160
|
+
lines.push("");
|
|
161
|
+
lines.push("# Domain packs - plugins that add tools, policies, and task types");
|
|
162
|
+
lines.push("# Add packs with: pnpm pack:install --id <pack-id>");
|
|
163
|
+
if (config.packs.length === 0) {
|
|
164
|
+
lines.push("packs: []");
|
|
165
|
+
} else {
|
|
166
|
+
lines.push("packs:");
|
|
167
|
+
for (const pack of config.packs) {
|
|
168
|
+
lines.push(` - id: ${YAML.stringify(pack.id).trim()}`);
|
|
169
|
+
lines.push(` version: ${YAML.stringify(pack.version).trim()}`);
|
|
170
|
+
lines.push(` integrity: ${YAML.stringify(pack.integrity).trim()}`);
|
|
171
|
+
lines.push(` source: ${YAML.stringify(pack.source).trim()}`);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
lines.push("");
|
|
175
|
+
lines.push("# Work lanes - partitions for parallel work streams");
|
|
176
|
+
lines.push("# Each lane has an ID, title, and optional scope restrictions");
|
|
177
|
+
lines.push("lanes:");
|
|
178
|
+
for (const lane of config.lanes) {
|
|
179
|
+
lines.push(` - id: ${YAML.stringify(lane.id).trim()}`);
|
|
180
|
+
lines.push(` title: ${YAML.stringify(lane.title).trim()}`);
|
|
181
|
+
lines.push(` allowed_scopes: ${YAML.stringify(lane.allowed_scopes).trim()}`);
|
|
182
|
+
}
|
|
183
|
+
lines.push("");
|
|
184
|
+
lines.push("# Security configuration");
|
|
185
|
+
lines.push("security:");
|
|
186
|
+
lines.push(" # Workspace-level scope restrictions");
|
|
187
|
+
lines.push(` allowed_scopes: ${YAML.stringify(config.security.allowed_scopes).trim()}`);
|
|
188
|
+
lines.push(
|
|
189
|
+
` # Network access default for sandbox (${SANDBOX_NETWORK_PROFILE.OFF} = no network, ${SANDBOX_NETWORK_PROFILE.FULL} = unrestricted)`
|
|
190
|
+
);
|
|
191
|
+
lines.push(` network_default: ${config.security.network_default}`);
|
|
192
|
+
lines.push(" # Paths denied to agent sandbox via deny overlays");
|
|
193
|
+
lines.push(" deny_overlays:");
|
|
194
|
+
if (config.security.deny_overlays.length === 0) {
|
|
195
|
+
lines.pop();
|
|
196
|
+
lines.push(" deny_overlays: []");
|
|
197
|
+
} else {
|
|
198
|
+
for (const overlay of config.security.deny_overlays) {
|
|
199
|
+
lines.push(` - ${YAML.stringify(overlay).trim()}`);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
lines.push("");
|
|
203
|
+
lines.push("# Software delivery config extensions (required workspace v2 block)");
|
|
204
|
+
lines.push(`software_delivery: ${YAML.stringify(config.software_delivery).trim()}`);
|
|
205
|
+
lines.push("");
|
|
206
|
+
lines.push("# Memory namespace for session tracking and context recovery");
|
|
207
|
+
lines.push(`memory_namespace: ${YAML.stringify(config.memory_namespace).trim()}`);
|
|
208
|
+
lines.push("");
|
|
209
|
+
lines.push("# Event namespace for kernel event storage");
|
|
210
|
+
lines.push(`event_namespace: ${YAML.stringify(config.event_namespace).trim()}`);
|
|
211
|
+
lines.push("");
|
|
212
|
+
return lines.join("\n");
|
|
213
|
+
}
|
|
214
|
+
async function writeWorkspaceFile(targetDir, config, force = false) {
|
|
215
|
+
const result = {
|
|
216
|
+
created: [],
|
|
217
|
+
skipped: [],
|
|
218
|
+
merged: [],
|
|
219
|
+
warnings: []
|
|
220
|
+
};
|
|
221
|
+
const yamlContent = generateWorkspaceYaml(config);
|
|
222
|
+
const filePath = path.join(targetDir, WORKSPACE_FILENAME);
|
|
223
|
+
await createFile(filePath, yamlContent, force, result, targetDir);
|
|
224
|
+
return result;
|
|
225
|
+
}
|
|
226
|
+
async function runNonInteractive(targetDir, force = false) {
|
|
227
|
+
const config = getDefaultWorkspaceConfig();
|
|
228
|
+
return writeWorkspaceFile(targetDir, config, force);
|
|
229
|
+
}
|
|
230
|
+
function askQuestion(rl, question) {
|
|
231
|
+
return new Promise((resolve) => {
|
|
232
|
+
const prompt = question.defaultValue ? `${question.prompt} [${question.defaultValue}]: ` : `${question.prompt}: `;
|
|
233
|
+
rl.question(prompt, (answer) => {
|
|
234
|
+
resolve(answer.trim() || question.defaultValue);
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
async function runInteractive(targetDir, force = false) {
|
|
239
|
+
const rl = readline.createInterface({
|
|
240
|
+
input: process.stdin,
|
|
241
|
+
output: process.stdout
|
|
242
|
+
});
|
|
243
|
+
try {
|
|
244
|
+
console.log(`${LOG_PREFIX} Workspace configuration wizard`);
|
|
245
|
+
console.log(`${LOG_PREFIX} Answer the following questions (press Enter for defaults):
|
|
246
|
+
`);
|
|
247
|
+
const answers = {};
|
|
248
|
+
for (const question of WORKSPACE_QUESTIONS) {
|
|
249
|
+
answers[question.name] = await askQuestion(rl, question);
|
|
250
|
+
}
|
|
251
|
+
const input = parseAnswers(answers);
|
|
252
|
+
const config = buildWorkspaceConfig(input);
|
|
253
|
+
const result = await writeWorkspaceFile(targetDir, config, force);
|
|
254
|
+
console.log(`
|
|
255
|
+
${LOG_PREFIX} Workspace configuration complete!`);
|
|
256
|
+
if (result.created.length > 0) {
|
|
257
|
+
console.log(`${LOG_PREFIX} Created: ${result.created.join(", ")}`);
|
|
258
|
+
}
|
|
259
|
+
if (result.skipped.length > 0) {
|
|
260
|
+
console.log(`${LOG_PREFIX} Skipped (already exists): ${result.skipped.join(", ")}`);
|
|
261
|
+
}
|
|
262
|
+
return result;
|
|
263
|
+
} finally {
|
|
264
|
+
rl.close();
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
async function main() {
|
|
268
|
+
const invokedEntryPoint = path.basename(
|
|
269
|
+
process.argv[1] ?? LEGACY_WORKSPACE_INIT_ENTRYPOINT,
|
|
270
|
+
".js"
|
|
271
|
+
);
|
|
272
|
+
console.warn(buildLegacyWorkspaceInitGuidance(invokedEntryPoint));
|
|
273
|
+
}
|
|
274
|
+
if (import.meta.main) {
|
|
275
|
+
void runCLI(main);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export {
|
|
279
|
+
LOG_PREFIX,
|
|
280
|
+
WORKSPACE_FILENAME,
|
|
281
|
+
DEFAULT_WORKSPACE_ID,
|
|
282
|
+
DEFAULT_WORKSPACE_NAME,
|
|
283
|
+
DEFAULT_PROJECT_NAME,
|
|
284
|
+
DEFAULT_LANE_TITLE,
|
|
285
|
+
DEFAULT_NAMESPACE,
|
|
286
|
+
CANONICAL_BOOTSTRAP_COMMAND,
|
|
287
|
+
DEFAULT_DENY_OVERLAYS,
|
|
288
|
+
DEFAULT_DENY_OVERLAYS_PROMPT,
|
|
289
|
+
SANDBOX_NETWORK_PROFILE,
|
|
290
|
+
DEFAULT_SANDBOX_NETWORK_PROFILE,
|
|
291
|
+
CLOUD_CONNECT_RESPONSE,
|
|
292
|
+
DEFAULT_SOFTWARE_DELIVERY_PACK_PIN,
|
|
293
|
+
WORKSPACE_QUESTIONS,
|
|
294
|
+
buildLegacyWorkspaceInitGuidance,
|
|
295
|
+
parseAnswers,
|
|
296
|
+
getDefaultWorkspaceConfig,
|
|
297
|
+
buildWorkspaceConfig,
|
|
298
|
+
generateWorkspaceYaml,
|
|
299
|
+
writeWorkspaceFile,
|
|
300
|
+
runNonInteractive,
|
|
301
|
+
runInteractive,
|
|
302
|
+
main
|
|
303
|
+
};
|