@mytechtoday/augment-extensions 3.1.2 → 3.3.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/AGENTS.md +127 -0
- package/README.md +1050 -32
- package/augment-extensions/coding-standards/java/CHANGELOG.md +12 -0
- package/augment-extensions/coding-standards/java/README.md +54 -0
- package/augment-extensions/coding-standards/java/examples/SearchRequest.java +13 -0
- package/augment-extensions/coding-standards/java/metadata.json +36 -0
- package/augment-extensions/coding-standards/java/module.json +35 -0
- package/augment-extensions/coding-standards/java/rules/language-and-api-design.md +45 -0
- package/augment-extensions/coding-standards/java/rules/reliability-and-concurrency.md +43 -0
- package/augment-extensions/coding-standards/java/rules/testing-tooling-and-security.md +39 -0
- package/augment-extensions/coding-standards/q/CHANGELOG.md +16 -0
- package/augment-extensions/coding-standards/q/README.md +53 -0
- package/augment-extensions/coding-standards/q/examples/ArrayAndTupleNamingConventions.qs +27 -0
- package/augment-extensions/coding-standards/q/examples/CallableAliasNamingConventions.qs +20 -0
- package/augment-extensions/coding-standards/q/examples/CircuitCompositionNamingConventions.qs +24 -0
- package/augment-extensions/coding-standards/q/examples/ConstantValueNamingConventions.qs +19 -0
- package/augment-extensions/coding-standards/q/examples/EntryPointAttributeNamingConventions.qs +17 -0
- package/augment-extensions/coding-standards/q/examples/FunctorApplicationInControlledCircuits.qs +84 -0
- package/augment-extensions/coding-standards/q/examples/FunctorSpecializationNamingConventions.qs +29 -0
- package/augment-extensions/coding-standards/q/examples/GenericTypeParameterNamingConventions.qs +20 -0
- package/augment-extensions/coding-standards/q/examples/HamiltonianOperatorNamingConventions.qs +24 -0
- package/augment-extensions/coding-standards/q/examples/MeasurementResultNamingConventions.qs +48 -0
- package/augment-extensions/coding-standards/q/examples/NamespaceNamingConventions.qs +30 -0
- package/augment-extensions/coding-standards/q/examples/OperationAndFunctionNamingConventions.qs +31 -0
- package/augment-extensions/coding-standards/q/examples/OracleCallableNamingConventions.qs +41 -0
- package/augment-extensions/coding-standards/q/examples/PauliBasisNamingConventions.qs +42 -0
- package/augment-extensions/coding-standards/q/examples/PauliOperatorNamingConventions.qs +24 -0
- package/augment-extensions/coding-standards/q/examples/QubitManagementAndTeleportation.qs +94 -0
- package/augment-extensions/coding-standards/q/examples/QubitNamingConventions.qs +53 -0
- package/augment-extensions/coding-standards/q/examples/QubitRegisterNamingConventions.qs +30 -0
- package/augment-extensions/coding-standards/q/examples/StateVectorNamingConventions.qs +23 -0
- package/augment-extensions/coding-standards/q/examples/UserDefinedTypeNamingConventions.qs +22 -0
- package/augment-extensions/coding-standards/q/examples/VariableAndParameterNamingConventions.qs +26 -0
- package/augment-extensions/coding-standards/q/examples/bell-state.qs +21 -0
- package/augment-extensions/coding-standards/q/metadata.json +38 -0
- package/augment-extensions/coding-standards/q/module.json +29 -0
- package/augment-extensions/coding-standards/q/rules/q-error-handling.md +143 -0
- package/augment-extensions/coding-standards/q/rules/q-naming-conventions.md +82 -0
- package/augment-extensions/coding-standards/q/rules/q-performance-optimization.md +10 -0
- package/augment-extensions/coding-standards/q/rules/q-qubit-management.md +10 -0
- package/augment-extensions/coding-standards/q/rules/q-security.md +10 -0
- package/augment-extensions/coding-standards/q/rules/q-standards.md +127 -0
- package/augment-extensions/coding-standards/q/rules/q-testing.md +10 -0
- package/augment-extensions/coding-standards/spring/CHANGELOG.md +12 -0
- package/augment-extensions/coding-standards/spring/README.md +61 -0
- package/augment-extensions/coding-standards/spring/examples/OrderController.java +40 -0
- package/augment-extensions/coding-standards/spring/metadata.json +39 -0
- package/augment-extensions/coding-standards/spring/module.json +38 -0
- package/augment-extensions/coding-standards/spring/rules/beans-configuration-and-boot.md +39 -0
- package/augment-extensions/coding-standards/spring/rules/data-testing-and-transactions.md +36 -0
- package/augment-extensions/coding-standards/spring/rules/production-operations.md +40 -0
- package/augment-extensions/coding-standards/spring/rules/web-apis-and-security.md +43 -0
- package/augment-extensions/visual-design/CHANGELOG.md +2 -2
- package/augment-extensions/visual-design/README.md +31 -8
- package/augment-extensions/visual-design/VERSION +1 -0
- package/augment-extensions/visual-design/__tests__/README.md +32 -18
- package/augment-extensions/visual-design/__tests__/guidance-contract.test.ts +355 -0
- package/augment-extensions/visual-design/__tests__/vendor-styles.test.ts +23 -5
- package/augment-extensions/visual-design/domains/other/dotnet-application.ts +1 -1
- package/augment-extensions/visual-design/domains/other/mobile-application.ts +3 -4
- package/augment-extensions/visual-design/domains/other/os-application.ts +1 -1
- package/augment-extensions/visual-design/domains/other/windows-platform.ts +1 -1
- package/augment-extensions/visual-design/domains/web-page-styles/amazon-cloudscape.ts +4 -4
- package/augment-extensions/visual-design/domains/web-page-styles/google-modern.ts +10 -10
- package/augment-extensions/visual-design/domains/web-page-styles/microsoft-fluent.ts +3 -3
- package/augment-extensions/visual-design/examples/README.md +2 -0
- package/augment-extensions/visual-design/examples/basic-usage.md +5 -3
- package/augment-extensions/visual-design/examples/vendor-comparison.md +2 -2
- package/augment-extensions/visual-design/guidelines/coverage-map.md +30 -0
- package/augment-extensions/visual-design/guidelines/design-levels.md +211 -0
- package/augment-extensions/visual-design/guidelines/index.md +5 -0
- package/augment-extensions/visual-design/metadata.json +26 -5
- package/augment-extensions/visual-design/module.json +39 -6
- package/augment-extensions/visual-design/rules/accessibility-and-color.md +51 -0
- package/augment-extensions/visual-design/rules/design-practice.md +55 -0
- package/augment-extensions/visual-design/rules/index.md +34 -0
- package/augment-extensions/visual-design/rules/platform-guidance.md +47 -0
- package/augment-extensions/visual-design/scripts/validate-guidance.cjs +233 -0
- package/augment-extensions/visual-design/skills/README.md +11 -0
- package/augment-extensions/visual-design/skills/design-brief.md +40 -0
- package/augment-extensions/visual-design/skills/design-review.md +38 -0
- package/augment-extensions/visual-design/skills/responsive-validation/SKILL.md +94 -0
- package/augment-extensions/visual-design/skills/responsive-validation/scripts/responsive-sweep.cjs +457 -0
- package/augment-extensions/visual-design/style-selector.ts +4 -4
- package/augment-extensions/visual-design/types.ts +101 -46
- package/augment-extensions/visual-design/visual-design-core.ts +8 -8
- package/augment-extensions/workflows/agent-engineering/README.md +67 -0
- package/augment-extensions/workflows/agent-engineering/examples/contracts.cjs +89 -0
- package/augment-extensions/workflows/agent-engineering/examples/demo.cjs +17 -0
- package/augment-extensions/workflows/agent-engineering/examples/evaluation-cases.json +7 -0
- package/augment-extensions/workflows/agent-engineering/examples/graphs.cjs +149 -0
- package/augment-extensions/workflows/agent-engineering/examples/loop.cjs +125 -0
- package/augment-extensions/workflows/agent-engineering/examples/recovery.cjs +51 -0
- package/augment-extensions/workflows/agent-engineering/examples/stub.cjs +11 -0
- package/augment-extensions/workflows/agent-engineering/examples/verify.cjs +21 -0
- package/augment-extensions/workflows/agent-engineering/module.json +24 -0
- package/augment-extensions/workflows/agent-engineering/rules/01-adoption.md +30 -0
- package/augment-extensions/workflows/agent-engineering/rules/02-agents.md +34 -0
- package/augment-extensions/workflows/agent-engineering/rules/03-contracts.md +34 -0
- package/augment-extensions/workflows/agent-engineering/rules/04-loops.md +39 -0
- package/augment-extensions/workflows/agent-engineering/rules/05-graphs.md +39 -0
- package/augment-extensions/workflows/agent-engineering/rules/06-improvement.md +38 -0
- package/augment-extensions/workflows/agent-engineering/schemas/contracts.schema.json +1 -0
- package/augment-extensions/workflows/agent-engineering/scripts/validate.cjs +32 -0
- package/augment-extensions/workflows/agent-engineering/sources.md +12 -0
- package/augment-extensions/workflows/agent-engineering/templates/agent.json +40 -0
- package/augment-extensions/workflows/agent-engineering/templates/check-tool.json +94 -0
- package/augment-extensions/workflows/agent-engineering/templates/evidence.json +29 -0
- package/augment-extensions/workflows/agent-engineering/templates/invocation.json +40 -0
- package/augment-extensions/workflows/agent-engineering/templates/node.json +27 -0
- package/augment-extensions/workflows/agent-engineering/templates/state.json +27 -0
- package/augment-extensions/workflows/agent-engineering/templates/task.json +40 -0
- package/augment-extensions/workflows/agent-engineering/templates/tool.json +52 -0
- package/augment-extensions/workflows/decision-layer/README.md +136 -0
- package/augment-extensions/workflows/decision-layer/examples/call-inventory.json +6 -0
- package/augment-extensions/workflows/decision-layer/examples/config.json +9 -0
- package/augment-extensions/workflows/decision-layer/examples/decision.json +13 -0
- package/augment-extensions/workflows/decision-layer/examples/labeled-cases.json +410 -0
- package/augment-extensions/workflows/decision-layer/examples/source.txt +3 -0
- package/augment-extensions/workflows/decision-layer/examples/task.json +8 -0
- package/augment-extensions/workflows/decision-layer/installation/package-lock.json +27 -0
- package/augment-extensions/workflows/decision-layer/installation/package.json +7 -0
- package/augment-extensions/workflows/decision-layer/installation/sources.json +18 -0
- package/augment-extensions/workflows/decision-layer/module.json +24 -0
- package/augment-extensions/workflows/decision-layer/rules/00-index.md +5 -0
- package/augment-extensions/workflows/decision-layer/rules/01-responsibilities.md +15 -0
- package/augment-extensions/workflows/decision-layer/rules/02-operation.md +13 -0
- package/augment-extensions/workflows/decision-layer/runtime/cli.cjs +70 -0
- package/augment-extensions/workflows/decision-layer/runtime/common.cjs +85 -0
- package/augment-extensions/workflows/decision-layer/runtime/contracts.d.ts +8 -0
- package/augment-extensions/workflows/decision-layer/runtime/decisions.cjs +198 -0
- package/augment-extensions/workflows/decision-layer/runtime/evaluate.cjs +61 -0
- package/augment-extensions/workflows/decision-layer/runtime/install.cjs +186 -0
- package/augment-extensions/workflows/decision-layer/runtime/integrations.cjs +64 -0
- package/augment-extensions/workflows/decision-layer/runtime/runner.cjs +201 -0
- package/augment-extensions/workflows/decision-layer/runtime/worker-child.cjs +15 -0
- package/augment-extensions/workflows/decision-layer/runtime/workers.cjs +15 -0
- package/augment-extensions/workflows/decision-layer/schemas/config.schema.json +27 -0
- package/augment-extensions/workflows/decision-layer/scripts/validate.cjs +16 -0
- package/augment-extensions/workflows/decision-layer/sources.md +25 -0
- package/cli/MODULES.md +804 -302
- package/cli/dist/__test_file-tracking.d.ts +2 -0
- package/cli/dist/__test_file-tracking.d.ts.map +1 -0
- package/cli/dist/__test_file-tracking.js +4 -0
- package/cli/dist/__test_file-tracking.js.map +1 -0
- package/cli/dist/adapters/banner.d.ts +62 -0
- package/cli/dist/adapters/banner.d.ts.map +1 -0
- package/cli/dist/adapters/banner.js +105 -0
- package/cli/dist/adapters/banner.js.map +1 -0
- package/cli/dist/adapters/claude-code.d.ts +13 -0
- package/cli/dist/adapters/claude-code.d.ts.map +1 -0
- package/cli/dist/adapters/claude-code.js +79 -0
- package/cli/dist/adapters/claude-code.js.map +1 -0
- package/cli/dist/adapters/copilot.d.ts +17 -0
- package/cli/dist/adapters/copilot.d.ts.map +1 -0
- package/cli/dist/adapters/copilot.js +81 -0
- package/cli/dist/adapters/copilot.js.map +1 -0
- package/cli/dist/adapters/cursor.d.ts +16 -0
- package/cli/dist/adapters/cursor.d.ts.map +1 -0
- package/cli/dist/adapters/cursor.js +99 -0
- package/cli/dist/adapters/cursor.js.map +1 -0
- package/cli/dist/adapters/index.d.ts +25 -0
- package/cli/dist/adapters/index.d.ts.map +1 -0
- package/cli/dist/adapters/index.js +59 -0
- package/cli/dist/adapters/index.js.map +1 -0
- package/cli/dist/adapters/types.d.ts +113 -0
- package/cli/dist/adapters/types.d.ts.map +1 -0
- package/cli/dist/adapters/types.js +13 -0
- package/cli/dist/adapters/types.js.map +1 -0
- package/cli/dist/adapters/windsurf.d.ts +14 -0
- package/cli/dist/adapters/windsurf.d.ts.map +1 -0
- package/cli/dist/adapters/windsurf.js +78 -0
- package/cli/dist/adapters/windsurf.js.map +1 -0
- package/cli/dist/analysis/ast-parser.d.ts.map +1 -1
- package/cli/dist/analysis/ast-parser.js +25 -9
- package/cli/dist/analysis/ast-parser.js.map +1 -1
- package/cli/dist/analysis/index.d.ts +1 -0
- package/cli/dist/analysis/index.d.ts.map +1 -1
- package/cli/dist/analysis/index.js +1 -0
- package/cli/dist/analysis/index.js.map +1 -1
- package/cli/dist/analysis/pattern-analyzer.d.ts +6 -0
- package/cli/dist/analysis/pattern-analyzer.d.ts.map +1 -0
- package/cli/dist/analysis/pattern-analyzer.js +100 -0
- package/cli/dist/analysis/pattern-analyzer.js.map +1 -0
- package/cli/dist/cli.js +67 -37
- package/cli/dist/cli.js.map +1 -1
- package/cli/dist/commands/code-analysis.d.ts.map +1 -1
- package/cli/dist/commands/code-analysis.js +22 -2
- package/cli/dist/commands/code-analysis.js.map +1 -1
- package/cli/dist/commands/decision.d.ts +4 -0
- package/cli/dist/commands/decision.d.ts.map +1 -0
- package/cli/dist/commands/decision.js +32 -0
- package/cli/dist/commands/decision.js.map +1 -0
- package/cli/dist/commands/export.d.ts +81 -0
- package/cli/dist/commands/export.d.ts.map +1 -0
- package/cli/dist/commands/export.js +334 -0
- package/cli/dist/commands/export.js.map +1 -0
- package/cli/dist/commands/gui-decision.d.ts +6 -0
- package/cli/dist/commands/gui-decision.d.ts.map +1 -0
- package/cli/dist/commands/gui-decision.js +189 -0
- package/cli/dist/commands/gui-decision.js.map +1 -0
- package/cli/dist/commands/gui-module-manager.d.ts +14 -0
- package/cli/dist/commands/gui-module-manager.d.ts.map +1 -0
- package/cli/dist/commands/gui-module-manager.js +326 -0
- package/cli/dist/commands/gui-module-manager.js.map +1 -0
- package/cli/dist/commands/gui.d.ts +5 -9
- package/cli/dist/commands/gui.d.ts.map +1 -1
- package/cli/dist/commands/gui.js +186 -231
- package/cli/dist/commands/gui.js.map +1 -1
- package/cli/dist/commands/init.d.ts +2 -0
- package/cli/dist/commands/init.d.ts.map +1 -1
- package/cli/dist/commands/init.js +84 -3
- package/cli/dist/commands/init.js.map +1 -1
- package/cli/dist/commands/lifecycle.d.ts +14 -0
- package/cli/dist/commands/lifecycle.d.ts.map +1 -0
- package/cli/dist/commands/lifecycle.js +463 -0
- package/cli/dist/commands/lifecycle.js.map +1 -0
- package/cli/dist/commands/link.d.ts +5 -0
- package/cli/dist/commands/link.d.ts.map +1 -1
- package/cli/dist/commands/link.js +137 -29
- package/cli/dist/commands/link.js.map +1 -1
- package/cli/dist/commands/list.js +2 -2
- package/cli/dist/commands/list.js.map +1 -1
- package/cli/dist/commands/mcp.d.ts +1 -2
- package/cli/dist/commands/mcp.d.ts.map +1 -1
- package/cli/dist/commands/mcp.js +20 -20
- package/cli/dist/commands/mcp.js.map +1 -1
- package/cli/dist/commands/module-management.d.ts +9 -0
- package/cli/dist/commands/module-management.d.ts.map +1 -0
- package/cli/dist/commands/module-management.js +420 -0
- package/cli/dist/commands/module-management.js.map +1 -0
- package/cli/dist/commands/search.js +1 -11
- package/cli/dist/commands/search.js.map +1 -1
- package/cli/dist/commands/self-remove.d.ts.map +1 -1
- package/cli/dist/commands/self-remove.js +98 -44
- package/cli/dist/commands/self-remove.js.map +1 -1
- package/cli/dist/commands/show.d.ts +1 -1
- package/cli/dist/commands/show.d.ts.map +1 -1
- package/cli/dist/commands/show.js +21 -10
- package/cli/dist/commands/show.js.map +1 -1
- package/cli/dist/commands/showCompleted.d.ts +1 -0
- package/cli/dist/commands/showCompleted.d.ts.map +1 -1
- package/cli/dist/commands/showCompleted.js +4 -3
- package/cli/dist/commands/showCompleted.js.map +1 -1
- package/cli/dist/commands/skill.d.ts +7 -1
- package/cli/dist/commands/skill.d.ts.map +1 -1
- package/cli/dist/commands/skill.js +79 -21
- package/cli/dist/commands/skill.js.map +1 -1
- package/cli/dist/commands/unlink.d.ts +2 -0
- package/cli/dist/commands/unlink.d.ts.map +1 -1
- package/cli/dist/commands/unlink.js +86 -44
- package/cli/dist/commands/unlink.js.map +1 -1
- package/cli/dist/commands/update.d.ts.map +1 -1
- package/cli/dist/commands/update.js +6 -16
- package/cli/dist/commands/update.js.map +1 -1
- package/cli/dist/commands/upgrade.d.ts +2 -0
- package/cli/dist/commands/upgrade.d.ts.map +1 -1
- package/cli/dist/commands/upgrade.js +22 -5
- package/cli/dist/commands/upgrade.js.map +1 -1
- package/cli/dist/commands/use.d.ts.map +1 -1
- package/cli/dist/commands/use.js +2 -68
- package/cli/dist/commands/use.js.map +1 -1
- package/cli/dist/core/compatibility-checker.d.ts +37 -1
- package/cli/dist/core/compatibility-checker.d.ts.map +1 -1
- package/cli/dist/core/compatibility-checker.js +133 -12
- package/cli/dist/core/compatibility-checker.js.map +1 -1
- package/cli/dist/gui/state/navigation-state.d.ts +20 -0
- package/cli/dist/gui/state/navigation-state.d.ts.map +1 -0
- package/cli/dist/gui/state/navigation-state.js +115 -0
- package/cli/dist/gui/state/navigation-state.js.map +1 -0
- package/cli/dist/gui/state/selection-state.d.ts +21 -0
- package/cli/dist/gui/state/selection-state.d.ts.map +1 -0
- package/cli/dist/gui/state/selection-state.js +117 -0
- package/cli/dist/gui/state/selection-state.js.map +1 -0
- package/cli/dist/lib/export-runner.d.ts +76 -0
- package/cli/dist/lib/export-runner.d.ts.map +1 -0
- package/cli/dist/lib/export-runner.js +111 -0
- package/cli/dist/lib/export-runner.js.map +1 -0
- package/cli/dist/lib/mcp-detection.d.ts +40 -0
- package/cli/dist/lib/mcp-detection.d.ts.map +1 -0
- package/cli/dist/lib/mcp-detection.js +167 -0
- package/cli/dist/lib/mcp-detection.js.map +1 -0
- package/cli/dist/lib/mirror-coordination.d.ts +57 -0
- package/cli/dist/lib/mirror-coordination.d.ts.map +1 -0
- package/cli/dist/lib/mirror-coordination.js +151 -0
- package/cli/dist/lib/mirror-coordination.js.map +1 -0
- package/cli/dist/lib/mirror-runner.d.ts +123 -0
- package/cli/dist/lib/mirror-runner.d.ts.map +1 -0
- package/cli/dist/lib/mirror-runner.js +579 -0
- package/cli/dist/lib/mirror-runner.js.map +1 -0
- package/cli/dist/lib/module-resolver.d.ts +65 -0
- package/cli/dist/lib/module-resolver.d.ts.map +1 -0
- package/cli/dist/lib/module-resolver.js +211 -0
- package/cli/dist/lib/module-resolver.js.map +1 -0
- package/cli/dist/lib/source-hash.d.ts +62 -0
- package/cli/dist/lib/source-hash.d.ts.map +1 -0
- package/cli/dist/lib/source-hash.js +99 -0
- package/cli/dist/lib/source-hash.js.map +1 -0
- package/cli/dist/types/coordination-export.d.ts +33 -0
- package/cli/dist/types/coordination-export.d.ts.map +1 -0
- package/cli/dist/types/coordination-export.js +28 -0
- package/cli/dist/types/coordination-export.js.map +1 -0
- package/cli/dist/types/gui.d.ts +4 -0
- package/cli/dist/types/gui.d.ts.map +1 -1
- package/cli/dist/types/lifecycle.d.ts +81 -0
- package/cli/dist/types/lifecycle.d.ts.map +1 -0
- package/cli/dist/types/lifecycle.js +3 -0
- package/cli/dist/types/lifecycle.js.map +1 -0
- package/cli/dist/utils/beads-sync.d.ts +4 -0
- package/cli/dist/utils/beads-sync.d.ts.map +1 -1
- package/cli/dist/utils/beads-sync.js.map +1 -1
- package/cli/dist/utils/catalog-sync.d.ts.map +1 -1
- package/cli/dist/utils/catalog-sync.js +41 -8
- package/cli/dist/utils/catalog-sync.js.map +1 -1
- package/cli/dist/utils/coordination-queries.d.ts +3 -0
- package/cli/dist/utils/coordination-queries.d.ts.map +1 -1
- package/cli/dist/utils/coordination-queries.js +2 -2
- package/cli/dist/utils/coordination-queries.js.map +1 -1
- package/cli/dist/utils/decision-runner.d.ts +18 -0
- package/cli/dist/utils/decision-runner.d.ts.map +1 -0
- package/cli/dist/utils/decision-runner.js +114 -0
- package/cli/dist/utils/decision-runner.js.map +1 -0
- package/cli/dist/utils/extensions-config.d.ts +29 -0
- package/cli/dist/utils/extensions-config.d.ts.map +1 -0
- package/cli/dist/utils/extensions-config.js +151 -0
- package/cli/dist/utils/extensions-config.js.map +1 -0
- package/cli/dist/utils/extractCommandHelp.d.ts +2 -2
- package/cli/dist/utils/extractCommandHelp.d.ts.map +1 -1
- package/cli/dist/utils/extractCommandHelp.js +10 -4
- package/cli/dist/utils/extractCommandHelp.js.map +1 -1
- package/cli/dist/utils/file-tracking.d.ts +4 -0
- package/cli/dist/utils/file-tracking.d.ts.map +1 -1
- package/cli/dist/utils/file-tracking.js +5 -5
- package/cli/dist/utils/file-tracking.js.map +1 -1
- package/cli/dist/utils/glob-match.d.ts +6 -0
- package/cli/dist/utils/glob-match.d.ts.map +1 -0
- package/cli/dist/utils/glob-match.js +8 -0
- package/cli/dist/utils/glob-match.js.map +1 -0
- package/cli/dist/utils/gui-helpers.d.ts.map +1 -1
- package/cli/dist/utils/gui-helpers.js +7 -3
- package/cli/dist/utils/gui-helpers.js.map +1 -1
- package/cli/dist/utils/inspection-cache.d.ts +8 -0
- package/cli/dist/utils/inspection-cache.d.ts.map +1 -1
- package/cli/dist/utils/inspection-cache.js +12 -0
- package/cli/dist/utils/inspection-cache.js.map +1 -1
- package/cli/dist/utils/inspection-handlers.d.ts.map +1 -1
- package/cli/dist/utils/inspection-handlers.js +230 -52
- package/cli/dist/utils/inspection-handlers.js.map +1 -1
- package/cli/dist/utils/install-rules.d.ts +15 -0
- package/cli/dist/utils/install-rules.d.ts.map +1 -1
- package/cli/dist/utils/install-rules.js +247 -0
- package/cli/dist/utils/install-rules.js.map +1 -1
- package/cli/dist/utils/interactive-prompt.d.ts +7 -0
- package/cli/dist/utils/interactive-prompt.d.ts.map +1 -0
- package/cli/dist/utils/interactive-prompt.js +41 -0
- package/cli/dist/utils/interactive-prompt.js.map +1 -0
- package/cli/dist/utils/lifecycle.d.ts +47 -0
- package/cli/dist/utils/lifecycle.d.ts.map +1 -0
- package/cli/dist/utils/lifecycle.js +841 -0
- package/cli/dist/utils/lifecycle.js.map +1 -0
- package/cli/dist/utils/mcp-integration.d.ts +24 -3
- package/cli/dist/utils/mcp-integration.d.ts.map +1 -1
- package/cli/dist/utils/mcp-integration.js +364 -151
- package/cli/dist/utils/mcp-integration.js.map +1 -1
- package/cli/dist/utils/module-system.d.ts +7 -0
- package/cli/dist/utils/module-system.d.ts.map +1 -1
- package/cli/dist/utils/module-system.js +137 -42
- package/cli/dist/utils/module-system.js.map +1 -1
- package/cli/dist/utils/modules-catalog.d.ts.map +1 -1
- package/cli/dist/utils/modules-catalog.js +5 -0
- package/cli/dist/utils/modules-catalog.js.map +1 -1
- package/cli/dist/utils/openspec-sync.d.ts +4 -0
- package/cli/dist/utils/openspec-sync.d.ts.map +1 -1
- package/cli/dist/utils/openspec-sync.js.map +1 -1
- package/cli/dist/utils/plugin-system.js +1 -1
- package/cli/dist/utils/plugin-system.js.map +1 -1
- package/cli/dist/utils/skill-system.d.ts +11 -0
- package/cli/dist/utils/skill-system.d.ts.map +1 -1
- package/cli/dist/utils/skill-system.js +101 -3
- package/cli/dist/utils/skill-system.js.map +1 -1
- package/cli/dist/utils/zip-archive.d.ts +25 -0
- package/cli/dist/utils/zip-archive.d.ts.map +1 -0
- package/cli/dist/utils/zip-archive.js +287 -0
- package/cli/dist/utils/zip-archive.js.map +1 -0
- package/modules.md +89 -6
- package/package.json +150 -135
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Spring Persistence, Testing, and Transactions
|
|
2
|
+
|
|
3
|
+
Put transaction and framework behavior at deliberate application boundaries, and test only the integration level each behavior needs.
|
|
4
|
+
|
|
5
|
+
## Define transaction boundaries around use cases
|
|
6
|
+
|
|
7
|
+
- Place a transaction around an application operation that must commit or roll back as one unit. Keep the boundary on a Spring-managed service or application component rather than scattering it across controller methods.
|
|
8
|
+
- Review what the configured transaction manager controls. A database transaction does not automatically make HTTP calls, messages, files, or multiple independent stores atomic.
|
|
9
|
+
- Keep slow network calls and user interaction outside database transactions where possible. Holding a transaction open can retain locks and connections longer than necessary.
|
|
10
|
+
- Check the project's configured propagation, isolation, timeout, read-only, and rollback behavior. Do not assume that a method annotation alone gives the intended semantics for every exception or transaction manager.
|
|
11
|
+
- Understand proxy-based interception: calls made within the same object may not pass through the proxy. Avoid relying on an annotation for self-invocation; extract the transactional operation or use the documented programmatic approach when needed.
|
|
12
|
+
- Do not catch and suppress a failure inside a transaction if the caller expects rollback. Make rollback and retry policy explicit and safe for repeated execution.
|
|
13
|
+
- Keep persistence technology and repository APIs behind an application boundary where practical. Add Spring Data or another persistence project only when the application chooses it; it is outside this module's core scope.
|
|
14
|
+
|
|
15
|
+
## Use the smallest Spring test context that proves the behavior
|
|
16
|
+
|
|
17
|
+
- Unit test domain and application logic without a Spring context when dependency wiring is not under test.
|
|
18
|
+
- Use a focused test slice for a web, persistence, or serialization boundary where the selected Spring version provides one. Keep the slice narrow and replace only external collaborators needed for isolation.
|
|
19
|
+
- Use `@SpringBootTest` when behavior depends on application configuration, auto-configuration, or interactions across several layers. Avoid loading the full context for every test.
|
|
20
|
+
- For web behavior, assert externally visible status, headers, and payload. For persistence, use isolated test data and verify constraints and transaction outcomes against the project's supported database setup.
|
|
21
|
+
- Test both success and failure paths, including validation, authorization, rollback, and startup configuration failures where those outcomes are contractual.
|
|
22
|
+
- Keep test properties deterministic and credentials fake. Do not weaken production security or transactions just to simplify a test.
|
|
23
|
+
- Verify test annotations and context setup against the exact Boot, Framework, JUnit, and test-library versions declared by the application.
|
|
24
|
+
|
|
25
|
+
## Keep dependency management consistent
|
|
26
|
+
|
|
27
|
+
- Use the Spring Boot dependency management already selected by the project when available. Avoid pinning a Spring Framework or Spring test artifact independently without checking the supported dependency set.
|
|
28
|
+
- Add only the starter or testing support that is needed. Check whether the project already includes an equivalent dependency before suggesting another one.
|
|
29
|
+
- For a non-Boot Spring application, follow its existing dependency alignment and refer to the matching Framework documentation instead of assuming Boot's dependency management.
|
|
30
|
+
|
|
31
|
+
## Official references
|
|
32
|
+
|
|
33
|
+
- [Spring declarative transaction management](https://docs.spring.io/spring-framework/reference/data-access/transaction/declarative.html)
|
|
34
|
+
- [Using `@Transactional`](https://docs.spring.io/spring-framework/reference/data-access/transaction/declarative/annotations.html)
|
|
35
|
+
- [Spring Boot testing](https://docs.spring.io/spring-boot/reference/testing/index.html)
|
|
36
|
+
- [Testing Spring Boot applications](https://docs.spring.io/spring-boot/reference/testing/spring-boot-applications.html)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Spring Production Operations
|
|
2
|
+
|
|
3
|
+
Make runtime behavior diagnosable while keeping operational data and control endpoints protected.
|
|
4
|
+
|
|
5
|
+
## Configure for each environment safely
|
|
6
|
+
|
|
7
|
+
- Keep operational settings outside the artifact and document required values, defaults, and validation. Fail startup when a required safety-critical value is missing or invalid.
|
|
8
|
+
- Use profiles and property sources intentionally. Verify precedence and active profiles in the exact Boot version rather than assuming a local configuration file wins.
|
|
9
|
+
- Set explicit connection, request, and shutdown timeouts for external resources using the settings supported by the chosen libraries. Bound queues and concurrency according to available capacity.
|
|
10
|
+
- Do not log secrets, full authorization headers, or sensitive request data. Use structured, consistently named fields and an appropriate request or trace identifier.
|
|
11
|
+
|
|
12
|
+
## Add observability that answers operational questions
|
|
13
|
+
|
|
14
|
+
- Use the project's supported logging and observability integrations. Record failures with useful context and avoid logging the same exception at every layer.
|
|
15
|
+
- Expose health and metrics only to the monitoring system that needs them. Review endpoint access, exposure, sanitization, network binding, and authentication together.
|
|
16
|
+
- A health response should communicate actionable health without revealing environment values, credentials, or internal topology.
|
|
17
|
+
- Separate liveness from readiness. Liveness should reflect whether the process can continue; do not make it fail solely because a downstream service is temporarily unavailable. Readiness may reflect whether the application can safely receive traffic, according to its deployment contract.
|
|
18
|
+
- Do not add an observability backend or deployment platform as a prerequisite when the project has not selected one.
|
|
19
|
+
|
|
20
|
+
## Expose Actuator deliberately
|
|
21
|
+
|
|
22
|
+
- Treat Actuator endpoints as operational interfaces. Expose only the endpoints the deployment requires, and control access using the supported security configuration.
|
|
23
|
+
- Review the data returned by environment, configuration, mappings, beans, loggers, and similar diagnostic endpoints before exposing them beyond a trusted boundary.
|
|
24
|
+
- Keep health detail and component indicators at the minimum level appropriate for the intended audience.
|
|
25
|
+
- Do not assume an endpoint is unavailable simply because it is not exposed over HTTP; review every configured management transport and port.
|
|
26
|
+
- Test access control and the public health contract in the production configuration profile, not only in a development profile.
|
|
27
|
+
|
|
28
|
+
## Manage lifecycle and failure recovery
|
|
29
|
+
|
|
30
|
+
- Use framework lifecycle and graceful shutdown support so in-flight work can complete within the deployment's termination window.
|
|
31
|
+
- Make background work cancellable and bounded. Ensure executors and clients are closed when their owning context ends.
|
|
32
|
+
- Make retries explicit, bounded, and safe for duplicate execution. Avoid retrying non-idempotent operations without an idempotency design.
|
|
33
|
+
- Record startup and shutdown failures clearly while withholding secret configuration values.
|
|
34
|
+
- Check the current Spring Boot operations and Actuator documentation for settings supported by the application's exact release.
|
|
35
|
+
|
|
36
|
+
## Official references
|
|
37
|
+
|
|
38
|
+
- [Spring Boot Actuator endpoints](https://docs.spring.io/spring-boot/reference/actuator/endpoints.html)
|
|
39
|
+
- [Spring Boot externalized configuration](https://docs.spring.io/spring-boot/reference/features/external-config.html)
|
|
40
|
+
- [Spring Boot system requirements](https://docs.spring.io/spring-boot/system-requirements.html)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Spring Web APIs and Security
|
|
2
|
+
|
|
3
|
+
Keep transport concerns at the web boundary. Choose the web stack to match the application's I/O model and security requirements.
|
|
4
|
+
|
|
5
|
+
## Choose MVC or WebFlux intentionally
|
|
6
|
+
|
|
7
|
+
- Prefer Spring MVC for conventional servlet applications, especially when the application and its dependencies use blocking I/O.
|
|
8
|
+
- Choose WebFlux when non-blocking request handling and reactive composition are requirements across the relevant call path. Evaluate client libraries, persistence access, streaming needs, operational skills, and measured workload before choosing it.
|
|
9
|
+
- Do not call blocking database, file, or network APIs on a reactive event loop. If a blocking boundary is unavoidable, isolate it using the supported scheduler and capacity controls for the project's Reactor and Spring versions.
|
|
10
|
+
- Avoid converting between imperative and reactive types repeatedly. A reactive controller does not make blocking dependencies non-blocking.
|
|
11
|
+
- Use the testing and client tools appropriate to the chosen stack. Check the current reference for supported test clients and server setup.
|
|
12
|
+
|
|
13
|
+
## Design endpoints around validated contracts
|
|
14
|
+
|
|
15
|
+
- Keep controllers focused on HTTP mapping, request binding, validation, and response translation. Delegate business rules and multi-step use cases to an application service.
|
|
16
|
+
- Use dedicated request and response types instead of binding untrusted JSON directly to persistence entities or internal domain state.
|
|
17
|
+
- Validate request bodies and parameters at the boundary. Combine framework validation with domain checks; boundary validation does not replace business invariants.
|
|
18
|
+
- Return appropriate status codes and stable response shapes. Do not expose Java exception names, stack traces, SQL messages, internal paths, or secrets in error responses.
|
|
19
|
+
- Centralize cross-cutting exception-to-response mapping where that keeps behavior consistent. Map known failures deliberately and keep unexpected failures generic to clients while recording safe diagnostic context.
|
|
20
|
+
- Add API contract, serialization, and compatibility checks when clients depend on the endpoint shape.
|
|
21
|
+
|
|
22
|
+
## Apply Spring Security as the security boundary
|
|
23
|
+
|
|
24
|
+
- Use Spring Security's supported authentication and authorization mechanisms. Do not create a handwritten password store, request filter chain, token verifier, or role check when Spring Security provides the security integration.
|
|
25
|
+
- Define authorization rules for every route and method, starting from deny-by-default or authentication-required behavior and then opening only intentional public endpoints.
|
|
26
|
+
- Enforce authorization close to sensitive operations as well as at the HTTP boundary when the application has non-HTTP entry points. Use the currently supported API for the project's Spring Security version.
|
|
27
|
+
- Preserve CSRF protections for browser sessions unless the threat model and protocol justify a documented alternative. Configure CORS narrowly for known origins and methods; CORS is not authorization.
|
|
28
|
+
- Use secure password storage and vetted identity providers or protocols. Avoid leaking authentication failures, token contents, or user existence through responses and logs.
|
|
29
|
+
- Restrict access to operational endpoints and administration routes. Test both permitted and rejected cases, including unauthenticated and underprivileged callers.
|
|
30
|
+
|
|
31
|
+
## Keep tests focused on the web contract
|
|
32
|
+
|
|
33
|
+
- Use framework slice tests for the controller or web configuration boundary when possible, and full application tests only when auto-configuration or cross-layer behavior is part of the contract.
|
|
34
|
+
- Exercise validation failures, status codes, content types, response bodies, and security rules. Avoid tests that only assert the controller delegates to a mock.
|
|
35
|
+
- Keep test configuration and credentials isolated. Never use production secrets or shared production data in a test.
|
|
36
|
+
|
|
37
|
+
## Official references
|
|
38
|
+
|
|
39
|
+
- [Spring Boot servlet web applications](https://docs.spring.io/spring-boot/reference/web/servlet.html)
|
|
40
|
+
- [Spring Framework WebFlux](https://docs.spring.io/spring-framework/reference/web/webflux.html)
|
|
41
|
+
- [Spring MVC validation](https://docs.spring.io/spring-framework/reference/web/webmvc/mvc-controller/ann-validation.html)
|
|
42
|
+
- [Spring MVC exception handling](https://docs.spring.io/spring-framework/reference/web/webmvc/mvc-controller/ann-exceptionhandler.html)
|
|
43
|
+
- [Spring Security request authorization](https://docs.spring.io/spring-security/reference/servlet/authorization/authorize-http-requests.html)
|
|
@@ -53,9 +53,9 @@ All notable changes to the Visual Design module will be documented in this file.
|
|
|
53
53
|
- ✅ 5 skill categories (Visual Design Fundamentals, UI Design, UX Design, Technical Implementation, Design Tools & Workflow)
|
|
54
54
|
- ✅ 3 vendor design systems (Google, Microsoft, Amazon)
|
|
55
55
|
- ✅ 10 domain-specific styles
|
|
56
|
-
-
|
|
56
|
+
- Legacy 100% core-module coverage statement from this release is unverified by the current test suite.
|
|
57
57
|
- ✅ Extensive usage examples
|
|
58
|
-
-
|
|
58
|
+
- Legacy WCAG 2.1 AA compliance statement from this release is unverified. See the current rules for standards scope and required evidence.
|
|
59
59
|
- ✅ Responsive design patterns
|
|
60
60
|
- ✅ Cross-platform support
|
|
61
61
|
|
|
@@ -11,15 +11,36 @@ This module provides AI agents with structured visual design knowledge including
|
|
|
11
11
|
- **Domain Styles**: Website, Web-app, Mobile, .NET Application, Linux, Windows, Motion Picture, AI Prompt Helper, Print Campaigns
|
|
12
12
|
- **Default Fallback**: google → microsoft → amazon
|
|
13
13
|
|
|
14
|
+
## Guidance Structure and Discovery
|
|
15
|
+
|
|
16
|
+
This module combines its selectable TypeScript vendor and domain styles with indexed rules, progressive guidelines, and task-oriented skills:
|
|
17
|
+
|
|
18
|
+
- Start at rules/index.md for the decision order and task router. The CLI lists direct Markdown files in rules.
|
|
19
|
+
- Review rules/design-practice.md for research, UX, product, service, interaction, information architecture, visual language, and design-system work.
|
|
20
|
+
- Review rules/accessibility-and-color.md and rules/platform-guidance.md for accessibility, themes, typography, motion, and platform constraints.
|
|
21
|
+
- Use guidelines/design-levels.md and guidelines/coverage-map.md for basic, intermediate, and advanced coverage.
|
|
22
|
+
- Use skills/design-brief.md and skills/design-review.md for repeatable design work.
|
|
23
|
+
- Use skills/responsive-validation/SKILL.md and its runner for caller-supplied web applications.
|
|
24
|
+
|
|
25
|
+
Read module-local files through augx show visual-design <module-relative-path>, for example rules/index.md or skills/responsive-validation/SKILL.md. The repository-level augx skill command indexes the root skills directory only; module-local skill files are discoverable through the module index and file-view command.
|
|
26
|
+
|
|
27
|
+
The responsive workflow applies to screen interfaces. Print, film, and image-generation work retain their existing domain-specific constraints and do not use browser viewport rules.
|
|
28
|
+
|
|
14
29
|
## Architecture
|
|
15
30
|
|
|
16
31
|
```
|
|
17
32
|
visual-design/
|
|
18
33
|
├── module.json # Module metadata
|
|
19
34
|
├── README.md # This file
|
|
35
|
+
├── metadata.json # Version, character count, and indexed content files
|
|
36
|
+
├── VERSION # Version used by the version-aware module loader
|
|
20
37
|
├── visual-design-core.ts # Core design elements, principles, skills
|
|
21
38
|
├── types.ts # TypeScript interfaces
|
|
22
39
|
├── style-selector.ts # Vendor priority logic
|
|
40
|
+
├── rules/ # Directly listed module rules and task index
|
|
41
|
+
├── guidelines/ # Design levels and coverage map
|
|
42
|
+
├── skills/ # Module-local task procedures and responsive runner
|
|
43
|
+
├── scripts/ # Guidance manifest validator
|
|
23
44
|
├── domains/
|
|
24
45
|
│ ├── web-page-styles/
|
|
25
46
|
│ │ ├── google-modern.ts # Material 3 Expressive
|
|
@@ -38,6 +59,7 @@ visual-design/
|
|
|
38
59
|
│ └── os-application.ts # General OS applications
|
|
39
60
|
├── __tests__/ # Unit and integration tests
|
|
40
61
|
│ ├── README.md # Test documentation
|
|
62
|
+
│ ├── guidance-contract.test.ts # Guidance and responsive plan contract tests
|
|
41
63
|
│ ├── style-selector.test.ts # Style selector tests
|
|
42
64
|
│ └── vendor-styles.test.ts # Vendor integration tests
|
|
43
65
|
└── examples/ # Usage examples
|
|
@@ -79,7 +101,7 @@ augx link visual-design
|
|
|
79
101
|
augx show visual-design
|
|
80
102
|
|
|
81
103
|
# View specific vendor style
|
|
82
|
-
augx show visual-design/google-modern
|
|
104
|
+
augx show visual-design domains/web-page-styles/google-modern.ts
|
|
83
105
|
```
|
|
84
106
|
|
|
85
107
|
## Usage
|
|
@@ -104,8 +126,7 @@ for a SaaS product with:
|
|
|
104
126
|
- Testimonials section
|
|
105
127
|
- Footer with links
|
|
106
128
|
|
|
107
|
-
Apply Material 3 Expressive characteristics
|
|
108
|
-
corners, and accessible contrast ratios.
|
|
129
|
+
Apply Material 3 Expressive characteristics such as dynamic color and rounded corners. Measure contrast for each rendered state against the product target.
|
|
109
130
|
```
|
|
110
131
|
|
|
111
132
|
## Design Elements (8)
|
|
@@ -130,16 +151,16 @@ corners, and accessible contrast ratios.
|
|
|
130
151
|
7. **Proportion** - Size relationships
|
|
131
152
|
8. **White Space** - Breathing room
|
|
132
153
|
9. **Consistency** - Predictable patterns
|
|
133
|
-
10. **Accessibility** -
|
|
154
|
+
10. **Accessibility** - Inclusive design reviewed against the applicable target
|
|
134
155
|
11. **Responsiveness** - Multi-device adaptation
|
|
135
156
|
|
|
136
|
-
## Skill Categories (5)
|
|
157
|
+
## Core TypeScript Skill Categories (5)
|
|
137
158
|
|
|
138
159
|
1. **Color Theory** - Palettes, harmony, psychology
|
|
139
160
|
2. **Typography** - Font pairing, hierarchy, readability
|
|
140
161
|
3. **Layout Design** - Grid systems, composition, flow
|
|
141
162
|
4. **Visual Hierarchy** - Emphasis, contrast, scale
|
|
142
|
-
5. **Accessibility** -
|
|
163
|
+
5. **Accessibility** - Inclusive design and accessibility review
|
|
143
164
|
|
|
144
165
|
## Vendor Characteristics
|
|
145
166
|
|
|
@@ -147,7 +168,7 @@ corners, and accessible contrast ratios.
|
|
|
147
168
|
- Dynamic color theming with tonal palettes
|
|
148
169
|
- Rounded corners (8px-24px)
|
|
149
170
|
- Springy motion with easing curves
|
|
150
|
-
-
|
|
171
|
+
- Accessible design patterns that must be verified against the current product target
|
|
151
172
|
|
|
152
173
|
### Microsoft Fluent 2
|
|
153
174
|
- Acrylic and Mica materials for depth
|
|
@@ -238,6 +259,8 @@ The `__tests__/` directory contains comprehensive test coverage:
|
|
|
238
259
|
|
|
239
260
|
- **style-selector.test.ts**: Tests for vendor priority chain and fallback logic
|
|
240
261
|
- **vendor-styles.test.ts**: Integration tests for all vendor design systems
|
|
262
|
+
- **guidance-contract.test.ts**: Checks metadata references, module discovery, skill coverage, and responsive sweep planning
|
|
263
|
+
- **scripts/validate-guidance.cjs**: Validates metadata paths and local guidance links
|
|
241
264
|
- **README.md**: Test documentation and usage instructions
|
|
242
265
|
|
|
243
266
|
All tests validate:
|
|
@@ -247,7 +270,7 @@ All tests validate:
|
|
|
247
270
|
- ✅ Fallback logic for invalid vendors
|
|
248
271
|
- ✅ Cross-vendor consistency
|
|
249
272
|
- ✅ Required properties validation
|
|
250
|
-
- ✅
|
|
273
|
+
- ✅ Current accessibility guidance and metadata contract
|
|
251
274
|
|
|
252
275
|
## License
|
|
253
276
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.0.0
|
|
@@ -22,20 +22,17 @@ Integration tests for all vendor design systems:
|
|
|
22
22
|
|
|
23
23
|
## Running Tests
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
npm install --save-dev jest @types/jest ts-jest
|
|
28
|
-
```
|
|
25
|
+
Run the tests from the repository root with the dependencies in `package-lock.json` installed:
|
|
29
26
|
|
|
30
|
-
### Run All Tests
|
|
31
27
|
```bash
|
|
32
|
-
npm test
|
|
28
|
+
npm test -- --runInBand augment-extensions/visual-design/__tests__
|
|
33
29
|
```
|
|
34
30
|
|
|
35
|
-
### Run Specific Test
|
|
31
|
+
### Run Specific Test Files
|
|
36
32
|
```bash
|
|
37
|
-
npm test style-selector.test.ts
|
|
38
|
-
npm test vendor-styles.test.ts
|
|
33
|
+
npm test -- --runInBand augment-extensions/visual-design/__tests__/style-selector.test.ts
|
|
34
|
+
npm test -- --runInBand augment-extensions/visual-design/__tests__/vendor-styles.test.ts
|
|
35
|
+
npm test -- --runInBand augment-extensions/visual-design/__tests__/guidance-contract.test.ts
|
|
39
36
|
```
|
|
40
37
|
|
|
41
38
|
### Run with Coverage
|
|
@@ -43,7 +40,7 @@ npm test vendor-styles.test.ts
|
|
|
43
40
|
npm test -- --coverage
|
|
44
41
|
```
|
|
45
42
|
|
|
46
|
-
##
|
|
43
|
+
## Verified Coverage
|
|
47
44
|
|
|
48
45
|
The test suite covers:
|
|
49
46
|
- ✅ Style selector creation and configuration
|
|
@@ -55,20 +52,38 @@ The test suite covers:
|
|
|
55
52
|
- ✅ All vendor style implementations
|
|
56
53
|
- ✅ Cross-vendor consistency checks
|
|
57
54
|
- ✅ Required properties validation
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
55
|
+
- Guidance paths, indexes, local Markdown links, metadata synchronization, and CLI module discovery
|
|
56
|
+
- Responsive sweep planning, viewport boundaries, aspect ratios, and breakpoint neighbors
|
|
57
|
+
- Synthetic pass, fail, and needs-review metric classifications
|
|
58
|
+
|
|
59
|
+
The responsive contract tests do not render an application. Browser layout, native UI, physical device, zoom, reduced-motion effect, localization, and assistive-technology behavior require a consuming application and its runner.
|
|
61
60
|
|
|
62
|
-
##
|
|
61
|
+
## Covered Modules
|
|
63
62
|
|
|
64
|
-
|
|
63
|
+
The focused suite covers behavior in:
|
|
65
64
|
- `style-selector.ts`
|
|
65
|
+
- `scripts/validate-guidance.cjs`
|
|
66
|
+
- `skills/responsive-validation/scripts/responsive-sweep.cjs`
|
|
66
67
|
- `domains/web-page-styles/google-modern.ts`
|
|
67
68
|
- `domains/web-page-styles/microsoft-fluent.ts`
|
|
68
69
|
- `domains/web-page-styles/amazon-cloudscape.ts`
|
|
69
70
|
|
|
70
71
|
## Adding New Tests
|
|
71
72
|
|
|
73
|
+
The guidance contract suite also checks module.json references, local Markdown paths and headings, module discovery, version-aware loading, vendor priority, and responsive sweep planning. It uses synthetic invalid metadata and viewport metrics for negative-path coverage. It does not render an application.
|
|
74
|
+
|
|
75
|
+
Run the module test files with Jest:
|
|
76
|
+
|
|
77
|
+
npm test -- --runInBand augment-extensions/visual-design/__tests__
|
|
78
|
+
|
|
79
|
+
Validate the checked-in guidance references directly:
|
|
80
|
+
|
|
81
|
+
node augment-extensions/visual-design/scripts/validate-guidance.cjs
|
|
82
|
+
|
|
83
|
+
Inspect the responsive viewport plan without an application:
|
|
84
|
+
|
|
85
|
+
node augment-extensions/visual-design/skills/responsive-validation/scripts/responsive-sweep.cjs --dry-run --width-breakpoints 768,1024
|
|
86
|
+
|
|
72
87
|
When adding new vendor styles or features:
|
|
73
88
|
|
|
74
89
|
1. **Add vendor style tests** in `vendor-styles.test.ts`:
|
|
@@ -94,9 +109,8 @@ When adding new vendor styles or features:
|
|
|
94
109
|
## Continuous Integration
|
|
95
110
|
|
|
96
111
|
These tests are designed to run in CI/CD pipelines:
|
|
97
|
-
-
|
|
98
|
-
- No external dependencies
|
|
99
|
-
- Deterministic results
|
|
112
|
+
- Deterministic and isolated
|
|
113
|
+
- No additional external dependencies
|
|
100
114
|
- Clear error messages
|
|
101
115
|
|
|
102
116
|
## Troubleshooting
|