agentspec-ai 0.1.0__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.
Files changed (82) hide show
  1. agentspec_ai-0.1.0/.gitignore +29 -0
  2. agentspec_ai-0.1.0/LICENSE +94 -0
  3. agentspec_ai-0.1.0/PKG-INFO +824 -0
  4. agentspec_ai-0.1.0/README.md +786 -0
  5. agentspec_ai-0.1.0/examples/coding-agent.agentspec.yaml +298 -0
  6. agentspec_ai-0.1.0/examples/customer-support.agentspec.yaml +163 -0
  7. agentspec_ai-0.1.0/examples/data-analyst.agentspec.yaml +135 -0
  8. agentspec_ai-0.1.0/examples/fintech-loan-agent.agentspec.yaml +572 -0
  9. agentspec_ai-0.1.0/examples/minimal.agentspec.yaml +36 -0
  10. agentspec_ai-0.1.0/examples/multi-agent-swarm.agentspec.yaml +149 -0
  11. agentspec_ai-0.1.0/pyproject.toml +80 -0
  12. agentspec_ai-0.1.0/schema/agentspec.schema.json +378 -0
  13. agentspec_ai-0.1.0/schema/versions/v0.1.0.schema.json +378 -0
  14. agentspec_ai-0.1.0/src/agentspec/__init__.py +13 -0
  15. agentspec_ai-0.1.0/src/agentspec/__main__.py +6 -0
  16. agentspec_ai-0.1.0/src/agentspec/adapters/__init__.py +45 -0
  17. agentspec_ai-0.1.0/src/agentspec/adapters/autogen.py +116 -0
  18. agentspec_ai-0.1.0/src/agentspec/adapters/crewai.py +102 -0
  19. agentspec_ai-0.1.0/src/agentspec/adapters/generic.py +165 -0
  20. agentspec_ai-0.1.0/src/agentspec/adapters/langchain.py +131 -0
  21. agentspec_ai-0.1.0/src/agentspec/adapters/openai_agents.py +111 -0
  22. agentspec_ai-0.1.0/src/agentspec/badge/__init__.py +1 -0
  23. agentspec_ai-0.1.0/src/agentspec/badge/generator.py +58 -0
  24. agentspec_ai-0.1.0/src/agentspec/badge/scorer.py +258 -0
  25. agentspec_ai-0.1.0/src/agentspec/badge/templates/.gitkeep +0 -0
  26. agentspec_ai-0.1.0/src/agentspec/ci/__init__.py +11 -0
  27. agentspec_ai-0.1.0/src/agentspec/ci/github.py +52 -0
  28. agentspec_ai-0.1.0/src/agentspec/ci/gitlab.py +33 -0
  29. agentspec_ai-0.1.0/src/agentspec/ci/pre_commit.py +58 -0
  30. agentspec_ai-0.1.0/src/agentspec/cli/__init__.py +1 -0
  31. agentspec_ai-0.1.0/src/agentspec/cli/app.py +645 -0
  32. agentspec_ai-0.1.0/src/agentspec/cli/diff_cmd.py +144 -0
  33. agentspec_ai-0.1.0/src/agentspec/cli/init_cmd.py +103 -0
  34. agentspec_ai-0.1.0/src/agentspec/cli/report_cmd.py +409 -0
  35. agentspec_ai-0.1.0/src/agentspec/cli/serve.py +58 -0
  36. agentspec_ai-0.1.0/src/agentspec/core/__init__.py +1 -0
  37. agentspec_ai-0.1.0/src/agentspec/core/linter.py +846 -0
  38. agentspec_ai-0.1.0/src/agentspec/core/loader.py +171 -0
  39. agentspec_ai-0.1.0/src/agentspec/core/models.py +560 -0
  40. agentspec_ai-0.1.0/src/agentspec/core/resolver.py +97 -0
  41. agentspec_ai-0.1.0/src/agentspec/core/validator.py +244 -0
  42. agentspec_ai-0.1.0/src/agentspec/generator/__init__.py +13 -0
  43. agentspec_ai-0.1.0/src/agentspec/generator/analyzer.py +168 -0
  44. agentspec_ai-0.1.0/src/agentspec/generator/llm_generator.py +132 -0
  45. agentspec_ai-0.1.0/src/agentspec/generator/scanner.py +268 -0
  46. agentspec_ai-0.1.0/src/agentspec/generator/templates.py +103 -0
  47. agentspec_ai-0.1.0/src/agentspec/runtime/__init__.py +46 -0
  48. agentspec_ai-0.1.0/src/agentspec/runtime/circuit_breaker.py +145 -0
  49. agentspec_ai-0.1.0/src/agentspec/runtime/decorators.py +90 -0
  50. agentspec_ai-0.1.0/src/agentspec/runtime/frameworks/__init__.py +16 -0
  51. agentspec_ai-0.1.0/src/agentspec/runtime/frameworks/generic_wrapper.py +151 -0
  52. agentspec_ai-0.1.0/src/agentspec/runtime/frameworks/langchain_middleware.py +243 -0
  53. agentspec_ai-0.1.0/src/agentspec/runtime/guards.py +236 -0
  54. agentspec_ai-0.1.0/src/agentspec/runtime/middleware.py +427 -0
  55. agentspec_ai-0.1.0/src/agentspec/runtime/tracker.py +168 -0
  56. agentspec_ai-0.1.0/src/agentspec/testing/__init__.py +1 -0
  57. agentspec_ai-0.1.0/src/agentspec/testing/assertions.py +274 -0
  58. agentspec_ai-0.1.0/src/agentspec/testing/generator.py +221 -0
  59. agentspec_ai-0.1.0/src/agentspec/testing/reporters/__init__.py +1 -0
  60. agentspec_ai-0.1.0/src/agentspec/testing/reporters/console.py +43 -0
  61. agentspec_ai-0.1.0/src/agentspec/testing/reporters/html.py +120 -0
  62. agentspec_ai-0.1.0/src/agentspec/testing/reporters/json.py +25 -0
  63. agentspec_ai-0.1.0/src/agentspec/testing/reporters/junit.py +54 -0
  64. agentspec_ai-0.1.0/src/agentspec/testing/runner.py +300 -0
  65. agentspec_ai-0.1.0/src/agentspec/utils/__init__.py +1 -0
  66. agentspec_ai-0.1.0/src/agentspec/utils/hash.py +47 -0
  67. agentspec_ai-0.1.0/src/agentspec/utils/yaml_utils.py +87 -0
  68. agentspec_ai-0.1.0/vscode-extension/LICENSE +94 -0
  69. agentspec_ai-0.1.0/vscode-extension/README.md +46 -0
  70. agentspec_ai-0.1.0/vscode-extension/node_modules/@types/node/LICENSE +21 -0
  71. agentspec_ai-0.1.0/vscode-extension/node_modules/@types/node/README.md +15 -0
  72. agentspec_ai-0.1.0/vscode-extension/node_modules/@types/vscode/LICENSE +21 -0
  73. agentspec_ai-0.1.0/vscode-extension/node_modules/@types/vscode/README.md +15 -0
  74. agentspec_ai-0.1.0/vscode-extension/node_modules/typescript/README.md +50 -0
  75. agentspec_ai-0.1.0/vscode-extension/node_modules/undici-types/LICENSE +21 -0
  76. agentspec_ai-0.1.0/vscode-extension/node_modules/undici-types/README.md +6 -0
  77. agentspec_ai-0.1.0/vscode-extension/schema/agentspec.schema.json +90 -0
  78. agentspec_ai-0.1.0/vscode-extension/src/commands.ts +95 -0
  79. agentspec_ai-0.1.0/vscode-extension/src/completion.ts +27 -0
  80. agentspec_ai-0.1.0/vscode-extension/src/diagnostics.ts +59 -0
  81. agentspec_ai-0.1.0/vscode-extension/src/extension.ts +94 -0
  82. agentspec_ai-0.1.0/vscode-extension/src/hover.ts +27 -0
@@ -0,0 +1,29 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *$py.class
4
+ *.egg-info/
5
+ dist/
6
+ build/
7
+ .eggs/
8
+ *.egg
9
+ .pytest_cache/
10
+ .mypy_cache/
11
+ .ruff_cache/
12
+ htmlcov/
13
+ .coverage
14
+ *.cover
15
+ .env
16
+ .venv/
17
+ venv/
18
+ *.log
19
+ .DS_Store
20
+ site/
21
+
22
+ # Internal / generated — do not publish
23
+ PROMPTS.md
24
+ SETUP.md
25
+ AgentSpec-Shipping-Plan.md
26
+ demo-output/
27
+
28
+ # Editor-local settings
29
+ .claude/
@@ -0,0 +1,94 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity.
18
+
19
+ "You" (or "Your") shall mean an individual or Legal Entity
20
+ exercising permissions granted by this License.
21
+
22
+ "Source" form shall mean the preferred form for making modifications.
23
+
24
+ "Object" form shall mean any form resulting from mechanical
25
+ transformation or translation of a Source form.
26
+
27
+ "Work" shall mean the work of authorship made available under the License.
28
+
29
+ "Derivative Works" shall mean any work that is based on the Work.
30
+
31
+ "Contribution" shall mean any work of authorship submitted to the Licensor
32
+ for inclusion in the Work.
33
+
34
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of whom
35
+ a Contribution has been received by the Licensor.
36
+
37
+ 2. Grant of Copyright License. Subject to the terms and conditions of
38
+ this License, each Contributor hereby grants to You a perpetual,
39
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
40
+ copyright license to reproduce, prepare Derivative Works of,
41
+ publicly display, publicly perform, sublicense, and distribute the
42
+ Work and such Derivative Works in Source or Object form.
43
+
44
+ 3. Grant of Patent License. Subject to the terms and conditions of
45
+ this License, each Contributor hereby grants to You a perpetual,
46
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
47
+ patent license to make, have made, use, offer to sell, sell, import,
48
+ and otherwise transfer the Work.
49
+
50
+ 4. Redistribution. You may reproduce and distribute copies of the
51
+ Work or Derivative Works thereof in any medium, with or without
52
+ modifications, and in Source or Object form, provided that You
53
+ meet the following conditions:
54
+
55
+ (a) You must give any other recipients of the Work or
56
+ Derivative Works a copy of this License; and
57
+
58
+ (b) You must cause any modified files to carry prominent notices
59
+ stating that You changed the files; and
60
+
61
+ (c) You must retain, in the Source form of any Derivative Works
62
+ that You distribute, all copyright, patent, trademark, and
63
+ attribution notices from the Source form of the Work; and
64
+
65
+ (d) If the Work includes a "NOTICE" text file, You must include
66
+ a readable copy of the attribution notices contained within
67
+ such NOTICE file.
68
+
69
+ 5. Submission of Contributions.
70
+
71
+ 6. Trademarks. This License does not grant permission to use the trade
72
+ names, trademarks, service marks, or product names of the Licensor.
73
+
74
+ 7. Disclaimer of Warranty. The Work is provided on an "AS IS" BASIS,
75
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
76
+
77
+ 8. Limitation of Liability. In no event shall any Contributor be liable
78
+ for any damages.
79
+
80
+ 9. Accepting Warranty or Additional Liability.
81
+
82
+ Copyright 2025 Shallabh Dixitt
83
+
84
+ Licensed under the Apache License, Version 2.0 (the "License");
85
+ you may not use this file except in compliance with the License.
86
+ You may obtain a copy of the License at
87
+
88
+ http://www.apache.org/licenses/LICENSE-2.0
89
+
90
+ Unless required by applicable law or agreed to in writing, software
91
+ distributed under the License is distributed on an "AS IS" BASIS,
92
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
93
+ See the License for the specific language governing permissions and
94
+ limitations under the License.