@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,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MCP wiring detection for the cross-platform export pipeline.
|
|
4
|
+
*
|
|
5
|
+
* Determines whether a Beads MCP server is declared in this project. The
|
|
6
|
+
* runner inlines the MCP wiring snippet into exported files only when
|
|
7
|
+
* detection returns `true`. Detection itself never makes a network call
|
|
8
|
+
* or spawns a process; it only inspects the two well-known config files.
|
|
9
|
+
*
|
|
10
|
+
* See: openspec/specs/cross-platform/mcp-template.md
|
|
11
|
+
*/
|
|
12
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
15
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
16
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
17
|
+
}
|
|
18
|
+
Object.defineProperty(o, k2, desc);
|
|
19
|
+
}) : (function(o, m, k, k2) {
|
|
20
|
+
if (k2 === undefined) k2 = k;
|
|
21
|
+
o[k2] = m[k];
|
|
22
|
+
}));
|
|
23
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
24
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
25
|
+
}) : function(o, v) {
|
|
26
|
+
o["default"] = v;
|
|
27
|
+
});
|
|
28
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
29
|
+
var ownKeys = function(o) {
|
|
30
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
31
|
+
var ar = [];
|
|
32
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
33
|
+
return ar;
|
|
34
|
+
};
|
|
35
|
+
return ownKeys(o);
|
|
36
|
+
};
|
|
37
|
+
return function (mod) {
|
|
38
|
+
if (mod && mod.__esModule) return mod;
|
|
39
|
+
var result = {};
|
|
40
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
+
__setModuleDefault(result, mod);
|
|
42
|
+
return result;
|
|
43
|
+
};
|
|
44
|
+
})();
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.BEADS_MCP_TEMPLATE_PATH = exports.BEADS_MCP_SNIPPET_FALLBACK = exports.BEADS_MCP_ID = void 0;
|
|
47
|
+
exports.hasBeadsMcpServer = hasBeadsMcpServer;
|
|
48
|
+
exports.loadBeadsMcpSnippet = loadBeadsMcpSnippet;
|
|
49
|
+
const fs = __importStar(require("fs"));
|
|
50
|
+
const path = __importStar(require("path"));
|
|
51
|
+
/**
|
|
52
|
+
* Paths checked, in the order specified by the spec.
|
|
53
|
+
*/
|
|
54
|
+
const MCP_CONFIG_PATHS = [
|
|
55
|
+
path.join('.vscode', 'mcp.json'),
|
|
56
|
+
path.join('.augment', 'mcp', 'servers.json'),
|
|
57
|
+
];
|
|
58
|
+
/** Canonical server id recognized by the Beads MCP wiring detector. */
|
|
59
|
+
exports.BEADS_MCP_ID = 'beads';
|
|
60
|
+
/**
|
|
61
|
+
* Return `true` when either `.vscode/mcp.json` or `.augment/mcp/servers.json`
|
|
62
|
+
* declares an MCP server whose id (or name/key) is `beads`. The check is
|
|
63
|
+
* tolerant of the two common shapes:
|
|
64
|
+
* { "servers": { "beads": {...} } }
|
|
65
|
+
* { "mcpServers": { "beads": {...} } }
|
|
66
|
+
* { "servers": [ { "id": "beads", ... }, ... ] }
|
|
67
|
+
*/
|
|
68
|
+
function hasBeadsMcpServer(projectRoot) {
|
|
69
|
+
for (const rel of MCP_CONFIG_PATHS) {
|
|
70
|
+
if (configDeclaresBeads(path.join(projectRoot, rel))) {
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
function configDeclaresBeads(filePath) {
|
|
77
|
+
if (!fs.existsSync(filePath)) {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
let parsed;
|
|
81
|
+
try {
|
|
82
|
+
const raw = fs.readFileSync(filePath, 'utf-8').replace(/^\uFEFF/, '');
|
|
83
|
+
parsed = JSON.parse(raw);
|
|
84
|
+
}
|
|
85
|
+
catch {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
return objectDeclaresBeads(parsed);
|
|
89
|
+
}
|
|
90
|
+
function objectDeclaresBeads(value) {
|
|
91
|
+
if (!value || typeof value !== 'object') {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
const record = value;
|
|
95
|
+
for (const containerKey of ['servers', 'mcpServers']) {
|
|
96
|
+
const container = record[containerKey];
|
|
97
|
+
if (container && typeof container === 'object') {
|
|
98
|
+
if (Array.isArray(container)) {
|
|
99
|
+
for (const entry of container) {
|
|
100
|
+
if (entry && typeof entry === 'object') {
|
|
101
|
+
const idLike = entry.id ??
|
|
102
|
+
entry.name;
|
|
103
|
+
if (idLike === exports.BEADS_MCP_ID) {
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
if (Object.prototype.hasOwnProperty.call(container, exports.BEADS_MCP_ID)) {
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Canonical Beads MCP snippet body. Mirrors the content required by
|
|
120
|
+
* `openspec/specs/cross-platform/mcp-template.md`. Used as the fallback
|
|
121
|
+
* when the canonical template file is not yet present on disk (Phase 4
|
|
122
|
+
* delivers the on-disk template; the runner ships with this string so
|
|
123
|
+
* exports work end-to-end ahead of Phase 4).
|
|
124
|
+
*/
|
|
125
|
+
exports.BEADS_MCP_SNIPPET_FALLBACK = [
|
|
126
|
+
'### Live Task Context via Beads MCP',
|
|
127
|
+
'',
|
|
128
|
+
'This project exposes its task tracker through the **Beads MCP server**.',
|
|
129
|
+
'For any task-related context (open tasks, dependencies, status, blocked items),',
|
|
130
|
+
'query the MCP server directly rather than relying on static rules.',
|
|
131
|
+
'',
|
|
132
|
+
'**Server id**: `beads`',
|
|
133
|
+
'',
|
|
134
|
+
'**Common operations**:',
|
|
135
|
+
'',
|
|
136
|
+
'- `tasks/list` - enumerate open tasks',
|
|
137
|
+
'- `tasks/get` - fetch a specific task by id',
|
|
138
|
+
'- `dependencies/list` - blockers / blocked-by graph',
|
|
139
|
+
'- `status/get` - current status of a task',
|
|
140
|
+
'',
|
|
141
|
+
'**Reference**: `augment-extensions/workflows/beads/` for full command guide.',
|
|
142
|
+
'',
|
|
143
|
+
'Do NOT assume task state from prose in this file - this file contains no',
|
|
144
|
+
'live task data by design.',
|
|
145
|
+
].join('\n');
|
|
146
|
+
/**
|
|
147
|
+
* Canonical on-disk location of the MCP template (Phase 4 deliverable).
|
|
148
|
+
*/
|
|
149
|
+
exports.BEADS_MCP_TEMPLATE_PATH = path.join('augment-extensions', 'workflows', 'mcp', 'templates', 'beads.md');
|
|
150
|
+
/**
|
|
151
|
+
* Load the MCP snippet body. Prefers the on-disk template; falls back to
|
|
152
|
+
* the embedded canonical string. Returns `undefined` only when the caller
|
|
153
|
+
* has already determined that no Beads MCP server is declared.
|
|
154
|
+
*/
|
|
155
|
+
function loadBeadsMcpSnippet(projectRoot) {
|
|
156
|
+
const onDisk = path.join(projectRoot, exports.BEADS_MCP_TEMPLATE_PATH);
|
|
157
|
+
if (fs.existsSync(onDisk)) {
|
|
158
|
+
try {
|
|
159
|
+
return fs.readFileSync(onDisk, 'utf-8').replace(/\r\n?/g, '\n').trimEnd();
|
|
160
|
+
}
|
|
161
|
+
catch {
|
|
162
|
+
return exports.BEADS_MCP_SNIPPET_FALLBACK;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return exports.BEADS_MCP_SNIPPET_FALLBACK;
|
|
166
|
+
}
|
|
167
|
+
//# sourceMappingURL=mcp-detection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-detection.js","sourceRoot":"","sources":["../../src/lib/mcp-detection.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBH,8CAOC;AA0FD,kDAUC;AAjID,uCAAyB;AACzB,2CAA6B;AAE7B;;GAEG;AACH,MAAM,gBAAgB,GAAsB;IAC1C,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAChC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,cAAc,CAAC;CAC7C,CAAC;AAEF,uEAAuE;AAC1D,QAAA,YAAY,GAAG,OAAO,CAAC;AAEpC;;;;;;;GAOG;AACH,SAAgB,iBAAiB,CAAC,WAAmB;IACnD,KAAK,MAAM,GAAG,IAAI,gBAAgB,EAAE,CAAC;QACnC,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;YACrD,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,mBAAmB,CAAC,QAAgB;IAC3C,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QA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,CAAC;gBACd,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;GAMG;AACU,QAAA,0BAA0B,GAAG;IACxC,qCAAqC;IACrC,EAAE;IACF,yEAAyE;IACzE,iFAAiF;IACjF,oEAAoE;IACpE,EAAE;IACF,wBAAwB;IACxB,EAAE;IACF,wBAAwB;IACxB,EAAE;IACF,uCAAuC;IACvC,6CAA6C;IAC7C,qDAAqD;IACrD,2CAA2C;IAC3C,EAAE;IACF,8EAA8E;IAC9E,EAAE;IACF,0EAA0E;IAC1E,2BAA2B;CAC5B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb;;GAEG;AACU,QAAA,uBAAuB,GAAG,IAAI,CAAC,IAAI,CAC9C,oBAAoB,EACpB,WAAW,EACX,KAAK,EACL,WAAW,EACX,UAAU,CACX,CAAC;AAEF;;;;GAIG;AACH,SAAgB,mBAAmB,CAAC,WAAmB;IACrD,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,+BAAuB,CAAC,CAAC;IAC/D,IAAI,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1B,IAAI,CAAC;YACH,OAAO,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;QAC5E,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,kCAA0B,CAAC;QACpC,CAAC;IACH,CAAC;IACD,OAAO,kCAA0B,CAAC;AACpC,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Coordination manifest helpers for `mirrors[<moduleId>]` persistence.
|
|
3
|
+
*
|
|
4
|
+
* Reads `.augment/coordination.json`, updates the per-module mirror
|
|
5
|
+
* tracking list, and writes the file back while preserving every other
|
|
6
|
+
* top-level key (specs, tasks, rules, files, export, ...). The writer
|
|
7
|
+
* sorts object keys at each level and uses LF line endings per
|
|
8
|
+
* `coordination-export-block.md`.
|
|
9
|
+
*
|
|
10
|
+
* See: openspec/specs/cross-platform/coordination-export-block.md
|
|
11
|
+
*/
|
|
12
|
+
import type { MirrorEntry, MirrorsBlock } from '../types/coordination-export';
|
|
13
|
+
/** Conventional location of the coordination manifest. */
|
|
14
|
+
export declare const COORDINATION_FILE: string;
|
|
15
|
+
/**
|
|
16
|
+
* Generic manifest shape exposed by the helpers. The mirror code only
|
|
17
|
+
* inspects the `mirrors` block; every other top-level key is round-tripped
|
|
18
|
+
* verbatim so we never clobber other writers (sync, openspec, beads).
|
|
19
|
+
*/
|
|
20
|
+
export interface MirrorManifest {
|
|
21
|
+
mirrors?: MirrorsBlock;
|
|
22
|
+
[unknownKey: string]: unknown;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Read the coordination manifest, returning `null` when the file is absent.
|
|
26
|
+
* Unlike `utils/file-tracking.ts`, this helper does not throw on absence,
|
|
27
|
+
* because `augx link --mirror` may run before the manifest is bootstrapped.
|
|
28
|
+
*/
|
|
29
|
+
export declare function readMirrorManifest(projectRoot: string): {
|
|
30
|
+
manifest: MirrorManifest;
|
|
31
|
+
existed: boolean;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Write the manifest back with 2-space indent, LF line endings, sorted
|
|
35
|
+
* keys, and a trailing newline. Creates `.augment/` when missing so the
|
|
36
|
+
* first `--mirror` invocation in a fresh project bootstraps cleanly.
|
|
37
|
+
*/
|
|
38
|
+
export declare function writeMirrorManifest(projectRoot: string, manifest: MirrorManifest): void;
|
|
39
|
+
/**
|
|
40
|
+
* Replace the `mirrors[<moduleId>]` list with `entries`. Removes the key
|
|
41
|
+
* when `entries` is empty, and removes the entire `mirrors` block when no
|
|
42
|
+
* modules remain. Returns the updated manifest for the writer.
|
|
43
|
+
*/
|
|
44
|
+
export declare function setMirrorEntries(manifest: MirrorManifest, moduleId: string, entries: readonly MirrorEntry[]): MirrorManifest;
|
|
45
|
+
/**
|
|
46
|
+
* Look up previously-recorded entries for a module and return them keyed
|
|
47
|
+
* by `targetPath`. Used by the mirror runner to honor a recorded `mode`
|
|
48
|
+
* across re-runs (`symlink` once succeeded, `copy` once fell back).
|
|
49
|
+
*/
|
|
50
|
+
export declare function recordedEntriesByTarget(manifest: MirrorManifest, moduleId: string): Map<string, MirrorEntry>;
|
|
51
|
+
/**
|
|
52
|
+
* Convenience: read manifest, apply `entries` to `moduleId`, and write
|
|
53
|
+
* back. Returns the resulting manifest (post-sort) for tests that want to
|
|
54
|
+
* assert on serialized output.
|
|
55
|
+
*/
|
|
56
|
+
export declare function persistMirrorEntries(projectRoot: string, moduleId: string, entries: readonly MirrorEntry[]): MirrorManifest;
|
|
57
|
+
//# sourceMappingURL=mirror-coordination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mirror-coordination.d.ts","sourceRoot":"","sources":["../../src/lib/mirror-coordination.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACb,MAAM,8BAA8B,CAAC;AAEtC,0DAA0D;AAC1D,eAAO,MAAM,iBAAiB,QAA6C,CAAC;AAE5E;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,MAAM,GAClB;IAAE,QAAQ,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAWhD;AAsBD;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,cAAc,GACvB,IAAI,CAMN;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,cAAc,EACxB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,SAAS,WAAW,EAAE,GAC9B,cAAc,CAchB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,cAAc,EACxB,QAAQ,EAAE,MAAM,GACf,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAO1B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,SAAS,WAAW,EAAE,GAC9B,cAAc,CAKhB"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Coordination manifest helpers for `mirrors[<moduleId>]` persistence.
|
|
4
|
+
*
|
|
5
|
+
* Reads `.augment/coordination.json`, updates the per-module mirror
|
|
6
|
+
* tracking list, and writes the file back while preserving every other
|
|
7
|
+
* top-level key (specs, tasks, rules, files, export, ...). The writer
|
|
8
|
+
* sorts object keys at each level and uses LF line endings per
|
|
9
|
+
* `coordination-export-block.md`.
|
|
10
|
+
*
|
|
11
|
+
* See: openspec/specs/cross-platform/coordination-export-block.md
|
|
12
|
+
*/
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.COORDINATION_FILE = void 0;
|
|
48
|
+
exports.readMirrorManifest = readMirrorManifest;
|
|
49
|
+
exports.writeMirrorManifest = writeMirrorManifest;
|
|
50
|
+
exports.setMirrorEntries = setMirrorEntries;
|
|
51
|
+
exports.recordedEntriesByTarget = recordedEntriesByTarget;
|
|
52
|
+
exports.persistMirrorEntries = persistMirrorEntries;
|
|
53
|
+
const fs = __importStar(require("fs"));
|
|
54
|
+
const path = __importStar(require("path"));
|
|
55
|
+
/** Conventional location of the coordination manifest. */
|
|
56
|
+
exports.COORDINATION_FILE = path.join('.augment', 'coordination.json');
|
|
57
|
+
/**
|
|
58
|
+
* Read the coordination manifest, returning `null` when the file is absent.
|
|
59
|
+
* Unlike `utils/file-tracking.ts`, this helper does not throw on absence,
|
|
60
|
+
* because `augx link --mirror` may run before the manifest is bootstrapped.
|
|
61
|
+
*/
|
|
62
|
+
function readMirrorManifest(projectRoot) {
|
|
63
|
+
const fp = path.join(projectRoot, exports.COORDINATION_FILE);
|
|
64
|
+
if (!fs.existsSync(fp)) {
|
|
65
|
+
return { manifest: {}, existed: false };
|
|
66
|
+
}
|
|
67
|
+
const raw = fs.readFileSync(fp, 'utf-8').replace(/^\uFEFF/, '');
|
|
68
|
+
if (raw.trim().length === 0) {
|
|
69
|
+
return { manifest: {}, existed: true };
|
|
70
|
+
}
|
|
71
|
+
const parsed = JSON.parse(raw);
|
|
72
|
+
return { manifest: parsed, existed: true };
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Recursively reorder object keys alphabetically so the on-disk manifest
|
|
76
|
+
* has a stable diff regardless of insertion order. Arrays are preserved
|
|
77
|
+
* in-place because semantic ordering belongs to their callers.
|
|
78
|
+
*/
|
|
79
|
+
function sortKeysDeep(value) {
|
|
80
|
+
if (Array.isArray(value)) {
|
|
81
|
+
return value.map((v) => sortKeysDeep(v));
|
|
82
|
+
}
|
|
83
|
+
if (value && typeof value === 'object') {
|
|
84
|
+
const record = value;
|
|
85
|
+
const sorted = {};
|
|
86
|
+
for (const key of Object.keys(record).sort()) {
|
|
87
|
+
sorted[key] = sortKeysDeep(record[key]);
|
|
88
|
+
}
|
|
89
|
+
return sorted;
|
|
90
|
+
}
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Write the manifest back with 2-space indent, LF line endings, sorted
|
|
95
|
+
* keys, and a trailing newline. Creates `.augment/` when missing so the
|
|
96
|
+
* first `--mirror` invocation in a fresh project bootstraps cleanly.
|
|
97
|
+
*/
|
|
98
|
+
function writeMirrorManifest(projectRoot, manifest) {
|
|
99
|
+
const fp = path.join(projectRoot, exports.COORDINATION_FILE);
|
|
100
|
+
fs.mkdirSync(path.dirname(fp), { recursive: true });
|
|
101
|
+
const sorted = sortKeysDeep(manifest);
|
|
102
|
+
const payload = JSON.stringify(sorted, null, 2).replace(/\r\n?/g, '\n') + '\n';
|
|
103
|
+
fs.writeFileSync(fp, payload, { encoding: 'utf-8' });
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Replace the `mirrors[<moduleId>]` list with `entries`. Removes the key
|
|
107
|
+
* when `entries` is empty, and removes the entire `mirrors` block when no
|
|
108
|
+
* modules remain. Returns the updated manifest for the writer.
|
|
109
|
+
*/
|
|
110
|
+
function setMirrorEntries(manifest, moduleId, entries) {
|
|
111
|
+
const next = { ...manifest };
|
|
112
|
+
const mirrors = { ...(next.mirrors ?? {}) };
|
|
113
|
+
if (entries.length === 0) {
|
|
114
|
+
delete mirrors[moduleId];
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
mirrors[moduleId] = [...entries];
|
|
118
|
+
}
|
|
119
|
+
if (Object.keys(mirrors).length === 0) {
|
|
120
|
+
delete next.mirrors;
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
next.mirrors = mirrors;
|
|
124
|
+
}
|
|
125
|
+
return next;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Look up previously-recorded entries for a module and return them keyed
|
|
129
|
+
* by `targetPath`. Used by the mirror runner to honor a recorded `mode`
|
|
130
|
+
* across re-runs (`symlink` once succeeded, `copy` once fell back).
|
|
131
|
+
*/
|
|
132
|
+
function recordedEntriesByTarget(manifest, moduleId) {
|
|
133
|
+
const map = new Map();
|
|
134
|
+
const list = manifest.mirrors?.[moduleId] ?? [];
|
|
135
|
+
for (const entry of list) {
|
|
136
|
+
map.set(entry.targetPath, entry);
|
|
137
|
+
}
|
|
138
|
+
return map;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Convenience: read manifest, apply `entries` to `moduleId`, and write
|
|
142
|
+
* back. Returns the resulting manifest (post-sort) for tests that want to
|
|
143
|
+
* assert on serialized output.
|
|
144
|
+
*/
|
|
145
|
+
function persistMirrorEntries(projectRoot, moduleId, entries) {
|
|
146
|
+
const { manifest } = readMirrorManifest(projectRoot);
|
|
147
|
+
const next = setMirrorEntries(manifest, moduleId, entries);
|
|
148
|
+
writeMirrorManifest(projectRoot, next);
|
|
149
|
+
return next;
|
|
150
|
+
}
|
|
151
|
+
//# sourceMappingURL=mirror-coordination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mirror-coordination.js","sourceRoot":"","sources":["../../src/lib/mirror-coordination.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BH,gDAaC;AA2BD,kDASC;AAOD,4CAkBC;AAOD,0DAUC;AAOD,oDASC;AApID,uCAAyB;AACzB,2CAA6B;AAM7B,0DAA0D;AAC7C,QAAA,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAC;AAY5E;;;;GAIG;AACH,SAAgB,kBAAkB,CAChC,WAAmB;IAEnB,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,yBAAiB,CAAC,CAAC;IACrD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC;QACvB,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC1C,CAAC;IACD,MAAM,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IAChE,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC5B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACzC,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAmB,CAAC;IACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC7C,CAAC;AAED;;;;GAIG;AACH,SAAS,YAAY,CAAI,KAAQ;IAC/B,I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C;AACd,CAAC"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mirror runner for `augx link --mirror`.
|
|
3
|
+
*
|
|
4
|
+
* Materializes a resolved module's `rules/` content into the native rule
|
|
5
|
+
* locations of each requested target tool. Symlinks are attempted first;
|
|
6
|
+
* the runner falls back to a deterministic copy when symlink creation is
|
|
7
|
+
* unavailable (Windows without Developer Mode, restricted filesystems).
|
|
8
|
+
*
|
|
9
|
+
* The runner persists every materialized destination under
|
|
10
|
+
* `.augment/coordination.json#mirrors[<moduleId>]` so that subsequent
|
|
11
|
+
* `augx link` and `augx unlink` invocations can honor the recorded mode
|
|
12
|
+
* and prune stale entries.
|
|
13
|
+
*
|
|
14
|
+
* See: openspec/specs/cross-platform/mirror-hook.md
|
|
15
|
+
* See: openspec/specs/cross-platform/coordination-export-block.md
|
|
16
|
+
*/
|
|
17
|
+
import type { ResolvedModule } from '../adapters/types';
|
|
18
|
+
import type { MirrorEntry, MirrorMode, MirrorTool } from '../types/coordination-export';
|
|
19
|
+
/** Result of materializing a single (sourceAbs, targetAbs) pair. */
|
|
20
|
+
export interface MaterializeResult {
|
|
21
|
+
mode: MirrorMode;
|
|
22
|
+
/** True when the target already existed and matched the source. */
|
|
23
|
+
reused: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface MaterializeOptions {
|
|
26
|
+
/** When set, force this mode instead of attempting symlink-first. */
|
|
27
|
+
recordedMode?: MirrorMode;
|
|
28
|
+
/** When true, refuse to overwrite an unknown existing target. */
|
|
29
|
+
safeOverwrite?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Materialize a single source file at the given target path. Tries symlink
|
|
33
|
+
* first unless `recordedMode === 'copy'`, then falls back to copy on the
|
|
34
|
+
* permission errnos catalogued in `SYMLINK_FALLBACK_CODES`. Idempotent: an
|
|
35
|
+
* existing target whose contents match the source is left alone.
|
|
36
|
+
*/
|
|
37
|
+
export declare function materializeFile(sourceAbs: string, targetAbs: string, options?: MaterializeOptions): MaterializeResult;
|
|
38
|
+
/** Project-root-relative forward-slash path used in `mirrors[]` entries. */
|
|
39
|
+
export declare function relativeForward(projectRoot: string, absPath: string): string;
|
|
40
|
+
/**
|
|
41
|
+
* Compose the per-module aggregated body emitted by single-file mirror
|
|
42
|
+
* targets (cursor, windsurf, copilot). Uses the shared `aggregate`
|
|
43
|
+
* function so a mirror file for one module is structurally identical to
|
|
44
|
+
* an `augx export` output that happens to contain only that module.
|
|
45
|
+
*/
|
|
46
|
+
export declare function renderSingleModuleFile(module: ResolvedModule, tool: MirrorTool, options: {
|
|
47
|
+
augxVersion: string;
|
|
48
|
+
projectRoot: string;
|
|
49
|
+
ignorePatterns: readonly string[];
|
|
50
|
+
now: () => string;
|
|
51
|
+
}): string;
|
|
52
|
+
/**
|
|
53
|
+
* Produce the desired `MirrorEntry[]` for one module under one tool. For
|
|
54
|
+
* claude-code, returns one entry per rule file (directory mirror). For the
|
|
55
|
+
* single-file tools (cursor / windsurf / copilot), returns exactly one
|
|
56
|
+
* entry pointing at the per-module aggregated file.
|
|
57
|
+
*/
|
|
58
|
+
export declare function computeDesiredEntries(projectRoot: string, module: ResolvedModule, tool: MirrorTool): Array<{
|
|
59
|
+
sourceAbs: string;
|
|
60
|
+
targetAbs: string;
|
|
61
|
+
entry: Omit<MirrorEntry, 'mode'>;
|
|
62
|
+
}>;
|
|
63
|
+
/** Inputs threaded through `mirrorModule` for a single tool. */
|
|
64
|
+
export interface MirrorToolContext {
|
|
65
|
+
projectRoot: string;
|
|
66
|
+
augxVersion: string;
|
|
67
|
+
ignorePatterns: readonly string[];
|
|
68
|
+
now: () => string;
|
|
69
|
+
force?: boolean;
|
|
70
|
+
verbose?: boolean;
|
|
71
|
+
/** Existing mirror entries from `mirrors[<moduleId>]`, keyed by targetPath. */
|
|
72
|
+
recordedByTarget: Map<string, MirrorEntry>;
|
|
73
|
+
/** Optional logger; defaults to a no-op. */
|
|
74
|
+
log?: (message: string) => void;
|
|
75
|
+
}
|
|
76
|
+
/** Returned by `mirrorModule` for caller persistence. */
|
|
77
|
+
export interface MirrorModuleResult {
|
|
78
|
+
/** Final `MirrorEntry[]` for this module across all tools, sorted. */
|
|
79
|
+
entries: MirrorEntry[];
|
|
80
|
+
/** Tools that produced a CLAUDE.md include stub for this module. */
|
|
81
|
+
claudeStubsAdded: boolean;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Materialize one module across every requested tool. Pure-ish: filesystem
|
|
85
|
+
* I/O is bounded to the tools' destination paths; caller is responsible for
|
|
86
|
+
* coordinating the project-wide `mirrors[]` persistence.
|
|
87
|
+
*/
|
|
88
|
+
export declare function mirrorModule(module: ResolvedModule, tools: readonly MirrorTool[], ctx: MirrorToolContext): MirrorModuleResult;
|
|
89
|
+
/**
|
|
90
|
+
* Delete a materialized target if it still matches what `augx link` wrote
|
|
91
|
+
* (an unmodified symlink or content-equal copy). Returns `true` when the
|
|
92
|
+
* destination was removed; returns `false` when the file appears to be
|
|
93
|
+
* hand-edited, in which case the caller leaves it in place.
|
|
94
|
+
*/
|
|
95
|
+
export declare function removeTrackedTarget(sourceAbs: string, targetAbs: string, recordedMode: MirrorMode, sourceDigest?: string): boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Maintain the CLAUDE.md include stub for a mirrored module. Idempotent:
|
|
98
|
+
* the stub is added on first call and left alone on subsequent calls.
|
|
99
|
+
* `mode === 'remove'` strips an existing stub (used by `augx unlink` once
|
|
100
|
+
* Phase 3-4 lands).
|
|
101
|
+
*/
|
|
102
|
+
export declare function ensureClaudeIncludeStub(projectRoot: string, moduleId: string, mode: 'add' | 'remove'): void;
|
|
103
|
+
/** Outcome of cleaning up one previously-tracked mirror target. */
|
|
104
|
+
export interface UnlinkTargetOutcome {
|
|
105
|
+
tool: MirrorTool;
|
|
106
|
+
targetPath: string;
|
|
107
|
+
status: 'removed' | 'kept-hand-edited' | 'absent';
|
|
108
|
+
}
|
|
109
|
+
/** Aggregate outcome of `unlinkModuleMirrors`. */
|
|
110
|
+
export interface UnlinkModuleResult {
|
|
111
|
+
outcomes: UnlinkTargetOutcome[];
|
|
112
|
+
claudeStubRemoved: boolean;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Clean up every materialized target recorded for `moduleId`. Symlinks
|
|
116
|
+
* pointing at the recorded source and unchanged copies are deleted; files
|
|
117
|
+
* whose content has drifted are left in place and reported as
|
|
118
|
+
* `kept-hand-edited`. Removes empty parent directories (per-tool roots
|
|
119
|
+
* such as `.claude/rules/<module>/`). The CLAUDE.md include stub is
|
|
120
|
+
* stripped when at least one claude-code entry was recorded.
|
|
121
|
+
*/
|
|
122
|
+
export declare function unlinkModuleMirrors(projectRoot: string, moduleId: string, entries: readonly MirrorEntry[]): UnlinkModuleResult;
|
|
123
|
+
//# sourceMappingURL=mirror-runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mirror-runner.d.ts","sourceRoot":"","sources":["../../src/lib/mirror-runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,UAAU,EACX,MAAM,8BAA8B,CAAC;AAkFtC,oEAAoE;AACpE,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,UAAU,CAAC;IACjB,mEAAmE;IACnE,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,qEAAqE;IACrE,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,iEAAiE;IACjE,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,kBAAuB,GAC/B,iBAAiB,CA2BnB;AAuCD,4EAA4E;AAC5E,wBAAgB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