bastet-agent-os 0.19.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.
- bastet_agent_os-0.19.0/.dockerignore +9 -0
- bastet_agent_os-0.19.0/.github/workflows/ci.yml +26 -0
- bastet_agent_os-0.19.0/.github/workflows/release.yml +54 -0
- bastet_agent_os-0.19.0/.gitignore +20 -0
- bastet_agent_os-0.19.0/CHANGELOG.md +1006 -0
- bastet_agent_os-0.19.0/COMPATIBILITY.md +57 -0
- bastet_agent_os-0.19.0/CONTRIBUTING.md +83 -0
- bastet_agent_os-0.19.0/Dockerfile +43 -0
- bastet_agent_os-0.19.0/LICENSE +201 -0
- bastet_agent_os-0.19.0/PKG-INFO +617 -0
- bastet_agent_os-0.19.0/PROGRESS.md +97 -0
- bastet_agent_os-0.19.0/README.md +377 -0
- bastet_agent_os-0.19.0/README.zh-Hant.md +237 -0
- bastet_agent_os-0.19.0/SECURITY.md +68 -0
- bastet_agent_os-0.19.0/SPEC.md +623 -0
- bastet_agent_os-0.19.0/docker-compose.yml +22 -0
- bastet_agent_os-0.19.0/docs/FEDERATION.md +36 -0
- bastet_agent_os-0.19.0/docs/HISTORY.md +233 -0
- bastet_agent_os-0.19.0/docs/INSTALLATION.md +222 -0
- bastet_agent_os-0.19.0/docs/ROADMAP.md +46 -0
- bastet_agent_os-0.19.0/docs/USER_GUIDE.md +348 -0
- bastet_agent_os-0.19.0/install.sh +161 -0
- bastet_agent_os-0.19.0/pyproject.toml +74 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/__init__.py +8 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/channels/__init__.py +1 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/channels/telegram.py +520 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/chat.py +552 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/cli.py +474 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/config.py +168 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/container.py +88 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/context_engine.py +153 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/db.py +421 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/events.py +78 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/executors/__init__.py +14 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/executors/accounts.py +152 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/executors/agy.py +208 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/executors/base.py +142 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/executors/bastet_lite.py +414 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/executors/claude_code.py +221 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/executors/claude_sdk.py +173 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/executors/codex.py +261 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/executors/grok.py +231 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/executors/hermes.py +186 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/executors/quota.py +102 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/gateway.py +338 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/governance.py +167 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/login_sessions.py +158 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/maintenance.py +211 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/orchestrator.py +1172 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/pricing.py +96 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/project_lifecycle.py +338 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/project_runner.py +439 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/resource_access.py +215 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/resource_install.py +65 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/resource_kinds.py +131 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/resource_test.py +489 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/role_prompts.py +109 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/run_memory.py +201 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/run_tokens.py +46 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/secrets_store.py +177 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/server.py +2472 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/service.py +177 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/settings.py +61 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/ui_dist/assets/index-5qSzbPGv.css +32 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/ui_dist/assets/index-BSM2bvmd.js +84 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/ui_dist/index.html +13 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/usage_extract.py +128 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/users.py +117 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/workflow.py +289 -0
- bastet_agent_os-0.19.0/src/bastet_agent_os/workflow_presets.py +218 -0
- bastet_agent_os-0.19.0/tests/conftest.py +67 -0
- bastet_agent_os-0.19.0/tests/fake_executor.py +54 -0
- bastet_agent_os-0.19.0/tests/test_agy_executor.py +88 -0
- bastet_agent_os-0.19.0/tests/test_audit_search.py +164 -0
- bastet_agent_os-0.19.0/tests/test_bastet_lite.py +119 -0
- bastet_agent_os-0.19.0/tests/test_chat.py +384 -0
- bastet_agent_os-0.19.0/tests/test_claude_code_executor.py +44 -0
- bastet_agent_os-0.19.0/tests/test_claude_sdk.py +132 -0
- bastet_agent_os-0.19.0/tests/test_codex_executor.py +124 -0
- bastet_agent_os-0.19.0/tests/test_core.py +152 -0
- bastet_agent_os-0.19.0/tests/test_dispatch_paths.py +363 -0
- bastet_agent_os-0.19.0/tests/test_events.py +68 -0
- bastet_agent_os-0.19.0/tests/test_executor_json.py +196 -0
- bastet_agent_os-0.19.0/tests/test_federation.py +93 -0
- bastet_agent_os-0.19.0/tests/test_gateway.py +110 -0
- bastet_agent_os-0.19.0/tests/test_git_resource.py +203 -0
- bastet_agent_os-0.19.0/tests/test_grok_executor.py +103 -0
- bastet_agent_os-0.19.0/tests/test_hermes_executor.py +90 -0
- bastet_agent_os-0.19.0/tests/test_i18n.py +81 -0
- bastet_agent_os-0.19.0/tests/test_interactions.py +117 -0
- bastet_agent_os-0.19.0/tests/test_job_removal.py +135 -0
- bastet_agent_os-0.19.0/tests/test_login_sessions.py +45 -0
- bastet_agent_os-0.19.0/tests/test_m3_governance.py +119 -0
- bastet_agent_os-0.19.0/tests/test_maintenance.py +187 -0
- bastet_agent_os-0.19.0/tests/test_media.py +93 -0
- bastet_agent_os-0.19.0/tests/test_multiuser.py +109 -0
- bastet_agent_os-0.19.0/tests/test_project_lifecycle.py +540 -0
- bastet_agent_os-0.19.0/tests/test_resource_test.py +252 -0
- bastet_agent_os-0.19.0/tests/test_resources.py +387 -0
- bastet_agent_os-0.19.0/tests/test_rework.py +344 -0
- bastet_agent_os-0.19.0/tests/test_run_memory.py +123 -0
- bastet_agent_os-0.19.0/tests/test_server_security.py +79 -0
- bastet_agent_os-0.19.0/tests/test_service.py +25 -0
- bastet_agent_os-0.19.0/tests/test_settings_and_supplies.py +185 -0
- bastet_agent_os-0.19.0/tests/test_telegram.py +272 -0
- bastet_agent_os-0.19.0/tests/test_users_roles.py +148 -0
- bastet_agent_os-0.19.0/tests/test_version.py +46 -0
- bastet_agent_os-0.19.0/tests/test_workflow.py +387 -0
- bastet_agent_os-0.19.0/tests/test_worktree_and_responses.py +114 -0
- bastet_agent_os-0.19.0/web/eslint.config.js +24 -0
- bastet_agent_os-0.19.0/web/index.html +12 -0
- bastet_agent_os-0.19.0/web/package-lock.json +3273 -0
- bastet_agent_os-0.19.0/web/package.json +30 -0
- bastet_agent_os-0.19.0/web/src/App.tsx +161 -0
- bastet_agent_os-0.19.0/web/src/LoginWizard.tsx +112 -0
- bastet_agent_os-0.19.0/web/src/api.ts +167 -0
- bastet_agent_os-0.19.0/web/src/app.css +355 -0
- bastet_agent_os-0.19.0/web/src/i18n/en.ts +572 -0
- bastet_agent_os-0.19.0/web/src/i18n/index.tsx +109 -0
- bastet_agent_os-0.19.0/web/src/i18n/ja.ts +572 -0
- bastet_agent_os-0.19.0/web/src/i18n/ko.ts +572 -0
- bastet_agent_os-0.19.0/web/src/i18n/zh-Hans.ts +592 -0
- bastet_agent_os-0.19.0/web/src/i18n/zh-Hant.ts +592 -0
- bastet_agent_os-0.19.0/web/src/main.tsx +13 -0
- bastet_agent_os-0.19.0/web/src/pages/Admin.tsx +468 -0
- bastet_agent_os-0.19.0/web/src/pages/Audit.tsx +99 -0
- bastet_agent_os-0.19.0/web/src/pages/Board.tsx +494 -0
- bastet_agent_os-0.19.0/web/src/pages/Chat.tsx +449 -0
- bastet_agent_os-0.19.0/web/src/pages/Memory.tsx +127 -0
- bastet_agent_os-0.19.0/web/src/pages/Org.tsx +479 -0
- bastet_agent_os-0.19.0/web/src/pages/ProjectPage.tsx +571 -0
- bastet_agent_os-0.19.0/web/src/pages/Resources.tsx +561 -0
- bastet_agent_os-0.19.0/web/src/pages/RoleAssign.tsx +124 -0
- bastet_agent_os-0.19.0/web/src/pages/RolePrompts.tsx +117 -0
- bastet_agent_os-0.19.0/web/src/pages/Secrets.tsx +191 -0
- bastet_agent_os-0.19.0/web/src/pages/Templates.tsx +425 -0
- bastet_agent_os-0.19.0/web/src/ui.tsx +140 -0
- bastet_agent_os-0.19.0/web/tsconfig.json +14 -0
- bastet_agent_os-0.19.0/web/tsconfig.tsbuildinfo +1 -0
- bastet_agent_os-0.19.0/web/vite.config.ts +18 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
test:
|
|
10
|
+
strategy:
|
|
11
|
+
fail-fast: false
|
|
12
|
+
matrix:
|
|
13
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
14
|
+
python: ["3.11", "3.12"]
|
|
15
|
+
runs-on: ${{ matrix.os }}
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- uses: actions/setup-python@v5
|
|
19
|
+
with:
|
|
20
|
+
python-version: ${{ matrix.python }}
|
|
21
|
+
- name: Install
|
|
22
|
+
run: pip install -e '.[dev]'
|
|
23
|
+
- name: Lint
|
|
24
|
+
run: ruff check src/ tests/
|
|
25
|
+
- name: Test
|
|
26
|
+
run: pytest -q
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Release: PyPI (Trusted Publishing) + Docker Hub, on every v* tag.
|
|
2
|
+
#
|
|
3
|
+
# One-time setup, in the maintainer's accounts (nothing here can do it for you):
|
|
4
|
+
# PyPI → project bastet-agent-os → Publishing → add GitHub publisher:
|
|
5
|
+
# owner yamantaka520, repo Bastet-Agent-OS,
|
|
6
|
+
# workflow release.yml, environment pypi
|
|
7
|
+
# (no token ends up in GitHub — that is the point of Trusted Publishing)
|
|
8
|
+
# GitHub → repo Settings → Environments → create "pypi"
|
|
9
|
+
# Docker Hub → Account Settings → Personal access tokens → new token, then
|
|
10
|
+
# GitHub → repo Settings → Secrets → DOCKERHUB_USERNAME + DOCKERHUB_TOKEN
|
|
11
|
+
name: Release
|
|
12
|
+
|
|
13
|
+
on:
|
|
14
|
+
push:
|
|
15
|
+
tags: ["v*"]
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
pypi:
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
environment: pypi
|
|
21
|
+
permissions:
|
|
22
|
+
id-token: write # Trusted Publishing: OIDC, no stored token
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v4
|
|
25
|
+
- uses: actions/setup-python@v5
|
|
26
|
+
with:
|
|
27
|
+
python-version: "3.12"
|
|
28
|
+
- name: Tag must match the package version
|
|
29
|
+
run: |
|
|
30
|
+
PKG=$(python -c "import re;print(re.search(r'__version__ = \"([^\"]+)\"', open('src/bastet_agent_os/__init__.py').read()).group(1))")
|
|
31
|
+
TAG="${GITHUB_REF_NAME#v}"
|
|
32
|
+
test "$PKG" = "$TAG" || { echo "tag v$TAG != __version__ $PKG"; exit 1; }
|
|
33
|
+
- run: pip install build && python -m build
|
|
34
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
35
|
+
|
|
36
|
+
docker:
|
|
37
|
+
runs-on: ubuntu-latest
|
|
38
|
+
steps:
|
|
39
|
+
- uses: actions/checkout@v4
|
|
40
|
+
- uses: docker/setup-buildx-action@v3
|
|
41
|
+
- uses: docker/login-action@v3
|
|
42
|
+
with:
|
|
43
|
+
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
44
|
+
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
45
|
+
- id: version
|
|
46
|
+
run: echo "v=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
|
|
47
|
+
- uses: docker/build-push-action@v6
|
|
48
|
+
with:
|
|
49
|
+
context: .
|
|
50
|
+
platforms: linux/amd64,linux/arm64
|
|
51
|
+
push: true
|
|
52
|
+
tags: |
|
|
53
|
+
${{ secrets.DOCKERHUB_USERNAME }}/bastet-agent-os:latest
|
|
54
|
+
${{ secrets.DOCKERHUB_USERNAME }}/bastet-agent-os:${{ steps.version.outputs.v }}
|