@hexagen-monaco/sync 0.7.1 → 0.9.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.
Files changed (28) hide show
  1. package/dist/cli.js +744 -25
  2. package/dist/cli.js.map +1 -1
  3. package/dist/commands/add/index.d.ts +6 -0
  4. package/dist/commands/add/index.d.ts.map +1 -1
  5. package/dist/generators/apps-framework-templates.d.ts.map +1 -1
  6. package/dist/generators/apps.d.ts.map +1 -1
  7. package/dist/generators/eslint.d.ts +2 -0
  8. package/dist/generators/eslint.d.ts.map +1 -1
  9. package/dist/generators/package-json.d.ts.map +1 -1
  10. package/dist/index.js +722 -20
  11. package/dist/index.js.map +1 -1
  12. package/dist/templates/agents-md/files/.agents/tech-stack.md +3 -4
  13. package/dist/templates/agents-md/files/.agents/testing.md +9 -9
  14. package/dist/templates/bedrock-agentcore-runtime/files/.github/workflows/deploy-agentcore.yml +1 -1
  15. package/dist/templates/ci-github-actions/files/.github/workflows/ci.yml +3 -3
  16. package/dist/templates/ci-github-actions/files/.github/workflows/deploy-fly.yml +1 -1
  17. package/dist/templates/ci-github-actions/files/.github/workflows/deploy-railway.yml +1 -1
  18. package/dist/templates/ci-github-actions/files/.github/workflows/deploy-vercel.yml +2 -2
  19. package/dist/templates/ci-github-actions/files/.github/workflows/preview.yml +2 -2
  20. package/dist/templates/docker/files/.github/workflows/docker-build.yml +1 -1
  21. package/dist/templates/mcp-server/files/src/infrastructure/mcp/registry/tool-registry.test.ts +1 -1
  22. package/dist/templates/mcp-server/files/src/infrastructure/mcp/tools/example.tool.test.ts +1 -1
  23. package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/auth/bearer.test.ts +1 -1
  24. package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/auth/oauth.test.ts +1 -1
  25. package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/guard.test.ts +1 -1
  26. package/dist/types/manifest/apps.d.ts +1 -1
  27. package/dist/types/manifest/apps.d.ts.map +1 -1
  28. package/package.json +1 -1
@@ -3,6 +3,12 @@ export interface AddCommandOptions {
3
3
  force?: boolean;
4
4
  /** Pre-supplied answers in "key=value" format, per template: templateId.questionId=value */
5
5
  answers?: string[];
6
+ /**
7
+ * Also emit each template's `*.test.*` / `*.spec.*` scaffolds. Off by default
8
+ * — matches the web (in-memory) emit path, so `hexagen add` doesn't drop test
9
+ * files (which import the project's test runner) into a project unasked.
10
+ */
11
+ withTests?: boolean;
6
12
  }
7
13
  export declare function addTemplateCommand(templateIds: string[], options?: AddCommandOptions): Promise<void>;
8
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/add/index.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,iBAAiB;IAChC,mDAAmD;IACnD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,4FAA4F;IAC5F,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,MAAM,EAAE,EACrB,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAoFf"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/add/index.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,iBAAiB;IAChC,mDAAmD;IACnD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,4FAA4F;IAC5F,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,MAAM,EAAE,EACrB,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAsFf"}
@@ -1 +1 @@
1
- {"version":3,"file":"apps-framework-templates.d.ts","sourceRoot":"","sources":["../../src/generators/apps-framework-templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAEnB,MAAM,sBAAsB,CAAC;AAmN9B,KAAK,wBAAwB,GAAG,QAAQ,CACtC,IAAI,CAAC,kBAAkB,EAAE,aAAa,GAAG,UAAU,GAAG,YAAY,CAAC,CACpE,GACC,IAAI,CAAC,kBAAkB,EAAE,YAAY,CAAC,CAAC;AAEzC,QAAA,MAAM,2BAA2B,EAAE,OAAO,CACxC,MAAM,CAAC,YAAY,EAAE,wBAAwB,CAAC,CAmC/C,CAAC;AAEF,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
1
+ {"version":3,"file":"apps-framework-templates.d.ts","sourceRoot":"","sources":["../../src/generators/apps-framework-templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAEnB,MAAM,sBAAsB,CAAC;AAm0B9B,KAAK,wBAAwB,GAAG,QAAQ,CACtC,IAAI,CAAC,kBAAkB,EAAE,aAAa,GAAG,UAAU,GAAG,YAAY,CAAC,CACpE,GACC,IAAI,CAAC,kBAAkB,EAAE,YAAY,CAAC,CAAC;AAEzC,QAAA,MAAM,2BAA2B,EAAE,OAAO,CACxC,MAAM,CAAC,YAAY,EAAE,wBAAwB,CAAC,CAwG/C,CAAC;AAEF,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/generators/apps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAUvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AA0HzD,wBAAsB,YAAY,CAChC,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,CA4O1B"}
1
+ {"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/generators/apps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAUvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AA0HzD,wBAAsB,YAAY,CAChC,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,CA8O1B"}
@@ -1,5 +1,6 @@
1
1
  import type { SyncConfig } from "../config.js";
2
2
  import { type GeneratorResult } from "../results.js";
3
+ import { type AppFramework } from "../types/manifest.js";
3
4
  import type { ReportRecorder } from "../domain/types.js";
4
5
  /**
5
6
  * Generate the `eslint.config.js` file for one bounded-context package.
@@ -45,5 +46,6 @@ import type { ReportRecorder } from "../domain/types.js";
45
46
  */
46
47
  export declare function generateEslintConfig(moduleDir: string, moduleName: string, config: SyncConfig, report?: ReportRecorder, options?: {
47
48
  usePerContextOverride?: boolean;
49
+ framework?: AppFramework;
48
50
  }): Promise<GeneratorResult>;
49
51
  //# sourceMappingURL=eslint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eslint.d.ts","sourceRoot":"","sources":["../../src/generators/eslint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAQvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AA4GzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAsB,oBAAoB,CACxC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,EACvB,OAAO,GAAE;IAAE,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAAO,GAChD,OAAO,CAAC,eAAe,CAAC,CA+D1B"}
1
+ {"version":3,"file":"eslint.d.ts","sourceRoot":"","sources":["../../src/generators/eslint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAEL,KAAK,YAAY,EAGlB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAwKzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAsB,oBAAoB,CACxC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,EACvB,OAAO,GAAE;IAAE,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,YAAY,CAAA;CAAO,GAC1E,OAAO,CAAC,eAAe,CAAC,CAgE1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/generators/package-json.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAQvB;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,CAqH1B"}
1
+ {"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/generators/package-json.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAQvB;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,CAoL1B"}