@swarmvaultai/engine 3.16.0 → 3.17.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/dist/chunk-65IRGGXX.js +27576 -0
- package/dist/chunk-HORJDLXV.js +27614 -0
- package/dist/chunk-JEWLYIHN.js +27619 -0
- package/dist/chunk-VSDBQVSE.js +27584 -0
- package/dist/hooks/claude.js +236 -19
- package/dist/hooks/codex.js +134 -6
- package/dist/hooks/copilot.js +95 -3
- package/dist/hooks/gemini.js +153 -5
- package/dist/hooks/opencode.js +4 -2
- package/dist/index.d.ts +22 -1
- package/dist/index.js +272 -14
- package/dist/memory-GFOW2QWQ.js +32 -0
- package/dist/memory-GSCQ6F53.js +32 -0
- package/dist/memory-HMP3Y4PQ.js +32 -0
- package/dist/memory-PQWSJ4RR.js +32 -0
- package/dist/viewer/assets/{index-Cq5HAlrV.js → index-BZE-2FtS.js} +37 -37
- package/dist/viewer/index.html +1 -1
- package/dist/viewer/lib.js +29 -1
- package/package.json +3 -3
package/dist/hooks/gemini.js
CHANGED
|
@@ -57,6 +57,10 @@ function resolveToolName(input) {
|
|
|
57
57
|
const shaped = input ?? {};
|
|
58
58
|
return String(shaped.toolName ?? shaped.tool_name ?? shaped.tool?.name ?? shaped.name ?? "");
|
|
59
59
|
}
|
|
60
|
+
function resolveToolInput(input) {
|
|
61
|
+
const shaped = input ?? {};
|
|
62
|
+
return shaped.toolInput ?? shaped.tool_input ?? {};
|
|
63
|
+
}
|
|
60
64
|
async function hasReport(cwd) {
|
|
61
65
|
try {
|
|
62
66
|
await fs.access(reportPath(cwd));
|
|
@@ -96,6 +100,102 @@ async function resetSession(cwd, agentKey) {
|
|
|
96
100
|
function isBroadSearchTool(toolName) {
|
|
97
101
|
return /grep|glob|search|find/i.test(toolName);
|
|
98
102
|
}
|
|
103
|
+
function collectCommandCandidates(node, acc = []) {
|
|
104
|
+
if (!node || typeof node !== "object") {
|
|
105
|
+
return acc;
|
|
106
|
+
}
|
|
107
|
+
if (Array.isArray(node)) {
|
|
108
|
+
for (const item of node) {
|
|
109
|
+
collectCommandCandidates(item, acc);
|
|
110
|
+
}
|
|
111
|
+
return acc;
|
|
112
|
+
}
|
|
113
|
+
for (const [key, value] of Object.entries(node)) {
|
|
114
|
+
if (["command", "cmd", "script", "bash", "shell"].includes(key) && typeof value === "string") {
|
|
115
|
+
acc.push(value);
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
collectCommandCandidates(value, acc);
|
|
119
|
+
}
|
|
120
|
+
return acc;
|
|
121
|
+
}
|
|
122
|
+
var VAULT_ARTIFACT_SEGMENTS = ["wiki", "raw", "state", "agent", "inbox"];
|
|
123
|
+
function isVaultArtifactSearch(input, cwd) {
|
|
124
|
+
const artifactRoot = artifactRootDir(cwd);
|
|
125
|
+
const candidates = [...collectCandidatePaths(input), ...collectCommandCandidates(input)];
|
|
126
|
+
return candidates.some((candidate) => {
|
|
127
|
+
if (typeof candidate !== "string" || candidate.length === 0) {
|
|
128
|
+
return false;
|
|
129
|
+
}
|
|
130
|
+
const normalized = candidate.replaceAll("\\", "/");
|
|
131
|
+
if (VAULT_ARTIFACT_SEGMENTS.some(
|
|
132
|
+
(segment) => normalized.includes(`${segment}/`) && normalized.match(new RegExp(`(^|[\\s'"=/])${segment}/`))
|
|
133
|
+
)) {
|
|
134
|
+
return true;
|
|
135
|
+
}
|
|
136
|
+
const resolved = path.resolve(cwd, candidate);
|
|
137
|
+
return VAULT_ARTIFACT_SEGMENTS.some(
|
|
138
|
+
(segment) => resolved.startsWith(path.join(artifactRoot, segment) + path.sep) || resolved === path.join(artifactRoot, segment)
|
|
139
|
+
);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
async function isNarrowSearch(input) {
|
|
143
|
+
const toolInput = resolveToolInput(input);
|
|
144
|
+
const candidate = toolInput?.path;
|
|
145
|
+
if (typeof candidate !== "string" || candidate.length === 0) {
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
try {
|
|
149
|
+
const stats = await fs.stat(candidate);
|
|
150
|
+
return stats.isFile();
|
|
151
|
+
} catch {
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
async function resolveGraphFirstMode(cwd) {
|
|
156
|
+
const fromEnv = process.env.SWARMVAULT_GRAPH_FIRST?.trim().toLowerCase();
|
|
157
|
+
if (fromEnv === "deny" || fromEnv === "context" || fromEnv === "off") {
|
|
158
|
+
return fromEnv;
|
|
159
|
+
}
|
|
160
|
+
try {
|
|
161
|
+
const raw = await fs.readFile(path.join(cwd, "swarmvault.config.json"), "utf8");
|
|
162
|
+
const parsed = JSON.parse(raw);
|
|
163
|
+
const fromConfig = typeof parsed?.hooks?.graphFirst === "string" ? parsed.hooks.graphFirst.toLowerCase() : "";
|
|
164
|
+
if (fromConfig === "deny" || fromConfig === "context" || fromConfig === "off") {
|
|
165
|
+
return fromConfig;
|
|
166
|
+
}
|
|
167
|
+
} catch {
|
|
168
|
+
}
|
|
169
|
+
return "deny";
|
|
170
|
+
}
|
|
171
|
+
async function readWatchStaleness(cwd) {
|
|
172
|
+
const watchDir = path.join(artifactRootDir(cwd), "state", "watch");
|
|
173
|
+
let lastRunAt;
|
|
174
|
+
let lastRunSuccess;
|
|
175
|
+
let pendingCount = 0;
|
|
176
|
+
let found = false;
|
|
177
|
+
try {
|
|
178
|
+
const raw = await fs.readFile(path.join(watchDir, "status.json"), "utf8");
|
|
179
|
+
const parsed = JSON.parse(raw);
|
|
180
|
+
lastRunAt = typeof parsed?.lastRun?.finishedAt === "string" ? parsed.lastRun.finishedAt : void 0;
|
|
181
|
+
lastRunSuccess = typeof parsed?.lastRun?.success === "boolean" ? parsed.lastRun.success : void 0;
|
|
182
|
+
found = true;
|
|
183
|
+
} catch {
|
|
184
|
+
}
|
|
185
|
+
try {
|
|
186
|
+
const raw = await fs.readFile(path.join(watchDir, "pending-semantic-refresh.json"), "utf8");
|
|
187
|
+
const parsed = JSON.parse(raw);
|
|
188
|
+
if (Array.isArray(parsed)) {
|
|
189
|
+
pendingCount = parsed.length;
|
|
190
|
+
found = true;
|
|
191
|
+
}
|
|
192
|
+
} catch {
|
|
193
|
+
}
|
|
194
|
+
if (!found) {
|
|
195
|
+
return null;
|
|
196
|
+
}
|
|
197
|
+
return { lastRunAt, lastRunSuccess, pendingSemanticRefreshCount: pendingCount };
|
|
198
|
+
}
|
|
99
199
|
async function readHookInput() {
|
|
100
200
|
let body = "";
|
|
101
201
|
for await (const chunk of process.stdin) {
|
|
@@ -110,7 +210,52 @@ async function readHookInput() {
|
|
|
110
210
|
return {};
|
|
111
211
|
}
|
|
112
212
|
}
|
|
113
|
-
var
|
|
213
|
+
var GRAPH_FIRST_COMMANDS = [
|
|
214
|
+
'- `swarmvault graph query "<seed>"` \u2014 top matches with page paths plus an inline excerpt of the best page; usually answers where-is/what-calls in one command',
|
|
215
|
+
'- `swarmvault graph explain "<node>"` \u2014 compact node summary with neighbors and its wiki page',
|
|
216
|
+
"- `swarmvault graph blast <target>` \u2014 reverse-import impact analysis for change-impact questions",
|
|
217
|
+
"- `wiki/graph/report.md` \u2014 orientation report (architecture, communities, key nodes)",
|
|
218
|
+
"Do not add `--json` to these \u2014 the plain output is far smaller and already structured.",
|
|
219
|
+
"Trust the graph/wiki answer for orientation questions; verify in source only when you are about to edit or the evidence conflicts. Answer directly in chat \u2014 do not write answer files unless asked for a durable artifact."
|
|
220
|
+
];
|
|
221
|
+
function buildGraphFirstNote(staleness) {
|
|
222
|
+
const lines = [
|
|
223
|
+
"This repo has a SwarmVault code graph. To save tokens, answer code-understanding questions (where is X, what calls Y, how is Z structured, impact of changing W) from the graph instead of reading or grepping source files:",
|
|
224
|
+
...GRAPH_FIRST_COMMANDS,
|
|
225
|
+
"Read source files directly only when you are about to edit them, or when the graph lacks the detail you need.",
|
|
226
|
+
"After your edits the SwarmVault hook refreshes the graph automatically."
|
|
227
|
+
];
|
|
228
|
+
if (staleness?.pendingSemanticRefreshCount) {
|
|
229
|
+
lines.push(
|
|
230
|
+
`Note: ${staleness.pendingSemanticRefreshCount} non-code change(s) await semantic refresh \u2014 run \`swarmvault compile\` when convenient.`
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
if (staleness?.lastRunSuccess === false) {
|
|
234
|
+
lines.push(
|
|
235
|
+
"Note: the last graph refresh failed \u2014 run `swarmvault graph status` then `swarmvault graph update` before relying on the graph."
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
return lines.join("\n");
|
|
239
|
+
}
|
|
240
|
+
function extractSearchTerm(input) {
|
|
241
|
+
const toolInput = resolveToolInput(input);
|
|
242
|
+
for (const key of ["pattern", "query", "regex"]) {
|
|
243
|
+
const value = toolInput?.[key];
|
|
244
|
+
if (typeof value === "string" && value.length > 0) {
|
|
245
|
+
return value;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
return "<your term>";
|
|
249
|
+
}
|
|
250
|
+
function buildDenyReason(toolName, input) {
|
|
251
|
+
const term = extractSearchTerm(input).slice(0, 120);
|
|
252
|
+
return [
|
|
253
|
+
`SwarmVault graph-first: this repo has a compiled code graph that answers structure questions in far fewer tokens than ${toolName || "broad search"}.`,
|
|
254
|
+
`Run: swarmvault graph query "${term}" \u2014 it prints the top matches with page paths plus an inline excerpt of the best page, which usually answers the question without reading source. Add --context calls for caller/impact questions. Do not add --json (much larger output).`,
|
|
255
|
+
"Trust that answer for orientation questions instead of re-verifying in source files.",
|
|
256
|
+
"If the graph does not answer, repeat this exact search \u2014 it will be allowed for the rest of the session."
|
|
257
|
+
].join(" ");
|
|
258
|
+
}
|
|
114
259
|
|
|
115
260
|
// src/hooks/gemini.ts
|
|
116
261
|
var AGENT_KEY = "gemini";
|
|
@@ -128,11 +273,12 @@ async function main() {
|
|
|
128
273
|
}
|
|
129
274
|
if (mode === "session-start") {
|
|
130
275
|
await resetSession(cwd, AGENT_KEY);
|
|
276
|
+
const graphFirstNote = buildGraphFirstNote(await readWatchStaleness(cwd));
|
|
131
277
|
emit({
|
|
132
|
-
systemMessage:
|
|
278
|
+
systemMessage: graphFirstNote,
|
|
133
279
|
hookSpecificOutput: {
|
|
134
280
|
hookEventName: "SessionStart",
|
|
135
|
-
additionalContext:
|
|
281
|
+
additionalContext: graphFirstNote
|
|
136
282
|
}
|
|
137
283
|
});
|
|
138
284
|
process.exit(0);
|
|
@@ -143,8 +289,10 @@ async function main() {
|
|
|
143
289
|
emit({});
|
|
144
290
|
process.exit(0);
|
|
145
291
|
}
|
|
146
|
-
|
|
147
|
-
|
|
292
|
+
const graphFirstMode = await resolveGraphFirstMode(cwd);
|
|
293
|
+
if (graphFirstMode !== "off" && isBroadSearchTool(toolName) && !isVaultArtifactSearch(input, cwd) && !await isNarrowSearch(input) && !await hasSeenReport(cwd, AGENT_KEY)) {
|
|
294
|
+
await markReportRead(cwd, AGENT_KEY);
|
|
295
|
+
emit({ systemMessage: buildDenyReason(toolName, input) });
|
|
148
296
|
process.exit(0);
|
|
149
297
|
}
|
|
150
298
|
emit({});
|
package/dist/hooks/opencode.js
CHANGED
|
@@ -20,12 +20,13 @@ async function swarmvaultGraphFirst({ client }) {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
const graphFirstNote = "SwarmVault graph-first: this repo has a compiled code graph. Answer structure questions (where is X, what calls Y) with `swarmvault graph query|explain|path --json`, `swarmvault query`, or wiki/graph/report.md instead of broad grep/glob. Read source files only when editing them or when the graph lacks detail.";
|
|
23
24
|
return {
|
|
24
25
|
async "session.created"(input) {
|
|
25
26
|
reportSeen = false;
|
|
26
27
|
const cwd = input?.session?.cwd ?? process.cwd();
|
|
27
28
|
if (await hasReport(cwd)) {
|
|
28
|
-
await note(
|
|
29
|
+
await note(graphFirstNote);
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
async "tool.execute.before"(input) {
|
|
@@ -39,7 +40,8 @@ async function swarmvaultGraphFirst({ client }) {
|
|
|
39
40
|
return;
|
|
40
41
|
}
|
|
41
42
|
if (!reportSeen && ["glob", "grep"].includes(String(input?.tool ?? ""))) {
|
|
42
|
-
|
|
43
|
+
reportSeen = true;
|
|
44
|
+
await note(graphFirstNote);
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
47
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1007,6 +1007,8 @@ interface GraphQueryResult {
|
|
|
1007
1007
|
communities: string[];
|
|
1008
1008
|
summary: string;
|
|
1009
1009
|
matches: GraphQueryMatch[];
|
|
1010
|
+
/** Wiki-relative page path for the top match, when one resolves. */
|
|
1011
|
+
topMatchPagePath?: string;
|
|
1010
1012
|
filters?: GraphQueryFilters;
|
|
1011
1013
|
filterStats?: GraphQueryFilterStats;
|
|
1012
1014
|
}
|
|
@@ -1597,6 +1599,12 @@ interface WatchOptions {
|
|
|
1597
1599
|
overrideRoots?: string[];
|
|
1598
1600
|
force?: boolean;
|
|
1599
1601
|
maxGraphShrinkRatio?: number;
|
|
1602
|
+
/**
|
|
1603
|
+
* Explicit file fast path: refresh only these files (code-only) instead of
|
|
1604
|
+
* walking every tracked repo root. Used by agent post-edit hooks and
|
|
1605
|
+
* `swarmvault graph update --file <path>`.
|
|
1606
|
+
*/
|
|
1607
|
+
files?: string[];
|
|
1600
1608
|
}
|
|
1601
1609
|
interface GraphShrinkDimension {
|
|
1602
1610
|
before: number;
|
|
@@ -1686,6 +1694,8 @@ interface WatchController {
|
|
|
1686
1694
|
interface InstallAgentOptions {
|
|
1687
1695
|
hook?: boolean;
|
|
1688
1696
|
scope?: "project" | "user";
|
|
1697
|
+
/** Register the SwarmVault MCP server in the agent's project MCP config. */
|
|
1698
|
+
mcp?: boolean;
|
|
1689
1699
|
}
|
|
1690
1700
|
interface InstallAgentResult {
|
|
1691
1701
|
agent: AgentType;
|
|
@@ -1738,7 +1748,10 @@ interface ProviderConfigRemoveResult {
|
|
|
1738
1748
|
providerId: string;
|
|
1739
1749
|
configPath: string;
|
|
1740
1750
|
removed: boolean;
|
|
1751
|
+
fallbackProviderId: string | null;
|
|
1741
1752
|
updatedTasks: ProviderTaskKey[];
|
|
1753
|
+
reassignedTasks: ProviderTaskKey[];
|
|
1754
|
+
clearedTasks: ProviderTaskKey[];
|
|
1742
1755
|
}
|
|
1743
1756
|
interface ManagedSourceAddOptions {
|
|
1744
1757
|
compile?: boolean;
|
|
@@ -2699,6 +2712,12 @@ declare function listTrackedRepoRoots(rootDir: string): Promise<string[]>;
|
|
|
2699
2712
|
declare function checkTrackedRepoChanges(rootDir: string, repoRoots?: string[]): Promise<GraphStatusChange[]>;
|
|
2700
2713
|
declare function syncTrackedRepos(rootDir: string, options?: IngestOptions, repoRoots?: string[]): Promise<RepoSyncResult>;
|
|
2701
2714
|
declare function syncTrackedReposForWatch(rootDir: string, options?: IngestOptions, repoRoots?: string[]): Promise<WatchRepoSyncResult>;
|
|
2715
|
+
/**
|
|
2716
|
+
* Per-file variant of `syncTrackedReposForWatch`: refreshes only the given
|
|
2717
|
+
* files instead of walking every tracked repo root. Powers
|
|
2718
|
+
* `swarmvault graph update --file <path>` (the agent post-edit fast path).
|
|
2719
|
+
*/
|
|
2720
|
+
declare function syncTrackedFiles(rootDir: string, filePaths: string[], options?: IngestOptions): Promise<WatchRepoSyncResult>;
|
|
2702
2721
|
declare function ingestInputDetailed(rootDir: string, input: string, options?: IngestOptions): Promise<InputIngestResult>;
|
|
2703
2722
|
declare function ingestInput(rootDir: string, input: string, options?: IngestOptions): Promise<SourceManifest>;
|
|
2704
2723
|
declare function addInput(rootDir: string, input: string, options?: AddOptions): Promise<AddResult>;
|
|
@@ -3298,6 +3317,8 @@ type WatchCycleResult = {
|
|
|
3298
3317
|
pendingSemanticRefreshPaths: string[];
|
|
3299
3318
|
changedPages: string[];
|
|
3300
3319
|
lintFindingCount?: number;
|
|
3320
|
+
/** Files deferred to the next refresh because another refresh held the lock. */
|
|
3321
|
+
queuedFiles?: string[];
|
|
3301
3322
|
};
|
|
3302
3323
|
/**
|
|
3303
3324
|
* Compute the effective list of repository roots that `swarmvault watch --repo` should track.
|
|
@@ -3336,4 +3357,4 @@ declare function createWebSearchAdapter(id: string, config: WebSearchProviderCon
|
|
|
3336
3357
|
type WebSearchTaskId = "deepLintProvider" | "queryProvider" | "exploreProvider";
|
|
3337
3358
|
declare function getWebSearchAdapterForTask(rootDir: string, task: WebSearchTaskId): Promise<WebSearchAdapter>;
|
|
3338
3359
|
|
|
3339
|
-
export { ALL_MIGRATIONS, type AddOptions, type AddResult, type AgentInstallStatus, type AgentInstallTargetStatus, type AgentMemoryDecision, type AgentMemoryNote, type AgentMemoryResumeFormat, type AgentMemoryTask, type AgentMemoryTaskResult, type AgentMemoryTaskStatus, type AgentMemoryTaskSummary, type AgentType, type AiExportFile, type AiExportOptions, type AiExportResult, type AnalyzedTerm, type ApprovalBundleType, type ApprovalChangeType, type ApprovalDetail, type ApprovalDiffHunk, type ApprovalDiffLine, type ApprovalEntry, type ApprovalEntryDetail, type ApprovalEntryLabel, type ApprovalEntryStatus, type ApprovalFrontmatterChange, type ApprovalManifest, type ApprovalStructuredDiff, type ApprovalSummary, type AskChatOptions, type AskChatResult, type AudioTranscriptionRequest, type AudioTranscriptionResponse, type BenchmarkArtifact, type BenchmarkByClassEntry, type BenchmarkOptions, type BenchmarkQuestionResult, type BenchmarkSummary, type BlastRadiusResult, type BuildContextPackOptions, type BuildContextPackResult, type CandidatePromotionConfig, type CandidateRecord, type ChartDatum, type ChartSpec, type ClaimStatus, type CodeAnalysis, type CodeDiagnostic, type CodeImport, type CodeIndexArtifact, type CodeIndexEntry, type CodeLanguage, type CodeRelation, type CodeSymbol, type CodeSymbolKind, type CommandRoleExecutorConfig, type CompileOptions, type CompileResult, type CompileState, type ConsolidationConfig, type ConsolidationPromotion, type ConsolidationResult, type ContextPack, type ContextPackFormat, type ContextPackItem, type ContextPackItemKind, type ContextPackOmittedItem, type ContextPackSummary, DEFAULT_CONSOLIDATION_CONFIG, DEFAULT_HALF_LIFE_DAYS, DEFAULT_HALF_LIFE_DAYS_BY_SOURCE_CLASS, DEFAULT_PROMOTION_CONFIG, DEFAULT_REDACTION_PATTERNS, DEFAULT_STALE_THRESHOLD, type DegradationOutcome, type DirectoryIngestFailure, type DirectoryIngestResult, type DirectoryIngestSkip, type EmbeddingCacheArtifact, type EmbeddingCacheEntry, type EvidenceClass, type ExploreOptions, type ExploreResult, type ExploreStepResult, type ExtractionClaim, type ExtractionKind, type ExtractionTerm, type FinishMemoryTaskOptions, type Freshness, type FreshnessConfig, type GenerationAttachment, type GenerationRequest, type GenerationResponse, type GitHookStatus, type GraphArtifact, type GraphClusterRefreshResult, type GraphCommunityResult, type GraphCycle, type GraphCycleResult, type GraphDiffResult, type GraphEdge, type GraphExplainNeighbor, type GraphExplainResult, type GraphExportFormat, type GraphExportResult, type GraphHyperedge, type GraphNode, type GraphPage, type GraphPathResult, type GraphPushCounts, type GraphPushNeo4jOptions, type GraphPushResult, type GraphQueryFilterStats, type GraphQueryFilters, type GraphQueryMatch, type GraphQueryRelationGroup, type GraphQueryResult, type GraphReportArtifact, type GraphShareArtifact, type GraphShareBundleFile, type GraphShrinkDimension, type GraphShrinkGuardResult, type GraphStatsResult, type GraphStatusChange, type GraphStatusResult, type GraphValidationIssue, type GraphValidationResult, type GraphValidationSeverity, type GuidedSessionMode, type GuidedSourceSessionAnswers, type GuidedSourceSessionQuestion, type GuidedSourceSessionRecord, type GuidedSourceSessionStatus, type ImageGenerationRequest, type ImageGenerationResponse, type ImageVisionExtraction, type InboxImportResult, type InboxImportSkip, type IngestOptions, type InitOptions, type InputIngestResult, type InstallAgentOptions, type InstallAgentResult, LARGE_REPO_NODE_THRESHOLD, LOCAL_WHISPER_MODEL_SIZES, type LintFinding, type LintOptions, type LocalWhisperAdapterOptions, type LocalWhisperBinaryDiscovery, LocalWhisperProviderAdapter, type LocalWhisperSetupStatus, type ManagedSourceAddOptions, type ManagedSourceAddResult, type ManagedSourceDeleteResult, type ManagedSourceKind, type ManagedSourceRecord, type ManagedSourceReloadOptions, type ManagedSourceReloadResult, type ManagedSourceStatus, type ManagedSourceSyncCounts, type ManagedSourcesArtifact, type MemoryTier, type MigrationPlan, type MigrationResult, type MigrationStep, type Neo4jGraphSinkConfig, OPENAI_COMPATIBLE_CAPABILITY_MATRIX, type OpenAiCompatiblePresetId, type OrchestrationConfig, type OrchestrationFinding, type OrchestrationProposal, type OrchestrationRole, type OrchestrationRoleConfig, type OrchestrationRoleResult, type OutputAsset, type OutputAssetRole, type OutputFormat, type OutputOrigin, type PageKind, type PageManager, type PageStatus, type PendingSemanticRefreshEntry, type Polarity, type PromotionDecision, type PromotionGateKind, type PromotionGateResult, type PromotionSession, type ProviderAdapter, type ProviderCapability, type ProviderConfig, type ProviderConfigAddOptions, type ProviderConfigAddResult, type ProviderConfigEntry, type ProviderConfigRemoveOptions, type ProviderConfigRemoveResult, type ProviderPresetCapability, type ProviderRegistrationOptions, type ProviderRegistrationResult, type ProviderRoleExecutorConfig, type ProviderTaskKey, type ProviderType, type QueryOptions, type QueryResult, type RedactionMatchSummary, type RedactionPatternConfig, type RedactionSettings, type RedactionSummary, type RepoSyncResult, type ResolvedLargeRepoDefaults, type ResolvedPaths, type ResumeMemoryTaskOptions, type ResumeMemoryTaskResult, type RetrievalConfig, type RetrievalDoctorResult, type RetrievalManifest, type RetrievalStatus, type ReviewActionResult, type RoleExecutorConfig, SWARMVAULT_OUT_ENV, type SceneElement, type SceneSpec, type ScheduleController, type ScheduleJobConfig, type ScheduleStateRecord, type ScheduleTriggerConfig, type ScheduledCompileTask, type ScheduledConsolidateTask, type ScheduledExploreTask, type ScheduledLintTask, type ScheduledQueryTask, type ScheduledRunResult, type ScheduledTaskConfig, type SearchResult, type SourceAnalysis, type SourceAttachment, type SourceCaptureType, type SourceClaim, type SourceClass, type SourceExtractionArtifact, type SourceGuideResult, type SourceKind, type SourceManifest, type SourceRationale, type SourceReviewResult, type StartMemoryTaskOptions, type SynthesizedHubEdge, type SynthesizedHubNode, type SynthesizedHyperedgeHubs, type UpdateMemoryTaskOptions, type VaultChatSession, type VaultChatSessionSummary, type VaultChatTurn, type VaultConfig, type VaultDashboardPack, type VaultDoctorAction, type VaultDoctorCheck, type VaultDoctorCounts, type VaultDoctorRecommendation, type VaultDoctorRecommendationPriority, type VaultDoctorReport, type VaultDoctorSafeAction, type VaultDoctorStatus, type VaultProfileConfig, type VaultProfilePreset, type VaultVersionRecord, type WatchConfig, type WatchController, type WatchOptions, type WatchRepoSyncResult, type WatchRunRecord, type WatchStatusResult, type WebSearchAdapter, type WebSearchProviderConfig, type WebSearchProviderType, type WebSearchResult, type WhisperRunResult, type WhisperRunner, acceptApproval, addInput, addManagedSource, addProviderConfig, addWatchedRoot, agentTypeSchema, applyDecayToPages, archiveCandidate, askChatSession, assertProviderCapability, autoCommitWikiChanges, benchmarkVault, blastRadius, blastRadiusVault, bootstrapDemo, buildConfiguredRedactor, buildContextPack, buildGraphShareArtifact, buildGraphTree, buildMemoryGraphElements, buildRedactor, checkTrackedRepoChanges, compileVault, computeDecayScore, consolidateVault, createMcpServer, createProvider, createSupersessionEdge, createWebSearchAdapter, defaultVaultConfig, defaultVaultSchema, deleteChatSession, deleteContextPack, deleteManagedSource, detectVaultVersion, discoverLocalWhisperBinary, doctorRetrieval, doctorVault, downloadWhisperModel, ensureMemoryLedger, estimatePageTokens, estimateTokens, evaluateCandidateForPromotion, evaluateGraphShrinkGuard, expectedModelPath, explainGraphVault, exploreVault, exportAiPack, exportGraphFormat, exportGraphHtml, exportGraphReportHtml, exportGraphTree, exportObsidianCanvas, exportObsidianVault, findGraphCycles, finishMemoryTask, getAgentInstallStatus, getGitHookStatus, getGraphCommunityVault, getGraphStatus, getProviderConfigEntry, getProviderForTask, getRetrievalStatus, getWatchStatus, getWebSearchAdapterForTask, getWorkspaceInfo, graphDiff, graphStats, graphStatsVault, guideManagedSource, guideSourceScope, importInbox, ingestDirectory, ingestInput, ingestInputDetailed, initVault, initWorkspace, installAgent, installConfiguredAgents, installGitHooks, lintVault, listApprovals, listCandidates, listChatSessions, listContextPacks, listGodNodes, listGraphHyperedges, listManagedSourceRecords, listManifests, listMemoryTasks, listPages, listProviderConfigEntries, listSchedules, listTrackedRepoRoots, listWatchedRoots, loadMemoryTaskPages, loadVaultConfig, loadVaultSchema, loadVaultSchemas, lookupPresetCapabilities, markSuperseded, memoryTaskHashes, mergeGraphFiles, modelDownloadUrl, pathGraphVault, persistDecayFrontmatter, planMigration, previewCandidatePromotions, projectGraphAfterRemovals, promoteCandidate, providerCapabilitySchema, providerTypeSchema, pushGraphNeo4j, queryGraphVault, queryVault, readApproval, readChatSession, readContextPack, readExtractedText, readGraphReport, readMemoryTask, readPage, rebuildRetrievalIndex, refreshGraphClusters, registerLocalWhisperProvider, rejectApproval, reloadManagedSources, removeProviderConfig, removeWatchedRoot, renderContextPackLlms, renderContextPackMarkdown, renderGraphShareBundleFiles, renderGraphShareMarkdown, renderGraphSharePreviewHtml, renderGraphShareSvg, renderGraphTreeHtml, renderMemoryTaskMarkdown, resetDecay, resolveArtifactRootDir, resolveConsolidationConfig, resolveDecayConfig, resolveLargeRepoDefaults, resolvePaths, resolveRedactionPatterns, resolveRetrievalConfig, resolveWatchedRepoRoots, resumeMemoryTask, resumeSourceSession, reviewManagedSource, reviewSourceScope, runAutoPromotion, runConsolidation, runDecayPass, runMigration, runSchedule, runWatchCycle, searchVault, serveSchedules, stageGeneratedOutputPages, startGraphServer, startMcpServer, startMemoryTask, summarizeLocalWhisperSetup, syncTrackedRepos, syncTrackedReposForWatch, synthesizeHyperedgeHubs, trimToTokenBudget, uninstallGitHooks, updateMemoryTask, validateGraphArtifact, validateGraphVault, watchVault, webSearchProviderTypeSchema, withCapabilityFallback, writeRetrievalManifest };
|
|
3360
|
+
export { ALL_MIGRATIONS, type AddOptions, type AddResult, type AgentInstallStatus, type AgentInstallTargetStatus, type AgentMemoryDecision, type AgentMemoryNote, type AgentMemoryResumeFormat, type AgentMemoryTask, type AgentMemoryTaskResult, type AgentMemoryTaskStatus, type AgentMemoryTaskSummary, type AgentType, type AiExportFile, type AiExportOptions, type AiExportResult, type AnalyzedTerm, type ApprovalBundleType, type ApprovalChangeType, type ApprovalDetail, type ApprovalDiffHunk, type ApprovalDiffLine, type ApprovalEntry, type ApprovalEntryDetail, type ApprovalEntryLabel, type ApprovalEntryStatus, type ApprovalFrontmatterChange, type ApprovalManifest, type ApprovalStructuredDiff, type ApprovalSummary, type AskChatOptions, type AskChatResult, type AudioTranscriptionRequest, type AudioTranscriptionResponse, type BenchmarkArtifact, type BenchmarkByClassEntry, type BenchmarkOptions, type BenchmarkQuestionResult, type BenchmarkSummary, type BlastRadiusResult, type BuildContextPackOptions, type BuildContextPackResult, type CandidatePromotionConfig, type CandidateRecord, type ChartDatum, type ChartSpec, type ClaimStatus, type CodeAnalysis, type CodeDiagnostic, type CodeImport, type CodeIndexArtifact, type CodeIndexEntry, type CodeLanguage, type CodeRelation, type CodeSymbol, type CodeSymbolKind, type CommandRoleExecutorConfig, type CompileOptions, type CompileResult, type CompileState, type ConsolidationConfig, type ConsolidationPromotion, type ConsolidationResult, type ContextPack, type ContextPackFormat, type ContextPackItem, type ContextPackItemKind, type ContextPackOmittedItem, type ContextPackSummary, DEFAULT_CONSOLIDATION_CONFIG, DEFAULT_HALF_LIFE_DAYS, DEFAULT_HALF_LIFE_DAYS_BY_SOURCE_CLASS, DEFAULT_PROMOTION_CONFIG, DEFAULT_REDACTION_PATTERNS, DEFAULT_STALE_THRESHOLD, type DegradationOutcome, type DirectoryIngestFailure, type DirectoryIngestResult, type DirectoryIngestSkip, type EmbeddingCacheArtifact, type EmbeddingCacheEntry, type EvidenceClass, type ExploreOptions, type ExploreResult, type ExploreStepResult, type ExtractionClaim, type ExtractionKind, type ExtractionTerm, type FinishMemoryTaskOptions, type Freshness, type FreshnessConfig, type GenerationAttachment, type GenerationRequest, type GenerationResponse, type GitHookStatus, type GraphArtifact, type GraphClusterRefreshResult, type GraphCommunityResult, type GraphCycle, type GraphCycleResult, type GraphDiffResult, type GraphEdge, type GraphExplainNeighbor, type GraphExplainResult, type GraphExportFormat, type GraphExportResult, type GraphHyperedge, type GraphNode, type GraphPage, type GraphPathResult, type GraphPushCounts, type GraphPushNeo4jOptions, type GraphPushResult, type GraphQueryFilterStats, type GraphQueryFilters, type GraphQueryMatch, type GraphQueryRelationGroup, type GraphQueryResult, type GraphReportArtifact, type GraphShareArtifact, type GraphShareBundleFile, type GraphShrinkDimension, type GraphShrinkGuardResult, type GraphStatsResult, type GraphStatusChange, type GraphStatusResult, type GraphValidationIssue, type GraphValidationResult, type GraphValidationSeverity, type GuidedSessionMode, type GuidedSourceSessionAnswers, type GuidedSourceSessionQuestion, type GuidedSourceSessionRecord, type GuidedSourceSessionStatus, type ImageGenerationRequest, type ImageGenerationResponse, type ImageVisionExtraction, type InboxImportResult, type InboxImportSkip, type IngestOptions, type InitOptions, type InputIngestResult, type InstallAgentOptions, type InstallAgentResult, LARGE_REPO_NODE_THRESHOLD, LOCAL_WHISPER_MODEL_SIZES, type LintFinding, type LintOptions, type LocalWhisperAdapterOptions, type LocalWhisperBinaryDiscovery, LocalWhisperProviderAdapter, type LocalWhisperSetupStatus, type ManagedSourceAddOptions, type ManagedSourceAddResult, type ManagedSourceDeleteResult, type ManagedSourceKind, type ManagedSourceRecord, type ManagedSourceReloadOptions, type ManagedSourceReloadResult, type ManagedSourceStatus, type ManagedSourceSyncCounts, type ManagedSourcesArtifact, type MemoryTier, type MigrationPlan, type MigrationResult, type MigrationStep, type Neo4jGraphSinkConfig, OPENAI_COMPATIBLE_CAPABILITY_MATRIX, type OpenAiCompatiblePresetId, type OrchestrationConfig, type OrchestrationFinding, type OrchestrationProposal, type OrchestrationRole, type OrchestrationRoleConfig, type OrchestrationRoleResult, type OutputAsset, type OutputAssetRole, type OutputFormat, type OutputOrigin, type PageKind, type PageManager, type PageStatus, type PendingSemanticRefreshEntry, type Polarity, type PromotionDecision, type PromotionGateKind, type PromotionGateResult, type PromotionSession, type ProviderAdapter, type ProviderCapability, type ProviderConfig, type ProviderConfigAddOptions, type ProviderConfigAddResult, type ProviderConfigEntry, type ProviderConfigRemoveOptions, type ProviderConfigRemoveResult, type ProviderPresetCapability, type ProviderRegistrationOptions, type ProviderRegistrationResult, type ProviderRoleExecutorConfig, type ProviderTaskKey, type ProviderType, type QueryOptions, type QueryResult, type RedactionMatchSummary, type RedactionPatternConfig, type RedactionSettings, type RedactionSummary, type RepoSyncResult, type ResolvedLargeRepoDefaults, type ResolvedPaths, type ResumeMemoryTaskOptions, type ResumeMemoryTaskResult, type RetrievalConfig, type RetrievalDoctorResult, type RetrievalManifest, type RetrievalStatus, type ReviewActionResult, type RoleExecutorConfig, SWARMVAULT_OUT_ENV, type SceneElement, type SceneSpec, type ScheduleController, type ScheduleJobConfig, type ScheduleStateRecord, type ScheduleTriggerConfig, type ScheduledCompileTask, type ScheduledConsolidateTask, type ScheduledExploreTask, type ScheduledLintTask, type ScheduledQueryTask, type ScheduledRunResult, type ScheduledTaskConfig, type SearchResult, type SourceAnalysis, type SourceAttachment, type SourceCaptureType, type SourceClaim, type SourceClass, type SourceExtractionArtifact, type SourceGuideResult, type SourceKind, type SourceManifest, type SourceRationale, type SourceReviewResult, type StartMemoryTaskOptions, type SynthesizedHubEdge, type SynthesizedHubNode, type SynthesizedHyperedgeHubs, type UpdateMemoryTaskOptions, type VaultChatSession, type VaultChatSessionSummary, type VaultChatTurn, type VaultConfig, type VaultDashboardPack, type VaultDoctorAction, type VaultDoctorCheck, type VaultDoctorCounts, type VaultDoctorRecommendation, type VaultDoctorRecommendationPriority, type VaultDoctorReport, type VaultDoctorSafeAction, type VaultDoctorStatus, type VaultProfileConfig, type VaultProfilePreset, type VaultVersionRecord, type WatchConfig, type WatchController, type WatchOptions, type WatchRepoSyncResult, type WatchRunRecord, type WatchStatusResult, type WebSearchAdapter, type WebSearchProviderConfig, type WebSearchProviderType, type WebSearchResult, type WhisperRunResult, type WhisperRunner, acceptApproval, addInput, addManagedSource, addProviderConfig, addWatchedRoot, agentTypeSchema, applyDecayToPages, archiveCandidate, askChatSession, assertProviderCapability, autoCommitWikiChanges, benchmarkVault, blastRadius, blastRadiusVault, bootstrapDemo, buildConfiguredRedactor, buildContextPack, buildGraphShareArtifact, buildGraphTree, buildMemoryGraphElements, buildRedactor, checkTrackedRepoChanges, compileVault, computeDecayScore, consolidateVault, createMcpServer, createProvider, createSupersessionEdge, createWebSearchAdapter, defaultVaultConfig, defaultVaultSchema, deleteChatSession, deleteContextPack, deleteManagedSource, detectVaultVersion, discoverLocalWhisperBinary, doctorRetrieval, doctorVault, downloadWhisperModel, ensureMemoryLedger, estimatePageTokens, estimateTokens, evaluateCandidateForPromotion, evaluateGraphShrinkGuard, expectedModelPath, explainGraphVault, exploreVault, exportAiPack, exportGraphFormat, exportGraphHtml, exportGraphReportHtml, exportGraphTree, exportObsidianCanvas, exportObsidianVault, findGraphCycles, finishMemoryTask, getAgentInstallStatus, getGitHookStatus, getGraphCommunityVault, getGraphStatus, getProviderConfigEntry, getProviderForTask, getRetrievalStatus, getWatchStatus, getWebSearchAdapterForTask, getWorkspaceInfo, graphDiff, graphStats, graphStatsVault, guideManagedSource, guideSourceScope, importInbox, ingestDirectory, ingestInput, ingestInputDetailed, initVault, initWorkspace, installAgent, installConfiguredAgents, installGitHooks, lintVault, listApprovals, listCandidates, listChatSessions, listContextPacks, listGodNodes, listGraphHyperedges, listManagedSourceRecords, listManifests, listMemoryTasks, listPages, listProviderConfigEntries, listSchedules, listTrackedRepoRoots, listWatchedRoots, loadMemoryTaskPages, loadVaultConfig, loadVaultSchema, loadVaultSchemas, lookupPresetCapabilities, markSuperseded, memoryTaskHashes, mergeGraphFiles, modelDownloadUrl, pathGraphVault, persistDecayFrontmatter, planMigration, previewCandidatePromotions, projectGraphAfterRemovals, promoteCandidate, providerCapabilitySchema, providerTypeSchema, pushGraphNeo4j, queryGraphVault, queryVault, readApproval, readChatSession, readContextPack, readExtractedText, readGraphReport, readMemoryTask, readPage, rebuildRetrievalIndex, refreshGraphClusters, registerLocalWhisperProvider, rejectApproval, reloadManagedSources, removeProviderConfig, removeWatchedRoot, renderContextPackLlms, renderContextPackMarkdown, renderGraphShareBundleFiles, renderGraphShareMarkdown, renderGraphSharePreviewHtml, renderGraphShareSvg, renderGraphTreeHtml, renderMemoryTaskMarkdown, resetDecay, resolveArtifactRootDir, resolveConsolidationConfig, resolveDecayConfig, resolveLargeRepoDefaults, resolvePaths, resolveRedactionPatterns, resolveRetrievalConfig, resolveWatchedRepoRoots, resumeMemoryTask, resumeSourceSession, reviewManagedSource, reviewSourceScope, runAutoPromotion, runConsolidation, runDecayPass, runMigration, runSchedule, runWatchCycle, searchVault, serveSchedules, stageGeneratedOutputPages, startGraphServer, startMcpServer, startMemoryTask, summarizeLocalWhisperSetup, syncTrackedFiles, syncTrackedRepos, syncTrackedReposForWatch, synthesizeHyperedgeHubs, trimToTokenBudget, uninstallGitHooks, updateMemoryTask, validateGraphArtifact, validateGraphVault, watchVault, webSearchProviderTypeSchema, withCapabilityFallback, writeRetrievalManifest };
|