oasr 0.3.4__py3-none-any.whl → 0.4.0__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.
- adapters/base.py +4 -4
- agents/__init__.py +25 -0
- agents/base.py +96 -0
- agents/claude.py +25 -0
- agents/codex.py +25 -0
- agents/copilot.py +25 -0
- agents/opencode.py +25 -0
- agents/registry.py +57 -0
- cli.py +8 -5
- commands/add.py +137 -4
- commands/clone.py +178 -0
- commands/config.py +163 -0
- commands/exec.py +204 -0
- commands/use.py +17 -144
- config.py → config/__init__.py +40 -17
- config/defaults.py +16 -0
- config/schema.py +36 -0
- {oasr-0.3.4.dist-info → oasr-0.4.0.dist-info}/METADATA +1 -1
- {oasr-0.3.4.dist-info → oasr-0.4.0.dist-info}/RECORD +23 -11
- {oasr-0.3.4.dist-info → oasr-0.4.0.dist-info}/WHEEL +0 -0
- {oasr-0.3.4.dist-info → oasr-0.4.0.dist-info}/entry_points.txt +0 -0
- {oasr-0.3.4.dist-info → oasr-0.4.0.dist-info}/licenses/LICENSE +0 -0
- {oasr-0.3.4.dist-info → oasr-0.4.0.dist-info}/licenses/NOTICE +0 -0
config/schema.py
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""Configuration schema validation."""
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
VALID_AGENTS = {"codex", "copilot", "claude", "opencode"}
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def validate_config(config: dict[str, Any]) -> None:
|
|
9
|
+
"""Validate configuration dictionary.
|
|
10
|
+
|
|
11
|
+
Args:
|
|
12
|
+
config: Configuration dictionary to validate.
|
|
13
|
+
|
|
14
|
+
Raises:
|
|
15
|
+
ValueError: If configuration is invalid.
|
|
16
|
+
"""
|
|
17
|
+
if "agent" in config and "default" in config["agent"]:
|
|
18
|
+
agent = config["agent"]["default"]
|
|
19
|
+
if agent is not None and agent not in VALID_AGENTS:
|
|
20
|
+
raise ValueError(f"Invalid agent '{agent}'. Must be one of: {', '.join(sorted(VALID_AGENTS))}")
|
|
21
|
+
|
|
22
|
+
if "validation" in config:
|
|
23
|
+
if "reference_max_lines" in config["validation"]:
|
|
24
|
+
max_lines = config["validation"]["reference_max_lines"]
|
|
25
|
+
if not isinstance(max_lines, int) or max_lines < 1:
|
|
26
|
+
raise ValueError("validation.reference_max_lines must be a positive integer")
|
|
27
|
+
|
|
28
|
+
if "strict" in config["validation"]:
|
|
29
|
+
if not isinstance(config["validation"]["strict"], bool):
|
|
30
|
+
raise ValueError("validation.strict must be a boolean")
|
|
31
|
+
|
|
32
|
+
if "adapter" in config:
|
|
33
|
+
if "default_targets" in config["adapter"]:
|
|
34
|
+
targets = config["adapter"]["default_targets"]
|
|
35
|
+
if not isinstance(targets, list):
|
|
36
|
+
raise ValueError("adapter.default_targets must be a list")
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
__init__.py,sha256=cYuwXNht5J2GDPEbHz57rmXRyWzaUgAaCXz8okR0rKE,84
|
|
2
2
|
__main__.py,sha256=Due_Us-4KNlLZhf8MkmoP1hWS5qMWmpZvz2ZaCqPHT4,120
|
|
3
3
|
adapter.py,sha256=WEpYkKDTb7We0zU9i6Z-r5ydtUdghNhxTZ5Eq58h4fU,10027
|
|
4
|
-
cli.py,sha256=
|
|
5
|
-
config.py,sha256=j8_SdkivPaPrCirgsxFOgFhMU9tSpIafebLVgFBQ2Qk,2239
|
|
4
|
+
cli.py,sha256=VeFFb1EnYcmq5WYl0wf0HiDfOedDwUNYm7f-im_2xeo,2672
|
|
6
5
|
discovery.py,sha256=WWF8SN2LH88mOUBJLavM7rvXcxi6uDQGpqRK20GysxA,3298
|
|
7
6
|
manifest.py,sha256=feNCjkFWfhoVubevKjLtKoIEuzT1YGQn6wWgs9XM8_o,12229
|
|
8
7
|
registry.py,sha256=zGutwVP39xaYqc3KDEXMWCV1tORYpqc5JISO8OaWP1Q,4470
|
|
@@ -10,17 +9,27 @@ remote.py,sha256=O4NUFK1p3m3CeI2RpeIXKVCwztbXzqH7MVGPSsXPU6w,13759
|
|
|
10
9
|
tracking.py,sha256=bwGWcXow0YSz3T5C8jV8b3UboGb1dG90axhOsJyXGDU,5141
|
|
11
10
|
validate.py,sha256=ew3GytY-5NRkfSj-uYIsQl_2Wj58vSQj5-m_XxLNQpI,10878
|
|
12
11
|
adapters/__init__.py,sha256=9F1AqYrMZeuGZkx3leuEFYuIyX00nWLih7v7Gvnj8YY,457
|
|
13
|
-
adapters/base.py,sha256=
|
|
12
|
+
adapters/base.py,sha256=BsrASr3brXmv7oE2haoXCh3kJwJkAmln4THNv9WqwhY,8723
|
|
14
13
|
adapters/claude.py,sha256=OMYwyIYGgaQAvKJx6VLmwYLNfk-hBg18xIaNwKLD1bM,2358
|
|
15
14
|
adapters/codex.py,sha256=KePuZc-EfKdwF5msaRUhKOSaF-rrZfm91KkeiYvkRIY,2352
|
|
16
15
|
adapters/copilot.py,sha256=090aS0N7SApSK5kcmm2xErjyUmEsOMrj0n36B0M3fAM,7274
|
|
17
16
|
adapters/cursor.py,sha256=BoS3Xo_hZyV4zrZKpNjDAaeGmJPTn_j_GI5QXuW5AOo,2244
|
|
18
17
|
adapters/windsurf.py,sha256=VZidyuFxiHQWl64w0-OgUsfdWeGXV7bf7_XYkiGchyw,2369
|
|
18
|
+
agents/__init__.py,sha256=Dwdwzb01DM2ZJ5pZBsbLPUYRM4Emai7p3oeayiYcj1w,546
|
|
19
|
+
agents/base.py,sha256=ALFkXkKs0IBoZKrEjFoNL_GRa7Wt_DC783UMo-6NOFA,2872
|
|
20
|
+
agents/claude.py,sha256=csZ1efZ6GFyaLNHDszKF6hCzJQBiebnx1gmGktpw7DI,676
|
|
21
|
+
agents/codex.py,sha256=t7VVVyln_OjbLP1RQzL-x7PJ1C6grVbDCKddI84kre4,674
|
|
22
|
+
agents/copilot.py,sha256=kfBk59WXOGd2ZIBBI74kT1WCNH3jFyrOg_HhIkAGG64,697
|
|
23
|
+
agents/opencode.py,sha256=fbBAqJhUg0uk6wrhC3SwaE5X27Qej96p9QgVAPpty8w,702
|
|
24
|
+
agents/registry.py,sha256=i6YUAdNUXq1LNqLDNqSg2RlHxqF5Ig5Z40ryteXoLu4,1434
|
|
19
25
|
commands/__init__.py,sha256=g_ZxSKLVZwCVAPpn-Ga_gj53BS2473SOg72ivGph--U,147
|
|
20
26
|
commands/adapter.py,sha256=_68v3t-dRU0mszzL4udKs1bKennyg7RfBTaK2fDGTsE,3215
|
|
21
|
-
commands/add.py,sha256=
|
|
27
|
+
commands/add.py,sha256=NJLQ-8-3zy7o6S9VLfL_wauP-Vz0oNGwN3nvtiwxNYM,15255
|
|
22
28
|
commands/clean.py,sha256=KtC5RJRdSBuz7ekEryMHOvHbqzV2vxUlp8_Mv-4b9TU,4893
|
|
29
|
+
commands/clone.py,sha256=4APH34-yHjiXQIQwBnKOSEQ_sxV24_GKypcOJMfncvs,5912
|
|
30
|
+
commands/config.py,sha256=PKuOX7CPRAy2j5NG1rhHYDFJT1XvZnOTF2qJW04v34Q,4940
|
|
23
31
|
commands/diff.py,sha256=37JMjvfAEfvK7-4X5iFbD-IGkS8ae4YSY7ZDIZF5B9E,5766
|
|
32
|
+
commands/exec.py,sha256=J030JZqVsHhqs8EldJwpv1cOYFVpS-i6R77kpY48PTk,6831
|
|
24
33
|
commands/find.py,sha256=zgqwUnaG5aLX6gJIU2ZeQzxsFh2s7oDNNtmV-e-62Jg,1663
|
|
25
34
|
commands/help.py,sha256=5yhIpgGs1xPs2f39lg-ELE7D0tV_uUTjxQsgkWusIwo,1449
|
|
26
35
|
commands/info.py,sha256=zywaUQsrvcPXcX8W49P7Jqnr90pX8nBPqnH1XcIs0Uk,4396
|
|
@@ -30,14 +39,17 @@ commands/rm.py,sha256=bOPXgifAbgx7kp4ZuNanJbv4wP1l1sIsI8vD6Rlgi8g,4160
|
|
|
30
39
|
commands/status.py,sha256=8si3iEVu0AUE2qojSCVoU0BLwpLm4UiFyY-Ln7Uo36k,3944
|
|
31
40
|
commands/sync.py,sha256=ZQoB5hBqrzvM6LUQVlKqHQVJib4dB5qe5M-pVG2vtGM,4946
|
|
32
41
|
commands/update.py,sha256=bOWjdTNyeYg-hvXv5GfUzEtsTA7gU9JLM592GI9Oq68,11939
|
|
33
|
-
commands/use.py,sha256=
|
|
42
|
+
commands/use.py,sha256=ggB28g2BDg3Lv3nF40wnDAJ7p0mo6C1pc1KgahvQYXM,1452
|
|
34
43
|
commands/validate.py,sha256=Y8TLHxW4Z98onmzu-h-kDIET-48lVaIdQXOvuyBemLw,2361
|
|
44
|
+
config/__init__.py,sha256=hNR-z3XcEI0nVdYbLAD3gvegNRejRJaNwksn1Au2ls0,2885
|
|
45
|
+
config/defaults.py,sha256=mCtLnk641l5wnmEyVfJLozqkBnHheap2Px8A1KTROmA,308
|
|
46
|
+
config/schema.py,sha256=KUebMCokJkymPyNcT2Bwm5BKwXk0SVGdoW24PRNX350,1387
|
|
35
47
|
skillcopy/__init__.py,sha256=YUglUkDzKfnCt4ar_DU33ksI9fGyn2UYbV7qn2c_BcU,2322
|
|
36
48
|
skillcopy/local.py,sha256=QH6484dCenjg8pfNOyTRbQQBklEWhkkTnfQok5ssf_4,1049
|
|
37
49
|
skillcopy/remote.py,sha256=83jRA2VfjtSDGO-YM1x3WGJjKvWzK1RmSTL7SdUOz8s,3155
|
|
38
|
-
oasr-0.
|
|
39
|
-
oasr-0.
|
|
40
|
-
oasr-0.
|
|
41
|
-
oasr-0.
|
|
42
|
-
oasr-0.
|
|
43
|
-
oasr-0.
|
|
50
|
+
oasr-0.4.0.dist-info/METADATA,sha256=rsgohJujzwQBXLCVr1z_LFguZIV9WYFeUnnHwRUQNsE,17924
|
|
51
|
+
oasr-0.4.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
52
|
+
oasr-0.4.0.dist-info/entry_points.txt,sha256=VnMuOi6XYMbzAD2bP0X5uV1sQXjOqoDWJ33Lsxwq8u8,52
|
|
53
|
+
oasr-0.4.0.dist-info/licenses/LICENSE,sha256=nQ1j9Ldb8FlJ-z7y2WuXPIlyfnYC7YPasjGdOBgcfP4,10561
|
|
54
|
+
oasr-0.4.0.dist-info/licenses/NOTICE,sha256=EsfkCN0ZRDS0oj3ADvMKeKrAXaPlC8YfpSjvjGVv9jE,207
|
|
55
|
+
oasr-0.4.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|