@tsed/cli 7.0.0-beta.7 → 7.0.0-beta.9

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.
@@ -8,7 +8,6 @@ import { TEMPLATE_DIR } from "../../constants/index.js";
8
8
  import { exec } from "../../fn/exec.js";
9
9
  import { render } from "../../fn/render.js";
10
10
  import { taskOutput } from "../../fn/taskOutput.js";
11
- import {} from "../../interfaces/index.js";
12
11
  import { PlatformsModule } from "../../platforms/PlatformsModule.js";
13
12
  import { RuntimesModule } from "../../runtimes/RuntimesModule.js";
14
13
  import { BunRuntime } from "../../runtimes/supports/BunRuntime.js";
@@ -279,6 +278,7 @@ export class InitCmd {
279
278
  ctx.commands && "index.command",
280
279
  "barrels",
281
280
  "readme",
281
+ "agents",
282
282
  `pm2.${pm2}`,
283
283
  ctx.swagger && "/views/swagger.ejs",
284
284
  ...runtime.files()
@@ -0,0 +1,17 @@
1
+ import { defineTemplate } from "../utils/defineTemplate.js";
2
+ import { CliHttpClient } from "@tsed/cli-core";
3
+ import { inject } from "@tsed/di";
4
+ export default defineTemplate({
5
+ id: "agents",
6
+ label: "AGENTS.md",
7
+ description: "Create AGENTS.md designed for AI project and Ts.ED",
8
+ fileName: "AGENTS",
9
+ ext: "md",
10
+ outputDir: ".",
11
+ hidden: true,
12
+ preserveCase: true,
13
+ async render() {
14
+ const httpClient = inject(CliHttpClient);
15
+ return httpClient.get("https://tsed.dev/ai/AGENTS.md");
16
+ }
17
+ });
@@ -1,5 +1,6 @@
1
1
  // Import all templates to register them with the DI container
2
2
  import "./asyncFactory.template.js";
3
+ import "./agents.template.js";
3
4
  import "./command.template.js";
4
5
  import "./controller.template.js";
5
6
  import "./decorator.template.js";