cognis-common 0.14.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 (68) hide show
  1. cognis_common-0.14.0/.gitignore +23 -0
  2. cognis_common-0.14.0/PKG-INFO +30 -0
  3. cognis_common-0.14.0/README.md +12 -0
  4. cognis_common-0.14.0/pyproject.toml +28 -0
  5. cognis_common-0.14.0/src/cognis/__init__.py +9 -0
  6. cognis_common-0.14.0/src/cognis/channels/adapters/__init__.py +1 -0
  7. cognis_common-0.14.0/src/cognis/channels/adapters/bluebubbles.py +660 -0
  8. cognis_common-0.14.0/src/cognis/channels/adapters/discord.py +502 -0
  9. cognis_common-0.14.0/src/cognis/channels/adapters/google_chat.py +436 -0
  10. cognis_common-0.14.0/src/cognis/channels/adapters/irc.py +315 -0
  11. cognis_common-0.14.0/src/cognis/channels/adapters/matrix.py +1391 -0
  12. cognis_common-0.14.0/src/cognis/channels/adapters/signal.py +1418 -0
  13. cognis_common-0.14.0/src/cognis/channels/adapters/signal_cli_install.py +323 -0
  14. cognis_common-0.14.0/src/cognis/channels/adapters/signal_cli_runtime.py +476 -0
  15. cognis_common-0.14.0/src/cognis/channels/adapters/slack.py +447 -0
  16. cognis_common-0.14.0/src/cognis/channels/adapters/telegram.py +536 -0
  17. cognis_common-0.14.0/src/cognis/channels/adapters/whatsapp.py +427 -0
  18. cognis_common-0.14.0/src/cognis/channels/addressing.py +15 -0
  19. cognis_common-0.14.0/src/cognis/channels/factory.py +52 -0
  20. cognis_common-0.14.0/src/cognis/channels/formatting.py +13 -0
  21. cognis_common-0.14.0/src/cognis/channels/group_context.py +79 -0
  22. cognis_common-0.14.0/src/cognis/channels/markdown_rendering.py +300 -0
  23. cognis_common-0.14.0/src/cognis/channels/matrix_formatting.py +133 -0
  24. cognis_common-0.14.0/src/cognis/channels/protocol.py +507 -0
  25. cognis_common-0.14.0/src/cognis/channels/registry.py +652 -0
  26. cognis_common-0.14.0/src/cognis/channels/rich_markdown.py +1361 -0
  27. cognis_common-0.14.0/src/cognis/channels/signal_failures.py +163 -0
  28. cognis_common-0.14.0/src/cognis/channels/signal_formatting.py +597 -0
  29. cognis_common-0.14.0/src/cognis/core/anchored_output.py +248 -0
  30. cognis_common-0.14.0/src/cognis/core/deliverable_links.py +105 -0
  31. cognis_common-0.14.0/src/cognis/core/local_models.py +143 -0
  32. cognis_common-0.14.0/src/cognis/core/project_context.py +214 -0
  33. cognis_common-0.14.0/src/cognis/core/tool_arguments.py +166 -0
  34. cognis_common-0.14.0/src/cognis/executor/project_context_shared.py +35 -0
  35. cognis_common-0.14.0/src/cognis/executor/runtime_capabilities.py +19 -0
  36. cognis_common-0.14.0/src/cognis/executor/unary_dedup.py +160 -0
  37. cognis_common-0.14.0/src/cognis/json_stream.py +121 -0
  38. cognis_common-0.14.0/src/cognis/logging.py +212 -0
  39. cognis_common-0.14.0/src/cognis/mcp_runtime.py +1056 -0
  40. cognis_common-0.14.0/src/cognis/models/channel.py +367 -0
  41. cognis_common-0.14.0/src/cognis/models/config.py +240 -0
  42. cognis_common-0.14.0/src/cognis/models/executor_calls.py +65 -0
  43. cognis_common-0.14.0/src/cognis/models/executor_inference.py +129 -0
  44. cognis_common-0.14.0/src/cognis/models/executor_resources.py +160 -0
  45. cognis_common-0.14.0/src/cognis/models/local_models.py +829 -0
  46. cognis_common-0.14.0/src/cognis/models/runtime_capabilities.py +99 -0
  47. cognis_common-0.14.0/src/cognis/models/tool.py +878 -0
  48. cognis_common-0.14.0/src/cognis/ownership.py +26 -0
  49. cognis_common-0.14.0/src/cognis/providers/circuit_breaker.py +242 -0
  50. cognis_common-0.14.0/src/cognis/providers/llm/anthropic/__init__.py +45 -0
  51. cognis_common-0.14.0/src/cognis/providers/llm/anthropic/contracts.py +728 -0
  52. cognis_common-0.14.0/src/cognis/providers/llm/anthropic/integration.py +732 -0
  53. cognis_common-0.14.0/src/cognis/providers/llm/anthropic/tool_bundle.py +694 -0
  54. cognis_common-0.14.0/src/cognis/providers/llm/anthropic/transport.py +1024 -0
  55. cognis_common-0.14.0/src/cognis/providers/llm/errors.py +379 -0
  56. cognis_common-0.14.0/src/cognis/providers/llm/terminal.py +34 -0
  57. cognis_common-0.14.0/src/cognis/providers/retry.py +74 -0
  58. cognis_common-0.14.0/src/cognis/rendering/rich_visuals.py +1451 -0
  59. cognis_common-0.14.0/src/cognis/tools/argument_aliases.py +115 -0
  60. cognis_common-0.14.0/src/cognis/tools/argument_normalization.py +52 -0
  61. cognis_common-0.14.0/src/cognis/tools/executor/definitions.py +760 -0
  62. cognis_common-0.14.0/src/cognis/tools/executor/lsp/runtime.py +133 -0
  63. cognis_common-0.14.0/src/cognis/tools/executor/lsp/types.py +109 -0
  64. cognis_common-0.14.0/src/cognis/tools/executor/web/__init__.py +12 -0
  65. cognis_common-0.14.0/src/cognis/tools/executor/web/definitions.py +480 -0
  66. cognis_common-0.14.0/src/cognis/tools/introspection.py +363 -0
  67. cognis_common-0.14.0/src/cognis/tools/native_validation.py +116 -0
  68. cognis_common-0.14.0/src/cognis/tools/registry.py +137 -0
@@ -0,0 +1,23 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .pytest_cache/
4
+ .mypy_cache/
5
+ .ruff_cache/
6
+ .coverage
7
+ .venv/
8
+ dist/
9
+ build/
10
+ cognis.db
11
+ ui/node_modules/
12
+ ui/.svelte-kit/
13
+ ui/build/
14
+ ui/standalone-build/
15
+ ui/coverage/
16
+ ui/playwright-report/
17
+ ui/test-results/
18
+ ui/review-artifacts/
19
+ cognis/ui_dist/
20
+ .playwright-mcp/
21
+ .worktrees
22
+ .env.local
23
+ .local/
@@ -0,0 +1,30 @@
1
+ Metadata-Version: 2.5
2
+ Name: cognis-common
3
+ Version: 0.14.0
4
+ Summary: Shared contracts and portable runtimes for Cognis
5
+ Author-email: Filip Pytloun <filip@pytloun.cz>
6
+ License: TBD
7
+ Requires-Python: >=3.12
8
+ Requires-Dist: beautifulsoup4>=4.14.3
9
+ Requires-Dist: google-auth[requests]>=2.0.0
10
+ Requires-Dist: httpx>=0.27.0
11
+ Requires-Dist: jsonschema>=4.26.0
12
+ Requires-Dist: markdown>=3.7
13
+ Requires-Dist: mcp<2,>=1.28
14
+ Requires-Dist: prometheus-client>=0.20.0
15
+ Requires-Dist: pydantic>=2.0.0
16
+ Requires-Dist: websockets>=14.0
17
+ Description-Content-Type: text/markdown
18
+
19
+ # cognis-common
20
+
21
+ Shared contracts and portable runtimes used by the Cognis controller and
22
+ executor.
23
+
24
+ The controller and executor publish separate distributions. Install
25
+ `cognis-common` only when developing or packaging the two components; normal
26
+ users install `cognis-controller` and, when local tool execution is required,
27
+ `cognis-executor[full]`.
28
+
29
+ The package also owns the portable MCP client runtime. Controller policy and
30
+ executor process lifecycle remain in their respective distributions.
@@ -0,0 +1,12 @@
1
+ # cognis-common
2
+
3
+ Shared contracts and portable runtimes used by the Cognis controller and
4
+ executor.
5
+
6
+ The controller and executor publish separate distributions. Install
7
+ `cognis-common` only when developing or packaging the two components; normal
8
+ users install `cognis-controller` and, when local tool execution is required,
9
+ `cognis-executor[full]`.
10
+
11
+ The package also owns the portable MCP client runtime. Controller policy and
12
+ executor process lifecycle remain in their respective distributions.
@@ -0,0 +1,28 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "cognis-common"
7
+ version = "0.14.0"
8
+ description = "Shared contracts and portable runtimes for Cognis"
9
+ readme = "README.md"
10
+ license = { text = "TBD" }
11
+ requires-python = ">=3.12"
12
+ authors = [
13
+ { name = "Filip Pytloun", email = "filip@pytloun.cz" },
14
+ ]
15
+ dependencies = [
16
+ "beautifulsoup4>=4.14.3",
17
+ "google-auth[requests]>=2.0.0",
18
+ "httpx>=0.27.0",
19
+ "jsonschema>=4.26.0",
20
+ "Markdown>=3.7",
21
+ "mcp>=1.28,<2",
22
+ "pydantic>=2.0.0",
23
+ "prometheus-client>=0.20.0",
24
+ "websockets>=14.0",
25
+ ]
26
+
27
+ [tool.hatch.build.targets.wheel]
28
+ packages = ["src/cognis"]
@@ -0,0 +1,9 @@
1
+ """Shared Cognis package namespace."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from pkgutil import extend_path
6
+
7
+ __path__ = extend_path(__path__, __name__)
8
+
9
+ __version__ = "0.14.0"
@@ -0,0 +1 @@
1
+ """Concrete channel adapter implementations."""