@codedrifters/configulator 0.0.175 → 0.0.177
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/lib/index.d.mts +10 -4
- package/lib/index.d.ts +10 -4
- package/lib/index.js +61 -7
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +60 -7
- package/lib/index.mjs.map +1 -1
- package/package.json +23 -22
package/lib/index.mjs
CHANGED
|
@@ -271,12 +271,16 @@ var awsCdkBundle = {
|
|
|
271
271
|
"## Filename / Class Name Matching",
|
|
272
272
|
"",
|
|
273
273
|
"- Kebab-case filenames must mirror PascalCase class names (e.g., `my-construct.ts` \u2192 `MyConstruct`)",
|
|
274
|
+
"- Name props interfaces `ClassNameProps` (e.g., `MyConstructProps`)",
|
|
274
275
|
"- One primary construct per file; supporting types (props interface, enums) live in the same file",
|
|
275
276
|
"- Test files follow the same pattern: `my-construct.spec.ts`",
|
|
277
|
+
"- When renaming, prefer renaming the class to match the filename",
|
|
276
278
|
"",
|
|
277
279
|
"## Cross-Stack Lookup Patterns",
|
|
278
280
|
"",
|
|
279
|
-
"- Lookups live on **service classes**, not component/construct classes",
|
|
281
|
+
"- Lookups live on **service classes**, not component/construct classes \u2014 do not add `fromConstruct()` or similar lookup methods to component classes",
|
|
282
|
+
"- Use `*.of(this)` for stack or service references where the pattern exists in the codebase",
|
|
283
|
+
"- Within services, prefer creating resources in protected methods; expose retrieval via static methods on the owning service",
|
|
280
284
|
"- Use static methods for cross-stack lookups so consumers don't need an instance:",
|
|
281
285
|
"",
|
|
282
286
|
"```typescript",
|
|
@@ -302,6 +306,11 @@ var awsCdkBundle = {
|
|
|
302
306
|
"- Use SSM parameters for cross-stack references when needed",
|
|
303
307
|
"- Do not pass values between stacks; use SSM parameters instead",
|
|
304
308
|
"",
|
|
309
|
+
"## Lambda Handlers (NodejsFunction)",
|
|
310
|
+
"",
|
|
311
|
+
"- When adding a `NodejsFunction` with a bundled handler, ensure the `entry` path is explicitly configured",
|
|
312
|
+
"- Verify the entry is included in the build tool config (e.g., tsup entry list) so the runtime can find the handler",
|
|
313
|
+
"",
|
|
305
314
|
"## CDK Testing",
|
|
306
315
|
"",
|
|
307
316
|
"- Mock `Code.fromAsset` in any test file that synthesizes CDK stacks",
|
|
@@ -541,7 +550,7 @@ var baseBundle = {
|
|
|
541
550
|
"## Code Formatting",
|
|
542
551
|
"",
|
|
543
552
|
"- Use **Prettier** for formatting (runs automatically on save in VS Code)",
|
|
544
|
-
"- Always use curly braces for control flow, even single-line statements",
|
|
553
|
+
"- Always use curly braces for control flow, even single-line statements; use multi-line format for complex conditionals",
|
|
545
554
|
"- Prefer `const` over `let`; avoid `var`",
|
|
546
555
|
"- Use trailing commas in multi-line objects/arrays",
|
|
547
556
|
"",
|
|
@@ -555,13 +564,15 @@ var baseBundle = {
|
|
|
555
564
|
"",
|
|
556
565
|
"## Import Conventions",
|
|
557
566
|
"",
|
|
558
|
-
"- **Always use ES modules** (`import`/`export`), never `require()`",
|
|
567
|
+
"- **Always use ES modules** (`import`/`export`), never `require()` (exception: `.projenrc.ts` files where `require` is allowed)",
|
|
559
568
|
"- Import order:",
|
|
560
569
|
" 1. Built-in Node.js modules (e.g., `node:path`, `node:fs`)",
|
|
561
570
|
" 2. External dependencies (alphabetically sorted)",
|
|
562
571
|
" 3. Internal imports (relative paths)",
|
|
563
572
|
"- Group imports with blank lines between groups",
|
|
564
573
|
"- Alphabetize imports within each group (case-insensitive)",
|
|
574
|
+
"- Use absolute imports from package root when possible",
|
|
575
|
+
"- Avoid duplicate imports (`import/no-duplicates`); all imports must be resolvable (`import/no-unresolved`)",
|
|
565
576
|
"",
|
|
566
577
|
"## Error Handling",
|
|
567
578
|
"",
|
|
@@ -1296,6 +1307,46 @@ var projenBundle = {
|
|
|
1296
1307
|
]
|
|
1297
1308
|
};
|
|
1298
1309
|
|
|
1310
|
+
// src/agent/bundles/slack.ts
|
|
1311
|
+
var slackBundle = {
|
|
1312
|
+
name: "slack",
|
|
1313
|
+
description: "Slack MCP message formatting and best practices",
|
|
1314
|
+
appliesWhen: () => false,
|
|
1315
|
+
rules: [
|
|
1316
|
+
{
|
|
1317
|
+
name: "slack-message-formatting",
|
|
1318
|
+
description: "Format Slack messages with explicit links so bullets and labels render correctly",
|
|
1319
|
+
scope: AGENT_RULE_SCOPE.ALWAYS,
|
|
1320
|
+
content: [
|
|
1321
|
+
"# Slack Message Formatting",
|
|
1322
|
+
"",
|
|
1323
|
+
"When composing or sending messages to Slack (e.g., via Slack MCP tools like `slack_send_message`), use formatting that Slack's mrkdwn parser renders correctly.",
|
|
1324
|
+
"",
|
|
1325
|
+
"## Rules",
|
|
1326
|
+
"",
|
|
1327
|
+
"1. **Use Slack's explicit link syntax** for any link in a message:",
|
|
1328
|
+
" - Format: `<https://example.com|display text>`",
|
|
1329
|
+
" - Text outside the angle brackets (bullets, labels) stays separate and won't merge into the link",
|
|
1330
|
+
"",
|
|
1331
|
+
"2. **Do not rely on auto-linkification** when the message has bullets or labels before URLs \u2014 auto-linked URLs can break or merge with surrounding text",
|
|
1332
|
+
"",
|
|
1333
|
+
"3. **Put each list item on its own line** with a newline between items so list structure is clear",
|
|
1334
|
+
"",
|
|
1335
|
+
"4. **Example \u2014 preferred:**",
|
|
1336
|
+
" ```",
|
|
1337
|
+
" Status update:",
|
|
1338
|
+
"",
|
|
1339
|
+
" \u2022 Feature A: <https://github.com/org/repo/pull/1|repo#1>",
|
|
1340
|
+
" \u2022 Feature B: <https://github.com/org/repo/pull/2|repo#2>",
|
|
1341
|
+
" ```",
|
|
1342
|
+
"",
|
|
1343
|
+
"5. **Avoid:** Plain URLs immediately after a bullet/label on the same line (e.g., `\u2022 Feature A: https://github.com/...`) when sending via API, as it can render with bullets inside or between links"
|
|
1344
|
+
].join("\n"),
|
|
1345
|
+
tags: ["workflow"]
|
|
1346
|
+
}
|
|
1347
|
+
]
|
|
1348
|
+
};
|
|
1349
|
+
|
|
1299
1350
|
// src/turbo/turbo-repo.ts
|
|
1300
1351
|
import { Component as Component3, FileBase, JsonFile } from "projen/lib";
|
|
1301
1352
|
import { JobPermission } from "projen/lib/github/workflows-model";
|
|
@@ -1679,7 +1730,7 @@ var VERSION = {
|
|
|
1679
1730
|
*
|
|
1680
1731
|
* CLI and lib are versioned separately, so this is the CLI version.
|
|
1681
1732
|
*/
|
|
1682
|
-
AWS_CDK_CLI_VERSION: "2.
|
|
1733
|
+
AWS_CDK_CLI_VERSION: "2.1118.0",
|
|
1683
1734
|
/**
|
|
1684
1735
|
* CDK Version to use for construct projects.
|
|
1685
1736
|
*
|
|
@@ -1701,7 +1752,7 @@ var VERSION = {
|
|
|
1701
1752
|
/**
|
|
1702
1753
|
* Version of Projen to use.
|
|
1703
1754
|
*/
|
|
1704
|
-
PROJEN_VERSION: "0.99.
|
|
1755
|
+
PROJEN_VERSION: "0.99.42",
|
|
1705
1756
|
/**
|
|
1706
1757
|
* What version of the turborepo library should we use?
|
|
1707
1758
|
*/
|
|
@@ -1709,7 +1760,7 @@ var VERSION = {
|
|
|
1709
1760
|
/**
|
|
1710
1761
|
* Version of @types/node to use across all packages (pnpm catalog).
|
|
1711
1762
|
*/
|
|
1712
|
-
TYPES_NODE_VERSION: "
|
|
1763
|
+
TYPES_NODE_VERSION: "25.5.2",
|
|
1713
1764
|
/**
|
|
1714
1765
|
* What version of Vite to use (pnpm override). Pinned to 5.x so Vitest 4.x
|
|
1715
1766
|
* can load config (Vite 6+/7+ are ESM-only; see issue #142). Remove override
|
|
@@ -1876,7 +1927,8 @@ var BUILT_IN_BUNDLES = [
|
|
|
1876
1927
|
pnpmBundle,
|
|
1877
1928
|
awsCdkBundle,
|
|
1878
1929
|
projenBundle,
|
|
1879
|
-
githubWorkflowBundle
|
|
1930
|
+
githubWorkflowBundle,
|
|
1931
|
+
slackBundle
|
|
1880
1932
|
];
|
|
1881
1933
|
|
|
1882
1934
|
// src/projects/project-metadata.ts
|
|
@@ -4319,6 +4371,7 @@ export {
|
|
|
4319
4371
|
pnpmBundle,
|
|
4320
4372
|
projenBundle,
|
|
4321
4373
|
resolveTemplateVariables,
|
|
4374
|
+
slackBundle,
|
|
4322
4375
|
turborepoBundle,
|
|
4323
4376
|
typescriptBundle,
|
|
4324
4377
|
vitestBundle
|