Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Normalise line endings: LF in repo, platform-native in working tree
* text=auto

# Tell GitHub Linguist to ignore generated/example HTML files when calculating
# the repo's primary language. Without this, large graph.html artifacts in
# worked/ dominate the byte count and the repo shows as HTML instead of Python.
Expand Down
24 changes: 24 additions & 0 deletions graphify/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"""CLI entry point for graphify-live - enhanced animated HTML visualization.

Usage:
graphify-live export html /path/to/project

All subcommands work identically to `graphify` except that `export html`
uses the enhanced animated D3.js HTML exporter instead of the default
vis-network exporter.
"""


def main():
import graphify.export
import graphify.export_live

graphify.export.to_html = graphify.export_live.to_html

from graphify.__main__ import main as _original_main

_original_main()


if __name__ == "__main__":
main()
2 changes: 2 additions & 0 deletions graphify/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,8 @@ def _community_name(cid) -> str:
)

fname = community_filename[cid] + ".md"
(out / fname).write_text("\n".join(lines), encoding="utf-8") # nosec
community_notes_written += 1
if _owned_write(fname, "\n".join(lines)):
community_notes_written += 1

Expand Down
2,377 changes: 2,377 additions & 0 deletions graphify/export_live.py

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions graphify/static/d3.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ all = ["mcp", "starlette>=1.3.1", "neo4j", "falkordb", "pypdf>=6.12.0", "markdow
[project.scripts]
graphify = "graphify.__main__:main"
graphify-mcp = "graphify.serve:_main"
graphify-live = "graphify.cli:main"

[dependency-groups]
dev = [
Expand Down Expand Up @@ -115,7 +116,7 @@ include-package-data = false
# under graphify/skills/<host>/references/, and the always-on injection blocks
# under graphify/always_on/. There is no graphify/skills/<host>/SKILL.md in the
# repo, so no SKILL.md glob is needed here.
graphify = ["skill.md", "skill-codex.md", "skill-opencode.md", "skill-kilo.md", "command-kilo.md", "skill-aider.md", "skill-amp.md", "skill-agents.md", "skill-copilot.md", "skill-claw.md", "skill-windows.md", "skill-droid.md", "skill-trae.md", "skill-kiro.md", "skill-vscode.md", "skill-pi.md", "skill-devin.md", "skills/*/references/*.md", "always_on/*.md"]
graphify = ["skill.md", "skill-codex.md", "skill-opencode.md", "skill-kilo.md", "command-kilo.md", "skill-aider.md", "skill-amp.md", "skill-agents.md", "skill-copilot.md", "skill-claw.md", "skill-windows.md", "skill-droid.md", "skill-trae.md", "skill-kiro.md", "skill-vscode.md", "skill-pi.md", "skill-devin.md", "skills/*/references/*.md", "always_on/*.md", "static/d3.min.js"]

[tool.pytest.ini_options]
testpaths = ["tests"]
Expand Down
2 changes: 2 additions & 0 deletions scripts/graphify-live
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
PYTHONPATH="$(dirname "$(dirname "$0")")" exec python3 -m graphify.cli "$@"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
22 changes: 22 additions & 0 deletions tests/fixtures/obj/Debug/net8.0/sample.AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("sample")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+16f60fb0641c3dec5c8382a2c9c6abb823f80ae5")]
[assembly: System.Reflection.AssemblyProductAttribute("sample")]
[assembly: System.Reflection.AssemblyTitleAttribute("sample")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// Generated by the MSBuild WriteCodeFragment class.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2265a5a56aff109e136be25b277dc709193e18767086801194a4fdc7727c1099
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
is_global = true
build_property.TargetFramework = net8.0
build_property.TargetFrameworkIdentifier = .NETCoreApp
build_property.TargetFrameworkVersion = v8.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb = true
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property.EntryPointFilePath =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = sample
build_property.RootNamespace = sample
build_property.ProjectDir = D:\Private\graphify\tests\fixtures\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.RazorLangVersion = 8.0
build_property.SupportLocalizedComponentNames =
build_property.GenerateRazorMetadataSourceChecksumAttributes =
build_property.MSBuildProjectDirectory = D:\Private\graphify\tests\fixtures
build_property._RazorSourceGeneratorDebug =
build_property.EffectiveAnalysisLevelStyle = 8.0
build_property.EnableCodeStyleSeverity =

[D:/Private/graphify/tests/fixtures/sample.razor]
build_metadata.AdditionalFiles.TargetPath = c2FtcGxlLnJhem9y
build_metadata.AdditionalFiles.CssScope =
17 changes: 17 additions & 0 deletions tests/fixtures/obj/Debug/net8.0/sample.GlobalUsings.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// <auto-generated/>
global using Microsoft.AspNetCore.Builder;
global using Microsoft.AspNetCore.Hosting;
global using Microsoft.AspNetCore.Http;
global using Microsoft.AspNetCore.Routing;
global using Microsoft.Extensions.Configuration;
global using Microsoft.Extensions.DependencyInjection;
global using Microsoft.Extensions.Hosting;
global using Microsoft.Extensions.Logging;
global using System;
global using System.Collections.Generic;
global using System.IO;
global using System.Linq;
global using System.Net.Http;
global using System.Net.Http.Json;
global using System.Threading;
global using System.Threading.Tasks;
Binary file not shown.
Binary file not shown.
Loading