htmlgraph 0.27.5__py3-none-any.whl → 0.27.6__py3-none-any.whl
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.
- htmlgraph/__init__.py +1 -1
- htmlgraph/sdk/operations/mixin.py +60 -0
- {htmlgraph-0.27.5.dist-info → htmlgraph-0.27.6.dist-info}/METADATA +1 -1
- {htmlgraph-0.27.5.dist-info → htmlgraph-0.27.6.dist-info}/RECORD +11 -11
- {htmlgraph-0.27.5.data → htmlgraph-0.27.6.data}/data/htmlgraph/dashboard.html +0 -0
- {htmlgraph-0.27.5.data → htmlgraph-0.27.6.data}/data/htmlgraph/styles.css +0 -0
- {htmlgraph-0.27.5.data → htmlgraph-0.27.6.data}/data/htmlgraph/templates/AGENTS.md.template +0 -0
- {htmlgraph-0.27.5.data → htmlgraph-0.27.6.data}/data/htmlgraph/templates/CLAUDE.md.template +0 -0
- {htmlgraph-0.27.5.data → htmlgraph-0.27.6.data}/data/htmlgraph/templates/GEMINI.md.template +0 -0
- {htmlgraph-0.27.5.dist-info → htmlgraph-0.27.6.dist-info}/WHEEL +0 -0
- {htmlgraph-0.27.5.dist-info → htmlgraph-0.27.6.dist-info}/entry_points.txt +0 -0
htmlgraph/__init__.py
CHANGED
|
@@ -425,3 +425,63 @@ class OperationsMixin:
|
|
|
425
425
|
from htmlgraph.operations import analytics
|
|
426
426
|
|
|
427
427
|
return analytics.get_recommendations(graph_dir=self._directory)
|
|
428
|
+
|
|
429
|
+
def init_project(self, directory: Path | None = None) -> dict[str, Any]:
|
|
430
|
+
"""
|
|
431
|
+
Initialize HtmlGraph directory structure.
|
|
432
|
+
|
|
433
|
+
Creates .htmlgraph/ with subdirectories:
|
|
434
|
+
- features/, sessions/, tracks/, spikes/
|
|
435
|
+
- bugs/, patterns/, insights/, metrics/
|
|
436
|
+
- todos/, task-delegations/
|
|
437
|
+
|
|
438
|
+
Args:
|
|
439
|
+
directory: Base directory (defaults to current working directory)
|
|
440
|
+
|
|
441
|
+
Returns:
|
|
442
|
+
Dict with status ("created" or "already_exists") and directories list
|
|
443
|
+
|
|
444
|
+
Example:
|
|
445
|
+
>>> sdk = SDK(agent="claude")
|
|
446
|
+
>>> result = sdk.init_project()
|
|
447
|
+
>>> print(result['status']) # "created"
|
|
448
|
+
>>> print(result['directories']) # ['features', 'sessions', ...]
|
|
449
|
+
"""
|
|
450
|
+
from pathlib import Path
|
|
451
|
+
|
|
452
|
+
base_dir = directory or Path.cwd() / ".htmlgraph"
|
|
453
|
+
|
|
454
|
+
# Check if already initialized
|
|
455
|
+
if base_dir.exists():
|
|
456
|
+
existing_dirs = [d.name for d in base_dir.iterdir() if d.is_dir()]
|
|
457
|
+
return {
|
|
458
|
+
"status": "already_exists",
|
|
459
|
+
"directories": existing_dirs,
|
|
460
|
+
"path": str(base_dir),
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
# Create directory structure
|
|
464
|
+
dirs = [
|
|
465
|
+
"features",
|
|
466
|
+
"sessions",
|
|
467
|
+
"tracks",
|
|
468
|
+
"spikes",
|
|
469
|
+
"bugs",
|
|
470
|
+
"patterns",
|
|
471
|
+
"insights",
|
|
472
|
+
"metrics",
|
|
473
|
+
"todos",
|
|
474
|
+
"task-delegations",
|
|
475
|
+
]
|
|
476
|
+
|
|
477
|
+
created = []
|
|
478
|
+
for dirname in dirs:
|
|
479
|
+
dir_path = base_dir / dirname
|
|
480
|
+
dir_path.mkdir(parents=True, exist_ok=True)
|
|
481
|
+
created.append(dirname)
|
|
482
|
+
|
|
483
|
+
return {
|
|
484
|
+
"status": "created",
|
|
485
|
+
"directories": created,
|
|
486
|
+
"path": str(base_dir),
|
|
487
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: htmlgraph
|
|
3
|
-
Version: 0.27.
|
|
3
|
+
Version: 0.27.6
|
|
4
4
|
Summary: HTML is All You Need - Graph database on web standards
|
|
5
5
|
Project-URL: Homepage, https://github.com/Shakes-tzd/htmlgraph
|
|
6
6
|
Project-URL: Documentation, https://github.com/Shakes-tzd/htmlgraph#readme
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
htmlgraph/__init__.py,sha256=
|
|
1
|
+
htmlgraph/__init__.py,sha256=uOeA6rclaPyDSJry64EF_-hlCIcl0vNxeEXKD9juFKs,6407
|
|
2
2
|
htmlgraph/__init__.pyi,sha256=8JuFVuDll9jMx9s8ZQHt2tXic-geOJHiXUMB2YjmHhU,6683
|
|
3
3
|
htmlgraph/agent_detection.py,sha256=wEmrDv4hssPX2OkEnJZBHPbalxcaloiJF_hOOow_5WE,3511
|
|
4
4
|
htmlgraph/agent_registry.py,sha256=80TPYr4P0YMizPUbTH4N5wH6D84IKs-HPBLHGeeP6bY,9449
|
|
@@ -300,7 +300,7 @@ htmlgraph/sdk/mixins/__init__.py,sha256=IziHuV8N1sz65xYTO12JvdkGgP-5yDx8hjMTN6MY
|
|
|
300
300
|
htmlgraph/sdk/mixins/attribution.py,sha256=SA1k8ccF2ZIKcTPyzaeB3h4OKE0YGQJq9BvnsgsC0z8,4048
|
|
301
301
|
htmlgraph/sdk/mixins/mixin.py,sha256=sOSjY7tNkYQOIKkpmu1tDDy74Ci-_8OJsvt-QJQW6O4,13472
|
|
302
302
|
htmlgraph/sdk/operations/__init__.py,sha256=HxULDCxJz9jFFyzEfavgrMuwDZqEVMOFIzYzWDPfo8E,235
|
|
303
|
-
htmlgraph/sdk/operations/mixin.py,sha256=
|
|
303
|
+
htmlgraph/sdk/operations/mixin.py,sha256=0f2uySxZB-V9sjBOabrShL04zWBn-Std7IEmJfy3uWs,16124
|
|
304
304
|
htmlgraph/sdk/orchestration/__init__.py,sha256=cSYuiXEs1gedLgLTqPM5IkmGxQchReukjazklxpCi1A,442
|
|
305
305
|
htmlgraph/sdk/orchestration/coordinator.py,sha256=LcsCsraLkzV0uedCkCvCC2vJDDM9v9N9_tYfVH548uA,6771
|
|
306
306
|
htmlgraph/sdk/orchestration/spawner.py,sha256=Ei9-4qv7iSdoiJfRrkqHesSGmf6hVt9FYIGHKAI-YCg,7783
|
|
@@ -326,12 +326,12 @@ htmlgraph/templates/AGENTS.md.template,sha256=f96h7V6ygwj-v-fanVI48eYMxR6t_se4be
|
|
|
326
326
|
htmlgraph/templates/CLAUDE.md.template,sha256=h1kG2hTX2XYig2KszsHBfzrwa_4Cfcq2Pj4SwqzeDlM,1984
|
|
327
327
|
htmlgraph/templates/GEMINI.md.template,sha256=gAGzE53Avki87BM_otqy5HdcYCoLsHgqaKjVzNzPMX8,1622
|
|
328
328
|
htmlgraph/templates/orchestration-view.html,sha256=DlS7LlcjH0oO_KYILjuF1X42t8QhKLH4F85rkO54alY,10472
|
|
329
|
-
htmlgraph-0.27.
|
|
330
|
-
htmlgraph-0.27.
|
|
331
|
-
htmlgraph-0.27.
|
|
332
|
-
htmlgraph-0.27.
|
|
333
|
-
htmlgraph-0.27.
|
|
334
|
-
htmlgraph-0.27.
|
|
335
|
-
htmlgraph-0.27.
|
|
336
|
-
htmlgraph-0.27.
|
|
337
|
-
htmlgraph-0.27.
|
|
329
|
+
htmlgraph-0.27.6.data/data/htmlgraph/dashboard.html,sha256=MUT6SaYnazoyDcvHz5hN1omYswyIoUfeoZLf2M_iblo,251268
|
|
330
|
+
htmlgraph-0.27.6.data/data/htmlgraph/styles.css,sha256=oDUSC8jG-V-hKojOBO9J88hxAeY2wJrBYTq0uCwX_Y4,7135
|
|
331
|
+
htmlgraph-0.27.6.data/data/htmlgraph/templates/AGENTS.md.template,sha256=f96h7V6ygwj-v-fanVI48eYMxR6t_se4bet1H4ZsDpI,7642
|
|
332
|
+
htmlgraph-0.27.6.data/data/htmlgraph/templates/CLAUDE.md.template,sha256=h1kG2hTX2XYig2KszsHBfzrwa_4Cfcq2Pj4SwqzeDlM,1984
|
|
333
|
+
htmlgraph-0.27.6.data/data/htmlgraph/templates/GEMINI.md.template,sha256=gAGzE53Avki87BM_otqy5HdcYCoLsHgqaKjVzNzPMX8,1622
|
|
334
|
+
htmlgraph-0.27.6.dist-info/METADATA,sha256=tU22e3oeC3VapYYv-SmSDYIhkUCpUHOwwNHYhMPHmrI,10220
|
|
335
|
+
htmlgraph-0.27.6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
336
|
+
htmlgraph-0.27.6.dist-info/entry_points.txt,sha256=Wmdo5cx8pt6NoMsssVE2mZH1CZLSUsrg_3iSWatiyn0,103
|
|
337
|
+
htmlgraph-0.27.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|