haybale-agents 0.0.1__tar.gz
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.
- haybale_agents-0.0.1/.gitignore +39 -0
- haybale_agents-0.0.1/PKG-INFO +9 -0
- haybale_agents-0.0.1/README.md +17 -0
- haybale_agents-0.0.1/haybale_agents/OVERVIEW.md +3 -0
- haybale_agents-0.0.1/haybale_agents/QUICKREF.md +1 -0
- haybale_agents-0.0.1/haybale_agents/__init__.py +102 -0
- haybale_agents-0.0.1/haybale_agents/adapters/__init__.py +0 -0
- haybale_agents-0.0.1/haybale_agents/editors/__init__.py +0 -0
- haybale_agents-0.0.1/haybale_agents/haybale.toml +48 -0
- haybale_agents-0.0.1/haybale_agents/macros/.gitkeep +0 -0
- haybale_agents-0.0.1/haybale_agents/nodes/__init__.py +0 -0
- haybale_agents-0.0.1/haybale_agents/panels/__init__.py +0 -0
- haybale_agents-0.0.1/haybale_agents/settings/__init__.py +0 -0
- haybale_agents-0.0.1/haybale_agents/skins/__init__.py +0 -0
- haybale_agents-0.0.1/haybale_agents/states/__init__.py +0 -0
- haybale_agents-0.0.1/haybale_agents/themes/__init__.py +0 -0
- haybale_agents-0.0.1/haybale_agents/types/__init__.py +0 -0
- haybale_agents-0.0.1/haybale_agents/widgets/__init__.py +0 -0
- haybale_agents-0.0.1/pyproject.toml +32 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Patterns below are anchored with a leading slash (/build/) so they match only
|
|
2
|
+
# at the repo root. An unanchored pattern (build/) matches at EVERY depth —
|
|
3
|
+
# including inside barn/, where it would silently exclude your library's own
|
|
4
|
+
# files. See the note at the end of this file before adding patterns.
|
|
5
|
+
|
|
6
|
+
# Byte-compiled / optimized / DLL files
|
|
7
|
+
__pycache__/
|
|
8
|
+
*.py[cod]
|
|
9
|
+
*$py.class
|
|
10
|
+
|
|
11
|
+
# Distribution / packaging (root only)
|
|
12
|
+
/build/
|
|
13
|
+
/dist/
|
|
14
|
+
*.egg-info/
|
|
15
|
+
*.egg
|
|
16
|
+
|
|
17
|
+
# Virtual environments (root only)
|
|
18
|
+
/.venv/
|
|
19
|
+
/venv/
|
|
20
|
+
/env/
|
|
21
|
+
|
|
22
|
+
# Test / type-check caches
|
|
23
|
+
.pytest_cache/
|
|
24
|
+
.ruff_cache/
|
|
25
|
+
.mypy_cache/
|
|
26
|
+
.tox/
|
|
27
|
+
.coverage
|
|
28
|
+
htmlcov/
|
|
29
|
+
|
|
30
|
+
# Editor / OS
|
|
31
|
+
.DS_Store
|
|
32
|
+
.idea/
|
|
33
|
+
.vscode/
|
|
34
|
+
|
|
35
|
+
# ── Before you add a pattern ────────────────────────────────────────────────
|
|
36
|
+
# Anything ignored inside barn/<your-library>/ will be MISSING for everyone who
|
|
37
|
+
# installs your library — haywire share publishes by git URL, so consumers get
|
|
38
|
+
# a clone of this repo, not a built package. If a pattern is only meant for the
|
|
39
|
+
# repo root, anchor it with a leading slash: /build/ not build/.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: haybale-agents
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Local library for haybale-agents project
|
|
5
|
+
Project-URL: Source, https://github.com/going-haywire/haybale-agents
|
|
6
|
+
License: MIT
|
|
7
|
+
Keywords: experimental,project-local
|
|
8
|
+
Requires-Python: >=3.12
|
|
9
|
+
Requires-Dist: haywire-core>=0.6.6
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Haybale Agents
|
|
2
|
+
|
|
3
|
+
<!-- marketstall:share-url:start -->
|
|
4
|
+
Always the latest (tracks the current branch):
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
https://github.com/going-haywire/haybale-agents/blob/master/marketstall.toml
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Frozen to this version:
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
https://github.com/going-haywire/haybale-agents/blob/v0.0.1/marketstall.toml
|
|
14
|
+
```
|
|
15
|
+
<!-- marketstall:share-url:end -->
|
|
16
|
+
|
|
17
|
+
Local library for haybale-agents project
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# haybale-agents — component index (v0.0.1)
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Local haybale library for the haybale-agents project.
|
|
3
|
+
|
|
4
|
+
Add your custom components in the corresponding folders:
|
|
5
|
+
- nodes/ — node definitions
|
|
6
|
+
- macros/ — macro documents (.hwm)
|
|
7
|
+
- types/ — custom data types
|
|
8
|
+
- widgets/ — UI widgets for data types
|
|
9
|
+
- skins/ — custom node skins
|
|
10
|
+
- adapters/ — type-to-type conversion adapters
|
|
11
|
+
- settings/ — library settings definitions
|
|
12
|
+
- states/ — library app and session states
|
|
13
|
+
- themes/ — workbench and node themes
|
|
14
|
+
- panels/ — custom UI panels
|
|
15
|
+
- editors/ — custom UI editors
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
from pathlib import Path
|
|
19
|
+
|
|
20
|
+
from haywire.api import (
|
|
21
|
+
AdapterRegistry,
|
|
22
|
+
BaseLibrary,
|
|
23
|
+
MacroRegistry,
|
|
24
|
+
NodeRegistry,
|
|
25
|
+
SettingsRegistry,
|
|
26
|
+
SkinRegistry,
|
|
27
|
+
ThemeRegistry,
|
|
28
|
+
TypeRegistry,
|
|
29
|
+
WidgetRegistry,
|
|
30
|
+
library,
|
|
31
|
+
)
|
|
32
|
+
from haywire.api.workbench import EditorRegistry, StateRegistry, PanelRegistry
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@library(
|
|
36
|
+
file_watcher=True,
|
|
37
|
+
)
|
|
38
|
+
class Library(BaseLibrary):
|
|
39
|
+
"""Local project library — add your components in the subfolders."""
|
|
40
|
+
|
|
41
|
+
def register_components(self):
|
|
42
|
+
"""Register all components with the global registries."""
|
|
43
|
+
base_path = Path(__file__).parent
|
|
44
|
+
|
|
45
|
+
self.add_folder_to_registry(
|
|
46
|
+
folder_path=str(base_path / "settings"),
|
|
47
|
+
registry_cls=SettingsRegistry,
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
self.add_folder_to_registry(
|
|
51
|
+
folder_path=str(base_path / "states"),
|
|
52
|
+
registry_cls=StateRegistry,
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
self.add_folder_to_registry(
|
|
56
|
+
folder_path=str(base_path / "themes"),
|
|
57
|
+
registry_cls=ThemeRegistry,
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
self.add_folder_to_registry(
|
|
61
|
+
folder_path=str(base_path / "types"),
|
|
62
|
+
registry_cls=TypeRegistry,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
self.add_folder_to_registry(
|
|
66
|
+
folder_path=str(base_path / "adapters"),
|
|
67
|
+
registry_cls=AdapterRegistry,
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
self.add_folder_to_registry(
|
|
71
|
+
folder_path=str(base_path / "widgets"),
|
|
72
|
+
registry_cls=WidgetRegistry,
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
self.add_folder_to_registry(
|
|
76
|
+
folder_path=str(base_path / "skins"),
|
|
77
|
+
registry_cls=SkinRegistry,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
self.add_folder_to_registry(
|
|
81
|
+
folder_path=str(base_path / "nodes"),
|
|
82
|
+
registry_cls=NodeRegistry,
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
self.add_folder_to_registry(
|
|
86
|
+
folder_path=str(base_path / "macros"),
|
|
87
|
+
registry_cls=MacroRegistry,
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
self.add_folder_to_registry(
|
|
91
|
+
folder_path=str(base_path / "panels"),
|
|
92
|
+
registry_cls=PanelRegistry,
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
self.add_folder_to_registry(
|
|
96
|
+
folder_path=str(base_path / "editors"),
|
|
97
|
+
registry_cls=EditorRegistry,
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
def validate(self) -> bool:
|
|
101
|
+
"""Validate library structure."""
|
|
102
|
+
return True
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Library metadata. Canon for everything descriptive about this haybale; ships
|
|
2
|
+
# in the wheel beside __init__.py and is read from disk at runtime. Full field
|
|
3
|
+
# reference: docs/reference/files/haybale-toml.md
|
|
4
|
+
|
|
5
|
+
# ── identity — immutable ──────────────────────────────────────────────────
|
|
6
|
+
name = "haybale-agents" # pip distribution name; also prefixes every
|
|
7
|
+
# component's registry key, e.g. haybale-agents:node:Add
|
|
8
|
+
|
|
9
|
+
# ── written by scripts/bump_version.py / the share wizard, not by hand ──────
|
|
10
|
+
version = "0.0.1" # PEP 440, no "v" — canon here; pyproject.toml carries the synced copy
|
|
11
|
+
|
|
12
|
+
# ── display ───────────────────────────────────────────────────────────────
|
|
13
|
+
label = "Haybale Agents" # human display name
|
|
14
|
+
description = "Local library for haybale-agents project" # one line
|
|
15
|
+
tags = ["experimental", "project-local"] # filter tags in the library browser
|
|
16
|
+
|
|
17
|
+
# ── behaviour ─────────────────────────────────────────────────────────────
|
|
18
|
+
# os = ["macos", "linux"] # macos/linux/windows; empty/absent = every platform
|
|
19
|
+
# on_reload = "none" # none (default) / refresh (reload tab) / restart (restart studio)
|
|
20
|
+
|
|
21
|
+
# Sibling haybales this library subscribes to, as MODULE names (not
|
|
22
|
+
# distribution names). Required for hot-reload scope tracking.
|
|
23
|
+
linked_libraries = []
|
|
24
|
+
|
|
25
|
+
# ── declared paths, relative to the project root ────────────────────────────
|
|
26
|
+
# examples_path = "examples/"
|
|
27
|
+
# tests_path = "tests/"
|
|
28
|
+
|
|
29
|
+
# One supplementary human-readable page: a bare filename in this directory.
|
|
30
|
+
# notes = "NOTES.md"
|
|
31
|
+
|
|
32
|
+
# ── absolute URLs, used verbatim ─────────────────────────────────────────────
|
|
33
|
+
# homepage_url = "https://example.com"
|
|
34
|
+
# documentation_url = "https://example.com/docs/"
|
|
35
|
+
# issues_url = "https://example.com/issues"
|
|
36
|
+
|
|
37
|
+
# Repeatable; url is optional. Written by the studio's library overview edit modal.
|
|
38
|
+
# [[authors]]
|
|
39
|
+
# name = "Your Name"
|
|
40
|
+
# url = "https://your.site"
|
|
41
|
+
|
|
42
|
+
# Omitted unless the library is being retired — hand-edited, no edit-modal field.
|
|
43
|
+
# [deprecated]
|
|
44
|
+
# since = "0.1.0"
|
|
45
|
+
# reason = "Superseded by haybale-successor."
|
|
46
|
+
# successor = "haybale-successor"
|
|
47
|
+
origin = "https://github.com/going-haywire/haybale-agents"
|
|
48
|
+
origin_provider = "github"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Full field reference: docs/reference/files/pyproject-toml.md
|
|
2
|
+
[project]
|
|
3
|
+
# ── generated from haybale.toml at publish; hand-edits are reported as drift ─
|
|
4
|
+
name = "haybale-agents" # from haybale.name
|
|
5
|
+
description = "Local library for haybale-agents project" # from haybale.description
|
|
6
|
+
keywords = ["experimental", "project-local"] # from haybale.tags
|
|
7
|
+
|
|
8
|
+
# CANON, but owned by the release machinery — synced to haybale.toml
|
|
9
|
+
version = "0.0.1"
|
|
10
|
+
|
|
11
|
+
# ── authored here ────────────────────────────────────────────────────────────
|
|
12
|
+
requires-python = ">=3.12"
|
|
13
|
+
license = {text = "MIT"}
|
|
14
|
+
|
|
15
|
+
# CANON — pip requirements. Add third-party packages and sibling haybales here.
|
|
16
|
+
dependencies = ["haywire-core>=0.6.6"]
|
|
17
|
+
|
|
18
|
+
# The key is the entry-point name (unique within the group; need not match the
|
|
19
|
+
# library id). The value is <module>:<class>.
|
|
20
|
+
[project.entry-points."haywire.libraries"]
|
|
21
|
+
haybale-agents = "haybale_agents:Library"
|
|
22
|
+
|
|
23
|
+
[project.urls]
|
|
24
|
+
Source = "https://github.com/going-haywire/haybale-agents"
|
|
25
|
+
[build-system]
|
|
26
|
+
requires = ["hatchling"]
|
|
27
|
+
build-backend = "hatchling.build"
|
|
28
|
+
|
|
29
|
+
# Declares the package DIRECTORY, so everything not VCS-ignored inside it
|
|
30
|
+
# reaches the wheel, including haybale.toml — do not add include/exclude here.
|
|
31
|
+
[tool.hatch.build.targets.wheel]
|
|
32
|
+
packages = ["haybale_agents"]
|