@swarmvaultai/engine 0.1.10 → 0.1.11
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/index.js +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4605,6 +4605,7 @@ async function syncVaultArtifacts(rootDir, input) {
|
|
|
4605
4605
|
const promotedPageIds = [];
|
|
4606
4606
|
const candidateHistory = {};
|
|
4607
4607
|
const records = [];
|
|
4608
|
+
const promoteCandidates = input.promoteCandidates ?? true;
|
|
4608
4609
|
for (const manifest of input.manifests) {
|
|
4609
4610
|
const analysis = input.analyses.find((item) => item.sourceId === manifest.sourceId);
|
|
4610
4611
|
if (!analysis) {
|
|
@@ -4723,7 +4724,7 @@ async function syncVaultArtifacts(rootDir, input) {
|
|
|
4723
4724
|
const projectIds = scopedProjectIdsFromSources(sourceIds, input.sourceProjects);
|
|
4724
4725
|
const schemaHash = effectiveHashForProject(input.schemas, projectIds[0] ?? null);
|
|
4725
4726
|
const previousEntry = input.previousState?.candidateHistory?.[pageId];
|
|
4726
|
-
const promoted = previousEntry?.status === "active" || shouldPromoteCandidate(previousEntry, sourceIds);
|
|
4727
|
+
const promoted = previousEntry?.status === "active" || promoteCandidates && shouldPromoteCandidate(previousEntry, sourceIds);
|
|
4727
4728
|
const relativePath = promoted ? activeAggregatePath(itemKind, slug) : candidatePagePathFor(itemKind, slug);
|
|
4728
4729
|
const fallbackPaths = [
|
|
4729
4730
|
path13.join(paths.wikiDir, activeAggregatePath(itemKind, slug)),
|
|
@@ -5355,7 +5356,8 @@ async function refreshVaultAfterOutputSave(rootDir) {
|
|
|
5355
5356
|
outputHashes: pageHashes(storedOutputs),
|
|
5356
5357
|
insightHashes: pageHashes(storedInsights),
|
|
5357
5358
|
previousState: await readJsonFile(paths.compileStatePath),
|
|
5358
|
-
approve: false
|
|
5359
|
+
approve: false,
|
|
5360
|
+
promoteCandidates: false
|
|
5359
5361
|
});
|
|
5360
5362
|
}
|
|
5361
5363
|
function resolveApprovalTargets(manifest, targets) {
|
|
@@ -6529,7 +6531,7 @@ async function bootstrapDemo(rootDir, input) {
|
|
|
6529
6531
|
}
|
|
6530
6532
|
|
|
6531
6533
|
// src/mcp.ts
|
|
6532
|
-
var SERVER_VERSION = "0.1.
|
|
6534
|
+
var SERVER_VERSION = "0.1.11";
|
|
6533
6535
|
async function createMcpServer(rootDir) {
|
|
6534
6536
|
const server = new McpServer({
|
|
6535
6537
|
name: "swarmvault",
|