cognis-controller 0.1.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.
- cognis_controller-0.1.0/.gitignore +16 -0
- cognis_controller-0.1.0/LICENSE +91 -0
- cognis_controller-0.1.0/PKG-INFO +327 -0
- cognis_controller-0.1.0/README.md +273 -0
- cognis_controller-0.1.0/build.py +55 -0
- cognis_controller-0.1.0/docs/README.md +50 -0
- cognis_controller-0.1.0/docs/assets/README.md +19 -0
- cognis_controller-0.1.0/docs/assets/diagrams/cognis-agent-tool-inheritance.excalidraw +568 -0
- cognis_controller-0.1.0/docs/assets/diagrams/cognis-channel-pairing-flow.excalidraw +787 -0
- cognis_controller-0.1.0/docs/assets/diagrams/cognis-controller-executor-split.excalidraw +321 -0
- cognis_controller-0.1.0/docs/assets/diagrams/cognis-ecosystem-overview.excalidraw +884 -0
- cognis_controller-0.1.0/docs/assets/diagrams/cognis-workflow-task-lifecycle.excalidraw +787 -0
- cognis_controller-0.1.0/docs/assets/images/cognis-agent-tool-inheritance.svg +33 -0
- cognis_controller-0.1.0/docs/assets/images/cognis-channel-pairing-flow.svg +38 -0
- cognis_controller-0.1.0/docs/assets/images/cognis-controller-executor-split.svg +29 -0
- cognis_controller-0.1.0/docs/assets/images/cognis-ecosystem-overview.svg +48 -0
- cognis_controller-0.1.0/docs/assets/images/cognis-workflow-task-lifecycle.svg +40 -0
- cognis_controller-0.1.0/docs/guide/architecture.md +59 -0
- cognis_controller-0.1.0/docs/guide/channels.md +284 -0
- cognis_controller-0.1.0/docs/guide/configuring-providers.md +117 -0
- cognis_controller-0.1.0/docs/guide/creating-agents.md +111 -0
- cognis_controller-0.1.0/docs/guide/executors.md +210 -0
- cognis_controller-0.1.0/docs/guide/getting-started.md +121 -0
- cognis_controller-0.1.0/docs/guide/managing-tasks.md +55 -0
- cognis_controller-0.1.0/docs/guide/schedules.md +48 -0
- cognis_controller-0.1.0/docs/guide/settings.md +96 -0
- cognis_controller-0.1.0/docs/guide/tools-and-skills.md +134 -0
- cognis_controller-0.1.0/docs/guide/troubleshooting.md +56 -0
- cognis_controller-0.1.0/docs/guide/using-chat.md +61 -0
- cognis_controller-0.1.0/docs/guide/workflows.md +68 -0
- cognis_controller-0.1.0/docs/specs/00-vision.md +192 -0
- cognis_controller-0.1.0/docs/specs/01-architecture.md +929 -0
- cognis_controller-0.1.0/docs/specs/02-agent-model.md +1180 -0
- cognis_controller-0.1.0/docs/specs/03-session-model.md +744 -0
- cognis_controller-0.1.0/docs/specs/04-controller-executor.md +791 -0
- cognis_controller-0.1.0/docs/specs/05-integrations.md +1027 -0
- cognis_controller-0.1.0/docs/specs/06-tool-system.md +1161 -0
- cognis_controller-0.1.0/docs/specs/07-security-identity.md +404 -0
- cognis_controller-0.1.0/docs/specs/08-federation.md +115 -0
- cognis_controller-0.1.0/docs/specs/09-ui-ux.md +465 -0
- cognis_controller-0.1.0/docs/specs/10-api-spec.md +575 -0
- cognis_controller-0.1.0/docs/specs/11-deployment.md +464 -0
- cognis_controller-0.1.0/docs/specs/12-mvp-roadmap.md +376 -0
- cognis_controller-0.1.0/docs/specs/13-nfr-operations.md +321 -0
- cognis_controller-0.1.0/docs/specs/14-workflow-engine.md +1050 -0
- cognis_controller-0.1.0/docs/specs/15-browser-credentials.md +727 -0
- cognis_controller-0.1.0/docs/specs/16-document-generation.md +561 -0
- cognis_controller-0.1.0/docs/specs/implementation/README.md +114 -0
- cognis_controller-0.1.0/docs/specs/implementation/stage-0-prerequisites.md +114 -0
- cognis_controller-0.1.0/docs/specs/implementation/stage-1-scaffold.md +148 -0
- cognis_controller-0.1.0/docs/specs/implementation/stage-10-first-run.md +161 -0
- cognis_controller-0.1.0/docs/specs/implementation/stage-11-guided-integrations.md +194 -0
- cognis_controller-0.1.0/docs/specs/implementation/stage-12-bootstrap-docs.md +167 -0
- cognis_controller-0.1.0/docs/specs/implementation/stage-13-ux-polish.md +213 -0
- cognis_controller-0.1.0/docs/specs/implementation/stage-14-degraded-ux.md +192 -0
- cognis_controller-0.1.0/docs/specs/implementation/stage-15-closure.md +182 -0
- cognis_controller-0.1.0/docs/specs/implementation/stage-16-tools-executors.md +180 -0
- cognis_controller-0.1.0/docs/specs/implementation/stage-2-auth.md +137 -0
- cognis_controller-0.1.0/docs/specs/implementation/stage-3-providers.md +151 -0
- cognis_controller-0.1.0/docs/specs/implementation/stage-4-executor.md +133 -0
- cognis_controller-0.1.0/docs/specs/implementation/stage-5-orchestration.md +154 -0
- cognis_controller-0.1.0/docs/specs/implementation/stage-6-agent-loop.md +269 -0
- cognis_controller-0.1.0/docs/specs/implementation/stage-6a-workflow-context.md +153 -0
- cognis_controller-0.1.0/docs/specs/implementation/stage-7-api.md +180 -0
- cognis_controller-0.1.0/docs/specs/implementation/stage-8-ui.md +179 -0
- cognis_controller-0.1.0/docs/specs/implementation/stage-9-testing.md +170 -0
- cognis_controller-0.1.0/pyproject.toml +138 -0
- cognis_controller-0.1.0/ui/.env.example +3 -0
- cognis_controller-0.1.0/ui/components.json +14 -0
- cognis_controller-0.1.0/ui/package-lock.json +3744 -0
- cognis_controller-0.1.0/ui/package.json +42 -0
- cognis_controller-0.1.0/ui/postcss.config.cjs +6 -0
- cognis_controller-0.1.0/ui/src/app.css +135 -0
- cognis_controller-0.1.0/ui/src/app.d.ts +11 -0
- cognis_controller-0.1.0/ui/src/app.html +13 -0
- cognis_controller-0.1.0/ui/src/hooks.server.ts +19 -0
- cognis_controller-0.1.0/ui/src/lib/agents.test.ts +145 -0
- cognis_controller-0.1.0/ui/src/lib/agents.ts +381 -0
- cognis_controller-0.1.0/ui/src/lib/api/client.test.ts +68 -0
- cognis_controller-0.1.0/ui/src/lib/api/client.ts +1080 -0
- cognis_controller-0.1.0/ui/src/lib/channels.test.ts +89 -0
- cognis_controller-0.1.0/ui/src/lib/channels.ts +247 -0
- cognis_controller-0.1.0/ui/src/lib/chat-page.test.ts +60 -0
- cognis_controller-0.1.0/ui/src/lib/chat-page.ts +46 -0
- cognis_controller-0.1.0/ui/src/lib/chat.test.ts +237 -0
- cognis_controller-0.1.0/ui/src/lib/chat.ts +860 -0
- cognis_controller-0.1.0/ui/src/lib/components/AgentAvatar.svelte +39 -0
- cognis_controller-0.1.0/ui/src/lib/components/AgentProfilePopover.svelte +47 -0
- cognis_controller-0.1.0/ui/src/lib/components/ChatMessage.svelte +190 -0
- cognis_controller-0.1.0/ui/src/lib/components/CompactionCard.svelte +46 -0
- cognis_controller-0.1.0/ui/src/lib/components/DelegationCard.svelte +67 -0
- cognis_controller-0.1.0/ui/src/lib/components/EscalationPrompt.svelte +54 -0
- cognis_controller-0.1.0/ui/src/lib/components/ImageLightbox.svelte +24 -0
- cognis_controller-0.1.0/ui/src/lib/components/LoadingState.svelte +14 -0
- cognis_controller-0.1.0/ui/src/lib/components/ProviderStatusBadge.svelte +15 -0
- cognis_controller-0.1.0/ui/src/lib/components/ReasoningBlock.svelte +40 -0
- cognis_controller-0.1.0/ui/src/lib/components/ShortcutHelp.svelte +34 -0
- cognis_controller-0.1.0/ui/src/lib/components/ToastViewport.svelte +49 -0
- cognis_controller-0.1.0/ui/src/lib/components/ToolCallBlock.svelte +252 -0
- cognis_controller-0.1.0/ui/src/lib/components/ToolCallCard.svelte +17 -0
- cognis_controller-0.1.0/ui/src/lib/components/agents/AgentForm.svelte +787 -0
- cognis_controller-0.1.0/ui/src/lib/components/agents/AvatarGenerateModal.svelte +159 -0
- cognis_controller-0.1.0/ui/src/lib/components/settings/EnvVarEditor.svelte +81 -0
- cognis_controller-0.1.0/ui/src/lib/components/settings/ModelCard.svelte +70 -0
- cognis_controller-0.1.0/ui/src/lib/components/settings/ModelDiscoveryModal.svelte +151 -0
- cognis_controller-0.1.0/ui/src/lib/components/settings/ModelEditModal.svelte +161 -0
- cognis_controller-0.1.0/ui/src/lib/components/tasks/CreateTaskModal.svelte +167 -0
- cognis_controller-0.1.0/ui/src/lib/components/tasks/SessionLogsDrawer.svelte +181 -0
- cognis_controller-0.1.0/ui/src/lib/components/tasks/TaskCard.svelte +55 -0
- cognis_controller-0.1.0/ui/src/lib/components/ui/Badge.svelte +11 -0
- cognis_controller-0.1.0/ui/src/lib/components/ui/Button.svelte +54 -0
- cognis_controller-0.1.0/ui/src/lib/components/ui/Card.svelte +11 -0
- cognis_controller-0.1.0/ui/src/lib/components/ui/ConfirmDialog.svelte +78 -0
- cognis_controller-0.1.0/ui/src/lib/components/ui/Input.svelte +35 -0
- cognis_controller-0.1.0/ui/src/lib/components/ui/Tooltip.svelte +17 -0
- cognis_controller-0.1.0/ui/src/lib/components/workflows/WorkflowDiagram.svelte +300 -0
- cognis_controller-0.1.0/ui/src/lib/config.ts +63 -0
- cognis_controller-0.1.0/ui/src/lib/docs.test.ts +66 -0
- cognis_controller-0.1.0/ui/src/lib/docs.ts +410 -0
- cognis_controller-0.1.0/ui/src/lib/errors.ts +12 -0
- cognis_controller-0.1.0/ui/src/lib/executors.test.ts +60 -0
- cognis_controller-0.1.0/ui/src/lib/executors.ts +48 -0
- cognis_controller-0.1.0/ui/src/lib/getting-started.test.ts +49 -0
- cognis_controller-0.1.0/ui/src/lib/getting-started.ts +67 -0
- cognis_controller-0.1.0/ui/src/lib/markdown.test.ts +32 -0
- cognis_controller-0.1.0/ui/src/lib/markdown.ts +42 -0
- cognis_controller-0.1.0/ui/src/lib/navigation/unsaved.ts +42 -0
- cognis_controller-0.1.0/ui/src/lib/notifications.ts +99 -0
- cognis_controller-0.1.0/ui/src/lib/providers.test.ts +242 -0
- cognis_controller-0.1.0/ui/src/lib/providers.ts +333 -0
- cognis_controller-0.1.0/ui/src/lib/shortcuts.ts +50 -0
- cognis_controller-0.1.0/ui/src/lib/stores/auth.ts +341 -0
- cognis_controller-0.1.0/ui/src/lib/stores/confirm.ts +44 -0
- cognis_controller-0.1.0/ui/src/lib/stores/toasts.ts +76 -0
- cognis_controller-0.1.0/ui/src/lib/system.ts +121 -0
- cognis_controller-0.1.0/ui/src/lib/tasks.ts +66 -0
- cognis_controller-0.1.0/ui/src/lib/time.ts +110 -0
- cognis_controller-0.1.0/ui/src/lib/tools-registry.test.ts +134 -0
- cognis_controller-0.1.0/ui/src/lib/tools-registry.ts +159 -0
- cognis_controller-0.1.0/ui/src/lib/types/api.ts +1249 -0
- cognis_controller-0.1.0/ui/src/lib/utils.ts +44 -0
- cognis_controller-0.1.0/ui/src/lib/workflows.test.ts +40 -0
- cognis_controller-0.1.0/ui/src/lib/workflows.ts +298 -0
- cognis_controller-0.1.0/ui/src/lib/ws/client.ts +333 -0
- cognis_controller-0.1.0/ui/src/lib/ws.client.test.ts +120 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/+error.svelte +15 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/+layout.svelte +437 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/agents/+page.svelte +231 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/agents/[agentId]/+page.svelte +229 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/agents/new/+page.svelte +140 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/channels/+page.svelte +625 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/channels/ChannelAccountCard.svelte +72 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/channels/ChannelAccountEditor.svelte +155 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/channels/ChannelAccountsView.svelte +48 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/channels/ChannelDynamicFields.svelte +57 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/channels/ChannelSetupGuide.svelte +41 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/channels/ChannelTypePicker.svelte +26 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/channels/ChannelsPageHeader.svelte +28 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/channels/ChannelsSummaryCards.svelte +16 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/channels/ContactsView.svelte +67 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/channels/PairingInboxView.svelte +50 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/channels/PairingRequestCard.svelte +41 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/chat/+page.svelte +68 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/chat/[conversationId]/+page.svelte +2186 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/chat/new/+page.svelte +97 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/docs/+page.svelte +42 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/docs/[slug]/+page.svelte +54 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/docs/docs-routes.test.ts +30 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/getting-started/+page.svelte +106 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/schedules/+page.svelte +646 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/schedules/[scheduleId]/+page.svelte +496 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/settings/+page.svelte +2572 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/tasks/+page.svelte +516 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/tasks/[taskId]/+page.svelte +938 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/tools/+page.svelte +690 -0
- cognis_controller-0.1.0/ui/src/routes/(app)/workflows/+page.svelte +591 -0
- cognis_controller-0.1.0/ui/src/routes/+error.svelte +33 -0
- cognis_controller-0.1.0/ui/src/routes/+layout.svelte +10 -0
- cognis_controller-0.1.0/ui/src/routes/+layout.ts +2 -0
- cognis_controller-0.1.0/ui/src/routes/+page.svelte +22 -0
- cognis_controller-0.1.0/ui/src/routes/login/+page.svelte +74 -0
- cognis_controller-0.1.0/ui/src/routes/setup/+page.svelte +157 -0
- cognis_controller-0.1.0/ui/src/test/setup.ts +1 -0
- cognis_controller-0.1.0/ui/static/favicon.svg +6 -0
- cognis_controller-0.1.0/ui/svelte.config.js +19 -0
- cognis_controller-0.1.0/ui/tailwind.config.ts +17 -0
- cognis_controller-0.1.0/ui/tsconfig.json +17 -0
- cognis_controller-0.1.0/ui/vite.config.ts +24 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
Business Source License 1.1
|
|
2
|
+
|
|
3
|
+
Licensor: Filip Pytloun
|
|
4
|
+
Licensed Work: Cognis
|
|
5
|
+
The Licensed Work is (c) 2026 Filip Pytloun
|
|
6
|
+
Additional Use Grant: You may use the Software for your own internal
|
|
7
|
+
business operations, including deployment within
|
|
8
|
+
your organization for internal use only, free of
|
|
9
|
+
charge. You may modify the Software and distribute
|
|
10
|
+
modifications provided that such distribution is
|
|
11
|
+
not a Commercial Use as defined below.
|
|
12
|
+
|
|
13
|
+
The Licensor hereby grants you a perpetual,
|
|
14
|
+
worldwide, non-exclusive, royalty-free patent
|
|
15
|
+
license to make, use, and distribute the Software
|
|
16
|
+
for the purposes permitted under this License.
|
|
17
|
+
|
|
18
|
+
Change Date: 2030-03-15
|
|
19
|
+
Change License: Apache License, Version 2.0
|
|
20
|
+
|
|
21
|
+
For information about alternative licensing arrangements for the
|
|
22
|
+
Software, please contact: filip@pytloun.cz
|
|
23
|
+
|
|
24
|
+
Notice
|
|
25
|
+
|
|
26
|
+
The Business Source License (this document, or the "License") is not
|
|
27
|
+
an Open Source license. However, the Licensed Work will eventually be
|
|
28
|
+
made available under an Open Source license, as stated in this License.
|
|
29
|
+
|
|
30
|
+
License text copyright (c) 2017 MariaDB Corporation Ab, All Rights
|
|
31
|
+
Reserved. "Business Source License" is a trademark of MariaDB
|
|
32
|
+
Corporation Ab.
|
|
33
|
+
|
|
34
|
+
-----------------------------------------------------------------------------
|
|
35
|
+
|
|
36
|
+
Business Source License 1.1
|
|
37
|
+
|
|
38
|
+
Terms
|
|
39
|
+
|
|
40
|
+
The Licensor hereby grants you the right to copy, modify, create
|
|
41
|
+
derivative works, redistribute, and make non-production use of the
|
|
42
|
+
Licensed Work. The Licensor may make an Additional Use Grant, above,
|
|
43
|
+
permitting limited production use.
|
|
44
|
+
|
|
45
|
+
Effective on the Change Date, or the fourth anniversary of the first
|
|
46
|
+
publicly available distribution of a specific version of the Licensed
|
|
47
|
+
Work under this License, whichever comes first, the Licensor hereby
|
|
48
|
+
grants you rights under the terms of the Change License, and the
|
|
49
|
+
rights granted in the paragraph above terminate.
|
|
50
|
+
|
|
51
|
+
If your use of the Licensed Work does not comply with the requirements
|
|
52
|
+
currently in effect as described in this License, you must purchase a
|
|
53
|
+
commercial license from the Licensor, its affiliated entities, or
|
|
54
|
+
authorized resellers, or you must refrain from using the Licensed Work.
|
|
55
|
+
|
|
56
|
+
All copies of the original and modified Licensed Work, and derivative
|
|
57
|
+
works of the Licensed Work, are subject to this License. This License
|
|
58
|
+
applies separately for each version of the Licensed Work and the Change
|
|
59
|
+
Date may vary for each version of the Licensed Work released by the
|
|
60
|
+
Licensor.
|
|
61
|
+
|
|
62
|
+
You must conspicuously display this License on each original or
|
|
63
|
+
modified copy of the Licensed Work. If you receive the Licensed Work
|
|
64
|
+
in original or modified form from a third party, the terms and
|
|
65
|
+
conditions set forth in this License apply to your use of that work.
|
|
66
|
+
|
|
67
|
+
Any use of the Licensed Work in violation of this License will
|
|
68
|
+
automatically terminate your rights under this License for the current
|
|
69
|
+
and all other versions of the Licensed Work.
|
|
70
|
+
|
|
71
|
+
This License does not grant you any right in any trademark or logo of
|
|
72
|
+
Licensor or its affiliates (provided that you may use a trademark or
|
|
73
|
+
logo of Licensor as expressly required by this License).
|
|
74
|
+
|
|
75
|
+
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS
|
|
76
|
+
PROVIDED ON AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES
|
|
77
|
+
AND CONDITIONS, EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION)
|
|
78
|
+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
|
|
79
|
+
NON-INFRINGEMENT, AND TITLE. IN NO EVENT SHALL THE LICENSOR BE LIABLE
|
|
80
|
+
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
|
81
|
+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
82
|
+
WITH THE LICENSED WORK OR THE USE OR OTHER DEALINGS IN THE LICENSED
|
|
83
|
+
WORK.
|
|
84
|
+
|
|
85
|
+
-----------------------------------------------------------------------------
|
|
86
|
+
|
|
87
|
+
"Commercial Use" means use of the Licensed Work, or distribution of
|
|
88
|
+
the Licensed Work as part of, or in conjunction with, a product or
|
|
89
|
+
service that is offered to third parties for a fee or other
|
|
90
|
+
consideration (including without limitation SaaS offerings, managed
|
|
91
|
+
services, or as a component of a commercial product).
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cognis-controller
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Decoupled control plane for AI agents
|
|
5
|
+
Author-email: Filip Pytloun <filip@pytloun.cz>
|
|
6
|
+
License: TBD
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Classifier: Development Status :: 3 - Alpha
|
|
9
|
+
Classifier: Framework :: FastAPI
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
11
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
12
|
+
Requires-Python: >=3.12
|
|
13
|
+
Requires-Dist: aiosqlite>=0.20.0
|
|
14
|
+
Requires-Dist: alembic>=1.13.0
|
|
15
|
+
Requires-Dist: argon2-cffi>=23.1.0
|
|
16
|
+
Requires-Dist: croniter>=2.0.0
|
|
17
|
+
Requires-Dist: cryptography>=42.0.0
|
|
18
|
+
Requires-Dist: ddgs>=9.0.0
|
|
19
|
+
Requires-Dist: email-validator>=2.0.0
|
|
20
|
+
Requires-Dist: fastapi>=0.115.0
|
|
21
|
+
Requires-Dist: httpx>=0.27.0
|
|
22
|
+
Requires-Dist: litellm>=1.40.0
|
|
23
|
+
Requires-Dist: markdown>=3.7
|
|
24
|
+
Requires-Dist: markdownify>=0.14.0
|
|
25
|
+
Requires-Dist: mcp>=1.6.0
|
|
26
|
+
Requires-Dist: prometheus-client>=0.20.0
|
|
27
|
+
Requires-Dist: pydantic-settings>=2.0.0
|
|
28
|
+
Requires-Dist: pydantic>=2.0.0
|
|
29
|
+
Requires-Dist: pypdf>=5.4.0
|
|
30
|
+
Requires-Dist: python-dateutil>=2.9.0
|
|
31
|
+
Requires-Dist: python-jose[cryptography]>=3.3.0
|
|
32
|
+
Requires-Dist: python-multipart>=0.0.9
|
|
33
|
+
Requires-Dist: sqlalchemy[asyncio]>=2.0.0
|
|
34
|
+
Requires-Dist: typer>=0.12.0
|
|
35
|
+
Requires-Dist: uvicorn[standard]>=0.30.0
|
|
36
|
+
Requires-Dist: weasyprint>=63.0
|
|
37
|
+
Requires-Dist: websockets>=14.0
|
|
38
|
+
Provides-Extra: dev
|
|
39
|
+
Requires-Dist: mypy>=1.10.0; extra == 'dev'
|
|
40
|
+
Requires-Dist: pyjwt[crypto]>=2.8.0; extra == 'dev'
|
|
41
|
+
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
|
|
42
|
+
Requires-Dist: pytest-cov>=5.0.0; extra == 'dev'
|
|
43
|
+
Requires-Dist: pytest>=8.0.0; extra == 'dev'
|
|
44
|
+
Requires-Dist: respx>=0.21.0; extra == 'dev'
|
|
45
|
+
Requires-Dist: ruff>=0.5.0; extra == 'dev'
|
|
46
|
+
Requires-Dist: types-python-jose>=3.3.0; extra == 'dev'
|
|
47
|
+
Provides-Extra: postgres
|
|
48
|
+
Requires-Dist: asyncpg>=0.29.0; extra == 'postgres'
|
|
49
|
+
Provides-Extra: redis
|
|
50
|
+
Requires-Dist: redis[hiredis]>=5.0.0; extra == 'redis'
|
|
51
|
+
Provides-Extra: s3
|
|
52
|
+
Requires-Dist: boto3>=1.34.0; extra == 's3'
|
|
53
|
+
Description-Content-Type: text/markdown
|
|
54
|
+
|
|
55
|
+
<p align="center">
|
|
56
|
+
<img src="files/banner.jpg" alt="cognis banner" />
|
|
57
|
+
</p>
|
|
58
|
+
|
|
59
|
+
# cognis
|
|
60
|
+
|
|
61
|
+
Decoupled control plane for AI agents. Cognis is the controller and orchestration layer of the Openclaw ecosystem -- it manages agent definitions, interactive chat, delegated sub-sessions, tool execution routing, and integrates with external memory and guardrails services.
|
|
62
|
+
|
|
63
|
+
**Non-blocking.** The main chat is always responsive. Heavy work -- research, coding, multi-step tool calls -- is delegated to background sub-sessions. The user sees real-time progress and can continue chatting.
|
|
64
|
+
|
|
65
|
+
**Decoupled.** Cognis does not embed memory, guardrails, or session recording. It orchestrates them through pluggable provider interfaces. Swap any component without changing the controller.
|
|
66
|
+
|
|
67
|
+
**Safe by default.** Every tool call flows through guardrails evaluation. Non-bypassable tools always require safety checks. All actions are audited with full lineage.
|
|
68
|
+
|
|
69
|
+
**Self-hosted.** Python async controller, SQLite or PostgreSQL, no external dependencies beyond an LLM API key and the companion services. Your agents, conversations, and data stay under your control.
|
|
70
|
+
|
|
71
|
+
Part of the Openclaw ecosystem: Cognis controller, [Intaris](https://github.com/fpytloun/intaris) guardrails, [Mnemory](https://github.com/fpytloun/mnemory) memory.
|
|
72
|
+
|
|
73
|
+
## Features
|
|
74
|
+
|
|
75
|
+
- **Interactive chat with streaming** -- WebSocket-based chat with real-time token streaming, tool call indicators, and delegation status cards.
|
|
76
|
+
- **Agent identity** -- Create agents with name, personality, behavioral rules, and skills. Personality bootstrapped to Mnemory and evolves through interactions.
|
|
77
|
+
- **Sub-session delegation** -- Three modes: Agent (delegate to different agent), Worker (same agent, focused task), Fork (parallel exploration). Main chat stays responsive.
|
|
78
|
+
- **Task queue + workflows** -- Durable kanban-style tasks with priorities, dependencies, portable workflow templates, step evaluation, and human-in-the-loop gates.
|
|
79
|
+
- **Controller-executor separation** -- The controller decides; executors do. Ships with in-process, subprocess, and remote WebSocket executors using JSON-RPC 2.0 over WebSocket. Remote executors can provide local LLM inference alongside tool execution, and executor-hosted channel adapters are already supported for integrations that need user-local services such as Signal via `signal-cli`.
|
|
80
|
+
- **Memory integration** -- Persistent recall and remember through [Mnemory](https://github.com/fpytloun/mnemory). Agent identity, user facts, episodic memory, and artifacts.
|
|
81
|
+
- **Guardrails integration** -- Every tool call evaluated by [Intaris](https://github.com/fpytloun/intaris). Escalation prompts with approve/deny. Session recording and behavioral analysis.
|
|
82
|
+
- **LLM provider abstraction** -- Multi-provider support via LiteLLM. Configure providers and model routing through the UI, with model metadata, capability flags, and pricing fields.
|
|
83
|
+
- **MCP tool support** -- Connect MCP servers over supported transports such as stdio, SSE, and streamable HTTP. Tools are discovered automatically, evaluated through guardrails, and executed on the executor.
|
|
84
|
+
- **Decision Engine** -- Deterministic rules + lightweight LLM classifier decide whether a request runs inline or gets delegated to a background sub-session.
|
|
85
|
+
- **Context management** -- Parallel context assembly (Mnemory recall + Intaris events + intention read via `asyncio.gather`). LLM-based compaction with mechanical fallback for long conversations.
|
|
86
|
+
- **Web UI** -- SvelteKit application served by Cognis on `:8080` by default, with setup flow, diagnostics, provider presets, and account management.
|
|
87
|
+
- **Channel adapters** -- Connect agents to Signal, WhatsApp, Telegram, Discord, Slack, Matrix, IRC, Google Chat, and iMessage (via BlueBubbles) with DB-managed channel accounts and webhook/gateway integrations. Signal and BlueBubbles currently have the most complete setup documentation.
|
|
88
|
+
- **Secure pairing flow** -- External senders can be required to redeem a short-lived verification code in the Cognis UI before the agent accepts their messages.
|
|
89
|
+
- **Polished workspace UX** -- Global toasts, confirmation dialogs, keyboard shortcuts, mobile navigation, chat timestamps, and unsaved-change protection.
|
|
90
|
+
- **Degraded-mode guidance** -- Provider outage banners, setup-incomplete states, retry affordances, and contextual chat/task failure messaging.
|
|
91
|
+
- **CLI** -- Typer-based CLI for server management and administration.
|
|
92
|
+
- **Quick local bootstrap** -- `uvx cognis-controller` creates local keys and a SQLite database, then serves the web UI on `:8080`.
|
|
93
|
+
- **JWT service auth** -- Cognis issues ES256 JWTs. Mnemory and Intaris validate them. No API keys between services.
|
|
94
|
+
- **Encrypted secrets** -- AES-256-GCM encrypted secret store for API keys and credentials. Injected into executors at runtime.
|
|
95
|
+
|
|
96
|
+
## Quick Start
|
|
97
|
+
|
|
98
|
+
### Prerequisites
|
|
99
|
+
|
|
100
|
+
- Python 3.12+
|
|
101
|
+
- One LLM option: OpenAI, Anthropic, or a local Ollama instance
|
|
102
|
+
|
|
103
|
+
Cognis needs [Mnemory](https://github.com/fpytloun/mnemory) and [Intaris](https://github.com/fpytloun/intaris) running. Start Cognis once first so it can generate its JWT keypair and setup URL:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
uvx cognis-controller # Controller on :8080
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Then start Mnemory and Intaris with Cognis's public key for JWT validation:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
# Mnemory
|
|
113
|
+
MNEMORY_JWT_PUBLIC_KEY=~/.cognis/keys/public.pem uvx mnemory
|
|
114
|
+
|
|
115
|
+
# Intaris
|
|
116
|
+
INTARIS_JWT_PUBLIC_KEY=~/.cognis/keys/public.pem uvx intaris
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
If you started Cognis before setting provider credentials, restart it with an LLM credential available to LiteLLM:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
OPENAI_API_KEY=sk-... uvx cognis-controller
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
On first start, Cognis creates `~/.cognis/` with auto-generated JWT keys, a secrets encryption key, and a SQLite database. When bundled UI assets are present, it serves the web UI on `:8080` and prints a one-time setup URL for the first admin account:
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
Cognis started on http://localhost:8080
|
|
129
|
+
|
|
130
|
+
No users found. Complete setup at:
|
|
131
|
+
http://localhost:8080/setup?token=<random_token>
|
|
132
|
+
This link expires in 15 minutes.
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
After creating the admin:
|
|
136
|
+
|
|
137
|
+
1. Open the printed setup URL
|
|
138
|
+
2. Create the first admin account in the web form
|
|
139
|
+
3. Log in
|
|
140
|
+
4. Open **Settings → Providers** and configure a provider preset
|
|
141
|
+
5. Open **Settings → Executors** and enable the tool groups you want available
|
|
142
|
+
6. Open **Agents → New** and create the first agent
|
|
143
|
+
7. Start a conversation from **Chat**
|
|
144
|
+
8. Optional: configure **Channels** and redeem pairing codes to link remote sender identities securely
|
|
145
|
+
|
|
146
|
+
Use **Settings → System** or **Getting started** for readiness checks and diagnostics.
|
|
147
|
+
|
|
148
|
+
The bundled UI also includes embedded user-facing documentation under `Docs`.
|
|
149
|
+
|
|
150
|
+
For headless setup, use the CLI:
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
cognis-controller admin create-user admin@example.com --name "Admin"
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## Architecture
|
|
157
|
+
|
|
158
|
+
Cognis is a decoupled control plane. It orchestrates, but does not own, memory or guardrails:
|
|
159
|
+
|
|
160
|
+

|
|
161
|
+
|
|
162
|
+
| Data | Owner | Storage |
|
|
163
|
+
|------|-------|---------|
|
|
164
|
+
| Users, agents, secrets, settings | **Cognis** | Cognis DB (SQLite / PostgreSQL) |
|
|
165
|
+
| Conversation & session metadata | **Cognis** | Cognis DB |
|
|
166
|
+
| Session content (messages, tool calls) | **Intaris** | Intaris event store |
|
|
167
|
+
| Safety decisions, behavioral analysis | **Intaris** | Intaris DB |
|
|
168
|
+
| Persistent memory (facts, personality) | **Mnemory** | Mnemory (Qdrant) |
|
|
169
|
+
|
|
170
|
+
Every major capability is a pluggable provider behind a Python `Protocol` interface:
|
|
171
|
+
|
|
172
|
+
- `MemoryProvider` -- default: Mnemory
|
|
173
|
+
- `GuardrailsProvider` -- default: Intaris
|
|
174
|
+
- `ExecutorProvider` -- ships with in-process, subprocess, and remote WebSocket modes
|
|
175
|
+
- `LLMProvider` -- default: LiteLLM
|
|
176
|
+
- `SecretsProvider` -- default: encrypted DB
|
|
177
|
+
- `AuthProvider` -- default: ES256 JWT
|
|
178
|
+
|
|
179
|
+
## Configuration
|
|
180
|
+
|
|
181
|
+
There is **no configuration file**. Infrastructure config uses environment variables. Application config (LLM providers, model routing, session settings) is stored in the database and managed through the UI or API.
|
|
182
|
+
|
|
183
|
+
### Environment Variables
|
|
184
|
+
|
|
185
|
+
| Variable | Default | Description |
|
|
186
|
+
|----------|---------|-------------|
|
|
187
|
+
| `COGNIS_DATA_DIR` | `~/.cognis` | Data directory (keys, DB, secrets) |
|
|
188
|
+
| `COGNIS_HOST` | `0.0.0.0` | Bind address |
|
|
189
|
+
| `COGNIS_PORT` | `8080` | Port |
|
|
190
|
+
| `COGNIS_MNEMORY_URL` | `http://localhost:8050` | Mnemory service URL |
|
|
191
|
+
| `COGNIS_INTARIS_URL` | `http://localhost:8060` | Intaris service URL |
|
|
192
|
+
| `DATABASE_URL` | `sqlite+aiosqlite:///~/.cognis/cognis.db` | Database URL |
|
|
193
|
+
| `COGNIS_LOG_LEVEL` | `info` | Log level |
|
|
194
|
+
|
|
195
|
+
Auto-generated on first start (override with env vars for production):
|
|
196
|
+
- `COGNIS_JWT_PRIVATE_KEY_PATH` -- ES256 private key
|
|
197
|
+
- `COGNIS_JWT_PUBLIC_KEY_PATH` -- ES256 public key (share with Mnemory/Intaris)
|
|
198
|
+
- `COGNIS_SECRETS_KEY_PATH` -- AES-256-GCM encryption key
|
|
199
|
+
|
|
200
|
+
## Development
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
# Install with dev dependencies
|
|
204
|
+
uv pip install -e ".[dev]"
|
|
205
|
+
|
|
206
|
+
# Run server
|
|
207
|
+
uv run cognis-controller serve
|
|
208
|
+
|
|
209
|
+
# Run the SvelteKit UI in dev mode (not required for normal users)
|
|
210
|
+
cd ui && npm install && npm run dev
|
|
211
|
+
|
|
212
|
+
# Run tests
|
|
213
|
+
uv run pytest tests/unit/ -v # Unit tests (fast, no services needed)
|
|
214
|
+
uv run pytest tests/contract/ -v # Contract tests (need Mnemory + Intaris)
|
|
215
|
+
uv run pytest tests/integration/ -v # Integration tests (need full stack)
|
|
216
|
+
|
|
217
|
+
# UI checks and build
|
|
218
|
+
cd ui && npm run check
|
|
219
|
+
cd ui && npm run test
|
|
220
|
+
cd ui && npm run build
|
|
221
|
+
|
|
222
|
+
# Lint and type check
|
|
223
|
+
ruff check cognis/ tests/
|
|
224
|
+
ruff format cognis/ tests/
|
|
225
|
+
mypy cognis/
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
## CLI
|
|
229
|
+
|
|
230
|
+
```bash
|
|
231
|
+
cognis-controller serve # Start the controller
|
|
232
|
+
cognis-controller admin create-user <email>
|
|
233
|
+
# Create user (direct DB access)
|
|
234
|
+
cognis-controller admin reset-password <email>
|
|
235
|
+
# Reset password
|
|
236
|
+
cognis-controller admin api-key create <email>
|
|
237
|
+
# Create API key
|
|
238
|
+
cognis-controller status # Health + provider status
|
|
239
|
+
cognis-controller config init # Print env var template
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
### Remote Executor
|
|
243
|
+
|
|
244
|
+
Run a standalone executor process that connects to a Cognis controller via WebSocket. The executor is a remote hand: the controller assigns tools, MCP setup, and decides whether LLM inference runs locally on the controller or is proxied through the executor.
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
# On the remote machine (via CLI flags)
|
|
248
|
+
cognis-executor \
|
|
249
|
+
--controller-url wss://cognis.example.com/api/executor/ws \
|
|
250
|
+
--token <jwt-token>
|
|
251
|
+
|
|
252
|
+
# Or via environment variables (preferred — avoids token in /proc/cmdline)
|
|
253
|
+
export COGNIS_CONTROLLER_URL=wss://cognis.example.com/api/executor/ws
|
|
254
|
+
export COGNIS_EXECUTOR_TOKEN=<jwt-token>
|
|
255
|
+
cognis-executor
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
For local development from a checkout, `uv run cognis-executor` and `python -m cognis.executor` are also available.
|
|
259
|
+
|
|
260
|
+
Or run as a Python module:
|
|
261
|
+
```bash
|
|
262
|
+
python -m cognis.executor \
|
|
263
|
+
--controller-url wss://cognis.example.com/api/executor/ws \
|
|
264
|
+
--token <jwt-token>
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
The executor authenticates with a JWT token generated by Cognis, communicates over encrypted WebSocket with per-message compression, and sends heartbeats every 15 seconds. TLS (`wss://`) is enforced for non-localhost connections. LLM providers remain configured normally in Cognis; setting a provider location to `executor` routes the same provider call through a matching executor instead of running it on the controller.
|
|
268
|
+
|
|
269
|
+
Executors are user-scoped. MCP servers are also user-scoped and are assigned to executors, not shared globally across users. Agents bind to one executor (explicitly or by labels) and inherit the effective tool set from that executor.
|
|
270
|
+
|
|
271
|
+
For multi-user production deployments, disable local executor modes with the DB-backed settings `executors.allow_in_process=false` and `executors.allow_subprocess=false`, then use only WebSocket executors.
|
|
272
|
+
|
|
273
|
+
**Generating a token:** Create the executor in **Settings > Executors**, then click **Generate token**. The token is displayed once — copy it or the ready-made CLI command. Alternatively, use the API: `POST /api/v1/executors/{id}/token` (admin only).
|
|
274
|
+
|
|
275
|
+
**Subprocess mode:** When using `python -m cognis.executor`, the token can also be piped via stdin (used internally by the subprocess executor to avoid exposing the token in process listings).
|
|
276
|
+
|
|
277
|
+
**Systemd service templates** for both the controller and executor are available in [`deploy/systemd/`](deploy/systemd/). See [`deploy/systemd/README.md`](deploy/systemd/README.md) for installation instructions covering system-level units (per-user executor template) and user-level units (no root required).
|
|
278
|
+
|
|
279
|
+
The same split is the deployment model for stateful channel adapters.
|
|
280
|
+
For example, a user can either run Signal's `signal-cli` REST API next to a
|
|
281
|
+
Cognis executor they control or let the executor run `signal-cli` directly via
|
|
282
|
+
JSON-RPC, while the cloud controller continues to orchestrate pairing, turns,
|
|
283
|
+
and outbound delivery without owning the Signal session state itself.
|
|
284
|
+
|
|
285
|
+
## Status
|
|
286
|
+
|
|
287
|
+
Available today:
|
|
288
|
+
|
|
289
|
+
- Interactive chat, agents, tasks, workflows, schedules, channels, and the bundled web UI
|
|
290
|
+
- In-process, subprocess, and remote WebSocket executors
|
|
291
|
+
- Executor-routed inference and executor-hosted Signal direct mode
|
|
292
|
+
- Mnemory and Intaris integrations, MCP tools, encrypted secrets, setup diagnostics, and admin CLI flows
|
|
293
|
+
|
|
294
|
+
Still ahead:
|
|
295
|
+
|
|
296
|
+
- Docker and Kubernetes executor backends
|
|
297
|
+
- federation and cryptographic agent identity
|
|
298
|
+
- broader production hardening for multi-user and multi-replica deployments
|
|
299
|
+
|
|
300
|
+
See [docs/specs/](docs/specs/) for the full specification set and [docs/specs/implementation/](docs/specs/implementation/) for the implementation stage tracker.
|
|
301
|
+
|
|
302
|
+
## Documentation
|
|
303
|
+
|
|
304
|
+
- [Documentation Index](docs/README.md)
|
|
305
|
+
- [Getting Started](docs/guide/getting-started.md)
|
|
306
|
+
- [Architecture](docs/guide/architecture.md)
|
|
307
|
+
- [Configuring Providers](docs/guide/configuring-providers.md)
|
|
308
|
+
- [Creating Agents](docs/guide/creating-agents.md)
|
|
309
|
+
- [Settings](docs/guide/settings.md)
|
|
310
|
+
- [Using Chat](docs/guide/using-chat.md)
|
|
311
|
+
- [Managing Tasks](docs/guide/managing-tasks.md)
|
|
312
|
+
- [Schedules](docs/guide/schedules.md)
|
|
313
|
+
- [Workflows](docs/guide/workflows.md)
|
|
314
|
+
- [Channels](docs/guide/channels.md)
|
|
315
|
+
- [Executors](docs/guide/executors.md)
|
|
316
|
+
- [Tools and Skills](docs/guide/tools-and-skills.md)
|
|
317
|
+
- [Troubleshooting](docs/guide/troubleshooting.md)
|
|
318
|
+
|
|
319
|
+
## License
|
|
320
|
+
|
|
321
|
+
Business Source License 1.1, same licensing model as Intaris.
|
|
322
|
+
|
|
323
|
+
- Free for your own internal business operations, including internal deployment
|
|
324
|
+
- Modifications and redistribution allowed when not used commercially
|
|
325
|
+
- Converts to Apache License 2.0 on 2030-03-15
|
|
326
|
+
|
|
327
|
+
See [`LICENSE`](LICENSE) for the full terms.
|