diffdoc 0.4.1 → 0.4.2
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/dist/commands/embed.js +3 -7
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/commands/embed.js
CHANGED
|
@@ -50,12 +50,8 @@ async function readSummaryAsset(summaryPath) {
|
|
|
50
50
|
raw_code_snapshot: typeof parsed.raw_code_snapshot === "string" ? parsed.raw_code_snapshot : undefined
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
function buildDocument(filePath, summaryText
|
|
54
|
-
|
|
55
|
-
if (rawCodeSnapshot) {
|
|
56
|
-
output += `\n\nCode Snapshot:\n\`\`\`\n${rawCodeSnapshot}\n\`\`\``;
|
|
57
|
-
}
|
|
58
|
-
return output;
|
|
53
|
+
function buildDocument(filePath, summaryText) {
|
|
54
|
+
return `File: ${filePath}\nSummary: ${summaryText}`;
|
|
59
55
|
}
|
|
60
56
|
async function runEmbed(options, config) {
|
|
61
57
|
const manifestPath = (0, paths_1.resolveDiffdocArtifactPath)(options.manifest, config.baseDir);
|
|
@@ -100,7 +96,7 @@ async function runEmbed(options, config) {
|
|
|
100
96
|
hash,
|
|
101
97
|
summaryText: summaryAsset.summary,
|
|
102
98
|
rawCodeSnapshot: summaryAsset.raw_code_snapshot,
|
|
103
|
-
document: buildDocument(filePath, summaryAsset.summary
|
|
99
|
+
document: buildDocument(filePath, summaryAsset.summary)
|
|
104
100
|
});
|
|
105
101
|
}
|
|
106
102
|
const activePathSet = new Set(entries.map(([filePath]) => filePath));
|
package/dist/index.js
CHANGED
|
@@ -42,7 +42,7 @@ function addCloudEndpointAndKeyOptions(command) {
|
|
|
42
42
|
program
|
|
43
43
|
.name("diffdoc")
|
|
44
44
|
.description("Translate repository code shifts into plain-English business context")
|
|
45
|
-
.version("0.4.
|
|
45
|
+
.version("0.4.2");
|
|
46
46
|
program
|
|
47
47
|
.command("init")
|
|
48
48
|
.description("Initialize DiffDoc configuration for this repository")
|