elasticdash-sdk 0.1.2a2__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.
- elasticdash_sdk-0.1.2a2/.claude/settings.local.json +11 -0
- elasticdash_sdk-0.1.2a2/.github/copilot-instructions.md +67 -0
- elasticdash_sdk-0.1.2a2/.gitignore +209 -0
- elasticdash_sdk-0.1.2a2/LICENSE +21 -0
- elasticdash_sdk-0.1.2a2/PKG-INFO +500 -0
- elasticdash_sdk-0.1.2a2/README.md +478 -0
- elasticdash_sdk-0.1.2a2/app_workflows.py +11 -0
- elasticdash_sdk-0.1.2a2/docs/test-writing-guidelines.md +89 -0
- elasticdash_sdk-0.1.2a2/ed_tools.py +76 -0
- elasticdash_sdk-0.1.2a2/ed_workflows.py +25 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/__init__.py +36 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/browser_ui.py +204 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/capture/__init__.py +15 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/capture/event.py +33 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/capture/recorder.py +79 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/capture/replay.py +64 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/__init__.py +19 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/api_client.py +130 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/benchmark.py +213 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/ed_runner.py +205 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/executor.py +382 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/git_info.py +122 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/measurement.py +21 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/replay.py +100 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/reporters/__init__.py +28 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/reporters/default.py +43 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/reporters/json_reporter.py +22 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/reporters/junit.py +45 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/runner.py +130 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/test_discovery.py +26 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/test_loader.py +109 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/test_registry.py +32 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/trace_schema.py +95 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/trace_writer.py +44 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/types.py +210 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/ci/upload_client.py +135 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/cli.py +482 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/core/__init__.py +25 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/core/agent_state.py +186 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/core/judge_utils.py +196 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/dashboard.py +1174 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/execution/__init__.py +21 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/execution/tool_runner.py +227 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/interceptors/__init__.py +63 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/interceptors/ai_interceptor.py +474 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/interceptors/db.py +196 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/interceptors/db_auto.py +181 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/interceptors/http.py +211 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/interceptors/side_effects.py +119 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/interceptors/telemetry_push.py +208 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/interceptors/tool.py +192 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/interceptors/workflow_ai.py +195 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/matchers.py +368 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/observability.py +218 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/portal_executor.py +294 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/portal_server.py +185 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/proxy/__init__.py +8 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/proxy/llm_capture.py +192 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/registry.py +108 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/reporter.py +90 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/runner.py +141 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/socket_connector.py +99 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/telemetry_batcher.py +181 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/tool_registry.py +111 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/trace.py +89 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/tracing.py +50 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/trigger_executor.py +104 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/utils/__init__.py +9 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/utils/debug.py +30 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/utils/redact.py +39 -0
- elasticdash_sdk-0.1.2a2/elasticdash_test/workflow_runner.py +85 -0
- elasticdash_sdk-0.1.2a2/examples/simple_flow.ai_test.py +47 -0
- elasticdash_sdk-0.1.2a2/publish.sh +32 -0
- elasticdash_sdk-0.1.2a2/pyproject.toml +42 -0
- elasticdash_sdk-0.1.2a2/requirements.txt +18 -0
- elasticdash_sdk-0.1.2a2/tests/test_capture.py +200 -0
- elasticdash_sdk-0.1.2a2/tests/test_ci.py +327 -0
- elasticdash_sdk-0.1.2a2/tests/test_core.py +221 -0
- elasticdash_sdk-0.1.2a2/tests/test_execution.py +155 -0
- elasticdash_sdk-0.1.2a2/tests/test_interceptors.py +308 -0
- elasticdash_sdk-0.1.2a2/tests/test_placeholder.py +2 -0
- elasticdash_sdk-0.1.2a2/tests/test_tracing.py +86 -0
- elasticdash_sdk-0.1.2a2/tests/test_utils.py +97 -0
- elasticdash_sdk-0.1.2a2/tests/test_workflow_runner.py +87 -0
- elasticdash_sdk-0.1.2a2/venv.sh +15 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
Repository Steering & AI Contributor Guide
|
|
2
|
+
=========================================
|
|
3
|
+
|
|
4
|
+
Purpose
|
|
5
|
+
-------
|
|
6
|
+
Provide a clear, repeatable workflow for coding AI agents that manage and modify this repository while keeping a human in the approval loop at all times.
|
|
7
|
+
|
|
8
|
+
High-Level Expectations
|
|
9
|
+
-----------------------
|
|
10
|
+
- Act as a cautious collaborator: minimize churn, avoid surprises, and preserve user-owned changes.
|
|
11
|
+
- Default to small, reviewable increments; avoid speculative or wide-ranging edits without explicit direction.
|
|
12
|
+
- Keep communication concise, factual, and action-oriented.
|
|
13
|
+
- You are in macOS, so run `source .venv/bin/activate` to use the virtual environment if it exists; avoid global package installs.
|
|
14
|
+
|
|
15
|
+
Mandatory Plan & Approval Gate
|
|
16
|
+
------------------------------
|
|
17
|
+
- Before making any code or docs changes, **draft a plan** describing scope, files to touch, and intended steps. The plan should be saved in the markdown file './.temp/plan.md'.
|
|
18
|
+
- **Request human approval** for the plan and wait until approval is granted before proceeding with any edits.
|
|
19
|
+
- If new information or unexpected changes require a different approach, **update the existing plan**, highlight the differences, and request approval again.
|
|
20
|
+
- If an entirely new plan is required, **remove the old plan**, present the new one, and seek approval before continuing.
|
|
21
|
+
|
|
22
|
+
Change Execution Workflow (post-approval)
|
|
23
|
+
-----------------------------------------
|
|
24
|
+
1. Re-read relevant files in batches to refresh context and confirm nothing diverged from the approved plan.
|
|
25
|
+
2. Implement changes exactly as approved; flag any deviations and pause for guidance.
|
|
26
|
+
3. Keep edits minimal and localized; avoid drive-by refactors unless specifically requested.
|
|
27
|
+
4. Add or adjust tests when behavior changes; prefer `pytest` in `tests/` for coverage.
|
|
28
|
+
5. Run applicable checks (formatters/linters/tests) when possible; report what was run and any results.
|
|
29
|
+
6. Summarize outcomes with file and line references, describe side effects/risks, and propose next steps if needed.
|
|
30
|
+
|
|
31
|
+
Coding & Repo Practices
|
|
32
|
+
-----------------------
|
|
33
|
+
- Python style: favor readability; add short comments only for non-obvious logic.
|
|
34
|
+
- Environments: use the repo’s virtualenv if present (`.venv`), avoid global installs.
|
|
35
|
+
- Testing: prefer `pytest`; keep new tests fast and deterministic.
|
|
36
|
+
- Documentation: update relevant docs when altering behavior or interfaces.
|
|
37
|
+
- Avoid destructive git operations; never revert user changes unless explicitly instructed.
|
|
38
|
+
|
|
39
|
+
Communication Norms
|
|
40
|
+
-------------------
|
|
41
|
+
- Ask for clarification only when necessary; suggest sensible defaults to accelerate decisions.
|
|
42
|
+
- When presenting changes, lead with findings/impacts before summaries; include risks and testing status.
|
|
43
|
+
- Keep responses concise and scoped to the request; no excessive formatting.
|
|
44
|
+
|
|
45
|
+
Plan Template (copy/paste)
|
|
46
|
+
--------------------------
|
|
47
|
+
- Goal: what will change and why.
|
|
48
|
+
- Scope: bullets of the change boundaries; note any out-of-scope areas.
|
|
49
|
+
- Files/areas to touch: list expected files or directories.
|
|
50
|
+
- Steps: ordered list of actions with checkboxes (e.g., - [ ] Step 1); keep it short.
|
|
51
|
+
- Risks/unknowns: call out uncertainties or potential impacts.
|
|
52
|
+
- Testing: what you plan to run (e.g., `pytest tests/...` or "none").
|
|
53
|
+
- Approval: explicitly request human approval before execution.
|
|
54
|
+
|
|
55
|
+
Example
|
|
56
|
+
-------
|
|
57
|
+
- Goal: Add plan template section to steering doc for AI agents.
|
|
58
|
+
- Scope: Update .github/copilot-instructions.md only; no code changes.
|
|
59
|
+
- Files/areas to touch: .github/copilot-instructions.md.
|
|
60
|
+
- Steps:
|
|
61
|
+
- [ ] Re-read current guide;
|
|
62
|
+
- [ ] Append plan template and example;
|
|
63
|
+
- [ ] Keep tone concise;
|
|
64
|
+
- [ ] Summarize edit.
|
|
65
|
+
- Risks/unknowns: none.
|
|
66
|
+
- Testing: none (docs only).
|
|
67
|
+
- Approval: request and wait for human approval before editing.
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
#poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
#pdm.lock
|
|
116
|
+
#pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
#pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# SageMath parsed files
|
|
135
|
+
*.sage.py
|
|
136
|
+
|
|
137
|
+
# Environments
|
|
138
|
+
.env
|
|
139
|
+
.envrc
|
|
140
|
+
.venv
|
|
141
|
+
env/
|
|
142
|
+
venv/
|
|
143
|
+
ENV/
|
|
144
|
+
env.bak/
|
|
145
|
+
venv.bak/
|
|
146
|
+
|
|
147
|
+
# Spyder project settings
|
|
148
|
+
.spyderproject
|
|
149
|
+
.spyproject
|
|
150
|
+
|
|
151
|
+
# Rope project settings
|
|
152
|
+
.ropeproject
|
|
153
|
+
|
|
154
|
+
# mkdocs documentation
|
|
155
|
+
/site
|
|
156
|
+
|
|
157
|
+
# mypy
|
|
158
|
+
.mypy_cache/
|
|
159
|
+
.dmypy.json
|
|
160
|
+
dmypy.json
|
|
161
|
+
|
|
162
|
+
# Pyre type checker
|
|
163
|
+
.pyre/
|
|
164
|
+
|
|
165
|
+
# pytype static type analyzer
|
|
166
|
+
.pytype/
|
|
167
|
+
|
|
168
|
+
# Cython debug symbols
|
|
169
|
+
cython_debug/
|
|
170
|
+
|
|
171
|
+
# PyCharm
|
|
172
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
173
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
174
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
175
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
176
|
+
#.idea/
|
|
177
|
+
|
|
178
|
+
# Abstra
|
|
179
|
+
# Abstra is an AI-powered process automation framework.
|
|
180
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
181
|
+
# Learn more at https://abstra.io/docs
|
|
182
|
+
.abstra/
|
|
183
|
+
|
|
184
|
+
# Visual Studio Code
|
|
185
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
186
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
188
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
189
|
+
# .vscode/
|
|
190
|
+
|
|
191
|
+
# Ruff stuff:
|
|
192
|
+
.ruff_cache/
|
|
193
|
+
|
|
194
|
+
# PyPI configuration file
|
|
195
|
+
.pypirc
|
|
196
|
+
|
|
197
|
+
# Cursor
|
|
198
|
+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
|
|
199
|
+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
|
200
|
+
# refer to https://docs.cursor.com/context/ignore-files
|
|
201
|
+
.cursorignore
|
|
202
|
+
.cursorindexingignore
|
|
203
|
+
|
|
204
|
+
# Marimo
|
|
205
|
+
marimo/_static/
|
|
206
|
+
marimo/_lsp/
|
|
207
|
+
__marimo__/
|
|
208
|
+
|
|
209
|
+
.temp/
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ElasticDash
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|