@intentius/chant-lexicon-aws 0.124.100 → 0.124.102

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "algorithm": "sha256",
3
3
  "artifacts": {
4
- "manifest.json": "ef376bf52bc0bc66687de9a1517fe42e21a41d826ebbb4d1102b75e6eb62e206",
4
+ "manifest.json": "19a010a93d22f2d3a649c448d1059236d02b864c20d39f462748716e2567b193",
5
5
  "meta.json": "5a61f147f0c79262967f826c69a53b8b21fe6c41c6142e6c6c235b595482357f",
6
6
  "types/index.d.ts": "8651f9ae166668f4311eea1fe61c3fe235f345947951c1d23d1df24a4fd3384f",
7
7
  "rules/hardcoded-region.ts": "957eadcaa9f39cc17d21437565d7a94607d9b082cf28918b178fa067f07498a9",
@@ -75,5 +75,5 @@
75
75
  "skills/chant-aws-eks.md": "8789255709ff004ad0a875fd5999edcdc66fc6e33d710db058d9f42703bcfdfe",
76
76
  "skills/chant-aws-carve-terraform.md": "a6f528c814024422744118abbfd9bbf26f3d60c599e90c3f186f8b76e1e38a51"
77
77
  },
78
- "composite": "66d61facc23b2c600b5c69f78f3bc6ec089b994422a660a6c127578916fad723"
78
+ "composite": "2156ccec2f3285c3a5f41835a19fa6148ad36087ce1e67aa918d8a026a616fc6"
79
79
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aws",
3
- "version": "0.124.100",
3
+ "version": "0.124.102",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "AWS",
6
6
  "intrinsics": [
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The report of the workspace member read in this process (#3179).
3
+ * `graphMeta` receives only the entities, so the hook that read the member
4
+ * leaves its report here for the hook that publishes it; `chant graph` runs
5
+ * the two in order in one process.
6
+ *
7
+ * Kept apart from ./workspace-member.ts so the plugin can clear and read the
8
+ * report without loading the member reader, which a project with no member
9
+ * never needs (#5219).
10
+ */
11
+ import type { AwsMemberReport } from "./workspace-member.js";
12
+ export declare function setLastMemberReport(report: AwsMemberReport | undefined): void;
13
+ export declare function lastMemberReport(): AwsMemberReport | undefined;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The report of the workspace member read in this process (#3179).
3
+ * `graphMeta` receives only the entities, so the hook that read the member
4
+ * leaves its report here for the hook that publishes it; `chant graph` runs
5
+ * the two in order in one process.
6
+ *
7
+ * Kept apart from ./workspace-member.ts so the plugin can clear and read the
8
+ * report without loading the member reader, which a project with no member
9
+ * never needs (#5219).
10
+ */
11
+ let lastReport;
12
+ export function setLastMemberReport(report) {
13
+ lastReport = report;
14
+ }
15
+ export function lastMemberReport() {
16
+ return lastReport;
17
+ }
package/dist/plugin.js CHANGED
@@ -27,7 +27,7 @@ import { canDescribe, describeOwnProperties, stampRegion } from "./properties.js
27
27
  import { stampProviderDefaults } from "./defaults.js";
28
28
  import { resolveTemplateAttrs } from "./live-attrs.js";
29
29
  import { CFParser } from "./import/parser.js";
30
- import { lastMemberReport, readCloudFormationMember, setLastMemberReport } from "./workspace-member.js";
30
+ import { lastMemberReport, setLastMemberReport } from "./member-report.js";
31
31
  import { CFGenerator } from "./import/generator.js";
32
32
  import { parseStackTemplate } from "./import/live-export.js";
33
33
  import { awsCompletions } from "./lsp/completions.js";
@@ -61,6 +61,7 @@ export const awsPlugin = {
61
61
  const member = ctx.config.aws?.member;
62
62
  if (!member)
63
63
  return { entities: new Map() };
64
+ const { readCloudFormationMember } = await import("./workspace-member.js");
64
65
  const read = readCloudFormationMember({ member });
65
66
  setLastMemberReport(read.report);
66
67
  return { entities: read.entities, warnings: read.warnings };
@@ -24,10 +24,4 @@ export declare function readCloudFormationMember(opts: {
24
24
  warnings: string[];
25
25
  report: AwsMemberReport;
26
26
  };
27
- /**
28
- * The report of the read in this process. `graphMeta` receives only the
29
- * entities, so the hook that read the member leaves its report here for the
30
- * hook that publishes it; `chant graph` runs the two in order in one process.
31
- */
32
- export declare function setLastMemberReport(report: AwsMemberReport | undefined): void;
33
- export declare function lastMemberReport(): AwsMemberReport | undefined;
27
+ export { lastMemberReport, setLastMemberReport } from "./member-report.js";
@@ -165,15 +165,4 @@ export function readCloudFormationMember(opts) {
165
165
  report: { templates: templates.map((t) => t.file), objects: entities.size, ...(member.kind === "cdk" ? { synthesized: true } : {}) },
166
166
  };
167
167
  }
168
- let lastReport;
169
- /**
170
- * The report of the read in this process. `graphMeta` receives only the
171
- * entities, so the hook that read the member leaves its report here for the
172
- * hook that publishes it; `chant graph` runs the two in order in one process.
173
- */
174
- export function setLastMemberReport(report) {
175
- lastReport = report;
176
- }
177
- export function lastMemberReport() {
178
- return lastReport;
179
- }
168
+ export { lastMemberReport, setLastMemberReport } from "./member-report.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-aws",
3
- "version": "0.124.100",
3
+ "version": "0.124.102",
4
4
  "description": "AWS CloudFormation lexicon for chant — declarative IaC in TypeScript",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://intentius.io/chant",
@@ -82,6 +82,6 @@
82
82
  "typescript": "^5.9.3"
83
83
  },
84
84
  "peerDependencies": {
85
- "@intentius/chant": "^0.124.100"
85
+ "@intentius/chant": "^0.124.102"
86
86
  }
87
87
  }