aws-cdk 2.1132.1 → 2.1133.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/README.md +2 -2
- package/build-info.json +2 -2
- package/lib/cli/cli-config.js +8 -1
- package/lib/cli/cli-type-registry.json +8 -1
- package/lib/cli/cli.js +2 -2
- package/lib/cli/convert-to-user-input.js +7 -3
- package/lib/cli/parse-command-line-arguments.js +6 -2
- package/lib/cli/user-configuration.js +2 -1
- package/lib/cli/user-input.d.ts +14 -1
- package/lib/cli/user-input.js +1 -1
- package/lib/commands/lsp.d.ts +9 -6
- package/lib/commands/lsp.js +17 -8
- package/lib/index.js +136 -37
- package/lib/init-templates/.init-version.json +1 -1
- package/lib/init-templates/.recommended-feature-flags.json +2 -1
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -3695,7 +3695,7 @@ var require_semver2 = __commonJS({
|
|
|
3695
3695
|
// ../@aws-cdk/cloud-assembly-schema/cli-version.json
|
|
3696
3696
|
var require_cli_version = __commonJS({
|
|
3697
3697
|
"../@aws-cdk/cloud-assembly-schema/cli-version.json"(exports2, module2) {
|
|
3698
|
-
module2.exports = { version: "2.
|
|
3698
|
+
module2.exports = { version: "2.1133.0" };
|
|
3699
3699
|
}
|
|
3700
3700
|
});
|
|
3701
3701
|
|
|
@@ -10808,11 +10808,11 @@ async function shell(command6, options) {
|
|
|
10808
10808
|
child.stdin.write(options.input);
|
|
10809
10809
|
child.stdin.end();
|
|
10810
10810
|
}
|
|
10811
|
-
const
|
|
10811
|
+
const stdout2 = new Array();
|
|
10812
10812
|
const stderr = new Array();
|
|
10813
10813
|
child.stdout.on("data", (chunk) => {
|
|
10814
10814
|
handleShellOutput(chunk, options, "data_stdout");
|
|
10815
|
-
|
|
10815
|
+
stdout2.push(chunk);
|
|
10816
10816
|
});
|
|
10817
10817
|
child.stderr.on("data", (chunk) => {
|
|
10818
10818
|
handleShellOutput(chunk, options, "data_stderr");
|
|
@@ -10822,7 +10822,7 @@ async function shell(command6, options) {
|
|
|
10822
10822
|
child.once("close", (code, signal) => {
|
|
10823
10823
|
handleShellOutput(renderCommandLine(command6), options, "close");
|
|
10824
10824
|
if (code === 0) {
|
|
10825
|
-
resolve16(Buffer.concat(
|
|
10825
|
+
resolve16(Buffer.concat(stdout2).toString("utf-8"));
|
|
10826
10826
|
} else {
|
|
10827
10827
|
const out = Buffer.concat(stderr).toString("utf-8").trim();
|
|
10828
10828
|
reject(
|
|
@@ -44135,10 +44135,10 @@ var require_dist_cjs12 = __commonJS({
|
|
|
44135
44135
|
if (credentialProcess !== void 0) {
|
|
44136
44136
|
const execPromise = promisify4(externalDataInterceptor2?.getTokenRecord?.().exec ?? exec5);
|
|
44137
44137
|
try {
|
|
44138
|
-
const { stdout } = await execPromise(credentialProcess);
|
|
44138
|
+
const { stdout: stdout2 } = await execPromise(credentialProcess);
|
|
44139
44139
|
let data2;
|
|
44140
44140
|
try {
|
|
44141
|
-
data2 = JSON.parse(
|
|
44141
|
+
data2 = JSON.parse(stdout2.trim());
|
|
44142
44142
|
} catch {
|
|
44143
44143
|
throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);
|
|
44144
44144
|
}
|
|
@@ -70236,13 +70236,42 @@ function formatErrorMessage(error3) {
|
|
|
70236
70236
|
return `${error3.message}
|
|
70237
70237
|
${formatErrorMessage(error3.cause)}`;
|
|
70238
70238
|
}
|
|
70239
|
-
|
|
70239
|
+
if (error3?.message) {
|
|
70240
|
+
return error3.message;
|
|
70241
|
+
}
|
|
70242
|
+
const fromSdk = formatSdkError(error3);
|
|
70243
|
+
if (fromSdk) {
|
|
70244
|
+
return fromSdk;
|
|
70245
|
+
}
|
|
70246
|
+
return error3?.toString() || "Unknown error";
|
|
70247
|
+
}
|
|
70248
|
+
function formatSdkError(error3) {
|
|
70249
|
+
const name = error3?.name ?? error3?.code;
|
|
70250
|
+
const metadata = error3?.$metadata ?? {};
|
|
70251
|
+
const details = [];
|
|
70252
|
+
if (typeof metadata.httpStatusCode === "number") {
|
|
70253
|
+
details.push(`HTTP ${metadata.httpStatusCode}`);
|
|
70254
|
+
}
|
|
70255
|
+
if (metadata.requestId) {
|
|
70256
|
+
details.push(`request id: ${metadata.requestId}`);
|
|
70257
|
+
}
|
|
70258
|
+
if (name && details.length > 0) {
|
|
70259
|
+
return `${name} (${details.join(", ")})`;
|
|
70260
|
+
}
|
|
70261
|
+
if (name) {
|
|
70262
|
+
return name;
|
|
70263
|
+
}
|
|
70264
|
+
if (details.length > 0) {
|
|
70265
|
+
return details.join(", ");
|
|
70266
|
+
}
|
|
70267
|
+
return void 0;
|
|
70240
70268
|
}
|
|
70241
70269
|
var init_format_error = __esm({
|
|
70242
70270
|
"../@aws-cdk/toolkit-lib/lib/util/format-error.ts"() {
|
|
70243
70271
|
"use strict";
|
|
70244
70272
|
init_toolkit_error();
|
|
70245
70273
|
__name(formatErrorMessage, "formatErrorMessage");
|
|
70274
|
+
__name(formatSdkError, "formatSdkError");
|
|
70246
70275
|
}
|
|
70247
70276
|
});
|
|
70248
70277
|
|
|
@@ -106564,14 +106593,16 @@ var init_deploy_stack = __esm({
|
|
|
106564
106593
|
const replacement = hasReplacement(changeSetDescription);
|
|
106565
106594
|
const isPausedFailState = this.cloudFormationStack.stackStatus.isRollbackable;
|
|
106566
106595
|
const rollback = this.options.rollback ?? true;
|
|
106567
|
-
|
|
106596
|
+
if (this.options.express) {
|
|
106597
|
+
return this.executeChangeSet(changeSetDescription);
|
|
106598
|
+
}
|
|
106568
106599
|
if (isPausedFailState && replacement) {
|
|
106569
106600
|
return { type: "failpaused-need-rollback-first", reason: "replacement", status: this.cloudFormationStack.stackStatus.name };
|
|
106570
106601
|
}
|
|
106571
106602
|
if (isPausedFailState && rollback) {
|
|
106572
106603
|
return { type: "failpaused-need-rollback-first", reason: "not-norollback", status: this.cloudFormationStack.stackStatus.name };
|
|
106573
106604
|
}
|
|
106574
|
-
if (
|
|
106605
|
+
if (!rollback && replacement) {
|
|
106575
106606
|
return { type: "replacement-requires-rollback" };
|
|
106576
106607
|
}
|
|
106577
106608
|
return this.executeChangeSet(changeSetDescription);
|
|
@@ -281273,7 +281304,13 @@ function synthParametersFromSettings(settings) {
|
|
|
281273
281304
|
return {
|
|
281274
281305
|
context: contextFromSettings(settings),
|
|
281275
281306
|
env: {
|
|
281276
|
-
...settings.get(["debugApp"]) ? debugEnvVars : {}
|
|
281307
|
+
...settings.get(["debugApp"]) ? debugEnvVars : {},
|
|
281308
|
+
// When validation is disabled (e.g. via the CLI's `--no-validation`), forward
|
|
281309
|
+
// it to the app process as an environment variable so framework-side validation
|
|
281310
|
+
// layers can honor it. This is read in framework code that has no access to a
|
|
281311
|
+
// construct tree, which is why it is an environment variable rather than context.
|
|
281312
|
+
// Only an explicit `false` disables it, so a missing setting fails safe (validation on).
|
|
281313
|
+
...settings.get(["validation"]) === false ? { CDK_VALIDATION: "false" } : {}
|
|
281277
281314
|
}
|
|
281278
281315
|
};
|
|
281279
281316
|
}
|
|
@@ -281426,6 +281463,7 @@ function settingsFromSynthOptions(synthOpts = {}) {
|
|
|
281426
281463
|
versionReporting: true,
|
|
281427
281464
|
assetMetadata: true,
|
|
281428
281465
|
assetStaging: true,
|
|
281466
|
+
validation: true,
|
|
281429
281467
|
...synthOpts
|
|
281430
281468
|
}, true);
|
|
281431
281469
|
}
|
|
@@ -292587,12 +292625,12 @@ var init_installation_id = __esm({
|
|
|
292587
292625
|
async function getLibraryVersion(ioHelper) {
|
|
292588
292626
|
try {
|
|
292589
292627
|
const command6 = `node -e 'process.stdout.write(require.resolve("aws-cdk-lib"))'`;
|
|
292590
|
-
const { stdout } = await (0, import_util69.promisify)(import_child_process.exec)(command6);
|
|
292591
|
-
if (!fs38.existsSync(
|
|
292628
|
+
const { stdout: stdout2 } = await (0, import_util69.promisify)(import_child_process.exec)(command6);
|
|
292629
|
+
if (!fs38.existsSync(stdout2)) {
|
|
292592
292630
|
await ioHelper.defaults.trace('Could not get CDK Library Version: require.resolve("aws-cdk-lib") did not return a file path');
|
|
292593
292631
|
return;
|
|
292594
292632
|
}
|
|
292595
|
-
const pathToPackageJson = path37.join(path37.dirname(
|
|
292633
|
+
const pathToPackageJson = path37.join(path37.dirname(stdout2), "package.json");
|
|
292596
292634
|
const packageJson = fs38.readJSONSync(pathToPackageJson);
|
|
292597
292635
|
if (!packageJson.version) {
|
|
292598
292636
|
await ioHelper.defaults.trace("Could not get CDK Library Version: package.json does not have version field");
|
|
@@ -293885,7 +293923,14 @@ var require_cli_type_registry = __commonJS({
|
|
|
293885
293923
|
description: "Check your set-up for potential problems"
|
|
293886
293924
|
},
|
|
293887
293925
|
lsp: {
|
|
293888
|
-
description: "Start the CDK Language Server (LSP) over stdio for editor and AI-agent integration"
|
|
293926
|
+
description: "Start the CDK Language Server (LSP) over stdio for editor and AI-agent integration",
|
|
293927
|
+
options: {
|
|
293928
|
+
features: {
|
|
293929
|
+
type: "boolean",
|
|
293930
|
+
default: false,
|
|
293931
|
+
desc: "Print the LSP feature manifest as JSON and exit instead of starting the server. Lets a client probe LSP presence and capabilities without opening a session."
|
|
293932
|
+
}
|
|
293933
|
+
}
|
|
293889
293934
|
},
|
|
293890
293935
|
orphan: {
|
|
293891
293936
|
arg: {
|
|
@@ -295471,6 +295516,7 @@ async function commandLineArgumentsToSettings(ioHelper, argv) {
|
|
|
295471
295516
|
language: argv.language,
|
|
295472
295517
|
pathMetadata: argv.pathMetadata,
|
|
295473
295518
|
assetMetadata: argv.assetMetadata,
|
|
295519
|
+
validation: argv.validation,
|
|
295474
295520
|
profile: argv.profile,
|
|
295475
295521
|
region: argv.region,
|
|
295476
295522
|
plugin: argv.plugin,
|
|
@@ -295954,15 +296000,15 @@ async function shell2(ioHelper, command6) {
|
|
|
295954
296000
|
stdio: ["ignore", "pipe", "inherit"]
|
|
295955
296001
|
});
|
|
295956
296002
|
return new Promise((resolve16, reject) => {
|
|
295957
|
-
const
|
|
296003
|
+
const stdout2 = new Array();
|
|
295958
296004
|
child.stdout.on("data", (chunk) => {
|
|
295959
296005
|
process.stdout.write(chunk);
|
|
295960
|
-
|
|
296006
|
+
stdout2.push(chunk);
|
|
295961
296007
|
});
|
|
295962
296008
|
child.once("error", reject);
|
|
295963
296009
|
child.once("exit", (code) => {
|
|
295964
296010
|
if (code === 0) {
|
|
295965
|
-
resolve16(Buffer.from(
|
|
296011
|
+
resolve16(Buffer.from(stdout2).toString("utf-8"));
|
|
295966
296012
|
} else {
|
|
295967
296013
|
reject(new import_toolkit_lib9.ToolkitError("CommandFailed", `${commandLine} exited with error code ${code}`));
|
|
295968
296014
|
}
|
|
@@ -296652,19 +296698,19 @@ async function execute(ioHelper, cmd, args, { cwd }) {
|
|
|
296652
296698
|
shell: true,
|
|
296653
296699
|
stdio: ["ignore", "pipe", "inherit"]
|
|
296654
296700
|
});
|
|
296655
|
-
let
|
|
296656
|
-
child.stdout.on("data", (chunk) =>
|
|
296701
|
+
let stdout2 = "";
|
|
296702
|
+
child.stdout.on("data", (chunk) => stdout2 += chunk.toString());
|
|
296657
296703
|
return new Promise((ok, fail) => {
|
|
296658
296704
|
child.once("error", (err) => fail(err));
|
|
296659
296705
|
child.once("exit", (status) => {
|
|
296660
296706
|
if (status === 0) {
|
|
296661
|
-
return ok(
|
|
296707
|
+
return ok(stdout2);
|
|
296662
296708
|
} else {
|
|
296663
296709
|
return fail(new import_toolkit_lib11.ToolkitError("CommandFailed", `${cmd} exited with status ${status}`));
|
|
296664
296710
|
}
|
|
296665
296711
|
});
|
|
296666
296712
|
}).catch(async (err) => {
|
|
296667
|
-
await ioHelper.defaults.error(
|
|
296713
|
+
await ioHelper.defaults.error(stdout2);
|
|
296668
296714
|
throw err;
|
|
296669
296715
|
});
|
|
296670
296716
|
}
|
|
@@ -306272,7 +306318,15 @@ function parseCommandLineArguments(args) {
|
|
|
306272
306318
|
desc: "the command to use to open the browser, using %u as a placeholder for the path of the file to open",
|
|
306273
306319
|
type: "string"
|
|
306274
306320
|
})
|
|
306275
|
-
).command("doctor", "Check your set-up for potential problems").command(
|
|
306321
|
+
).command("doctor", "Check your set-up for potential problems").command(
|
|
306322
|
+
"lsp",
|
|
306323
|
+
"Start the CDK Language Server (LSP) over stdio for editor and AI-agent integration",
|
|
306324
|
+
(yargs2) => yargs2.option("features", {
|
|
306325
|
+
default: false,
|
|
306326
|
+
type: "boolean",
|
|
306327
|
+
desc: "Print the LSP feature manifest as JSON and exit instead of starting the server. Lets a client probe LSP presence and capabilities without opening a session."
|
|
306328
|
+
})
|
|
306329
|
+
).command("orphan [PATHS..]", "Detach resources from a CloudFormation stack without deleting them", (yargs2) => yargs2).command(
|
|
306276
306330
|
"refactor [STACKS..]",
|
|
306277
306331
|
"Moves resources between stacks or within the same stack",
|
|
306278
306332
|
(yargs2) => yargs2.option("additional-stack-name", {
|
|
@@ -335667,9 +335721,9 @@ async function docs(options) {
|
|
|
335667
335721
|
await ioHelper.defaults.debug(`Opening documentation ${import_chalk37.default.green(browserCommand)}`);
|
|
335668
335722
|
const exec5 = (0, import_node_util9.promisify)(childProcess2.exec);
|
|
335669
335723
|
try {
|
|
335670
|
-
const { stdout, stderr } = await exec5(browserCommand);
|
|
335671
|
-
if (
|
|
335672
|
-
await ioHelper.defaults.debug(
|
|
335724
|
+
const { stdout: stdout2, stderr } = await exec5(browserCommand);
|
|
335725
|
+
if (stdout2) {
|
|
335726
|
+
await ioHelper.defaults.debug(stdout2);
|
|
335673
335727
|
}
|
|
335674
335728
|
if (stderr) {
|
|
335675
335729
|
await ioHelper.defaults.warn(stderr);
|
|
@@ -354065,14 +354119,14 @@ var require_files = __commonJS({
|
|
|
354065
354119
|
}, "handler");
|
|
354066
354120
|
try {
|
|
354067
354121
|
process.on("SIGPIPE", handler);
|
|
354068
|
-
let
|
|
354069
|
-
if (!
|
|
354122
|
+
let stdout2 = (0, child_process_1.spawnSync)(npmCommand, ["config", "get", "prefix"], options).stdout;
|
|
354123
|
+
if (!stdout2) {
|
|
354070
354124
|
if (tracer) {
|
|
354071
354125
|
tracer(`'npm config get prefix' didn't return a value.`);
|
|
354072
354126
|
}
|
|
354073
354127
|
return void 0;
|
|
354074
354128
|
}
|
|
354075
|
-
let prefix =
|
|
354129
|
+
let prefix = stdout2.trim();
|
|
354076
354130
|
if (tracer) {
|
|
354077
354131
|
tracer(`'npm config get prefix' value is: ${prefix}`);
|
|
354078
354132
|
}
|
|
@@ -354106,8 +354160,8 @@ var require_files = __commonJS({
|
|
|
354106
354160
|
try {
|
|
354107
354161
|
process.on("SIGPIPE", handler);
|
|
354108
354162
|
let results = (0, child_process_1.spawnSync)(yarnCommand, ["global", "dir", "--json"], options);
|
|
354109
|
-
let
|
|
354110
|
-
if (!
|
|
354163
|
+
let stdout2 = results.stdout;
|
|
354164
|
+
if (!stdout2) {
|
|
354111
354165
|
if (tracer) {
|
|
354112
354166
|
tracer(`'yarn global dir' didn't return a value.`);
|
|
354113
354167
|
if (results.stderr) {
|
|
@@ -354116,7 +354170,7 @@ var require_files = __commonJS({
|
|
|
354116
354170
|
}
|
|
354117
354171
|
return void 0;
|
|
354118
354172
|
}
|
|
354119
|
-
let lines =
|
|
354173
|
+
let lines = stdout2.trim().split(/\r?\n/);
|
|
354120
354174
|
for (let line of lines) {
|
|
354121
354175
|
try {
|
|
354122
354176
|
let yarn = JSON.parse(line);
|
|
@@ -355096,6 +355150,34 @@ var init_diagnostics = __esm({
|
|
|
355096
355150
|
}
|
|
355097
355151
|
});
|
|
355098
355152
|
|
|
355153
|
+
// ../@aws-cdk/cdk-explorer/lib/lsp/features.ts
|
|
355154
|
+
var features_exports = {};
|
|
355155
|
+
__export(features_exports, {
|
|
355156
|
+
CDK_LSP_FEATURES: () => CDK_LSP_FEATURES,
|
|
355157
|
+
CDK_LSP_PROTOCOL: () => CDK_LSP_PROTOCOL,
|
|
355158
|
+
cdkLspManifest: () => cdkLspManifest
|
|
355159
|
+
});
|
|
355160
|
+
function cdkLspManifest(version) {
|
|
355161
|
+
return {
|
|
355162
|
+
protocol: CDK_LSP_PROTOCOL,
|
|
355163
|
+
version,
|
|
355164
|
+
features: [...CDK_LSP_FEATURES],
|
|
355165
|
+
// Deliberately mirrors executeCommandProvider.commands on the wire so the
|
|
355166
|
+
// `cdk lsp --features` probe (which has no LSP session) can see them too.
|
|
355167
|
+
commands: [...SUPPORTED_COMMANDS]
|
|
355168
|
+
};
|
|
355169
|
+
}
|
|
355170
|
+
var CDK_LSP_PROTOCOL, CDK_LSP_FEATURES;
|
|
355171
|
+
var init_features = __esm({
|
|
355172
|
+
"../@aws-cdk/cdk-explorer/lib/lsp/features.ts"() {
|
|
355173
|
+
"use strict";
|
|
355174
|
+
init_commands7();
|
|
355175
|
+
CDK_LSP_PROTOCOL = 1;
|
|
355176
|
+
CDK_LSP_FEATURES = ["hover", "codeLens", "definition", "synth", "autoSynth"];
|
|
355177
|
+
__name(cdkLspManifest, "cdkLspManifest");
|
|
355178
|
+
}
|
|
355179
|
+
});
|
|
355180
|
+
|
|
355099
355181
|
// ../@aws-cdk/cdk-explorer/lib/lsp/hover.ts
|
|
355100
355182
|
function resourceNodesOnLine(index, uri, position) {
|
|
355101
355183
|
const line = position.line + 1;
|
|
@@ -355608,7 +355690,9 @@ function createLspHandlers(options) {
|
|
|
355608
355690
|
onInitialize(params) {
|
|
355609
355691
|
applicationDir = params.initializationOptions?.applicationDir;
|
|
355610
355692
|
codeLensRefreshSupported = params.capabilities.workspace?.codeLens?.refreshSupport ?? false;
|
|
355693
|
+
const manifest = cdkLspManifest(options.version);
|
|
355611
355694
|
return {
|
|
355695
|
+
serverInfo: { name: "cdk-lsp", version: manifest.version },
|
|
355612
355696
|
capabilities: {
|
|
355613
355697
|
textDocumentSync: {
|
|
355614
355698
|
openClose: false,
|
|
@@ -355623,7 +355707,10 @@ function createLspHandlers(options) {
|
|
|
355623
355707
|
definitionProvider: true,
|
|
355624
355708
|
executeCommandProvider: { commands: [...SUPPORTED_COMMANDS] },
|
|
355625
355709
|
// Hover a construct's creation line to see its resolved CFN properties.
|
|
355626
|
-
hoverProvider: true
|
|
355710
|
+
hoverProvider: true,
|
|
355711
|
+
// Non-standard: lets a client discover CDK-specific features and the
|
|
355712
|
+
// wire protocol version ahead of use; also backs `cdk lsp --features`.
|
|
355713
|
+
experimental: { cdk: manifest }
|
|
355627
355714
|
}
|
|
355628
355715
|
};
|
|
355629
355716
|
},
|
|
@@ -355755,6 +355842,7 @@ function startServer(options) {
|
|
|
355755
355842
|
void connection.sendRequest(import_node5.CodeLensRefreshRequest.type);
|
|
355756
355843
|
}
|
|
355757
355844
|
}, "onRefreshCodeLenses"),
|
|
355845
|
+
version: options.version,
|
|
355758
355846
|
synthRunner,
|
|
355759
355847
|
acquireAssemblyLock,
|
|
355760
355848
|
notify: {
|
|
@@ -355813,6 +355901,7 @@ var init_server = __esm({
|
|
|
355813
355901
|
init_commands7();
|
|
355814
355902
|
init_construct_tree_request();
|
|
355815
355903
|
init_diagnostics();
|
|
355904
|
+
init_features();
|
|
355816
355905
|
init_hover();
|
|
355817
355906
|
init_positions();
|
|
355818
355907
|
init_synth_diagnostics();
|
|
@@ -355932,10 +356021,11 @@ var main_exports = {};
|
|
|
355932
356021
|
__export(main_exports, {
|
|
355933
356022
|
startLspServer: () => startLspServer
|
|
355934
356023
|
});
|
|
355935
|
-
function startLspServer() {
|
|
356024
|
+
function startLspServer(version) {
|
|
355936
356025
|
startServer({
|
|
355937
356026
|
readable: process.stdin,
|
|
355938
356027
|
writable: process.stdout,
|
|
356028
|
+
version,
|
|
355939
356029
|
// Build the Toolkit once connection.console exists (so output reaches the
|
|
355940
356030
|
// editor Output panel), then bind the two ops the handlers need. The read
|
|
355941
356031
|
// lock comes from fromAssemblyDirectory().produce(), so we never touch RWLock.
|
|
@@ -355966,7 +356056,7 @@ var require_lib13 = __commonJS({
|
|
|
355966
356056
|
"../@aws-cdk/cdk-explorer/lib/index.js"(exports2) {
|
|
355967
356057
|
"use strict";
|
|
355968
356058
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
355969
|
-
exports2.createLspHandlers = exports2.startServer = exports2.startLspServer = exports2.readAssembly = exports2.VERSION = void 0;
|
|
356059
|
+
exports2.createLspHandlers = exports2.startServer = exports2.cdkLspManifest = exports2.startLspServer = exports2.readAssembly = exports2.VERSION = void 0;
|
|
355970
356060
|
exports2.VERSION = "0.0.0";
|
|
355971
356061
|
var assembly_reader_1 = (init_assembly_reader(), __toCommonJS(assembly_reader_exports));
|
|
355972
356062
|
Object.defineProperty(exports2, "readAssembly", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
@@ -355976,6 +356066,10 @@ var require_lib13 = __commonJS({
|
|
|
355976
356066
|
Object.defineProperty(exports2, "startLspServer", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
355977
356067
|
return main_1.startLspServer;
|
|
355978
356068
|
}, "get") });
|
|
356069
|
+
var features_1 = (init_features(), __toCommonJS(features_exports));
|
|
356070
|
+
Object.defineProperty(exports2, "cdkLspManifest", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
356071
|
+
return features_1.cdkLspManifest;
|
|
356072
|
+
}, "get") });
|
|
355979
356073
|
var server_1 = (init_server(), __toCommonJS(server_exports));
|
|
355980
356074
|
Object.defineProperty(exports2, "startServer", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
355981
356075
|
return server_1.startServer;
|
|
@@ -355987,8 +356081,12 @@ var require_lib13 = __commonJS({
|
|
|
355987
356081
|
});
|
|
355988
356082
|
|
|
355989
356083
|
// lib/commands/lsp.ts
|
|
355990
|
-
async function lsp() {
|
|
355991
|
-
(
|
|
356084
|
+
async function lsp(options = {}) {
|
|
356085
|
+
if (options.features) {
|
|
356086
|
+
process3.stdout.write(JSON.stringify((0, import_cdk_explorer.cdkLspManifest)(versionNumber2())) + "\n");
|
|
356087
|
+
return 0;
|
|
356088
|
+
}
|
|
356089
|
+
(0, import_cdk_explorer.startLspServer)(versionNumber2());
|
|
355992
356090
|
await new Promise((resolve16) => {
|
|
355993
356091
|
const done = /* @__PURE__ */ __name(() => resolve16(), "done");
|
|
355994
356092
|
process3.stdin.once("end", done);
|
|
@@ -356002,6 +356100,7 @@ var init_lsp = __esm({
|
|
|
356002
356100
|
"use strict";
|
|
356003
356101
|
process3 = __toESM(require("process"));
|
|
356004
356102
|
import_cdk_explorer = __toESM(require_lib13());
|
|
356103
|
+
init_version();
|
|
356005
356104
|
__name(lsp, "lsp");
|
|
356006
356105
|
}
|
|
356007
356106
|
});
|
|
@@ -356328,7 +356427,7 @@ async function exec4(args, synthesizer) {
|
|
|
356328
356427
|
});
|
|
356329
356428
|
case "lsp":
|
|
356330
356429
|
ioHost.currentAction = "lsp";
|
|
356331
|
-
return lsp();
|
|
356430
|
+
return lsp({ features: argv.features });
|
|
356332
356431
|
case "ls":
|
|
356333
356432
|
case "list":
|
|
356334
356433
|
ioHost.currentAction = "list";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"aws-cdk-lib": "^2.
|
|
1
|
+
{"aws-cdk-lib": "^2.262.0", "constructs": "^10.5.0"}
|
|
@@ -86,5 +86,6 @@
|
|
|
86
86
|
"@aws-cdk/aws-batch:defaultToAL2023": true,
|
|
87
87
|
"@aws-cdk/aws-eks:defaultToAL2023": true,
|
|
88
88
|
"@aws-cdk/core:annotationsInValidationReport": true,
|
|
89
|
-
"@aws-cdk/core:defaultCrossStackReferences": "weak"
|
|
89
|
+
"@aws-cdk/core:defaultCrossStackReferences": "weak",
|
|
90
|
+
"@aws-cdk/core:validateAgainstDefaultRules": true
|
|
90
91
|
}
|
package/package.json
CHANGED
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@types/yazl": "^3.3.1",
|
|
53
53
|
"@typescript-eslint/eslint-plugin": "^8",
|
|
54
54
|
"@typescript-eslint/parser": "^8",
|
|
55
|
-
"aws-cdk-lib": "2.
|
|
55
|
+
"aws-cdk-lib": "2.262.0",
|
|
56
56
|
"aws-sdk-client-mock": "^4.1.0",
|
|
57
57
|
"aws-sdk-client-mock-jest": "^4.1.0",
|
|
58
58
|
"commit-and-tag-version": "^12",
|
|
@@ -84,11 +84,11 @@
|
|
|
84
84
|
"@aws-cdk/cdk-assets-lib": "^1.4.15",
|
|
85
85
|
"@aws-cdk/cdk-explorer": "^0.0.0",
|
|
86
86
|
"@aws-cdk/cloud-assembly-api": "2.3.0",
|
|
87
|
-
"@aws-cdk/cloud-assembly-schema": ">=54.
|
|
87
|
+
"@aws-cdk/cloud-assembly-schema": ">=54.14.0",
|
|
88
88
|
"@aws-cdk/cloudformation-diff": "2.187.2",
|
|
89
89
|
"@aws-cdk/cx-api": "^2",
|
|
90
90
|
"@aws-cdk/private-tools": "^0.0.0",
|
|
91
|
-
"@aws-cdk/toolkit-lib": "^1.36.
|
|
91
|
+
"@aws-cdk/toolkit-lib": "^1.36.1",
|
|
92
92
|
"@aws-sdk/client-appsync": "^3",
|
|
93
93
|
"@aws-sdk/client-bedrock-agentcore-control": "^3",
|
|
94
94
|
"@aws-sdk/client-cloudcontrol": "^3",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"publishConfig": {
|
|
160
160
|
"access": "public"
|
|
161
161
|
},
|
|
162
|
-
"version": "2.
|
|
162
|
+
"version": "2.1133.0",
|
|
163
163
|
"packageManager": "yarn@4.13.0",
|
|
164
164
|
"types": "lib/index.d.ts",
|
|
165
165
|
"exports": {
|