anygarden-agent 0.7.1__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 (66) hide show
  1. anygarden_agent-0.7.1/.github/workflows/test.yml +28 -0
  2. anygarden_agent-0.7.1/.gitignore +11 -0
  3. anygarden_agent-0.7.1/CHANGELOG.md +370 -0
  4. anygarden_agent-0.7.1/LICENSE +201 -0
  5. anygarden_agent-0.7.1/PKG-INFO +115 -0
  6. anygarden_agent-0.7.1/README.md +82 -0
  7. anygarden_agent-0.7.1/docs/architecture.md +59 -0
  8. anygarden_agent-0.7.1/docs/engines.md +85 -0
  9. anygarden_agent-0.7.1/doorae_agent/__init__.py +3 -0
  10. anygarden_agent-0.7.1/doorae_agent/auth/__init__.py +1 -0
  11. anygarden_agent-0.7.1/doorae_agent/auth/token.py +61 -0
  12. anygarden_agent-0.7.1/doorae_agent/cli.py +249 -0
  13. anygarden_agent-0.7.1/doorae_agent/client.py +806 -0
  14. anygarden_agent-0.7.1/doorae_agent/coordination/__init__.py +0 -0
  15. anygarden_agent-0.7.1/doorae_agent/coordination/pending_context.py +145 -0
  16. anygarden_agent-0.7.1/doorae_agent/integrations/__init__.py +64 -0
  17. anygarden_agent-0.7.1/doorae_agent/integrations/base.py +690 -0
  18. anygarden_agent-0.7.1/doorae_agent/integrations/claude_code.py +623 -0
  19. anygarden_agent-0.7.1/doorae_agent/integrations/codex.py +566 -0
  20. anygarden_agent-0.7.1/doorae_agent/integrations/cycle_guard.py +81 -0
  21. anygarden_agent-0.7.1/doorae_agent/integrations/delegate.py +167 -0
  22. anygarden_agent-0.7.1/doorae_agent/integrations/gemini_cli.py +533 -0
  23. anygarden_agent-0.7.1/doorae_agent/integrations/openhands_engine.py +1059 -0
  24. anygarden_agent-0.7.1/doorae_agent/integrations/room_query.py +395 -0
  25. anygarden_agent-0.7.1/doorae_agent/memory/__init__.py +20 -0
  26. anygarden_agent-0.7.1/doorae_agent/memory/compose.py +149 -0
  27. anygarden_agent-0.7.1/doorae_agent/profile/__init__.py +1 -0
  28. anygarden_agent-0.7.1/doorae_agent/profile/loader.py +50 -0
  29. anygarden_agent-0.7.1/doorae_agent/profile/schema.py +22 -0
  30. anygarden_agent-0.7.1/doorae_agent/protocol/__init__.py +1 -0
  31. anygarden_agent-0.7.1/doorae_agent/protocol/frames.py +136 -0
  32. anygarden_agent-0.7.1/doorae_agent/protocol/versioning.py +19 -0
  33. anygarden_agent-0.7.1/doorae_agent/runtime/__init__.py +0 -0
  34. anygarden_agent-0.7.1/doorae_agent/runtime/handler_wrapper.py +158 -0
  35. anygarden_agent-0.7.1/doorae_agent/secrets.py +157 -0
  36. anygarden_agent-0.7.1/examples/profiles/analyst.yaml +16 -0
  37. anygarden_agent-0.7.1/examples/profiles/coder.yaml +16 -0
  38. anygarden_agent-0.7.1/examples/profiles/host.yaml +15 -0
  39. anygarden_agent-0.7.1/examples/profiles/pm.yaml +16 -0
  40. anygarden_agent-0.7.1/examples/profiles/tech-lead.yaml +16 -0
  41. anygarden_agent-0.7.1/pyproject.toml +68 -0
  42. anygarden_agent-0.7.1/tests/__init__.py +0 -0
  43. anygarden_agent-0.7.1/tests/conftest.py +5 -0
  44. anygarden_agent-0.7.1/tests/test_cli.py +69 -0
  45. anygarden_agent-0.7.1/tests/test_client.py +797 -0
  46. anygarden_agent-0.7.1/tests/test_codex_permission_mapping.py +51 -0
  47. anygarden_agent-0.7.1/tests/test_coordination/__init__.py +0 -0
  48. anygarden_agent-0.7.1/tests/test_coordination/test_pending_context.py +66 -0
  49. anygarden_agent-0.7.1/tests/test_cycle_guard.py +149 -0
  50. anygarden_agent-0.7.1/tests/test_gemini_permission_mapping.py +44 -0
  51. anygarden_agent-0.7.1/tests/test_handler_supervisor.py +189 -0
  52. anygarden_agent-0.7.1/tests/test_integrations/__init__.py +0 -0
  53. anygarden_agent-0.7.1/tests/test_integrations/test_base_adapter.py +445 -0
  54. anygarden_agent-0.7.1/tests/test_integrations/test_claude_code.py +1171 -0
  55. anygarden_agent-0.7.1/tests/test_integrations/test_codex.py +695 -0
  56. anygarden_agent-0.7.1/tests/test_integrations/test_delegate.py +41 -0
  57. anygarden_agent-0.7.1/tests/test_integrations/test_gemini_cli.py +319 -0
  58. anygarden_agent-0.7.1/tests/test_integrations/test_openhands_engine.py +1475 -0
  59. anygarden_agent-0.7.1/tests/test_integrations/test_room_query.py +579 -0
  60. anygarden_agent-0.7.1/tests/test_integrations/test_should_respond.py +995 -0
  61. anygarden_agent-0.7.1/tests/test_llm_gateway_env_injection.py +98 -0
  62. anygarden_agent-0.7.1/tests/test_memory_compose.py +57 -0
  63. anygarden_agent-0.7.1/tests/test_memory_shared.py +78 -0
  64. anygarden_agent-0.7.1/tests/test_protocol_compat.py +117 -0
  65. anygarden_agent-0.7.1/tests/test_secrets.py +207 -0
  66. anygarden_agent-0.7.1/tests/test_speaker_strategy_welcome.py +212 -0
@@ -0,0 +1,28 @@
1
+ name: Test
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ test:
7
+ strategy:
8
+ matrix:
9
+ python-version: ["3.11", "3.12"]
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - uses: actions/setup-python@v5
14
+ with:
15
+ python-version: ${{ matrix.python-version }}
16
+ - run: pip install -e ".[dev]"
17
+ - run: ruff check doorae_agent tests
18
+ - run: pytest -v
19
+
20
+ protocol-compat:
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ - uses: actions/setup-python@v5
25
+ with:
26
+ python-version: "3.12"
27
+ - run: pip install -e ".[dev]"
28
+ - run: pytest tests/test_protocol_compat.py -v
@@ -0,0 +1,11 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.egg-info/
4
+ dist/
5
+ build/
6
+ .venv/
7
+ .ruff_cache/
8
+ .pytest_cache/
9
+ .mypy_cache/
10
+ *.db
11
+ .env
@@ -0,0 +1,370 @@
1
+ # CHANGELOG
2
+
3
+
4
+ ## Unreleased
5
+
6
+ ## v0.7.1 (2026-05-21)
7
+
8
+ ### Release infrastructure
9
+
10
+ - **Renamed PyPI distribution** from `dragent` to `anygarden-agent` —
11
+ service rebrand to anygarden. The `dragent` name was rejected by
12
+ PyPI's similarity check (`"dragent" is too similar to existing
13
+ project "dr-agent"`), so v0.7.0 never published on PyPI; v0.7.1 is
14
+ the first PyPI release under the anygarden line. Python import
15
+ path (`doorae_agent`), CLI commands (`doorae-agent`,
16
+ `doorae-client`), and source directory unchanged.
17
+
18
+ ## v0.7.0 (2026-05-20)
19
+
20
+ ### Release infrastructure
21
+
22
+ - **Renamed PyPI distribution** from `doorae-agent` to `dragent`
23
+ ([#387](https://github.com/e7217/doorae/pull/387)). Python import
24
+ path (`doorae_agent`), CLI commands (`doorae-agent`,
25
+ `doorae-client`), and source directory unchanged.
26
+
27
+ ### Features
28
+
29
+ - OpenHands V1 SDK adapter — in-process Python runtime alternative
30
+ to CLI engines, ships with `openhands-sdk` + `openhands-tools`
31
+ (TerminalTool / FileEditorTool / TaskTrackerTool / DelegateTool)
32
+ ([#355](https://github.com/e7217/doorae/pull/355),
33
+ [#356](https://github.com/e7217/doorae/pull/356)).
34
+ - Register runtime tools with the OpenHands adapter so user queries
35
+ that need shell/file work don't terminate after a single text turn
36
+ ([#377](https://github.com/e7217/doorae/pull/377)).
37
+ - Shared file references in chat (agent side)
38
+ ([#376](https://github.com/e7217/doorae/pull/376)).
39
+
40
+ ### Fixes
41
+
42
+ - OpenHands: capture user-facing reply from `FinishAction` tool path
43
+ ([#375](https://github.com/e7217/doorae/pull/375)).
44
+ - OpenHands: capture assistant text from `MessageEvent.llm_message`
45
+ ([#372](https://github.com/e7217/doorae/pull/372),
46
+ [#373](https://github.com/e7217/doorae/pull/373)).
47
+ - OpenHands: pass `api_key` explicitly so the LLM caches the right
48
+ token ([#366](https://github.com/e7217/doorae/pull/366),
49
+ [#367](https://github.com/e7217/doorae/pull/367)).
50
+
51
+ ### Changed — agent cwd assumptions (#345)
52
+
53
+ - codex, gemini-cli, and claude-code adapters now assume the Python
54
+ agent process starts in the canonical agent directory. Codex pins
55
+ its SDK thread cwd to the materialized codex-only `workspace/`
56
+ fallback when present so `workspace-write` remains narrow.
57
+
58
+ ## v0.6.0 (2026-05-06)
59
+
60
+ ### Features — per-agent permission level (#309)
61
+
62
+ - 3-tier permission model wired through the agent runtime
63
+ ([#310](https://github.com/e7217/doorae/pull/310)).
64
+
65
+ ### Fixes
66
+
67
+ - Expose cluster MCP tools to all engines + status enum / UI parity
68
+ ([#321](https://github.com/e7217/doorae/pull/321)).
69
+
70
+ ## v0.5.1 (2026-04-28)
71
+
72
+ ### Workspace bump
73
+
74
+ - Workspace-consistent version bump alongside `doorae-machine` 0.5.1
75
+ (Windows `secure_chmod` `DELETE` rights fix). No functional changes
76
+ in agent.
77
+
78
+ ## v0.5.0 (2026-04-28)
79
+
80
+ ### Features — Windows native support (#300)
81
+
82
+ - gemini_cli engine adapter switches from POSIX-only `killpg` /
83
+ `SIGKILL` to `proc_kill.terminate_tree` (psutil) for cross-platform
84
+ process tree termination
85
+ ([#301](https://github.com/e7217/doorae/pull/301)).
86
+ - Add `psutil` dependency.
87
+
88
+ ## v0.4.1 (2026-04-28)
89
+
90
+ ### Features — collaboration mode wiring (#279)
91
+
92
+ - Lift `_build_roster_suffix` from the claude_code adapter to
93
+ `ChatClient.compose_roster_suffix(...)` so codex and gemini_cli
94
+ share the same logic. Adds an optional
95
+ `with_collaborative_hint` flag that appends a peer-mention usage
96
+ paragraph instructing the agent to delegate via `<@user:UUID>`
97
+ syntax and synthesize the replies.
98
+ - Cache `my_collaboration_mode` per room from welcome frames; the
99
+ three engine adapters consult it when assembling the LLM system
100
+ prompt. Solo agents see the prompt unchanged; collaborative
101
+ agents receive the roster + hint even when they are not the
102
+ room's orchestrator.
103
+ - Wrap drained pending context (ambient room messages) in a
104
+ `<room_conversation>` XML block before injecting into the LLM
105
+ prompt (#284). The Korean preamble explicitly tells the model the
106
+ block is awareness context — already visible to the user — and
107
+ not to relay or summarize it. Empty buffers short-circuit so
108
+ pre-#284 solo turns stay byte-identical. Applied uniformly to
109
+ claude_code, codex, and gemini_cli adapters.
110
+
111
+ ### Refactor — centralize user-content augmentation (#286)
112
+
113
+ - Promote the drain → wrap → concat pipeline from the three session
114
+ adapters (claude_code, codex, gemini_cli) up to
115
+ `EngineAdapter.assemble_user_content(room_id, raw)`. The previous
116
+ wave of changes (#279 / #283 / #284) had to touch all three
117
+ adapters identically; future augmentations now land in one place.
118
+ Conversion result is byte-identical — no behavioural change.
119
+
120
+ ### Refactor — centralize memory/roster injection (#293)
121
+
122
+ - Lift memory/roster injection from per-engine adapters to the
123
+ `EngineAdapter` base
124
+ ([#295](https://github.com/e7217/doorae/pull/295)).
125
+
126
+ ### Fix — separate mention-as-routing from mention-as-reference (#288)
127
+
128
+ - Stop emitting raw `<@user:UUID>` routing tokens in the roster
129
+ suffix. Live tokens encouraged the LLM to copy them into prose
130
+ when merely recommending or comparing peers, which the server
131
+ parsed as actionable mentions and woke unintended agents. The
132
+ roster now lists peers as `display_name (id: UUID, kind: ...)`
133
+ with a header that explicitly says to use display names in
134
+ prose and construct `<@user:PARTICIPANT_ID>` only when
135
+ intentionally calling a peer. The collaborative usage hint
136
+ reinforces the same rule with a "never put a routing token in
137
+ prose that merely mentions or lists peers" line. orchestrator
138
+ `handoff_to` MCP calls and user-side mention parsing are
139
+ unaffected.
140
+
141
+ ### Fix — collaborative synthesis opt-in (#283)
142
+
143
+ - Make collaborative synthesis opt-in rather than mandatory.
144
+
145
+ ### Engines
146
+
147
+ - Add GPT-5.5 to codex/openai catalog and bump default
148
+ ([#267](https://github.com/e7217/doorae/pull/267)).
149
+
150
+ ### Chores
151
+
152
+ - Remove dead engine adapters (openai, anthropic, openhands,
153
+ deep-agents) ([#294](https://github.com/e7217/doorae/pull/294)).
154
+
155
+ ## v0.4.0 (2026-04-25)
156
+
157
+ ### Features — orchestrator & speaker strategies (#159)
158
+
159
+ - Speaker-strategy schema + welcome propagation
160
+ ([#164](https://github.com/e7217/doorae/pull/164))
161
+ — Phase A introduces the strategy contract that
162
+ downstream phases plug into.
163
+ - Strategy dispatcher + `round_robin`
164
+ ([#168](https://github.com/e7217/doorae/pull/168))
165
+ — Phase B routes a turn through pluggable speaker
166
+ selectors.
167
+ - Orchestrator agent + `handoff` tool + per-agent token
168
+ UI ([#178](https://github.com/e7217/doorae/pull/178))
169
+ — Phase C+D adds an orchestrator role that selects the
170
+ next speaker via a deterministic tool-call rather than
171
+ free-form prose; surfaces participant roster on
172
+ `handoff_to` and broadcasts room settings
173
+ ([#224](https://github.com/e7217/doorae/pull/224)).
174
+
175
+ ### Features — multi-session DM & shared file memory
176
+
177
+ - Per-agent multi-session DM + cross-engine file memory +
178
+ ephemeral mode
179
+ ([#240](https://github.com/e7217/doorae/pull/240))
180
+ — same agent can hold multiple parallel DM threads with
181
+ isolated history; ephemeral mode skips persistence.
182
+ - Room shared files copy-distributed to agent memory
183
+ ([#250](https://github.com/e7217/doorae/pull/250))
184
+ — files attached to a room are copied into each agent's
185
+ workspace under `memory/shared/` on spawn and re-synced
186
+ on attach/detach.
187
+ - Bridge `memory/shared/` into agent workspace
188
+ ([#260](https://github.com/e7217/doorae/pull/260))
189
+ — workspace now exposes `memory/shared/` as a stable
190
+ cross-engine path.
191
+
192
+ ### Features — ambient context window (#74, #148)
193
+
194
+ - Decouple context ingestion from response gate (#74)
195
+ ([#139](https://github.com/e7217/doorae/pull/139))
196
+ - Ambient context window for session engines (#74 Stage B)
197
+ ([#141](https://github.com/e7217/doorae/pull/141))
198
+ - Per-room `context_window_enabled` toggle (#148 Part 1)
199
+ & per-agent `context_window_opt_out` (Part 2) +
200
+ `ingest_only` broadcast wiring (Part 3) +
201
+ Stage B accumulator removed (Part 4)
202
+ ([#149](https://github.com/e7217/doorae/pull/149),
203
+ [#150](https://github.com/e7217/doorae/pull/150),
204
+ [#151](https://github.com/e7217/doorae/pull/151),
205
+ [#152](https://github.com/e7217/doorae/pull/152)).
206
+
207
+ ### Features — task-init guards & cycle detection (#157)
208
+
209
+ - Guard task-init reset-prefix abuse (Phase A)
210
+ ([#160](https://github.com/e7217/doorae/pull/160))
211
+ - Detect semantic cycles in `decide_policy` (Phase B)
212
+ ([#161](https://github.com/e7217/doorae/pull/161))
213
+
214
+ ### Features — LLM gateway wiring (#197 Phase 5)
215
+
216
+ - Agent reads/writes through the embedded LiteLLM gateway
217
+ ([#209](https://github.com/e7217/doorae/pull/209))
218
+ — closes the gateway loop opened in Phases 1–4.
219
+
220
+ ### Features — observability
221
+
222
+ - Explicit request lifecycle + orphan sweeper for
223
+ observability (#204)
224
+ ([#210](https://github.com/e7217/doorae/pull/210))
225
+
226
+ ### Features — MCP
227
+
228
+ - Auto-approve MCP tool calls for all engines (#134)
229
+ ([#137](https://github.com/e7217/doorae/pull/137))
230
+
231
+ ### Fixes
232
+
233
+ - `agent/gemini`: pass `--skip-trust` to bypass the
234
+ trusted-folders gate (#261)
235
+ ([#262](https://github.com/e7217/doorae/pull/262))
236
+ - Sync room shared files on agent respawn & mid-session
237
+ (#255) ([#256](https://github.com/e7217/doorae/pull/256))
238
+ - Bypass `ingest_only` stamp for human senders; move
239
+ orchestrator O1 ahead of stamp (#233)
240
+ ([#235](https://github.com/e7217/doorae/pull/235))
241
+ - Deliver codex responses that span long tool turns (#190)
242
+ ([#194](https://github.com/e7217/doorae/pull/194))
243
+ - Keep `engine_secrets` out of agent
244
+ `/proc/self/environ` (#184 follow-up)
245
+ ([#193](https://github.com/e7217/doorae/pull/193))
246
+ - Include source/responder `display_name` in
247
+ `room_query` / `room_query_result` metadata (#155, #153)
248
+ ([#154](https://github.com/e7217/doorae/pull/154),
249
+ [#156](https://github.com/e7217/doorae/pull/156))
250
+
251
+ ### Refactors
252
+
253
+ - Remove `codex-extra` virtual engine
254
+ ([#258](https://github.com/e7217/doorae/pull/258))
255
+ - Inject `engine_secrets` via subprocess env, not disk
256
+ `.env` (#184)
257
+ ([#189](https://github.com/e7217/doorae/pull/189))
258
+
259
+
260
+ ## v0.3.2 (2026-04-17)
261
+
262
+ No code changes this cycle — version bumped to keep the three
263
+ monorepo packages aligned.
264
+
265
+
266
+ ## v0.3.1 (2026-04-16)
267
+
268
+ ### Fixes — agent turn counter
269
+
270
+ - Reset `_agent_turn_count` on self-emitted `[ROOM_QUERY]` /
271
+ `[DELEGATED]` frames in agent-only rooms
272
+ ([#67](https://github.com/e7217/doorae/issues/67),
273
+ [#69](https://github.com/e7217/doorae/pull/69))
274
+ — the hard/soft filter branches in
275
+ `ChatClient._process_frame` previously incremented the turn
276
+ counter and early-returned for self-sent / nonce-echo
277
+ frames, so a representative's own forwards never reached the
278
+ main-path reset. In human-less rooms the counter accumulated
279
+ across task rounds and later agent replies were dropped at
280
+ `max_agent_turns`. The reset now fires from both branches
281
+ before the early-return.
282
+
283
+
284
+ ## v0.3.0 (2026-04-16)
285
+
286
+ ### Features — room-query forward & result metadata (#55)
287
+
288
+ - Emit structured `room_query_forward` / `room_query_result`
289
+ metadata on forwarded questions and the synthesized summary
290
+ ([#55](https://github.com/e7217/doorae/issues/55),
291
+ [#59](https://github.com/e7217/doorae/pull/59))
292
+ — `execute_room_query` now carries `source_room_id`,
293
+ `source_participant_id`, and `query_id` on the `[ROOM_QUERY]
294
+ …` forward; `_synthesize_and_deliver` attaches `responses`
295
+ (participant_id + content) + `missing` so the source-room
296
+ result card can render one collapsible block per agent.
297
+
298
+ ### Features — presence-aware room query (#54)
299
+
300
+ - Exclude offline agents from `[ROOM_QUERY]` `expected_count`
301
+ ([#54](https://github.com/e7217/doorae/issues/54),
302
+ [#60](https://github.com/e7217/doorae/pull/60))
303
+ — `execute_room_query` filters `agent_participants` by
304
+ `online=True` so a dead agent no longer forces a timeout
305
+ countdown; the missing-responder label now includes
306
+ `(offline, last seen …)` when relevant.
307
+
308
+ ### Fixes — mention / routing
309
+
310
+ - Break the `[ROOM_QUERY]` forwarding loop (SDK side)
311
+ ([#42](https://github.com/e7217/doorae/pull/42))
312
+ — representative agents strip the `<#room:…>` token before
313
+ forwarding so the target-room recipients don't re-trigger a
314
+ cross-room query on the same content.
315
+ - Prevent duplicate `room_query_forward` from multi-agent rooms
316
+ ([#61](https://github.com/e7217/doorae/pull/61))
317
+ — only the target room's representative emits the forward;
318
+ other agents that happened to see the question no longer
319
+ double-post.
320
+
321
+
322
+ ## v0.2.0 (2026-04-15)
323
+
324
+ ### Fixes — mention routing
325
+
326
+ - Respect explicit @mention when routing human messages
327
+ ([#36](https://github.com/e7217/doorae/pull/36))
328
+ — multi-agent rooms no longer fan out every reply; the
329
+ unified ``should_respond`` gate consults the server-parsed
330
+ ``metadata.mentions`` list and stays silent when another
331
+ participant was addressed.
332
+ - Route id-based @mention tokens to the intended target
333
+ ([#37](https://github.com/e7217/doorae/pull/37))
334
+ — frontend autocomplete emits ``<@user:<participant_id>>``;
335
+ the agent now matches that id against
336
+ ``_my_participant_ids`` (exact set membership, no substring
337
+ traps). Case-insensitive legacy-name match retained; content
338
+ scan fallback tightened with a ``(?![\w:])`` lookahead so
339
+ an agent literally named ``user`` is no longer false-matched
340
+ by the id-token substring.
341
+
342
+ ## v0.1.0 (2026-04-14)
343
+
344
+ ### Chores
345
+
346
+ - Switch license to Apache-2.0 and update author
347
+ ([`613986b`](https://github.com/e7217/doorae-agent/commit/613986b4cf30644928817a1b40f3578938e07888))
348
+
349
+ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
350
+
351
+ ### Continuous Integration
352
+
353
+ - Add python-semantic-release for automatic versioning
354
+ ([`f51f2dd`](https://github.com/e7217/doorae-agent/commit/f51f2dd96f7c3b1c286a7449d8cf82a3efdfbaae))
355
+
356
+ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
357
+
358
+ ### Features
359
+
360
+ - Initial release — doorae-agent v0.1.0
361
+ ([`3e6e66a`](https://github.com/e7217/doorae-agent/commit/3e6e66a9e5d34231fdf9a6d2e3d8e79c2649795a))
362
+
363
+ Extracted from e7217/doorae monorepo (formerly doorae-sdk). Renamed package doorae_sdk →
364
+ doorae_agent for clarity.
365
+
366
+ Includes: - ChatClient (WebSocket + REST) - 6 engine adapters (OpenAI, Anthropic, Claude Code,
367
+ Codex, Gemini CLI, Deep Agents) - CLI entry points (doorae-agent, doorae-client) - Agent profile
368
+ system - Protocol frames & versioning
369
+
370
+ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@@ -0,0 +1,201 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to the Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by the Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding any notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. Please also get an in-depth
186
+ understanding of "Why should I apply the Apache License" FAQ at
187
+ <http://www.apache.org/foundation/license-faq.html>
188
+
189
+ Copyright 2024 Changyong Um
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.