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.
Files changed (140) hide show
  1. bastet_agent_os-0.19.0/.dockerignore +9 -0
  2. bastet_agent_os-0.19.0/.github/workflows/ci.yml +26 -0
  3. bastet_agent_os-0.19.0/.github/workflows/release.yml +54 -0
  4. bastet_agent_os-0.19.0/.gitignore +20 -0
  5. bastet_agent_os-0.19.0/CHANGELOG.md +1006 -0
  6. bastet_agent_os-0.19.0/COMPATIBILITY.md +57 -0
  7. bastet_agent_os-0.19.0/CONTRIBUTING.md +83 -0
  8. bastet_agent_os-0.19.0/Dockerfile +43 -0
  9. bastet_agent_os-0.19.0/LICENSE +201 -0
  10. bastet_agent_os-0.19.0/PKG-INFO +617 -0
  11. bastet_agent_os-0.19.0/PROGRESS.md +97 -0
  12. bastet_agent_os-0.19.0/README.md +377 -0
  13. bastet_agent_os-0.19.0/README.zh-Hant.md +237 -0
  14. bastet_agent_os-0.19.0/SECURITY.md +68 -0
  15. bastet_agent_os-0.19.0/SPEC.md +623 -0
  16. bastet_agent_os-0.19.0/docker-compose.yml +22 -0
  17. bastet_agent_os-0.19.0/docs/FEDERATION.md +36 -0
  18. bastet_agent_os-0.19.0/docs/HISTORY.md +233 -0
  19. bastet_agent_os-0.19.0/docs/INSTALLATION.md +222 -0
  20. bastet_agent_os-0.19.0/docs/ROADMAP.md +46 -0
  21. bastet_agent_os-0.19.0/docs/USER_GUIDE.md +348 -0
  22. bastet_agent_os-0.19.0/install.sh +161 -0
  23. bastet_agent_os-0.19.0/pyproject.toml +74 -0
  24. bastet_agent_os-0.19.0/src/bastet_agent_os/__init__.py +8 -0
  25. bastet_agent_os-0.19.0/src/bastet_agent_os/channels/__init__.py +1 -0
  26. bastet_agent_os-0.19.0/src/bastet_agent_os/channels/telegram.py +520 -0
  27. bastet_agent_os-0.19.0/src/bastet_agent_os/chat.py +552 -0
  28. bastet_agent_os-0.19.0/src/bastet_agent_os/cli.py +474 -0
  29. bastet_agent_os-0.19.0/src/bastet_agent_os/config.py +168 -0
  30. bastet_agent_os-0.19.0/src/bastet_agent_os/container.py +88 -0
  31. bastet_agent_os-0.19.0/src/bastet_agent_os/context_engine.py +153 -0
  32. bastet_agent_os-0.19.0/src/bastet_agent_os/db.py +421 -0
  33. bastet_agent_os-0.19.0/src/bastet_agent_os/events.py +78 -0
  34. bastet_agent_os-0.19.0/src/bastet_agent_os/executors/__init__.py +14 -0
  35. bastet_agent_os-0.19.0/src/bastet_agent_os/executors/accounts.py +152 -0
  36. bastet_agent_os-0.19.0/src/bastet_agent_os/executors/agy.py +208 -0
  37. bastet_agent_os-0.19.0/src/bastet_agent_os/executors/base.py +142 -0
  38. bastet_agent_os-0.19.0/src/bastet_agent_os/executors/bastet_lite.py +414 -0
  39. bastet_agent_os-0.19.0/src/bastet_agent_os/executors/claude_code.py +221 -0
  40. bastet_agent_os-0.19.0/src/bastet_agent_os/executors/claude_sdk.py +173 -0
  41. bastet_agent_os-0.19.0/src/bastet_agent_os/executors/codex.py +261 -0
  42. bastet_agent_os-0.19.0/src/bastet_agent_os/executors/grok.py +231 -0
  43. bastet_agent_os-0.19.0/src/bastet_agent_os/executors/hermes.py +186 -0
  44. bastet_agent_os-0.19.0/src/bastet_agent_os/executors/quota.py +102 -0
  45. bastet_agent_os-0.19.0/src/bastet_agent_os/gateway.py +338 -0
  46. bastet_agent_os-0.19.0/src/bastet_agent_os/governance.py +167 -0
  47. bastet_agent_os-0.19.0/src/bastet_agent_os/login_sessions.py +158 -0
  48. bastet_agent_os-0.19.0/src/bastet_agent_os/maintenance.py +211 -0
  49. bastet_agent_os-0.19.0/src/bastet_agent_os/orchestrator.py +1172 -0
  50. bastet_agent_os-0.19.0/src/bastet_agent_os/pricing.py +96 -0
  51. bastet_agent_os-0.19.0/src/bastet_agent_os/project_lifecycle.py +338 -0
  52. bastet_agent_os-0.19.0/src/bastet_agent_os/project_runner.py +439 -0
  53. bastet_agent_os-0.19.0/src/bastet_agent_os/resource_access.py +215 -0
  54. bastet_agent_os-0.19.0/src/bastet_agent_os/resource_install.py +65 -0
  55. bastet_agent_os-0.19.0/src/bastet_agent_os/resource_kinds.py +131 -0
  56. bastet_agent_os-0.19.0/src/bastet_agent_os/resource_test.py +489 -0
  57. bastet_agent_os-0.19.0/src/bastet_agent_os/role_prompts.py +109 -0
  58. bastet_agent_os-0.19.0/src/bastet_agent_os/run_memory.py +201 -0
  59. bastet_agent_os-0.19.0/src/bastet_agent_os/run_tokens.py +46 -0
  60. bastet_agent_os-0.19.0/src/bastet_agent_os/secrets_store.py +177 -0
  61. bastet_agent_os-0.19.0/src/bastet_agent_os/server.py +2472 -0
  62. bastet_agent_os-0.19.0/src/bastet_agent_os/service.py +177 -0
  63. bastet_agent_os-0.19.0/src/bastet_agent_os/settings.py +61 -0
  64. bastet_agent_os-0.19.0/src/bastet_agent_os/ui_dist/assets/index-5qSzbPGv.css +32 -0
  65. bastet_agent_os-0.19.0/src/bastet_agent_os/ui_dist/assets/index-BSM2bvmd.js +84 -0
  66. bastet_agent_os-0.19.0/src/bastet_agent_os/ui_dist/index.html +13 -0
  67. bastet_agent_os-0.19.0/src/bastet_agent_os/usage_extract.py +128 -0
  68. bastet_agent_os-0.19.0/src/bastet_agent_os/users.py +117 -0
  69. bastet_agent_os-0.19.0/src/bastet_agent_os/workflow.py +289 -0
  70. bastet_agent_os-0.19.0/src/bastet_agent_os/workflow_presets.py +218 -0
  71. bastet_agent_os-0.19.0/tests/conftest.py +67 -0
  72. bastet_agent_os-0.19.0/tests/fake_executor.py +54 -0
  73. bastet_agent_os-0.19.0/tests/test_agy_executor.py +88 -0
  74. bastet_agent_os-0.19.0/tests/test_audit_search.py +164 -0
  75. bastet_agent_os-0.19.0/tests/test_bastet_lite.py +119 -0
  76. bastet_agent_os-0.19.0/tests/test_chat.py +384 -0
  77. bastet_agent_os-0.19.0/tests/test_claude_code_executor.py +44 -0
  78. bastet_agent_os-0.19.0/tests/test_claude_sdk.py +132 -0
  79. bastet_agent_os-0.19.0/tests/test_codex_executor.py +124 -0
  80. bastet_agent_os-0.19.0/tests/test_core.py +152 -0
  81. bastet_agent_os-0.19.0/tests/test_dispatch_paths.py +363 -0
  82. bastet_agent_os-0.19.0/tests/test_events.py +68 -0
  83. bastet_agent_os-0.19.0/tests/test_executor_json.py +196 -0
  84. bastet_agent_os-0.19.0/tests/test_federation.py +93 -0
  85. bastet_agent_os-0.19.0/tests/test_gateway.py +110 -0
  86. bastet_agent_os-0.19.0/tests/test_git_resource.py +203 -0
  87. bastet_agent_os-0.19.0/tests/test_grok_executor.py +103 -0
  88. bastet_agent_os-0.19.0/tests/test_hermes_executor.py +90 -0
  89. bastet_agent_os-0.19.0/tests/test_i18n.py +81 -0
  90. bastet_agent_os-0.19.0/tests/test_interactions.py +117 -0
  91. bastet_agent_os-0.19.0/tests/test_job_removal.py +135 -0
  92. bastet_agent_os-0.19.0/tests/test_login_sessions.py +45 -0
  93. bastet_agent_os-0.19.0/tests/test_m3_governance.py +119 -0
  94. bastet_agent_os-0.19.0/tests/test_maintenance.py +187 -0
  95. bastet_agent_os-0.19.0/tests/test_media.py +93 -0
  96. bastet_agent_os-0.19.0/tests/test_multiuser.py +109 -0
  97. bastet_agent_os-0.19.0/tests/test_project_lifecycle.py +540 -0
  98. bastet_agent_os-0.19.0/tests/test_resource_test.py +252 -0
  99. bastet_agent_os-0.19.0/tests/test_resources.py +387 -0
  100. bastet_agent_os-0.19.0/tests/test_rework.py +344 -0
  101. bastet_agent_os-0.19.0/tests/test_run_memory.py +123 -0
  102. bastet_agent_os-0.19.0/tests/test_server_security.py +79 -0
  103. bastet_agent_os-0.19.0/tests/test_service.py +25 -0
  104. bastet_agent_os-0.19.0/tests/test_settings_and_supplies.py +185 -0
  105. bastet_agent_os-0.19.0/tests/test_telegram.py +272 -0
  106. bastet_agent_os-0.19.0/tests/test_users_roles.py +148 -0
  107. bastet_agent_os-0.19.0/tests/test_version.py +46 -0
  108. bastet_agent_os-0.19.0/tests/test_workflow.py +387 -0
  109. bastet_agent_os-0.19.0/tests/test_worktree_and_responses.py +114 -0
  110. bastet_agent_os-0.19.0/web/eslint.config.js +24 -0
  111. bastet_agent_os-0.19.0/web/index.html +12 -0
  112. bastet_agent_os-0.19.0/web/package-lock.json +3273 -0
  113. bastet_agent_os-0.19.0/web/package.json +30 -0
  114. bastet_agent_os-0.19.0/web/src/App.tsx +161 -0
  115. bastet_agent_os-0.19.0/web/src/LoginWizard.tsx +112 -0
  116. bastet_agent_os-0.19.0/web/src/api.ts +167 -0
  117. bastet_agent_os-0.19.0/web/src/app.css +355 -0
  118. bastet_agent_os-0.19.0/web/src/i18n/en.ts +572 -0
  119. bastet_agent_os-0.19.0/web/src/i18n/index.tsx +109 -0
  120. bastet_agent_os-0.19.0/web/src/i18n/ja.ts +572 -0
  121. bastet_agent_os-0.19.0/web/src/i18n/ko.ts +572 -0
  122. bastet_agent_os-0.19.0/web/src/i18n/zh-Hans.ts +592 -0
  123. bastet_agent_os-0.19.0/web/src/i18n/zh-Hant.ts +592 -0
  124. bastet_agent_os-0.19.0/web/src/main.tsx +13 -0
  125. bastet_agent_os-0.19.0/web/src/pages/Admin.tsx +468 -0
  126. bastet_agent_os-0.19.0/web/src/pages/Audit.tsx +99 -0
  127. bastet_agent_os-0.19.0/web/src/pages/Board.tsx +494 -0
  128. bastet_agent_os-0.19.0/web/src/pages/Chat.tsx +449 -0
  129. bastet_agent_os-0.19.0/web/src/pages/Memory.tsx +127 -0
  130. bastet_agent_os-0.19.0/web/src/pages/Org.tsx +479 -0
  131. bastet_agent_os-0.19.0/web/src/pages/ProjectPage.tsx +571 -0
  132. bastet_agent_os-0.19.0/web/src/pages/Resources.tsx +561 -0
  133. bastet_agent_os-0.19.0/web/src/pages/RoleAssign.tsx +124 -0
  134. bastet_agent_os-0.19.0/web/src/pages/RolePrompts.tsx +117 -0
  135. bastet_agent_os-0.19.0/web/src/pages/Secrets.tsx +191 -0
  136. bastet_agent_os-0.19.0/web/src/pages/Templates.tsx +425 -0
  137. bastet_agent_os-0.19.0/web/src/ui.tsx +140 -0
  138. bastet_agent_os-0.19.0/web/tsconfig.json +14 -0
  139. bastet_agent_os-0.19.0/web/tsconfig.tsbuildinfo +1 -0
  140. bastet_agent_os-0.19.0/web/vite.config.ts +18 -0
@@ -0,0 +1,9 @@
1
+ .git
2
+ .venv
3
+ web/node_modules
4
+ tests
5
+ docs
6
+ **/__pycache__
7
+ *.pyc
8
+ .pytest_cache
9
+ .ruff_cache
@@ -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 }}
@@ -0,0 +1,20 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ dist/
6
+ build/
7
+ .venv/
8
+ venv/
9
+ .pytest_cache/
10
+ .ruff_cache/
11
+
12
+ # Frontend (M2+)
13
+ node_modules/
14
+ web/dist/
15
+
16
+ # Local state
17
+ *.db
18
+ *.sqlite*
19
+ .env
20
+ .DS_Store