@swarmvaultai/engine 0.2.0 → 0.2.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/README.md +1 -1
- package/dist/index.d.ts +11 -3
- package/dist/index.js +558 -52
- package/dist/viewer/assets/index-BHjjw4rU.css +1 -0
- package/dist/viewer/assets/{index-Csm8eB3P.js → index-DxKn2KOc.js} +23 -23
- package/dist/viewer/index.html +2 -2
- package/dist/viewer/lib.d.ts +11 -0
- package/package.json +1 -1
- package/dist/viewer/assets/index-DUJ6MWHL.css +0 -1
package/README.md
CHANGED
|
@@ -191,7 +191,7 @@ This matters because many "OpenAI-compatible" backends only implement part of th
|
|
|
191
191
|
- `importInbox(rootDir, inputDir?)` recursively imports supported inbox files plus markdown and HTML browser-clipper style bundles
|
|
192
192
|
- managed sources support local directories, public GitHub repo root URLs, and bounded same-domain docs hubs
|
|
193
193
|
- registry data lives in `state/sources.json`, working state lives under `state/sources/<id>/`, and source briefs are written to `wiki/outputs/source-briefs/<id>.md`
|
|
194
|
-
- JavaScript, TypeScript, Python, Go, Rust, Java, C#, C, C++, PHP, Ruby,
|
|
194
|
+
- JavaScript, JSX, TypeScript, TSX, Python, Go, Rust, Java, Kotlin, Scala, Lua, Zig, C#, C, C++, PHP, Ruby, and PowerShell inputs are treated as code sources and compiled into both source pages and `wiki/code/` module pages
|
|
195
195
|
- `.rst` and `.rest` inputs are treated as first-class text sources with lightweight heading and directive normalization before analysis
|
|
196
196
|
- code manifests can carry `repoRelativePath`, and compile writes `state/code-index.json` so local imports can resolve across an ingested repo tree
|
|
197
197
|
- repo-aware manifests, graph nodes, and graph pages can also carry `sourceClass` so first-party, third-party, resource, and generated material can be filtered and reported separately
|
package/dist/index.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ type SourceCaptureType = "arxiv" | "doi" | "tweet" | "article" | "url";
|
|
|
59
59
|
type SourceClass = "first_party" | "third_party" | "resource" | "generated";
|
|
60
60
|
type ManagedSourceKind = "directory" | "github_repo" | "crawl_url";
|
|
61
61
|
type ManagedSourceStatus = "ready" | "missing" | "error";
|
|
62
|
-
type CodeLanguage = "javascript" | "jsx" | "typescript" | "tsx" | "python" | "go" | "rust" | "java" | "kotlin" | "scala" | "csharp" | "c" | "cpp" | "php" | "ruby" | "powershell";
|
|
62
|
+
type CodeLanguage = "javascript" | "jsx" | "typescript" | "tsx" | "python" | "go" | "rust" | "java" | "kotlin" | "scala" | "lua" | "zig" | "csharp" | "c" | "cpp" | "php" | "ruby" | "powershell";
|
|
63
63
|
type CodeSymbolKind = "function" | "class" | "interface" | "type_alias" | "enum" | "variable" | "struct" | "trait";
|
|
64
64
|
type OrchestrationRole = "research" | "audit" | "context" | "safety";
|
|
65
65
|
declare const webSearchProviderTypeSchema: z.ZodEnum<{
|
|
@@ -301,6 +301,7 @@ interface SourceManifest {
|
|
|
301
301
|
extractionHash?: string;
|
|
302
302
|
mimeType: string;
|
|
303
303
|
contentHash: string;
|
|
304
|
+
semanticHash: string;
|
|
304
305
|
createdAt: string;
|
|
305
306
|
updatedAt: string;
|
|
306
307
|
attachments?: SourceAttachment[];
|
|
@@ -410,6 +411,7 @@ interface SourceAnalysis {
|
|
|
410
411
|
analysisVersion: number;
|
|
411
412
|
sourceId: string;
|
|
412
413
|
sourceHash: string;
|
|
414
|
+
semanticHash: string;
|
|
413
415
|
extractionHash?: string;
|
|
414
416
|
schemaHash: string;
|
|
415
417
|
title: string;
|
|
@@ -480,6 +482,7 @@ interface GraphPage {
|
|
|
480
482
|
backlinks: string[];
|
|
481
483
|
schemaHash: string;
|
|
482
484
|
sourceHashes: Record<string, string>;
|
|
485
|
+
sourceSemanticHashes: Record<string, string>;
|
|
483
486
|
relatedPageIds: string[];
|
|
484
487
|
relatedNodeIds: string[];
|
|
485
488
|
relatedSourceIds: string[];
|
|
@@ -779,6 +782,7 @@ interface CompileState {
|
|
|
779
782
|
projectConfigHash: string;
|
|
780
783
|
analyses: Record<string, string>;
|
|
781
784
|
sourceHashes: Record<string, string>;
|
|
785
|
+
sourceSemanticHashes: Record<string, string>;
|
|
782
786
|
sourceProjects: Record<string, string | null>;
|
|
783
787
|
outputHashes: Record<string, string>;
|
|
784
788
|
insightHashes: Record<string, string>;
|
|
@@ -1292,11 +1296,15 @@ declare function bootstrapDemo(rootDir: string, input?: string): Promise<{
|
|
|
1292
1296
|
compile?: CompileResult;
|
|
1293
1297
|
}>;
|
|
1294
1298
|
|
|
1295
|
-
declare function startGraphServer(rootDir: string, port?: number
|
|
1299
|
+
declare function startGraphServer(rootDir: string, port?: number, options?: {
|
|
1300
|
+
full?: boolean;
|
|
1301
|
+
}): Promise<{
|
|
1296
1302
|
port: number;
|
|
1297
1303
|
close: () => Promise<void>;
|
|
1298
1304
|
}>;
|
|
1299
|
-
declare function exportGraphHtml(rootDir: string, outputPath: string
|
|
1305
|
+
declare function exportGraphHtml(rootDir: string, outputPath: string, options?: {
|
|
1306
|
+
full?: boolean;
|
|
1307
|
+
}): Promise<string>;
|
|
1300
1308
|
|
|
1301
1309
|
type WatchCycleResult = {
|
|
1302
1310
|
watchedRepoRoots: string[];
|