copaw 0.0.1a1__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 (148) hide show
  1. copaw-0.0.1a1/LICENSE +190 -0
  2. copaw-0.0.1a1/PKG-INFO +155 -0
  3. copaw-0.0.1a1/README.md +126 -0
  4. copaw-0.0.1a1/pyproject.toml +52 -0
  5. copaw-0.0.1a1/setup.cfg +4 -0
  6. copaw-0.0.1a1/setup.py +4 -0
  7. copaw-0.0.1a1/src/copaw/__init__.py +4 -0
  8. copaw-0.0.1a1/src/copaw/__version__.py +2 -0
  9. copaw-0.0.1a1/src/copaw/agents/__init__.py +6 -0
  10. copaw-0.0.1a1/src/copaw/agents/memory/__init__.py +10 -0
  11. copaw-0.0.1a1/src/copaw/agents/memory/agent_md_manager.py +128 -0
  12. copaw-0.0.1a1/src/copaw/agents/memory/memory_manager.py +409 -0
  13. copaw-0.0.1a1/src/copaw/agents/prompt.py +183 -0
  14. copaw-0.0.1a1/src/copaw/agents/react_agent.py +427 -0
  15. copaw-0.0.1a1/src/copaw/agents/schema.py +21 -0
  16. copaw-0.0.1a1/src/copaw/agents/skills/__init__.py +2 -0
  17. copaw-0.0.1a1/src/copaw/agents/skills/docx/scripts/__init__.py +1 -0
  18. copaw-0.0.1a1/src/copaw/agents/skills/docx/scripts/accept_changes.py +135 -0
  19. copaw-0.0.1a1/src/copaw/agents/skills/docx/scripts/comment.py +318 -0
  20. copaw-0.0.1a1/src/copaw/agents/skills/docx/scripts/office/helpers/__init__.py +0 -0
  21. copaw-0.0.1a1/src/copaw/agents/skills/docx/scripts/office/helpers/merge_runs.py +199 -0
  22. copaw-0.0.1a1/src/copaw/agents/skills/docx/scripts/office/helpers/simplify_redlines.py +197 -0
  23. copaw-0.0.1a1/src/copaw/agents/skills/docx/scripts/office/pack.py +159 -0
  24. copaw-0.0.1a1/src/copaw/agents/skills/docx/scripts/office/soffice.py +183 -0
  25. copaw-0.0.1a1/src/copaw/agents/skills/docx/scripts/office/unpack.py +132 -0
  26. copaw-0.0.1a1/src/copaw/agents/skills/docx/scripts/office/validate.py +111 -0
  27. copaw-0.0.1a1/src/copaw/agents/skills/docx/scripts/office/validators/__init__.py +15 -0
  28. copaw-0.0.1a1/src/copaw/agents/skills/docx/scripts/office/validators/base.py +847 -0
  29. copaw-0.0.1a1/src/copaw/agents/skills/docx/scripts/office/validators/docx.py +446 -0
  30. copaw-0.0.1a1/src/copaw/agents/skills/docx/scripts/office/validators/pptx.py +275 -0
  31. copaw-0.0.1a1/src/copaw/agents/skills/docx/scripts/office/validators/redlining.py +247 -0
  32. copaw-0.0.1a1/src/copaw/agents/skills/pdf/scripts/check_bounding_boxes.py +65 -0
  33. copaw-0.0.1a1/src/copaw/agents/skills/pdf/scripts/check_fillable_fields.py +11 -0
  34. copaw-0.0.1a1/src/copaw/agents/skills/pdf/scripts/convert_pdf_to_images.py +33 -0
  35. copaw-0.0.1a1/src/copaw/agents/skills/pdf/scripts/create_validation_image.py +37 -0
  36. copaw-0.0.1a1/src/copaw/agents/skills/pdf/scripts/extract_form_field_info.py +122 -0
  37. copaw-0.0.1a1/src/copaw/agents/skills/pdf/scripts/extract_form_structure.py +115 -0
  38. copaw-0.0.1a1/src/copaw/agents/skills/pdf/scripts/fill_fillable_fields.py +98 -0
  39. copaw-0.0.1a1/src/copaw/agents/skills/pdf/scripts/fill_pdf_form_with_annotations.py +107 -0
  40. copaw-0.0.1a1/src/copaw/agents/skills/pptx/scripts/__init__.py +0 -0
  41. copaw-0.0.1a1/src/copaw/agents/skills/pptx/scripts/add_slide.py +195 -0
  42. copaw-0.0.1a1/src/copaw/agents/skills/pptx/scripts/clean.py +286 -0
  43. copaw-0.0.1a1/src/copaw/agents/skills/pptx/scripts/office/helpers/__init__.py +0 -0
  44. copaw-0.0.1a1/src/copaw/agents/skills/pptx/scripts/office/helpers/merge_runs.py +199 -0
  45. copaw-0.0.1a1/src/copaw/agents/skills/pptx/scripts/office/helpers/simplify_redlines.py +197 -0
  46. copaw-0.0.1a1/src/copaw/agents/skills/pptx/scripts/office/pack.py +159 -0
  47. copaw-0.0.1a1/src/copaw/agents/skills/pptx/scripts/office/soffice.py +183 -0
  48. copaw-0.0.1a1/src/copaw/agents/skills/pptx/scripts/office/unpack.py +132 -0
  49. copaw-0.0.1a1/src/copaw/agents/skills/pptx/scripts/office/validate.py +111 -0
  50. copaw-0.0.1a1/src/copaw/agents/skills/pptx/scripts/office/validators/__init__.py +15 -0
  51. copaw-0.0.1a1/src/copaw/agents/skills/pptx/scripts/office/validators/base.py +847 -0
  52. copaw-0.0.1a1/src/copaw/agents/skills/pptx/scripts/office/validators/docx.py +446 -0
  53. copaw-0.0.1a1/src/copaw/agents/skills/pptx/scripts/office/validators/pptx.py +275 -0
  54. copaw-0.0.1a1/src/copaw/agents/skills/pptx/scripts/office/validators/redlining.py +247 -0
  55. copaw-0.0.1a1/src/copaw/agents/skills/pptx/scripts/thumbnail.py +289 -0
  56. copaw-0.0.1a1/src/copaw/agents/skills/xlsx/scripts/office/helpers/__init__.py +0 -0
  57. copaw-0.0.1a1/src/copaw/agents/skills/xlsx/scripts/office/helpers/merge_runs.py +199 -0
  58. copaw-0.0.1a1/src/copaw/agents/skills/xlsx/scripts/office/helpers/simplify_redlines.py +197 -0
  59. copaw-0.0.1a1/src/copaw/agents/skills/xlsx/scripts/office/pack.py +159 -0
  60. copaw-0.0.1a1/src/copaw/agents/skills/xlsx/scripts/office/soffice.py +183 -0
  61. copaw-0.0.1a1/src/copaw/agents/skills/xlsx/scripts/office/unpack.py +132 -0
  62. copaw-0.0.1a1/src/copaw/agents/skills/xlsx/scripts/office/validate.py +111 -0
  63. copaw-0.0.1a1/src/copaw/agents/skills/xlsx/scripts/office/validators/__init__.py +15 -0
  64. copaw-0.0.1a1/src/copaw/agents/skills/xlsx/scripts/office/validators/base.py +847 -0
  65. copaw-0.0.1a1/src/copaw/agents/skills/xlsx/scripts/office/validators/docx.py +446 -0
  66. copaw-0.0.1a1/src/copaw/agents/skills/xlsx/scripts/office/validators/pptx.py +275 -0
  67. copaw-0.0.1a1/src/copaw/agents/skills/xlsx/scripts/office/validators/redlining.py +247 -0
  68. copaw-0.0.1a1/src/copaw/agents/skills/xlsx/scripts/recalc.py +184 -0
  69. copaw-0.0.1a1/src/copaw/agents/skills_manager.py +723 -0
  70. copaw-0.0.1a1/src/copaw/agents/tools/__init__.py +33 -0
  71. copaw-0.0.1a1/src/copaw/agents/tools/browser_control.py +1910 -0
  72. copaw-0.0.1a1/src/copaw/agents/tools/browser_snapshot.py +248 -0
  73. copaw-0.0.1a1/src/copaw/agents/tools/desktop_screenshot.py +143 -0
  74. copaw-0.0.1a1/src/copaw/agents/tools/file_io.py +254 -0
  75. copaw-0.0.1a1/src/copaw/agents/tools/memory_search.py +69 -0
  76. copaw-0.0.1a1/src/copaw/agents/tools/send_file.py +125 -0
  77. copaw-0.0.1a1/src/copaw/agents/tools/shell.py +153 -0
  78. copaw-0.0.1a1/src/copaw/agents/utils.py +551 -0
  79. copaw-0.0.1a1/src/copaw/app/__init__.py +0 -0
  80. copaw-0.0.1a1/src/copaw/app/_app.py +179 -0
  81. copaw-0.0.1a1/src/copaw/app/channels/__init__.py +4 -0
  82. copaw-0.0.1a1/src/copaw/app/channels/base.py +618 -0
  83. copaw-0.0.1a1/src/copaw/app/channels/console.py +258 -0
  84. copaw-0.0.1a1/src/copaw/app/channels/dingtalk.py +1776 -0
  85. copaw-0.0.1a1/src/copaw/app/channels/discord_.py +351 -0
  86. copaw-0.0.1a1/src/copaw/app/channels/feishu.py +1624 -0
  87. copaw-0.0.1a1/src/copaw/app/channels/imessage.py +290 -0
  88. copaw-0.0.1a1/src/copaw/app/channels/manager.py +250 -0
  89. copaw-0.0.1a1/src/copaw/app/channels/qq.py +925 -0
  90. copaw-0.0.1a1/src/copaw/app/channels/schema.py +102 -0
  91. copaw-0.0.1a1/src/copaw/app/channels/utils.py +23 -0
  92. copaw-0.0.1a1/src/copaw/app/crons/__init__.py +0 -0
  93. copaw-0.0.1a1/src/copaw/app/crons/api.py +111 -0
  94. copaw-0.0.1a1/src/copaw/app/crons/executor.py +77 -0
  95. copaw-0.0.1a1/src/copaw/app/crons/heartbeat.py +142 -0
  96. copaw-0.0.1a1/src/copaw/app/crons/manager.py +237 -0
  97. copaw-0.0.1a1/src/copaw/app/crons/models.py +128 -0
  98. copaw-0.0.1a1/src/copaw/app/crons/repo/__init__.py +5 -0
  99. copaw-0.0.1a1/src/copaw/app/crons/repo/base.py +53 -0
  100. copaw-0.0.1a1/src/copaw/app/crons/repo/json_repo.py +43 -0
  101. copaw-0.0.1a1/src/copaw/app/routers/__init__.py +25 -0
  102. copaw-0.0.1a1/src/copaw/app/routers/agent.py +135 -0
  103. copaw-0.0.1a1/src/copaw/app/routers/config.py +112 -0
  104. copaw-0.0.1a1/src/copaw/app/routers/envs.py +80 -0
  105. copaw-0.0.1a1/src/copaw/app/routers/providers.py +201 -0
  106. copaw-0.0.1a1/src/copaw/app/routers/skills.py +148 -0
  107. copaw-0.0.1a1/src/copaw/app/routers/workspace.py +188 -0
  108. copaw-0.0.1a1/src/copaw/app/runner/__init__.py +30 -0
  109. copaw-0.0.1a1/src/copaw/app/runner/api.py +236 -0
  110. copaw-0.0.1a1/src/copaw/app/runner/manager.py +182 -0
  111. copaw-0.0.1a1/src/copaw/app/runner/models.py +59 -0
  112. copaw-0.0.1a1/src/copaw/app/runner/repo/__init__.py +6 -0
  113. copaw-0.0.1a1/src/copaw/app/runner/repo/base.py +131 -0
  114. copaw-0.0.1a1/src/copaw/app/runner/repo/json_repo.py +69 -0
  115. copaw-0.0.1a1/src/copaw/app/runner/runner.py +192 -0
  116. copaw-0.0.1a1/src/copaw/app/runner/utils.py +346 -0
  117. copaw-0.0.1a1/src/copaw/cli/__init__.py +0 -0
  118. copaw-0.0.1a1/src/copaw/cli/app_cmd.py +66 -0
  119. copaw-0.0.1a1/src/copaw/cli/channels_cmd.py +376 -0
  120. copaw-0.0.1a1/src/copaw/cli/chats_cmd.py +260 -0
  121. copaw-0.0.1a1/src/copaw/cli/clean_cmd.py +63 -0
  122. copaw-0.0.1a1/src/copaw/cli/cron_cmd.py +405 -0
  123. copaw-0.0.1a1/src/copaw/cli/env_cmd.py +98 -0
  124. copaw-0.0.1a1/src/copaw/cli/http.py +19 -0
  125. copaw-0.0.1a1/src/copaw/cli/init_cmd.py +262 -0
  126. copaw-0.0.1a1/src/copaw/cli/main.py +53 -0
  127. copaw-0.0.1a1/src/copaw/cli/providers_cmd.py +357 -0
  128. copaw-0.0.1a1/src/copaw/cli/skills_cmd.py +139 -0
  129. copaw-0.0.1a1/src/copaw/cli/utils.py +225 -0
  130. copaw-0.0.1a1/src/copaw/config/__init__.py +24 -0
  131. copaw-0.0.1a1/src/copaw/config/config.py +135 -0
  132. copaw-0.0.1a1/src/copaw/config/utils.py +97 -0
  133. copaw-0.0.1a1/src/copaw/config/watcher.py +158 -0
  134. copaw-0.0.1a1/src/copaw/constant.py +46 -0
  135. copaw-0.0.1a1/src/copaw/envs/__init__.py +17 -0
  136. copaw-0.0.1a1/src/copaw/envs/store.py +121 -0
  137. copaw-0.0.1a1/src/copaw/providers/__init__.py +49 -0
  138. copaw-0.0.1a1/src/copaw/providers/models.py +98 -0
  139. copaw-0.0.1a1/src/copaw/providers/registry.py +89 -0
  140. copaw-0.0.1a1/src/copaw/providers/store.py +270 -0
  141. copaw-0.0.1a1/src/copaw/utils/__init__.py +0 -0
  142. copaw-0.0.1a1/src/copaw/utils/logging.py +56 -0
  143. copaw-0.0.1a1/src/copaw.egg-info/PKG-INFO +155 -0
  144. copaw-0.0.1a1/src/copaw.egg-info/SOURCES.txt +146 -0
  145. copaw-0.0.1a1/src/copaw.egg-info/dependency_links.txt +1 -0
  146. copaw-0.0.1a1/src/copaw.egg-info/entry_points.txt +2 -0
  147. copaw-0.0.1a1/src/copaw.egg-info/requires.txt +21 -0
  148. copaw-0.0.1a1/src/copaw.egg-info/top_level.txt +1 -0
copaw-0.0.1a1/LICENSE ADDED
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2025 The CoPAW Authors
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
copaw-0.0.1a1/PKG-INFO ADDED
@@ -0,0 +1,155 @@
1
+ Metadata-Version: 2.4
2
+ Name: copaw
3
+ Version: 0.0.1a1
4
+ Summary: CoPAW is a **personal assistant** that runs in your own environment. It talks to you over multiple channels (DingTalk, Feishu, QQ, Discord, iMessage, etc.) and runs scheduled tasks according to your configuration. **What it can do is driven by Skills — the possibilities are open-ended.** Built-in skills include cron, PDF/Office handling, news digest, file reading, and more; you can add custom skills. All data and tasks run on your machine; no third-party hosting.
5
+ Requires-Python: >=3.10
6
+ Description-Content-Type: text/markdown
7
+ License-File: LICENSE
8
+ Requires-Dist: agentscope==1.0.16.dev0
9
+ Requires-Dist: agentscope-runtime==1.1.0b2
10
+ Requires-Dist: discord-py>=2.3
11
+ Requires-Dist: dingtalk-stream>=0.24.3
12
+ Requires-Dist: uvicorn>=0.40.0
13
+ Requires-Dist: apscheduler>=3.11.2
14
+ Requires-Dist: playwright>=1.49.0
15
+ Requires-Dist: questionary>=2.1.1
16
+ Requires-Dist: mss>=9.0.0
17
+ Requires-Dist: reme-ai>=0.3.0.0a2
18
+ Requires-Dist: transformers>=4.30.0
19
+ Requires-Dist: python-dotenv>=1.0.0
20
+ Requires-Dist: onnxruntime<1.24
21
+ Requires-Dist: lark-oapi>=1.5.3
22
+ Provides-Extra: dev
23
+ Requires-Dist: pytest>=8.3.5; extra == "dev"
24
+ Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
25
+ Requires-Dist: pre-commit>=4.2.0; extra == "dev"
26
+ Requires-Dist: pytest-cov>=6.2.1; extra == "dev"
27
+ Requires-Dist: fakeredis>=2.31.0; extra == "dev"
28
+ Dynamic: license-file
29
+
30
+ <div align="center">
31
+
32
+ # CoPAW
33
+
34
+ [![Documentation](https://img.shields.io/badge/docs-website-green.svg?logo=readthedocs)](http://copaw.agentscope.com/)
35
+ [![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg?logo=python)](https://www.python.org/downloads/)
36
+ [![ModelScope](https://img.shields.io/badge/ModelScope-One--click-orange.svg)](https://modelscope.cn/studios/AgentScope/CoPAW)
37
+ [![License](https://img.shields.io/badge/license-Apache%202.0-red.svg?logo=apache)](LICENSE)
38
+
39
+ [[Documentation](http://copaw.agentscope.com/)] [[Try ModelScope](https://modelscope.cn/studios/AgentScope/CoPAW)] [[中文 README](README_zh.md)]
40
+
41
+ **Works for you, grows with you.**
42
+
43
+ Your Personal AI Assistant; easy to install, deploy on your own machine or on the cloud; supports multiple chat apps with easily extensible capabilities.
44
+
45
+ > **Core capabilities:**
46
+ >
47
+ > **Every channel** — DingTalk, Feishu, QQ, Discord, iMessage, and more. One assistant, connect as you need.
48
+ >
49
+ > **Under your control** — Memory and personalization under your control. Deploy locally or in the cloud; scheduled reminders to any channel.
50
+ >
51
+ > **Skills** — Built-in cron; custom skills in your workspace, auto-loaded. No lock-in.
52
+ >
53
+ > <details>
54
+ > <summary><b>What you can do</b></summary>
55
+ >
56
+ > <br>
57
+ >
58
+ > Social: daily digest of hot posts (Xiaohongshu, Zhihu, Reddit), Bilibili/YouTube summaries.
59
+ > Productivity: newsletter digests to DingTalk/Feishu/QQ, contacts from email/calendar.
60
+ > Creative: describe your goal, run overnight, get a draft next day.
61
+ > Research: track tech/AI news, personal knowledge base.
62
+ > Desktop: organize files, read/summarize docs, request files in chat.
63
+ > Explore: combine Skills and cron into your own agentic app.
64
+ >
65
+ > </details>
66
+
67
+ </div>
68
+
69
+ ---
70
+
71
+ ## Table of Contents
72
+
73
+ > **Recommended reading:**
74
+ >
75
+ > - **I want to run CoPAW in 3 commands**: [Quick Start](#-quick-start) → open Console in browser.
76
+ > - **I want to chat in DingTalk / Feishu / QQ**: [Quick Start](#-quick-start) → [Channels](http://copaw.agentscope.com/docs/channels).
77
+ > - **I don’t want to install Python**: [ModelScope one-click](https://modelscope.cn/studios/AgentScope/CoPAW).
78
+
79
+ - [Quick Start](#-quick-start)
80
+ - [Documentation](#-documentation)
81
+ - [Install from source](#-install-from-source)
82
+ - [Why CoPAW?](#-why-copaw)
83
+ - [Built by](#-built-by)
84
+ - [License](#-license)
85
+
86
+ ---
87
+
88
+ ## Quick Start
89
+
90
+ ### Prerequisites
91
+
92
+ - Python 3.10 or higher
93
+ - pip
94
+
95
+ ### Installation
96
+
97
+ ```bash
98
+ pip install copaw
99
+ copaw init --defaults # or: copaw init (interactive)
100
+ copaw app
101
+ ```
102
+
103
+ Then open **http://127.0.0.1:8088/** in your browser for the Console (chat with CoPAW, configure the agent). To talk in DingTalk, Feishu, QQ, etc., add a channel in the [docs](http://copaw.agentscope.com/docs/channels).
104
+
105
+ ![Console](https://img.alicdn.com/imgextra/i4/O1CN01jQ8IKh1oWJL5C0v5x_!!6000000005232-2-tps-3494-1644.png)
106
+
107
+ **No Python?** [ModelScope Studio](https://modelscope.cn/studios/AgentScope/CoPAW) one-click setup (no local install). Set your Studio to **non-public** so others cannot control your CoPAW.
108
+
109
+ ---
110
+
111
+ ## Documentation
112
+
113
+ | Topic | Description |
114
+ |-------|-------------|
115
+ | [Introduction](http://copaw.agentscope.com/docs/intro) | What CoPAW is and how you use it |
116
+ | [Quick start](http://copaw.agentscope.com/docs/quickstart) | Install and run (local or ModelScope Studio) |
117
+ | [Console](http://copaw.agentscope.com/docs/console) | Web UI for chat and agent config |
118
+ | [Channels](http://copaw.agentscope.com/docs/channels) | DingTalk, Feishu, QQ, Discord, iMessage, and more |
119
+ | [Heartbeat](http://copaw.agentscope.com/docs/heartbeat) | Scheduled check-in or digest |
120
+ | [CLI](http://copaw.agentscope.com/docs/cli) | Init, cron jobs, skills, clean |
121
+ | [Skills](http://copaw.agentscope.com/docs/skills) | Extend and customize capabilities |
122
+ | [Config](http://copaw.agentscope.com/docs/config) | Working directory and config file |
123
+
124
+ Full docs in this repo: [website/public/docs/](website/public/docs/).
125
+
126
+ ---
127
+
128
+ ## Install from source
129
+
130
+ ```bash
131
+ git clone https://github.com/agentscope-ai/CoPAW.git
132
+ cd CoPAW
133
+ pip install -e .
134
+ ```
135
+
136
+ - **Dev** (tests, formatting): `pip install -e ".[dev]"`
137
+ - **Console** (build frontend): `cd console && npm ci && npm run build`, then `copaw app` from project root.
138
+
139
+ ---
140
+
141
+ ## Why CoPAW?
142
+
143
+ CoPAW stands for **Co** (Collaboration & Company) and **PAW** (Personal Agent Workspace). Not just an acronym—a warm "little paw" ready to help. We want it to be more than a tool: your most in-tune partner in digital life.
144
+
145
+ ---
146
+
147
+ ## Built by
148
+
149
+ [AgentScope team](https://github.com/agentscope-ai) · [AgentScope](https://github.com/agentscope-ai/agentscope) · [AgentScope Runtime](https://github.com/agentscope-ai/agentscope-runtime) · [ReMe](https://github.com/agentscope-ai/ReMe)
150
+
151
+ ---
152
+
153
+ ## License
154
+
155
+ CoPAW is released under the [Apache License 2.0](LICENSE).
@@ -0,0 +1,126 @@
1
+ <div align="center">
2
+
3
+ # CoPAW
4
+
5
+ [![Documentation](https://img.shields.io/badge/docs-website-green.svg?logo=readthedocs)](http://copaw.agentscope.com/)
6
+ [![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg?logo=python)](https://www.python.org/downloads/)
7
+ [![ModelScope](https://img.shields.io/badge/ModelScope-One--click-orange.svg)](https://modelscope.cn/studios/AgentScope/CoPAW)
8
+ [![License](https://img.shields.io/badge/license-Apache%202.0-red.svg?logo=apache)](LICENSE)
9
+
10
+ [[Documentation](http://copaw.agentscope.com/)] [[Try ModelScope](https://modelscope.cn/studios/AgentScope/CoPAW)] [[中文 README](README_zh.md)]
11
+
12
+ **Works for you, grows with you.**
13
+
14
+ Your Personal AI Assistant; easy to install, deploy on your own machine or on the cloud; supports multiple chat apps with easily extensible capabilities.
15
+
16
+ > **Core capabilities:**
17
+ >
18
+ > **Every channel** — DingTalk, Feishu, QQ, Discord, iMessage, and more. One assistant, connect as you need.
19
+ >
20
+ > **Under your control** — Memory and personalization under your control. Deploy locally or in the cloud; scheduled reminders to any channel.
21
+ >
22
+ > **Skills** — Built-in cron; custom skills in your workspace, auto-loaded. No lock-in.
23
+ >
24
+ > <details>
25
+ > <summary><b>What you can do</b></summary>
26
+ >
27
+ > <br>
28
+ >
29
+ > Social: daily digest of hot posts (Xiaohongshu, Zhihu, Reddit), Bilibili/YouTube summaries.
30
+ > Productivity: newsletter digests to DingTalk/Feishu/QQ, contacts from email/calendar.
31
+ > Creative: describe your goal, run overnight, get a draft next day.
32
+ > Research: track tech/AI news, personal knowledge base.
33
+ > Desktop: organize files, read/summarize docs, request files in chat.
34
+ > Explore: combine Skills and cron into your own agentic app.
35
+ >
36
+ > </details>
37
+
38
+ </div>
39
+
40
+ ---
41
+
42
+ ## Table of Contents
43
+
44
+ > **Recommended reading:**
45
+ >
46
+ > - **I want to run CoPAW in 3 commands**: [Quick Start](#-quick-start) → open Console in browser.
47
+ > - **I want to chat in DingTalk / Feishu / QQ**: [Quick Start](#-quick-start) → [Channels](http://copaw.agentscope.com/docs/channels).
48
+ > - **I don’t want to install Python**: [ModelScope one-click](https://modelscope.cn/studios/AgentScope/CoPAW).
49
+
50
+ - [Quick Start](#-quick-start)
51
+ - [Documentation](#-documentation)
52
+ - [Install from source](#-install-from-source)
53
+ - [Why CoPAW?](#-why-copaw)
54
+ - [Built by](#-built-by)
55
+ - [License](#-license)
56
+
57
+ ---
58
+
59
+ ## Quick Start
60
+
61
+ ### Prerequisites
62
+
63
+ - Python 3.10 or higher
64
+ - pip
65
+
66
+ ### Installation
67
+
68
+ ```bash
69
+ pip install copaw
70
+ copaw init --defaults # or: copaw init (interactive)
71
+ copaw app
72
+ ```
73
+
74
+ Then open **http://127.0.0.1:8088/** in your browser for the Console (chat with CoPAW, configure the agent). To talk in DingTalk, Feishu, QQ, etc., add a channel in the [docs](http://copaw.agentscope.com/docs/channels).
75
+
76
+ ![Console](https://img.alicdn.com/imgextra/i4/O1CN01jQ8IKh1oWJL5C0v5x_!!6000000005232-2-tps-3494-1644.png)
77
+
78
+ **No Python?** [ModelScope Studio](https://modelscope.cn/studios/AgentScope/CoPAW) one-click setup (no local install). Set your Studio to **non-public** so others cannot control your CoPAW.
79
+
80
+ ---
81
+
82
+ ## Documentation
83
+
84
+ | Topic | Description |
85
+ |-------|-------------|
86
+ | [Introduction](http://copaw.agentscope.com/docs/intro) | What CoPAW is and how you use it |
87
+ | [Quick start](http://copaw.agentscope.com/docs/quickstart) | Install and run (local or ModelScope Studio) |
88
+ | [Console](http://copaw.agentscope.com/docs/console) | Web UI for chat and agent config |
89
+ | [Channels](http://copaw.agentscope.com/docs/channels) | DingTalk, Feishu, QQ, Discord, iMessage, and more |
90
+ | [Heartbeat](http://copaw.agentscope.com/docs/heartbeat) | Scheduled check-in or digest |
91
+ | [CLI](http://copaw.agentscope.com/docs/cli) | Init, cron jobs, skills, clean |
92
+ | [Skills](http://copaw.agentscope.com/docs/skills) | Extend and customize capabilities |
93
+ | [Config](http://copaw.agentscope.com/docs/config) | Working directory and config file |
94
+
95
+ Full docs in this repo: [website/public/docs/](website/public/docs/).
96
+
97
+ ---
98
+
99
+ ## Install from source
100
+
101
+ ```bash
102
+ git clone https://github.com/agentscope-ai/CoPAW.git
103
+ cd CoPAW
104
+ pip install -e .
105
+ ```
106
+
107
+ - **Dev** (tests, formatting): `pip install -e ".[dev]"`
108
+ - **Console** (build frontend): `cd console && npm ci && npm run build`, then `copaw app` from project root.
109
+
110
+ ---
111
+
112
+ ## Why CoPAW?
113
+
114
+ CoPAW stands for **Co** (Collaboration & Company) and **PAW** (Personal Agent Workspace). Not just an acronym—a warm "little paw" ready to help. We want it to be more than a tool: your most in-tune partner in digital life.
115
+
116
+ ---
117
+
118
+ ## Built by
119
+
120
+ [AgentScope team](https://github.com/agentscope-ai) · [AgentScope](https://github.com/agentscope-ai/agentscope) · [AgentScope Runtime](https://github.com/agentscope-ai/agentscope-runtime) · [ReMe](https://github.com/agentscope-ai/ReMe)
121
+
122
+ ---
123
+
124
+ ## License
125
+
126
+ CoPAW is released under the [Apache License 2.0](LICENSE).
@@ -0,0 +1,52 @@
1
+ [project]
2
+ name = "copaw"
3
+ version = "0.0.1a1"
4
+ description = "CoPAW is a **personal assistant** that runs in your own environment. It talks to you over multiple channels (DingTalk, Feishu, QQ, Discord, iMessage, etc.) and runs scheduled tasks according to your configuration. **What it can do is driven by Skills — the possibilities are open-ended.** Built-in skills include cron, PDF/Office handling, news digest, file reading, and more; you can add custom skills. All data and tasks run on your machine; no third-party hosting."
5
+ readme = "README.md"
6
+ requires-python = ">=3.10"
7
+ dependencies = [
8
+ "agentscope==1.0.16.dev0",
9
+ "agentscope-runtime==1.1.0b2",
10
+ "discord-py>=2.3",
11
+ "dingtalk-stream>=0.24.3",
12
+ "uvicorn>=0.40.0",
13
+ "apscheduler>=3.11.2",
14
+ "playwright>=1.49.0",
15
+ "questionary>=2.1.1",
16
+ "mss>=9.0.0",
17
+ "reme-ai>=0.3.0.0a2",
18
+ "transformers>=4.30.0",
19
+ "python-dotenv>=1.0.0",
20
+ "onnxruntime<1.24",
21
+ "lark-oapi>=1.5.3",
22
+ ]
23
+
24
+ [tool.setuptools]
25
+ packages = { find = { where = ["src"] } }
26
+ include-package-data = true
27
+
28
+ [tool.setuptools.package-data]
29
+ "copaw" = ["console/dist/**"]
30
+
31
+ [build-system]
32
+ requires = ["setuptools>=42", "wheel"]
33
+ build-backend = "setuptools.build_meta"
34
+
35
+ [project.scripts]
36
+ copaw = "copaw.cli.main:cli"
37
+
38
+ [project.optional-dependencies]
39
+ dev = [
40
+ "pytest>=8.3.5",
41
+ "pytest-asyncio>=0.23.0",
42
+ "pre-commit>=4.2.0",
43
+ "pytest-cov>=6.2.1",
44
+ "fakeredis>=2.31.0",
45
+ ]
46
+
47
+ [tool.pytest.ini_options]
48
+ asyncio_mode = "auto"
49
+ asyncio_default_fixture_loop_scope = "function"
50
+ markers = [
51
+ "slow: marks tests as slow (deselect with '-m \"not slow\"')",
52
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
copaw-0.0.1a1/setup.py ADDED
@@ -0,0 +1,4 @@
1
+ # -*- coding: utf-8 -*-
2
+ from setuptools import setup
3
+
4
+ setup()
@@ -0,0 +1,4 @@
1
+ # -*- coding: utf-8 -*-
2
+ from .utils.logging import setup_logger
3
+
4
+ setup_logger()
@@ -0,0 +1,2 @@
1
+ # -*- coding: utf-8 -*-
2
+ __version__ = "0.1.0a1"
@@ -0,0 +1,6 @@
1
+ # -*- coding: utf-8 -*-
2
+ from .react_agent import ClawdAgent
3
+
4
+ __all__ = [
5
+ "ClawdAgent",
6
+ ]
@@ -0,0 +1,10 @@
1
+ # -*- coding: utf-8 -*-
2
+ """Memory management module for CoPAW agents."""
3
+
4
+ from .agent_md_manager import AgentMdManager
5
+ from .memory_manager import MemoryManager
6
+
7
+ __all__ = [
8
+ "AgentMdManager",
9
+ "MemoryManager",
10
+ ]