archie-connect 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 (36) hide show
  1. archie_connect-2.0.0/.gitignore +217 -0
  2. archie_connect-2.0.0/PKG-INFO +62 -0
  3. archie_connect-2.0.0/README.md +36 -0
  4. archie_connect-2.0.0/archie_connect/__init__.py +181 -0
  5. archie_connect-2.0.0/archie_connect/_http.py +316 -0
  6. archie_connect-2.0.0/archie_connect/adapters/__init__.py +26 -0
  7. archie_connect-2.0.0/archie_connect/adapters/_base.py +218 -0
  8. archie_connect-2.0.0/archie_connect/adapters/langchain.py +68 -0
  9. archie_connect-2.0.0/archie_connect/adapters/langgraph.py +133 -0
  10. archie_connect-2.0.0/archie_connect/adapters/openai_agents.py +99 -0
  11. archie_connect-2.0.0/archie_connect/cli.py +1389 -0
  12. archie_connect-2.0.0/archie_connect/client.py +313 -0
  13. archie_connect-2.0.0/archie_connect/errors.py +75 -0
  14. archie_connect-2.0.0/archie_connect/models.py +455 -0
  15. archie_connect-2.0.0/archie_connect/resources/__init__.py +39 -0
  16. archie_connect-2.0.0/archie_connect/resources/conversations.py +260 -0
  17. archie_connect-2.0.0/archie_connect/resources/documents.py +81 -0
  18. archie_connect-2.0.0/archie_connect/resources/drafts.py +121 -0
  19. archie_connect-2.0.0/archie_connect/resources/journal_entries.py +98 -0
  20. archie_connect-2.0.0/archie_connect/resources/keys.py +107 -0
  21. archie_connect-2.0.0/archie_connect/resources/messages.py +120 -0
  22. archie_connect-2.0.0/archie_connect/resources/reports.py +82 -0
  23. archie_connect-2.0.0/archie_connect/resources/search.py +81 -0
  24. archie_connect-2.0.0/archie_connect/resources/skills.py +381 -0
  25. archie_connect-2.0.0/archie_connect/resources/standards.py +76 -0
  26. archie_connect-2.0.0/archie_connect/resources/triggers.py +130 -0
  27. archie_connect-2.0.0/archie_connect/resources/workstreams.py +717 -0
  28. archie_connect-2.0.0/examples/native_desktop_smoke.py +214 -0
  29. archie_connect-2.0.0/pyproject.toml +46 -0
  30. archie_connect-2.0.0/tests/__init__.py +0 -0
  31. archie_connect-2.0.0/tests/test_client.py +204 -0
  32. archie_connect-2.0.0/tests/test_messages.py +228 -0
  33. archie_connect-2.0.0/tests/test_streaming.py +110 -0
  34. archie_connect-2.0.0/tests/test_workstreams_cycles.py +206 -0
  35. archie_connect-2.0.0/tests/test_workstreams_namespaces.py +110 -0
  36. archie_connect-2.0.0/uv.lock +423 -0
@@ -0,0 +1,217 @@
1
+ # Agent 365 CLI generated config — contains plaintext client secret on non-Windows
2
+ a365.generated.config.json
3
+ # Root-level a365.config.json auto-created by CLI; canonical config lives at apps/api/a365.config.json
4
+ /a365.config.json
5
+
6
+ # Node.js dependencies
7
+ node_modules/
8
+ **/node_modules/
9
+
10
+ # pnpm
11
+ .pnpm-store/
12
+
13
+
14
+ # Linear Integration
15
+ .env
16
+ .env.*
17
+ !.env.example
18
+ !.env.vault.example
19
+ !.env.test
20
+ !.env.observability.example
21
+ linear-tickets.json
22
+ linear-issue-mapping.json
23
+ *.tickets.json
24
+ .cloudflare_credentials
25
+
26
+ # Deleted orchestrator — V2 killed, V3 renamed to orchestrator/. Never re-add.
27
+ **/orchestrator_v3/
28
+ **/orchestrator_v2/
29
+
30
+ # Workstream Studio build artifacts + Playwright run output. Never commit.
31
+ apps/workstream-studio/dist/
32
+ apps/workstream-studio/e2e/screenshots/
33
+ apps/workstream-studio/e2e/test-results/
34
+ apps/workstream-studio/playwright-report/
35
+ apps/workstream-studio/test-results/
36
+
37
+ # Python Environment (UV + Ruff)
38
+ .venv/
39
+ venv/
40
+ __pycache__/
41
+ *.pyc
42
+ *.pyo
43
+ *.pyd
44
+ .Python
45
+ pip-log.txt
46
+ pip-delete-this-directory.txt
47
+ .pytest_cache/
48
+ .mypy_cache/
49
+ .ruff_cache/
50
+ htmlcov/
51
+ .coverage
52
+ .coverage.*
53
+ coverage.xml
54
+ *.cover
55
+ .hypothesis/
56
+
57
+ # File Ingestion Service - Test files and uploads
58
+ src/services/file-ingestion/test_*.py
59
+ src/services/file-ingestion/test_*.json
60
+ src/services/file-ingestion/data/uploads/
61
+ src/services/file-ingestion/seeds/
62
+ src/services/file-ingestion/examples/
63
+
64
+ # Test scripts and temporary files (root level only, not in tests/ directories)
65
+ /test_*.py
66
+ /test-*.sh
67
+ /start-*.sh
68
+ /stop-*.sh
69
+
70
+ # macOS
71
+ .DS_Store
72
+
73
+ # Vite build artifacts
74
+ **/node_modules/.vite/
75
+ **/node_modules/.vite/deps_temp_*
76
+
77
+ # Build artifacts
78
+ /dist
79
+ apps/teams/dist/
80
+
81
+ # .NET build output
82
+ **/bin/
83
+ **/obj/
84
+
85
+ # Terraform local environments
86
+ /terraform/environments/dev
87
+
88
+ # Playwright test results and reports
89
+ test-results/
90
+ playwright-report/
91
+
92
+ # Claude Flow generated files
93
+ .claude/settings.local.json
94
+ .mcp.json
95
+ claude-flow.config.json
96
+ .swarm/
97
+ .hive-mind/
98
+ .claude-flow/
99
+ memory/
100
+ coordination/
101
+ # Allow the orchestrator memory module (Python package, not claude-flow data)
102
+ !apps/api/src/orchestrator/memory/
103
+ # Same module after the V4 consolidation move (Epic 14 issue #3517).
104
+ !apps/api/src/orchestrator/v4/memory/
105
+ # Allow the scoped memory services module (Epic aemm00l)
106
+ !apps/api/src/services/memory/
107
+ # Allow memory unit tests
108
+ !tests/unit/memory/
109
+ !apps/api/tests/orchestrator/memory/
110
+ memory/claude-flow-data.json
111
+ memory/sessions/*
112
+ !memory/sessions/README.md
113
+ memory/agents/*
114
+ !memory/agents/README.md
115
+ coordination/memory_bank/*
116
+ coordination/subtasks/*
117
+ coordination/orchestration/*
118
+ *.db
119
+ *.db-journal
120
+ *.db-wal
121
+ *.sqlite
122
+ *.sqlite-journal
123
+ *.sqlite-wal
124
+ claude-flow
125
+ # Removed Windows wrapper files per user request
126
+ hive-mind-prompt-*.txt
127
+
128
+ # Infrastructure files with secrets (do not commit)
129
+ infrastructure/docker/migration-job.yaml
130
+
131
+ # Playwright auth state (generated at runtime, contains session tokens)
132
+ tests/e2e/.auth/user.json
133
+ tests/smoke/.auth/user.json
134
+
135
+ # Frontend lock file
136
+ apps/frontend/package-lock.json
137
+
138
+ # Martha test workflow tracker
139
+ .test-tracker.json
140
+
141
+ # Worktree-specific configuration
142
+ .worktree-config.json
143
+
144
+ # Test reports (generated by pytest)
145
+ apps/api/reports/
146
+ **/reports/*.xml
147
+ **/reports/*.html
148
+ .env.copilot-tests
149
+
150
+ # Sidebar v2 sample files (do not commit)
151
+ .archie-sidebar-v2-samples/
152
+ ~/.archie-sidebar-v2-samples/
153
+
154
+ # GitHub Actions local secrets
155
+ .act.secrets
156
+
157
+ # CEA manifest packages (built from manifest source files)
158
+ apps/archie-m365/manifest/archie-cea-*.zip
159
+ apps/archie-m365/manifest-da/archie-da-*.zip
160
+ apps/api/static/archie-cea-*.zip
161
+
162
+ # OpenAPI Generator CLI config (tool-specific)
163
+ openapitools.json
164
+
165
+ # Smoke test tracking
166
+ .smoke-tracker.json
167
+
168
+ # Render environment file (contains secrets - DO NOT COMMIT)
169
+ env.render
170
+ *.render.env
171
+
172
+ # UI library build output
173
+ packages/ui/dist/
174
+ packages/ui/storybook-static/
175
+
176
+ # Windows desktop app build artifacts (Inno Setup installer + staging)
177
+ apps/archie-desktop-win/dist/
178
+ apps/archie-desktop-win/ArchieDesktop/bin/
179
+ apps/archie-desktop-win/ArchieDesktop/obj/
180
+
181
+ # Script output (locale comparisons, debug exports)
182
+ scripts/output/
183
+
184
+ # Rust/Tauri build artifacts
185
+ **/target/
186
+ **/src-tauri/target/
187
+ Cargo.lock
188
+ !apps/workstreams-studio/src-tauri/Cargo.lock
189
+
190
+ # Auto-generated by sprite executor
191
+ .claude-task-*
192
+ .claude/worktrees/
193
+
194
+ # Deleted standalone orchestrator service — do not re-add
195
+ services/orchestrator/
196
+ .claude/plans/
197
+ .claude/scheduled_tasks.lock
198
+ # Playwright MCP browser test artifacts
199
+ .playwright-mcp/
200
+ apps/developers-portal/.next
201
+ tsconfig.tsbuildinfo
202
+ apps/developers-portal/next-env.d.ts
203
+
204
+ # Martha active-issue marker (per-session, never tracked)
205
+ .claude/active-issue
206
+ .claude/.turn-needs-martha
207
+ .claude/.last-martha-update
208
+
209
+ # Orchestrator V4 autonomous build loop — append-only journal + pause flag
210
+ # Journal lives at worktree root (not .claude/) so it bypasses Claude Code's
211
+ # .claude/ sensitivity prompts.
212
+ orchv4-build-journal.md
213
+ orchv4-interior-journal.md
214
+ .claude/orchv4-PAUSE
215
+ .claude/orchv4-interior-PAUSE
216
+ .env.test
217
+ .alpha-deploy-state/
@@ -0,0 +1,62 @@
1
+ Metadata-Version: 2.4
2
+ Name: archie-connect
3
+ Version: 2.0.0
4
+ Summary: Python SDK for the Archie Connect API
5
+ License: MIT
6
+ Keywords: accounting,ai,api,archie,sdk
7
+ Classifier: Development Status :: 3 - Alpha
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Typing :: Typed
15
+ Requires-Python: >=3.10
16
+ Requires-Dist: click>=8.0
17
+ Requires-Dist: httpx>=0.28
18
+ Requires-Dist: prompt-toolkit>=3.0
19
+ Requires-Dist: pydantic>=2.9
20
+ Requires-Dist: pyyaml>=6.0
21
+ Provides-Extra: dev
22
+ Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
23
+ Requires-Dist: pytest>=8.0; extra == 'dev'
24
+ Requires-Dist: respx>=0.22; extra == 'dev'
25
+ Description-Content-Type: text/markdown
26
+
27
+ # archie-connect
28
+
29
+ Python SDK for the [Archie Connect API](https://developers.heyarchie.ai/docs/api-reference).
30
+
31
+ ## Install
32
+
33
+ ```bash
34
+ pip install archie-connect
35
+ ```
36
+
37
+ ## Quick start
38
+
39
+ ```python
40
+ import archie_connect
41
+
42
+ archie = archie_connect.Archie(api_key="ak_test_...")
43
+ message = archie.messages.create(
44
+ "Summarise the BAS for Q1 2026",
45
+ client_id="client_test_growthwise",
46
+ )
47
+ print(message.content)
48
+ ```
49
+
50
+ ## Async
51
+
52
+ ```python
53
+ import asyncio
54
+ import archie_connect
55
+
56
+ async def main():
57
+ async with archie_connect.AsyncArchie(api_key="ak_test_...") as archie:
58
+ message = await archie.messages.create("Summarise BAS Q1 2026")
59
+ print(message.content)
60
+
61
+ asyncio.run(main())
62
+ ```
@@ -0,0 +1,36 @@
1
+ # archie-connect
2
+
3
+ Python SDK for the [Archie Connect API](https://developers.heyarchie.ai/docs/api-reference).
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pip install archie-connect
9
+ ```
10
+
11
+ ## Quick start
12
+
13
+ ```python
14
+ import archie_connect
15
+
16
+ archie = archie_connect.Archie(api_key="ak_test_...")
17
+ message = archie.messages.create(
18
+ "Summarise the BAS for Q1 2026",
19
+ client_id="client_test_growthwise",
20
+ )
21
+ print(message.content)
22
+ ```
23
+
24
+ ## Async
25
+
26
+ ```python
27
+ import asyncio
28
+ import archie_connect
29
+
30
+ async def main():
31
+ async with archie_connect.AsyncArchie(api_key="ak_test_...") as archie:
32
+ message = await archie.messages.create("Summarise BAS Q1 2026")
33
+ print(message.content)
34
+
35
+ asyncio.run(main())
36
+ ```
@@ -0,0 +1,181 @@
1
+ """Archie Connect Python SDK.
2
+
3
+ Quick start::
4
+
5
+ import archie_connect
6
+
7
+ archie = archie_connect.Archie(api_key="ak_test_...")
8
+ message = archie.messages.create(
9
+ "What is the BAS for Q1 2026?",
10
+ client_id="client_test_growthwise",
11
+ )
12
+ print(message.content)
13
+
14
+ Async::
15
+
16
+ archie = archie_connect.AsyncArchie(api_key="ak_test_...")
17
+ message = await archie.messages.create("Summarise BAS Q1 2026")
18
+ """
19
+
20
+ from ._http import SkillStreamChunk
21
+ from .client import Archie, AsyncArchie
22
+ from .errors import (
23
+ ArchieAPIError,
24
+ ArchieAuthError,
25
+ ArchieError,
26
+ ArchieIdempotencyError,
27
+ ArchieNotFoundError,
28
+ ArchiePermissionError,
29
+ ArchieRateLimitError,
30
+ )
31
+ from .models import (
32
+ AccessResponse,
33
+ AccessUpdate,
34
+ AuditLogEntry,
35
+ AuditLogResponse,
36
+ Citation,
37
+ ConversationListResponse,
38
+ ConversationResponse,
39
+ ConversationUpdate,
40
+ DocumentAnalysisCreate,
41
+ DocumentAnalysisResponse,
42
+ DraftCreate,
43
+ DraftRecipient,
44
+ DraftResponse,
45
+ ErrorDetail,
46
+ ErrorEnvelope,
47
+ Finding,
48
+ JournalEntryCreate,
49
+ JournalEntryResponse,
50
+ JournalLine,
51
+ KeyCreate,
52
+ KeyListResponse,
53
+ KeyResponse,
54
+ MessageCreate,
55
+ MessageResponse,
56
+ MetricsResponse,
57
+ ReportExportCreate,
58
+ ReportExportResponse,
59
+ SearchCreate,
60
+ SearchResponse,
61
+ SearchResult,
62
+ StandardsComparisonCreate,
63
+ StandardsComparisonResponse,
64
+ Usage,
65
+ WebhookCreate,
66
+ WebhookListResponse,
67
+ WebhookResponse,
68
+ WebhookUpdate,
69
+ WorkstreamListResponse,
70
+ WorkstreamResponse,
71
+ WorkstreamRunCreate,
72
+ WorkstreamRunResponse,
73
+ )
74
+ from .resources import (
75
+ AsyncConversationsResource,
76
+ AsyncDocumentsResource,
77
+ AsyncDraftsResource,
78
+ AsyncJournalEntriesResource,
79
+ AsyncKeysResource,
80
+ AsyncMessagesResource,
81
+ AsyncReportsResource,
82
+ AsyncSearchResource,
83
+ AsyncSkillsResource,
84
+ AsyncStandardsResource,
85
+ AsyncWorkstreamsResource,
86
+ ConversationsResource,
87
+ DocumentsResource,
88
+ DraftsResource,
89
+ JournalEntriesResource,
90
+ KeysResource,
91
+ MessagesResource,
92
+ ReportsResource,
93
+ SearchResource,
94
+ SkillsResource,
95
+ StandardsResource,
96
+ WorkstreamsResource,
97
+ )
98
+
99
+
100
+ __version__ = "2.0.0"
101
+
102
+ __all__ = [
103
+ # Clients
104
+ "Archie",
105
+ "AsyncArchie",
106
+ # Streaming
107
+ "SkillStreamChunk",
108
+ # Errors
109
+ "ArchieError",
110
+ "ArchieAuthError",
111
+ "ArchiePermissionError",
112
+ "ArchieNotFoundError",
113
+ "ArchieRateLimitError",
114
+ "ArchieIdempotencyError",
115
+ "ArchieAPIError",
116
+ # Models
117
+ "Citation",
118
+ "Usage",
119
+ "ErrorDetail",
120
+ "ErrorEnvelope",
121
+ "MessageCreate",
122
+ "MessageResponse",
123
+ "SearchCreate",
124
+ "SearchResponse",
125
+ "SearchResult",
126
+ "ConversationUpdate",
127
+ "ConversationResponse",
128
+ "ConversationListResponse",
129
+ "DraftCreate",
130
+ "DraftRecipient",
131
+ "DraftResponse",
132
+ "WorkstreamResponse",
133
+ "WorkstreamListResponse",
134
+ "WorkstreamRunCreate",
135
+ "WorkstreamRunResponse",
136
+ "JournalLine",
137
+ "JournalEntryCreate",
138
+ "JournalEntryResponse",
139
+ "Finding",
140
+ "StandardsComparisonCreate",
141
+ "StandardsComparisonResponse",
142
+ "DocumentAnalysisCreate",
143
+ "DocumentAnalysisResponse",
144
+ "ReportExportCreate",
145
+ "ReportExportResponse",
146
+ "MetricsResponse",
147
+ "AuditLogEntry",
148
+ "AuditLogResponse",
149
+ "AccessUpdate",
150
+ "AccessResponse",
151
+ "WebhookCreate",
152
+ "WebhookUpdate",
153
+ "WebhookResponse",
154
+ "WebhookListResponse",
155
+ "KeyCreate",
156
+ "KeyResponse",
157
+ "KeyListResponse",
158
+ # Resources
159
+ "MessagesResource",
160
+ "AsyncMessagesResource",
161
+ "SearchResource",
162
+ "AsyncSearchResource",
163
+ "ConversationsResource",
164
+ "AsyncConversationsResource",
165
+ "DraftsResource",
166
+ "AsyncDraftsResource",
167
+ "WorkstreamsResource",
168
+ "AsyncWorkstreamsResource",
169
+ "JournalEntriesResource",
170
+ "AsyncJournalEntriesResource",
171
+ "StandardsResource",
172
+ "AsyncStandardsResource",
173
+ "DocumentsResource",
174
+ "AsyncDocumentsResource",
175
+ "ReportsResource",
176
+ "AsyncReportsResource",
177
+ "KeysResource",
178
+ "AsyncKeysResource",
179
+ "SkillsResource",
180
+ "AsyncSkillsResource",
181
+ ]