evo-agents-core-plugins 1.2.0__tar.gz → 2.0.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 (112) hide show
  1. {evo_agents_core_plugins-1.2.0 → evo_agents_core_plugins-2.0.0}/PKG-INFO +31 -15
  2. {evo_agents_core_plugins-1.2.0 → evo_agents_core_plugins-2.0.0}/README.md +28 -12
  3. {evo_agents_core_plugins-1.2.0 → evo_agents_core_plugins-2.0.0}/evo_agents_core_plugins.egg-info/PKG-INFO +31 -15
  4. evo_agents_core_plugins-2.0.0/evo_agents_core_plugins.egg-info/SOURCES.txt +108 -0
  5. evo_agents_core_plugins-2.0.0/evo_agents_core_plugins.egg-info/entry_points.txt +6 -0
  6. {evo_agents_core_plugins-1.2.0 → evo_agents_core_plugins-2.0.0}/evo_core_plugins/__init__.py +3 -3
  7. {evo_agents_core_plugins-1.2.0 → evo_agents_core_plugins-2.0.0}/evo_core_plugins/chats/__init__.py +1 -1
  8. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/__init__.py +210 -0
  9. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/cli.json +115 -0
  10. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/cli_text.py +41 -0
  11. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/github.py +176 -0
  12. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/intake.py +122 -0
  13. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/job.py +61 -0
  14. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/kg.py +47 -0
  15. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/loop.py +77 -0
  16. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/migrations/0001_adopt.py +24 -0
  17. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/migrations/__init__.py +1 -0
  18. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/models.py +53 -0
  19. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/push.py +62 -0
  20. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/rules.py +82 -0
  21. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/server.py +173 -0
  22. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/settings.py +40 -0
  23. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/staging.py +77 -0
  24. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/store.py +283 -0
  25. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/tables.py +181 -0
  26. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/tools.py +125 -0
  27. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/ui/pages/common.css +283 -0
  28. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/ui/pages/common.js +313 -0
  29. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/ui/pages/contacts.html +16 -0
  30. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/ui/pages/contacts.js +310 -0
  31. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/ui/pages/i18n/en.js +59 -0
  32. evo_agents_core_plugins-2.0.0/evo_core_plugins/crm/ui/pages/i18n/vi.js +59 -0
  33. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/__init__.py +364 -0
  34. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/adapters/__init__.py +38 -0
  35. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/adapters/apis.py +366 -0
  36. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/adapters/base.py +114 -0
  37. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/adapters/oauth1.py +50 -0
  38. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/breaker.py +138 -0
  39. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/browser.py +197 -0
  40. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/budget.py +71 -0
  41. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/campaign.py +78 -0
  42. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/cli.json +485 -0
  43. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/cli_text.py +48 -0
  44. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/flow.py +262 -0
  45. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/gate.py +135 -0
  46. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/health.py +63 -0
  47. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/job.py +81 -0
  48. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/judge.py +105 -0
  49. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/loop.py +234 -0
  50. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/metrics.py +64 -0
  51. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/migrations/0001_adopt.py +24 -0
  52. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/migrations/__init__.py +1 -0
  53. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/models.py +237 -0
  54. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/outcome.py +23 -0
  55. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/push.py +92 -0
  56. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/registry.py +111 -0
  57. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/replies.py +73 -0
  58. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/server.py +655 -0
  59. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/settings.py +88 -0
  60. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/store.py +326 -0
  61. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/tables.py +270 -0
  62. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/tools.py +184 -0
  63. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/ui/pages/common.css +283 -0
  64. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/ui/pages/common.js +313 -0
  65. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/ui/pages/decide.html +84 -0
  66. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/ui/pages/decide.js +77 -0
  67. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/ui/pages/i18n/en.js +157 -0
  68. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/ui/pages/i18n/vi.js +157 -0
  69. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/ui/pages/marketing.js +67 -0
  70. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/ui/pages/overview.html +17 -0
  71. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/ui/pages/overview.js +185 -0
  72. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/ui/pages/posts.html +17 -0
  73. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/ui/pages/posts.js +144 -0
  74. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/ui/pages/weekly.html +17 -0
  75. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/ui/pages/weekly.js +161 -0
  76. evo_agents_core_plugins-2.0.0/evo_core_plugins/marketing/weekly.py +149 -0
  77. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/__init__.py +205 -0
  78. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/agent.py +85 -0
  79. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/cli.json +40 -0
  80. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/cli_text.py +63 -0
  81. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/facts.py +114 -0
  82. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/job.py +255 -0
  83. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/migrations/0001_adopt.py +24 -0
  84. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/migrations/__init__.py +1 -0
  85. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/models.py +156 -0
  86. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/outcome.py +30 -0
  87. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/reads.py +209 -0
  88. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/report.py +271 -0
  89. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/server.py +56 -0
  90. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/service.py +41 -0
  91. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/settings.py +126 -0
  92. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/sprint_view.py +104 -0
  93. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/tables.py +51 -0
  94. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/ui/pages/common.css +283 -0
  95. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/ui/pages/common.js +313 -0
  96. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/ui/pages/daily.html +16 -0
  97. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/ui/pages/daily.js +312 -0
  98. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/ui/pages/i18n/en.js +73 -0
  99. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/ui/pages/i18n/vi.js +73 -0
  100. evo_agents_core_plugins-2.0.0/evo_core_plugins/pm/workdays.py +57 -0
  101. {evo_agents_core_plugins-1.2.0 → evo_agents_core_plugins-2.0.0}/evo_core_plugins/telegram/__init__.py +1 -1
  102. {evo_agents_core_plugins-1.2.0 → evo_agents_core_plugins-2.0.0}/pyproject.toml +17 -3
  103. evo_agents_core_plugins-1.2.0/evo_agents_core_plugins.egg-info/SOURCES.txt +0 -15
  104. evo_agents_core_plugins-1.2.0/evo_agents_core_plugins.egg-info/entry_points.txt +0 -3
  105. {evo_agents_core_plugins-1.2.0 → evo_agents_core_plugins-2.0.0}/LICENSE +0 -0
  106. {evo_agents_core_plugins-1.2.0 → evo_agents_core_plugins-2.0.0}/evo_agents_core_plugins.egg-info/dependency_links.txt +0 -0
  107. {evo_agents_core_plugins-1.2.0 → evo_agents_core_plugins-2.0.0}/evo_agents_core_plugins.egg-info/top_level.txt +0 -0
  108. {evo_agents_core_plugins-1.2.0 → evo_agents_core_plugins-2.0.0}/evo_core_plugins/__main__.py +0 -0
  109. {evo_agents_core_plugins-1.2.0 → evo_agents_core_plugins-2.0.0}/evo_core_plugins/chats/kg.py +0 -0
  110. {evo_agents_core_plugins-1.2.0 → evo_agents_core_plugins-2.0.0}/evo_core_plugins/telegram/model.py +0 -0
  111. {evo_agents_core_plugins-1.2.0 → evo_agents_core_plugins-2.0.0}/evo_core_plugins/telegram/server.py +0 -0
  112. {evo_agents_core_plugins-1.2.0 → evo_agents_core_plugins-2.0.0}/setup.cfg +0 -0
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: evo-agents-core-plugins
3
- Version: 1.2.0
4
- Summary: The first-party core plugins of the evo-agents hub: Telegram and the chat history in the knowledge graph
3
+ Version: 2.0.0
4
+ Summary: The first-party core plugins of the evo-agents hub: Telegram, the chat history in the knowledge graph, crm, pm and marketing
5
5
  Author: maycuatroi
6
6
  License-Expression: Apache-2.0
7
7
  Project-URL: Repository, https://github.com/maycuatroi1/evo-agents-core-plugins
8
- Keywords: agents,evo-agents,hub,plugins,telegram
8
+ Keywords: agents,evo-agents,hub,plugins,telegram,crm,pm,marketing
9
9
  Classifier: Development Status :: 3 - Alpha
10
10
  Classifier: Programming Language :: Python :: 3 :: Only
11
11
  Classifier: Topic :: Software Development
@@ -23,10 +23,19 @@ and built on its API of core plugins alone (`evo_agents.hub.server.core_plugin_a
23
23
  |---|---|---|
24
24
  | `telegram` | `evo_core_plugins.telegram` | The hub's Telegram channel: a member links a private chat from the web, gets decisions, proposals and notices there, with the files of a run and of a question as photos or documents, and answers them with buttons or replies |
25
25
  | `chats` | `evo_core_plugins.chats` | The messages of the hub's group chats in each project's knowledge graph, for who is in each chat |
26
+ | `pm` | `evo_core_plugins.pm` | The daily report of a project's delivery, read from the hub's tasks, srs, plans, runs and decisions, sent as a digest with escalations of old blockers ([docs/pm-plugin.md](docs/pm-plugin.md)) |
27
+ | `crm` | `evo_core_plugins.crm` | The people who found a project themselves, as contacts with a stage (lead, invited, activated, retained) pushed to Signal ([docs/crm-plugin.md](docs/crm-plugin.md)) |
28
+ | `marketing` | `evo_core_plugins.marketing` | The project's channels and the posts proposed on them, through a posting gate, a breaker, a budget and the weekly bulletin ([docs/marketing-plugin.md](docs/marketing-plugin.md)) |
26
29
 
27
- Both left evo-ak unchanged for their users: the same id, publisher (`evo-agents`) and entry point name, the same
28
- routes, webhook path and variables (`EVO_HUB_TELEGRAM_*`), the same item ids (`plugin.chats:...`). Their manifests
29
- moved to version 1.1.0, so the hub's store records a new version of the image's plugins.
30
+ Each left evo-ak unchanged for its users: the same id, publisher (`evo-agents`) and entry point name, the same routes,
31
+ MCP tool names, pages, commands (`evo-agents hub pm|crm|marketing`), variables (`EVO_HUB_TELEGRAM_*`) and knowledge
32
+ graph item ids (`plugin.chats:...`, `plugin.crm:...`). Their manifests moved to version 1.1.0, so the hub's store
33
+ records a new version of the image's plugins.
34
+
35
+ pm, crm and marketing carry their own tables (`tables.py`, the `schema.metadata` of the manifest) and their own chain
36
+ of Alembic migrations (`migrations/`, version table `alembic_version_<id>`), whose first revision adopts the tables the
37
+ hub's migrations made before, rows and all. Their pages are files under `ui/pages`, which the hub frames, and their
38
+ commands a `cli.json` the CLI reads without importing the plugin, with the words without `--json` from `cli_text.py`.
30
39
 
31
40
  ## How the hub installs it
32
41
 
@@ -35,18 +44,18 @@ image installs it from PyPI with `--no-deps --require-hashes`, from the line `de
35
44
  evo-agents pins:
36
45
 
37
46
  ```
38
- evo-agents-core-plugins==1.2.0 --hash=sha256:<the hash the release prints>
47
+ evo-agents-core-plugins==2.0.0 --hash=sha256:<the hash the release prints>
39
48
  ```
40
49
 
41
50
  The wheel declares no dependency: the plugins use only what the image of the hub already holds (evo-ak with its
42
- `hub-server` extra: FastAPI, pydantic, httpx). Declaring evo-ak would let a resolver pull evo-ak from PyPI over the
51
+ `hub-server` extra: FastAPI, pydantic, httpx, SQLAlchemy, Alembic). Declaring evo-ak would let a resolver pull evo-ak from PyPI over the
43
52
  one the image builds from evo-agents' main. `plugin_tests/test_packaging.py` keeps both.
44
53
 
45
54
  ## The API of core plugins
46
55
 
47
- A plugin imports `evo_agents.hub.server.core_plugin_api` and nothing else of evo_agents, imports no SQLAlchemy, and
48
- reaches its own modules with relative imports (`plugin_tests/test_api_imports.py`, a copy of evo-agents'
49
- `tests/plugins/test_core_plugin_imports.py`). No plugin imports another (`lint-imports`, contract
56
+ A plugin imports `evo_agents.hub.server.core_plugin_api` and nothing else of evo_agents, and uses SQLAlchemy Core on
57
+ its own tables alone: nothing takes `text` from SQLAlchemy or calls `exec_driver_sql` (`plugin_tests/test_api_imports.py`,
58
+ a copy of evo-agents' `tests/plugins/test_core_plugin_imports.py` as API 1.3 has it). No plugin imports another (`lint-imports`, contract
50
59
  `plugins-own-package`). Neither the plugins nor their tests hold raw SQL (`plugin_tests/test_no_raw_sql.py`).
51
60
 
52
61
  Each plugin's entry point names `manifest()`, which calls `hub.require(*API)` with the version of the API the plugin
@@ -61,9 +70,15 @@ versions.
61
70
  | 1.0.0 | 1.1 | `ad12d3ccbee695a6915b22f4512f11794f7944fb` (pull request #106) |
62
71
  | 1.1.0 | 1.1 | the same; the files of notifications come from a hub that gives channels `extra.outputs` (plan run-outputs) |
63
72
  | 1.2.0 | 1.2 | `86ff2f64f988081aa22b02cb5967d6fa8b207832` (pull request #174) |
73
+ | 2.0.0 | 1.3 | `884b2c62c80175de1c0ecd47d34802035f006f97` (branch feat/lean-core-features, plan plugin-market) |
64
74
 
65
75
  ### Releases
66
76
 
77
+ - **2.0.0**: `pm`, `crm` and `marketing` out of evo-agents, on the API alone, with their tables, migrations, pages,
78
+ commands, tests and docs; unchanged for their users. Every plugin asks for API 1.3, the version that gives a core
79
+ plugin its own tables and migrations, pages and commands; a hub that serves 1.2 leaves them all out with that reason.
80
+ The major version is new because the distribution now holds the tables of three plugins, which a hub must not also
81
+ hold: evo-agents drops its copies in the same move as it pins 2.0.0.
67
82
  - **1.2.0**: both plugins ask for API 1.2, the version in which a core plugin asks its agent types questions
68
83
  (`ask_agent_type`); a hub that serves 1.1 leaves them out with that reason. What they do is that of 1.1.0, and the
69
84
  manifests stay 1.1.0.
@@ -106,7 +121,8 @@ checks out main instead of the lock, and `make lock` says whether `.evo-agents`
106
121
  ## Tests
107
122
 
108
123
  `plugin_tests/test_telegram.py`, `test_telegram_model.py`, `fake_telegram.py` and `test_chats_kg_source.py` are the
109
- tests these plugins had in evo-agents. `test_telegram_files.py` sends the files of notifications through the channel
124
+ tests telegram and chats had in evo-agents; `test_pm_*.py`, `test_hub_pm_cli.py`, `test_crm_*.py`, `test_marketing_*.py`
125
+ and `test_growth_*.py` the tests of pm, crm and marketing there (`tests/hub`). `test_telegram_files.py` sends the files of notifications through the channel
110
126
  alone, and `test_telegram_outputs.py` through a hub that gives them; it skips with evo-agents at a commit whose hub
111
127
  gives channels no files. They use evo-agents' test helpers from the checkout at the lock: `tests.hub.pg`,
112
128
  `tests.hub.live`, the fixtures of `tests/hub/conftest.py` and functions of its test modules (`conftest.py` puts the
@@ -115,9 +131,9 @@ and no version covers them: evo-agents may change one without changing the API's
115
131
  break at the next move of the lock or in the compat job, never on a hub.
116
132
 
117
133
  The directory is `plugin_tests`, not `tests`, so that evo-agents' `tests` package stays importable. Until evo-agents
118
- drops its own copies of `telegram` and `chats`, the evo-ak the tests install declares entry points of the same names;
119
- `plugin_tests/conftest.py` leaves those out, so the hub the tests start loads this checkout's plugins, and
120
- `plugin_tests/test_installed.py` checks that it does.
134
+ drops its own copies of `pm`, `crm` and `marketing`, the evo-ak the tests install declares entry points of the same
135
+ names; `plugin_tests/conftest.py` leaves those out, for the hub and for the commands the CLI lists, so both use this
136
+ checkout's plugins, and `plugin_tests/test_installed.py` checks that they do.
121
137
 
122
138
  ## CI and releases
123
139
 
@@ -7,10 +7,19 @@ and built on its API of core plugins alone (`evo_agents.hub.server.core_plugin_a
7
7
  |---|---|---|
8
8
  | `telegram` | `evo_core_plugins.telegram` | The hub's Telegram channel: a member links a private chat from the web, gets decisions, proposals and notices there, with the files of a run and of a question as photos or documents, and answers them with buttons or replies |
9
9
  | `chats` | `evo_core_plugins.chats` | The messages of the hub's group chats in each project's knowledge graph, for who is in each chat |
10
+ | `pm` | `evo_core_plugins.pm` | The daily report of a project's delivery, read from the hub's tasks, srs, plans, runs and decisions, sent as a digest with escalations of old blockers ([docs/pm-plugin.md](docs/pm-plugin.md)) |
11
+ | `crm` | `evo_core_plugins.crm` | The people who found a project themselves, as contacts with a stage (lead, invited, activated, retained) pushed to Signal ([docs/crm-plugin.md](docs/crm-plugin.md)) |
12
+ | `marketing` | `evo_core_plugins.marketing` | The project's channels and the posts proposed on them, through a posting gate, a breaker, a budget and the weekly bulletin ([docs/marketing-plugin.md](docs/marketing-plugin.md)) |
10
13
 
11
- Both left evo-ak unchanged for their users: the same id, publisher (`evo-agents`) and entry point name, the same
12
- routes, webhook path and variables (`EVO_HUB_TELEGRAM_*`), the same item ids (`plugin.chats:...`). Their manifests
13
- moved to version 1.1.0, so the hub's store records a new version of the image's plugins.
14
+ Each left evo-ak unchanged for its users: the same id, publisher (`evo-agents`) and entry point name, the same routes,
15
+ MCP tool names, pages, commands (`evo-agents hub pm|crm|marketing`), variables (`EVO_HUB_TELEGRAM_*`) and knowledge
16
+ graph item ids (`plugin.chats:...`, `plugin.crm:...`). Their manifests moved to version 1.1.0, so the hub's store
17
+ records a new version of the image's plugins.
18
+
19
+ pm, crm and marketing carry their own tables (`tables.py`, the `schema.metadata` of the manifest) and their own chain
20
+ of Alembic migrations (`migrations/`, version table `alembic_version_<id>`), whose first revision adopts the tables the
21
+ hub's migrations made before, rows and all. Their pages are files under `ui/pages`, which the hub frames, and their
22
+ commands a `cli.json` the CLI reads without importing the plugin, with the words without `--json` from `cli_text.py`.
14
23
 
15
24
  ## How the hub installs it
16
25
 
@@ -19,18 +28,18 @@ image installs it from PyPI with `--no-deps --require-hashes`, from the line `de
19
28
  evo-agents pins:
20
29
 
21
30
  ```
22
- evo-agents-core-plugins==1.2.0 --hash=sha256:<the hash the release prints>
31
+ evo-agents-core-plugins==2.0.0 --hash=sha256:<the hash the release prints>
23
32
  ```
24
33
 
25
34
  The wheel declares no dependency: the plugins use only what the image of the hub already holds (evo-ak with its
26
- `hub-server` extra: FastAPI, pydantic, httpx). Declaring evo-ak would let a resolver pull evo-ak from PyPI over the
35
+ `hub-server` extra: FastAPI, pydantic, httpx, SQLAlchemy, Alembic). Declaring evo-ak would let a resolver pull evo-ak from PyPI over the
27
36
  one the image builds from evo-agents' main. `plugin_tests/test_packaging.py` keeps both.
28
37
 
29
38
  ## The API of core plugins
30
39
 
31
- A plugin imports `evo_agents.hub.server.core_plugin_api` and nothing else of evo_agents, imports no SQLAlchemy, and
32
- reaches its own modules with relative imports (`plugin_tests/test_api_imports.py`, a copy of evo-agents'
33
- `tests/plugins/test_core_plugin_imports.py`). No plugin imports another (`lint-imports`, contract
40
+ A plugin imports `evo_agents.hub.server.core_plugin_api` and nothing else of evo_agents, and uses SQLAlchemy Core on
41
+ its own tables alone: nothing takes `text` from SQLAlchemy or calls `exec_driver_sql` (`plugin_tests/test_api_imports.py`,
42
+ a copy of evo-agents' `tests/plugins/test_core_plugin_imports.py` as API 1.3 has it). No plugin imports another (`lint-imports`, contract
34
43
  `plugins-own-package`). Neither the plugins nor their tests hold raw SQL (`plugin_tests/test_no_raw_sql.py`).
35
44
 
36
45
  Each plugin's entry point names `manifest()`, which calls `hub.require(*API)` with the version of the API the plugin
@@ -45,9 +54,15 @@ versions.
45
54
  | 1.0.0 | 1.1 | `ad12d3ccbee695a6915b22f4512f11794f7944fb` (pull request #106) |
46
55
  | 1.1.0 | 1.1 | the same; the files of notifications come from a hub that gives channels `extra.outputs` (plan run-outputs) |
47
56
  | 1.2.0 | 1.2 | `86ff2f64f988081aa22b02cb5967d6fa8b207832` (pull request #174) |
57
+ | 2.0.0 | 1.3 | `884b2c62c80175de1c0ecd47d34802035f006f97` (branch feat/lean-core-features, plan plugin-market) |
48
58
 
49
59
  ### Releases
50
60
 
61
+ - **2.0.0**: `pm`, `crm` and `marketing` out of evo-agents, on the API alone, with their tables, migrations, pages,
62
+ commands, tests and docs; unchanged for their users. Every plugin asks for API 1.3, the version that gives a core
63
+ plugin its own tables and migrations, pages and commands; a hub that serves 1.2 leaves them all out with that reason.
64
+ The major version is new because the distribution now holds the tables of three plugins, which a hub must not also
65
+ hold: evo-agents drops its copies in the same move as it pins 2.0.0.
51
66
  - **1.2.0**: both plugins ask for API 1.2, the version in which a core plugin asks its agent types questions
52
67
  (`ask_agent_type`); a hub that serves 1.1 leaves them out with that reason. What they do is that of 1.1.0, and the
53
68
  manifests stay 1.1.0.
@@ -90,7 +105,8 @@ checks out main instead of the lock, and `make lock` says whether `.evo-agents`
90
105
  ## Tests
91
106
 
92
107
  `plugin_tests/test_telegram.py`, `test_telegram_model.py`, `fake_telegram.py` and `test_chats_kg_source.py` are the
93
- tests these plugins had in evo-agents. `test_telegram_files.py` sends the files of notifications through the channel
108
+ tests telegram and chats had in evo-agents; `test_pm_*.py`, `test_hub_pm_cli.py`, `test_crm_*.py`, `test_marketing_*.py`
109
+ and `test_growth_*.py` the tests of pm, crm and marketing there (`tests/hub`). `test_telegram_files.py` sends the files of notifications through the channel
94
110
  alone, and `test_telegram_outputs.py` through a hub that gives them; it skips with evo-agents at a commit whose hub
95
111
  gives channels no files. They use evo-agents' test helpers from the checkout at the lock: `tests.hub.pg`,
96
112
  `tests.hub.live`, the fixtures of `tests/hub/conftest.py` and functions of its test modules (`conftest.py` puts the
@@ -99,9 +115,9 @@ and no version covers them: evo-agents may change one without changing the API's
99
115
  break at the next move of the lock or in the compat job, never on a hub.
100
116
 
101
117
  The directory is `plugin_tests`, not `tests`, so that evo-agents' `tests` package stays importable. Until evo-agents
102
- drops its own copies of `telegram` and `chats`, the evo-ak the tests install declares entry points of the same names;
103
- `plugin_tests/conftest.py` leaves those out, so the hub the tests start loads this checkout's plugins, and
104
- `plugin_tests/test_installed.py` checks that it does.
118
+ drops its own copies of `pm`, `crm` and `marketing`, the evo-ak the tests install declares entry points of the same
119
+ names; `plugin_tests/conftest.py` leaves those out, for the hub and for the commands the CLI lists, so both use this
120
+ checkout's plugins, and `plugin_tests/test_installed.py` checks that they do.
105
121
 
106
122
  ## CI and releases
107
123
 
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: evo-agents-core-plugins
3
- Version: 1.2.0
4
- Summary: The first-party core plugins of the evo-agents hub: Telegram and the chat history in the knowledge graph
3
+ Version: 2.0.0
4
+ Summary: The first-party core plugins of the evo-agents hub: Telegram, the chat history in the knowledge graph, crm, pm and marketing
5
5
  Author: maycuatroi
6
6
  License-Expression: Apache-2.0
7
7
  Project-URL: Repository, https://github.com/maycuatroi1/evo-agents-core-plugins
8
- Keywords: agents,evo-agents,hub,plugins,telegram
8
+ Keywords: agents,evo-agents,hub,plugins,telegram,crm,pm,marketing
9
9
  Classifier: Development Status :: 3 - Alpha
10
10
  Classifier: Programming Language :: Python :: 3 :: Only
11
11
  Classifier: Topic :: Software Development
@@ -23,10 +23,19 @@ and built on its API of core plugins alone (`evo_agents.hub.server.core_plugin_a
23
23
  |---|---|---|
24
24
  | `telegram` | `evo_core_plugins.telegram` | The hub's Telegram channel: a member links a private chat from the web, gets decisions, proposals and notices there, with the files of a run and of a question as photos or documents, and answers them with buttons or replies |
25
25
  | `chats` | `evo_core_plugins.chats` | The messages of the hub's group chats in each project's knowledge graph, for who is in each chat |
26
+ | `pm` | `evo_core_plugins.pm` | The daily report of a project's delivery, read from the hub's tasks, srs, plans, runs and decisions, sent as a digest with escalations of old blockers ([docs/pm-plugin.md](docs/pm-plugin.md)) |
27
+ | `crm` | `evo_core_plugins.crm` | The people who found a project themselves, as contacts with a stage (lead, invited, activated, retained) pushed to Signal ([docs/crm-plugin.md](docs/crm-plugin.md)) |
28
+ | `marketing` | `evo_core_plugins.marketing` | The project's channels and the posts proposed on them, through a posting gate, a breaker, a budget and the weekly bulletin ([docs/marketing-plugin.md](docs/marketing-plugin.md)) |
26
29
 
27
- Both left evo-ak unchanged for their users: the same id, publisher (`evo-agents`) and entry point name, the same
28
- routes, webhook path and variables (`EVO_HUB_TELEGRAM_*`), the same item ids (`plugin.chats:...`). Their manifests
29
- moved to version 1.1.0, so the hub's store records a new version of the image's plugins.
30
+ Each left evo-ak unchanged for its users: the same id, publisher (`evo-agents`) and entry point name, the same routes,
31
+ MCP tool names, pages, commands (`evo-agents hub pm|crm|marketing`), variables (`EVO_HUB_TELEGRAM_*`) and knowledge
32
+ graph item ids (`plugin.chats:...`, `plugin.crm:...`). Their manifests moved to version 1.1.0, so the hub's store
33
+ records a new version of the image's plugins.
34
+
35
+ pm, crm and marketing carry their own tables (`tables.py`, the `schema.metadata` of the manifest) and their own chain
36
+ of Alembic migrations (`migrations/`, version table `alembic_version_<id>`), whose first revision adopts the tables the
37
+ hub's migrations made before, rows and all. Their pages are files under `ui/pages`, which the hub frames, and their
38
+ commands a `cli.json` the CLI reads without importing the plugin, with the words without `--json` from `cli_text.py`.
30
39
 
31
40
  ## How the hub installs it
32
41
 
@@ -35,18 +44,18 @@ image installs it from PyPI with `--no-deps --require-hashes`, from the line `de
35
44
  evo-agents pins:
36
45
 
37
46
  ```
38
- evo-agents-core-plugins==1.2.0 --hash=sha256:<the hash the release prints>
47
+ evo-agents-core-plugins==2.0.0 --hash=sha256:<the hash the release prints>
39
48
  ```
40
49
 
41
50
  The wheel declares no dependency: the plugins use only what the image of the hub already holds (evo-ak with its
42
- `hub-server` extra: FastAPI, pydantic, httpx). Declaring evo-ak would let a resolver pull evo-ak from PyPI over the
51
+ `hub-server` extra: FastAPI, pydantic, httpx, SQLAlchemy, Alembic). Declaring evo-ak would let a resolver pull evo-ak from PyPI over the
43
52
  one the image builds from evo-agents' main. `plugin_tests/test_packaging.py` keeps both.
44
53
 
45
54
  ## The API of core plugins
46
55
 
47
- A plugin imports `evo_agents.hub.server.core_plugin_api` and nothing else of evo_agents, imports no SQLAlchemy, and
48
- reaches its own modules with relative imports (`plugin_tests/test_api_imports.py`, a copy of evo-agents'
49
- `tests/plugins/test_core_plugin_imports.py`). No plugin imports another (`lint-imports`, contract
56
+ A plugin imports `evo_agents.hub.server.core_plugin_api` and nothing else of evo_agents, and uses SQLAlchemy Core on
57
+ its own tables alone: nothing takes `text` from SQLAlchemy or calls `exec_driver_sql` (`plugin_tests/test_api_imports.py`,
58
+ a copy of evo-agents' `tests/plugins/test_core_plugin_imports.py` as API 1.3 has it). No plugin imports another (`lint-imports`, contract
50
59
  `plugins-own-package`). Neither the plugins nor their tests hold raw SQL (`plugin_tests/test_no_raw_sql.py`).
51
60
 
52
61
  Each plugin's entry point names `manifest()`, which calls `hub.require(*API)` with the version of the API the plugin
@@ -61,9 +70,15 @@ versions.
61
70
  | 1.0.0 | 1.1 | `ad12d3ccbee695a6915b22f4512f11794f7944fb` (pull request #106) |
62
71
  | 1.1.0 | 1.1 | the same; the files of notifications come from a hub that gives channels `extra.outputs` (plan run-outputs) |
63
72
  | 1.2.0 | 1.2 | `86ff2f64f988081aa22b02cb5967d6fa8b207832` (pull request #174) |
73
+ | 2.0.0 | 1.3 | `884b2c62c80175de1c0ecd47d34802035f006f97` (branch feat/lean-core-features, plan plugin-market) |
64
74
 
65
75
  ### Releases
66
76
 
77
+ - **2.0.0**: `pm`, `crm` and `marketing` out of evo-agents, on the API alone, with their tables, migrations, pages,
78
+ commands, tests and docs; unchanged for their users. Every plugin asks for API 1.3, the version that gives a core
79
+ plugin its own tables and migrations, pages and commands; a hub that serves 1.2 leaves them all out with that reason.
80
+ The major version is new because the distribution now holds the tables of three plugins, which a hub must not also
81
+ hold: evo-agents drops its copies in the same move as it pins 2.0.0.
67
82
  - **1.2.0**: both plugins ask for API 1.2, the version in which a core plugin asks its agent types questions
68
83
  (`ask_agent_type`); a hub that serves 1.1 leaves them out with that reason. What they do is that of 1.1.0, and the
69
84
  manifests stay 1.1.0.
@@ -106,7 +121,8 @@ checks out main instead of the lock, and `make lock` says whether `.evo-agents`
106
121
  ## Tests
107
122
 
108
123
  `plugin_tests/test_telegram.py`, `test_telegram_model.py`, `fake_telegram.py` and `test_chats_kg_source.py` are the
109
- tests these plugins had in evo-agents. `test_telegram_files.py` sends the files of notifications through the channel
124
+ tests telegram and chats had in evo-agents; `test_pm_*.py`, `test_hub_pm_cli.py`, `test_crm_*.py`, `test_marketing_*.py`
125
+ and `test_growth_*.py` the tests of pm, crm and marketing there (`tests/hub`). `test_telegram_files.py` sends the files of notifications through the channel
110
126
  alone, and `test_telegram_outputs.py` through a hub that gives them; it skips with evo-agents at a commit whose hub
111
127
  gives channels no files. They use evo-agents' test helpers from the checkout at the lock: `tests.hub.pg`,
112
128
  `tests.hub.live`, the fixtures of `tests/hub/conftest.py` and functions of its test modules (`conftest.py` puts the
@@ -115,9 +131,9 @@ and no version covers them: evo-agents may change one without changing the API's
115
131
  break at the next move of the lock or in the compat job, never on a hub.
116
132
 
117
133
  The directory is `plugin_tests`, not `tests`, so that evo-agents' `tests` package stays importable. Until evo-agents
118
- drops its own copies of `telegram` and `chats`, the evo-ak the tests install declares entry points of the same names;
119
- `plugin_tests/conftest.py` leaves those out, so the hub the tests start loads this checkout's plugins, and
120
- `plugin_tests/test_installed.py` checks that it does.
134
+ drops its own copies of `pm`, `crm` and `marketing`, the evo-ak the tests install declares entry points of the same
135
+ names; `plugin_tests/conftest.py` leaves those out, for the hub and for the commands the CLI lists, so both use this
136
+ checkout's plugins, and `plugin_tests/test_installed.py` checks that they do.
121
137
 
122
138
  ## CI and releases
123
139
 
@@ -0,0 +1,108 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ evo_agents_core_plugins.egg-info/PKG-INFO
5
+ evo_agents_core_plugins.egg-info/SOURCES.txt
6
+ evo_agents_core_plugins.egg-info/dependency_links.txt
7
+ evo_agents_core_plugins.egg-info/entry_points.txt
8
+ evo_agents_core_plugins.egg-info/top_level.txt
9
+ evo_core_plugins/__init__.py
10
+ evo_core_plugins/__main__.py
11
+ evo_core_plugins/chats/__init__.py
12
+ evo_core_plugins/chats/kg.py
13
+ evo_core_plugins/crm/__init__.py
14
+ evo_core_plugins/crm/cli.json
15
+ evo_core_plugins/crm/cli_text.py
16
+ evo_core_plugins/crm/github.py
17
+ evo_core_plugins/crm/intake.py
18
+ evo_core_plugins/crm/job.py
19
+ evo_core_plugins/crm/kg.py
20
+ evo_core_plugins/crm/loop.py
21
+ evo_core_plugins/crm/models.py
22
+ evo_core_plugins/crm/push.py
23
+ evo_core_plugins/crm/rules.py
24
+ evo_core_plugins/crm/server.py
25
+ evo_core_plugins/crm/settings.py
26
+ evo_core_plugins/crm/staging.py
27
+ evo_core_plugins/crm/store.py
28
+ evo_core_plugins/crm/tables.py
29
+ evo_core_plugins/crm/tools.py
30
+ evo_core_plugins/crm/migrations/0001_adopt.py
31
+ evo_core_plugins/crm/migrations/__init__.py
32
+ evo_core_plugins/crm/ui/pages/common.css
33
+ evo_core_plugins/crm/ui/pages/common.js
34
+ evo_core_plugins/crm/ui/pages/contacts.html
35
+ evo_core_plugins/crm/ui/pages/contacts.js
36
+ evo_core_plugins/crm/ui/pages/i18n/en.js
37
+ evo_core_plugins/crm/ui/pages/i18n/vi.js
38
+ evo_core_plugins/marketing/__init__.py
39
+ evo_core_plugins/marketing/breaker.py
40
+ evo_core_plugins/marketing/browser.py
41
+ evo_core_plugins/marketing/budget.py
42
+ evo_core_plugins/marketing/campaign.py
43
+ evo_core_plugins/marketing/cli.json
44
+ evo_core_plugins/marketing/cli_text.py
45
+ evo_core_plugins/marketing/flow.py
46
+ evo_core_plugins/marketing/gate.py
47
+ evo_core_plugins/marketing/health.py
48
+ evo_core_plugins/marketing/job.py
49
+ evo_core_plugins/marketing/judge.py
50
+ evo_core_plugins/marketing/loop.py
51
+ evo_core_plugins/marketing/metrics.py
52
+ evo_core_plugins/marketing/models.py
53
+ evo_core_plugins/marketing/outcome.py
54
+ evo_core_plugins/marketing/push.py
55
+ evo_core_plugins/marketing/registry.py
56
+ evo_core_plugins/marketing/replies.py
57
+ evo_core_plugins/marketing/server.py
58
+ evo_core_plugins/marketing/settings.py
59
+ evo_core_plugins/marketing/store.py
60
+ evo_core_plugins/marketing/tables.py
61
+ evo_core_plugins/marketing/tools.py
62
+ evo_core_plugins/marketing/weekly.py
63
+ evo_core_plugins/marketing/adapters/__init__.py
64
+ evo_core_plugins/marketing/adapters/apis.py
65
+ evo_core_plugins/marketing/adapters/base.py
66
+ evo_core_plugins/marketing/adapters/oauth1.py
67
+ evo_core_plugins/marketing/migrations/0001_adopt.py
68
+ evo_core_plugins/marketing/migrations/__init__.py
69
+ evo_core_plugins/marketing/ui/pages/common.css
70
+ evo_core_plugins/marketing/ui/pages/common.js
71
+ evo_core_plugins/marketing/ui/pages/decide.html
72
+ evo_core_plugins/marketing/ui/pages/decide.js
73
+ evo_core_plugins/marketing/ui/pages/marketing.js
74
+ evo_core_plugins/marketing/ui/pages/overview.html
75
+ evo_core_plugins/marketing/ui/pages/overview.js
76
+ evo_core_plugins/marketing/ui/pages/posts.html
77
+ evo_core_plugins/marketing/ui/pages/posts.js
78
+ evo_core_plugins/marketing/ui/pages/weekly.html
79
+ evo_core_plugins/marketing/ui/pages/weekly.js
80
+ evo_core_plugins/marketing/ui/pages/i18n/en.js
81
+ evo_core_plugins/marketing/ui/pages/i18n/vi.js
82
+ evo_core_plugins/pm/__init__.py
83
+ evo_core_plugins/pm/agent.py
84
+ evo_core_plugins/pm/cli.json
85
+ evo_core_plugins/pm/cli_text.py
86
+ evo_core_plugins/pm/facts.py
87
+ evo_core_plugins/pm/job.py
88
+ evo_core_plugins/pm/models.py
89
+ evo_core_plugins/pm/outcome.py
90
+ evo_core_plugins/pm/reads.py
91
+ evo_core_plugins/pm/report.py
92
+ evo_core_plugins/pm/server.py
93
+ evo_core_plugins/pm/service.py
94
+ evo_core_plugins/pm/settings.py
95
+ evo_core_plugins/pm/sprint_view.py
96
+ evo_core_plugins/pm/tables.py
97
+ evo_core_plugins/pm/workdays.py
98
+ evo_core_plugins/pm/migrations/0001_adopt.py
99
+ evo_core_plugins/pm/migrations/__init__.py
100
+ evo_core_plugins/pm/ui/pages/common.css
101
+ evo_core_plugins/pm/ui/pages/common.js
102
+ evo_core_plugins/pm/ui/pages/daily.html
103
+ evo_core_plugins/pm/ui/pages/daily.js
104
+ evo_core_plugins/pm/ui/pages/i18n/en.js
105
+ evo_core_plugins/pm/ui/pages/i18n/vi.js
106
+ evo_core_plugins/telegram/__init__.py
107
+ evo_core_plugins/telegram/model.py
108
+ evo_core_plugins/telegram/server.py
@@ -0,0 +1,6 @@
1
+ [evo_agents.plugins]
2
+ chats = evo_core_plugins.chats:manifest
3
+ crm = evo_core_plugins.crm:manifest
4
+ marketing = evo_core_plugins.marketing:manifest
5
+ pm = evo_core_plugins.pm:manifest
6
+ telegram = evo_core_plugins.telegram:manifest
@@ -1,5 +1,5 @@
1
1
  """evo-agents-core-plugins: the first-party core plugins of the evo-agents hub, each a package of its own here
2
- (``telegram``, ``chats``) and an entry point of group ``evo_agents.plugins``, built on the API of core plugins alone
2
+ (``telegram``, ``chats``, ``pm``, ``crm``, ``marketing``) and an entry point of group ``evo_agents.plugins``, built on the API of core plugins alone
3
3
  (``evo_agents.hub.server.core_plugin_api``).
4
4
 
5
5
  The hub's image installs this distribution with ``--no-deps`` from the line ``deploy/hub/core-plugins.txt`` of
@@ -10,8 +10,8 @@ which every plugin of one release shares.
10
10
  Nothing here imports another plugin's package: ``PLUGINS`` names them for the checks and the command alone.
11
11
  """
12
12
 
13
- __version__ = "1.2.0"
13
+ __version__ = "2.0.0"
14
14
 
15
- PLUGINS = ("telegram", "chats") # the packages of the plugins, each named as its entry point
15
+ PLUGINS = ("telegram", "chats", "pm", "crm", "marketing") # the packages of the plugins, each named as its entry point
16
16
 
17
17
  __all__ = ["PLUGINS", "__version__"]
@@ -19,7 +19,7 @@ the API the plugin is written for: a hub that serves another leaves the plugin o
19
19
 
20
20
  from evo_agents.hub.server import core_plugin_api as hub
21
21
 
22
- API = (1, 2) # the version of the API of core plugins this plugin is written for
22
+ API = (1, 3) # the version of the API of core plugins this plugin is written for
23
23
  KG = "evo_core_plugins.chats.kg"
24
24
  READS = "chats:read" # what the source reads: the project's group chats (evo_agents.plugins.manifest.PERMISSIONS)
25
25