@mytechtoday/augment-extensions 3.1.0 → 3.2.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 +123 -0
- package/README.md +981 -32
- 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/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/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/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 +62 -35
- 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/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.d.ts +3 -1
- package/cli/dist/commands/gui.d.ts.map +1 -1
- package/cli/dist/commands/gui.js +263 -22
- 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 +95 -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 +3 -0
- package/cli/dist/commands/link.d.ts.map +1 -1
- package/cli/dist/commands/link.js +126 -16
- 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/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.map +1 -1
- package/cli/dist/commands/unlink.js +38 -2
- 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/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.map +1 -1
- 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.map +1 -1
- package/cli/dist/utils/extractCommandHelp.js +8 -2
- 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.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 +20 -0
- package/cli/dist/utils/install-rules.d.ts.map +1 -1
- package/cli/dist/utils/install-rules.js +367 -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 +5 -0
- package/cli/dist/utils/module-system.d.ts.map +1 -1
- package/cli/dist/utils/module-system.js +113 -29
- package/cli/dist/utils/module-system.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 +21 -4
- package/package.json +138 -140
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Export runner: aggregator + drift detection + writer for `augx export`.
|
|
4
|
+
*
|
|
5
|
+
* This module orchestrates the impure parts of the pipeline. Adapters and
|
|
6
|
+
* `source-hash` remain pure; this file owns all filesystem I/O, timestamp
|
|
7
|
+
* generation, and exit-code semantics.
|
|
8
|
+
*
|
|
9
|
+
* See: openspec/specs/cross-platform/export-command.md
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EXIT = void 0;
|
|
13
|
+
exports.buildExportMeta = buildExportMeta;
|
|
14
|
+
exports.aggregate = aggregate;
|
|
15
|
+
exports.substituteGeneratedAt = substituteGeneratedAt;
|
|
16
|
+
exports.assessDrift = assessDrift;
|
|
17
|
+
const banner_1 = require("../adapters/banner");
|
|
18
|
+
const source_hash_1 = require("./source-hash");
|
|
19
|
+
const module_resolver_1 = require("./module-resolver");
|
|
20
|
+
/** Exit-code constants matching the export-command spec. */
|
|
21
|
+
exports.EXIT = {
|
|
22
|
+
OK: 0,
|
|
23
|
+
USAGE: 1,
|
|
24
|
+
RESOLUTION: 2,
|
|
25
|
+
DRIFT: 3,
|
|
26
|
+
IO: 4,
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Build the `ExportMeta` shared by every target in a single export run.
|
|
30
|
+
* The source-hash is identical across targets because adapter output is
|
|
31
|
+
* not part of the hash inputs.
|
|
32
|
+
*/
|
|
33
|
+
function buildExportMeta(inputs) {
|
|
34
|
+
const moduleEntries = inputs.modules
|
|
35
|
+
.map((m) => ({
|
|
36
|
+
id: m.id,
|
|
37
|
+
version: m.version,
|
|
38
|
+
contentDigest: (0, module_resolver_1.computeContentDigest)(m.rulesFiles),
|
|
39
|
+
}))
|
|
40
|
+
.sort((a, b) => (a.id < b.id ? -1 : a.id > b.id ? 1 : 0));
|
|
41
|
+
const sourceHash = (0, source_hash_1.computeSourceHash)({
|
|
42
|
+
modules: moduleEntries,
|
|
43
|
+
ignorePatterns: [...inputs.ignorePatterns],
|
|
44
|
+
});
|
|
45
|
+
return {
|
|
46
|
+
augxVersion: inputs.augxVersion,
|
|
47
|
+
generatedAt: inputs.now(),
|
|
48
|
+
sourceHash,
|
|
49
|
+
modules: moduleEntries.map((m) => ({ id: m.id, version: m.version })),
|
|
50
|
+
mcpSnippet: inputs.mcpSnippet,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Render the complete file body for a given adapter using the provided
|
|
55
|
+
* meta. Pure: depends only on its arguments.
|
|
56
|
+
*/
|
|
57
|
+
function aggregate(adapter, meta, modules) {
|
|
58
|
+
let out = adapter.renderHeader(meta);
|
|
59
|
+
out += banner_1.LF + banner_1.SECTION_SEPARATOR;
|
|
60
|
+
for (const module of modules) {
|
|
61
|
+
out +=
|
|
62
|
+
banner_1.LF +
|
|
63
|
+
(0, banner_1.renderModuleHeading)(module) +
|
|
64
|
+
banner_1.LF +
|
|
65
|
+
adapter.renderModule(module) +
|
|
66
|
+
banner_1.LF +
|
|
67
|
+
banner_1.SECTION_SEPARATOR;
|
|
68
|
+
}
|
|
69
|
+
out += banner_1.LF + adapter.renderFooter(meta);
|
|
70
|
+
return out;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Replace the value of the `generated-at` banner comment in `content`
|
|
74
|
+
* with `replacement`. If no banner is present, returns `content` unchanged.
|
|
75
|
+
*/
|
|
76
|
+
function substituteGeneratedAt(content, replacement) {
|
|
77
|
+
return content.replace(/(<!--\s*generated-at:\s*)([^>]+?)(\s*-->)/i, (_full, head, _ts, tail) => `${head}${replacement}${tail}`);
|
|
78
|
+
}
|
|
79
|
+
function assessDrift(existing, freshContent, newSourceHash) {
|
|
80
|
+
if (existing === null) {
|
|
81
|
+
return { status: 'regenerate', newContent: freshContent };
|
|
82
|
+
}
|
|
83
|
+
const embeddedHash = (0, source_hash_1.extractEmbeddedHash)(existing);
|
|
84
|
+
if (!embeddedHash) {
|
|
85
|
+
return {
|
|
86
|
+
status: 'drift',
|
|
87
|
+
newContent: freshContent,
|
|
88
|
+
reason: 'existing file has no augx source-hash banner',
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
const truncatedNew = newSourceHash
|
|
92
|
+
.slice(0, source_hash_1.SOURCE_HASH_HEX_LENGTH)
|
|
93
|
+
.toLowerCase();
|
|
94
|
+
if (embeddedHash !== truncatedNew) {
|
|
95
|
+
return { status: 'regenerate', newContent: freshContent };
|
|
96
|
+
}
|
|
97
|
+
// Hash matches; only difference allowed is the generated-at timestamp.
|
|
98
|
+
const existingTimestamp = existing.match(/<!--\s*generated-at:\s*([^>]+?)\s*-->/i)?.[1];
|
|
99
|
+
const reconstructed = existingTimestamp
|
|
100
|
+
? substituteGeneratedAt(freshContent, existingTimestamp)
|
|
101
|
+
: freshContent;
|
|
102
|
+
if (reconstructed === existing) {
|
|
103
|
+
return { status: 'equivalent', newContent: reconstructed };
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
status: 'drift',
|
|
107
|
+
newContent: freshContent,
|
|
108
|
+
reason: 'existing file body differs from regenerated content',
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=export-runner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-runner.js","sourceRoot":"","sources":["../../src/lib/export-runner.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AA0DH,0CAqBC;AAMD,8BAkBC;AAMD,sDAQC;AAoBD,kCAqCC;AAzKD,+CAI4B;AAC5B,+CAIuB;AACvB,uDAAyD;AAGzD,4DAA4D;AAC/C,QAAA,IAAI,GAAG;IAClB,EAAE,EAAE,CAAC;IACL,KAAK,EAAE,CAAC;IACR,UAAU,EAAE,CAAC;IACb,KAAK,EAAE,CAAC;IACR,EAAE,EAAE,CAAC;CACG,CAAC;AA4BX;;;;GAIG;AACH,SAAgB,eAAe,CAAC,MAAuB;IACrD,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO;SACjC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACX,EAAE,EAAE,CAAC,CAAC,EAAE;QACR,OAAO,EAAE,CAAC,CAAC,OAAO;QAClB,aAAa,EAAE,IAAA,sCAAoB,EAAC,CAAC,CAAC,UAAU,CAAC;KAClD,CAAC,CAAC;SACF,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EA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AU,EAAE,YAAY;QACxB,MAAM,EAAE,qDAAqD;KAC9D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP wiring detection for the cross-platform export pipeline.
|
|
3
|
+
*
|
|
4
|
+
* Determines whether a Beads MCP server is declared in this project. The
|
|
5
|
+
* runner inlines the MCP wiring snippet into exported files only when
|
|
6
|
+
* detection returns `true`. Detection itself never makes a network call
|
|
7
|
+
* or spawns a process; it only inspects the two well-known config files.
|
|
8
|
+
*
|
|
9
|
+
* See: openspec/specs/cross-platform/mcp-template.md
|
|
10
|
+
*/
|
|
11
|
+
/** Canonical server id recognized by the Beads MCP wiring detector. */
|
|
12
|
+
export declare const BEADS_MCP_ID = "beads";
|
|
13
|
+
/**
|
|
14
|
+
* Return `true` when either `.vscode/mcp.json` or `.augment/mcp/servers.json`
|
|
15
|
+
* declares an MCP server whose id (or name/key) is `beads`. The check is
|
|
16
|
+
* tolerant of the two common shapes:
|
|
17
|
+
* { "servers": { "beads": {...} } }
|
|
18
|
+
* { "mcpServers": { "beads": {...} } }
|
|
19
|
+
* { "servers": [ { "id": "beads", ... }, ... ] }
|
|
20
|
+
*/
|
|
21
|
+
export declare function hasBeadsMcpServer(projectRoot: string): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Canonical Beads MCP snippet body. Mirrors the content required by
|
|
24
|
+
* `openspec/specs/cross-platform/mcp-template.md`. Used as the fallback
|
|
25
|
+
* when the canonical template file is not yet present on disk (Phase 4
|
|
26
|
+
* delivers the on-disk template; the runner ships with this string so
|
|
27
|
+
* exports work end-to-end ahead of Phase 4).
|
|
28
|
+
*/
|
|
29
|
+
export declare const BEADS_MCP_SNIPPET_FALLBACK: string;
|
|
30
|
+
/**
|
|
31
|
+
* Canonical on-disk location of the MCP template (Phase 4 deliverable).
|
|
32
|
+
*/
|
|
33
|
+
export declare const BEADS_MCP_TEMPLATE_PATH: string;
|
|
34
|
+
/**
|
|
35
|
+
* Load the MCP snippet body. Prefers the on-disk template; falls back to
|
|
36
|
+
* the embedded canonical string. Returns `undefined` only when the caller
|
|
37
|
+
* has already determined that no Beads MCP server is declared.
|
|
38
|
+
*/
|
|
39
|
+
export declare function loadBeadsMcpSnippet(projectRoot: string): string;
|
|
40
|
+
//# sourceMappingURL=mcp-detection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-detection.d.ts","sourceRoot":"","sources":["../../src/lib/mcp-detection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAaH,uEAAuE;AACvE,eAAO,MAAM,YAAY,UAAU,CAAC;AAEpC;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAO9D;AA6CD;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,QAoB3B,CAAC;AAEb;;GAEG;AACH,eAAO,MAAM,uBAAuB,QAMnC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAU/D"}
|
|
@@ -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;;;;;;;G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,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;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