samoagent 0.3.0

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.
package/CLAUDE.md ADDED
@@ -0,0 +1,67 @@
1
+ # samoagent Agent Notes
2
+
3
+ Use samoagent to join a meeting, watch the live transcript, speak in meeting chat when asked, and capture the call view on demand.
4
+
5
+ ## Preferred Flow
6
+
7
+ ```bash
8
+ samoagent join "https://meet.google.com/..." --name Leo --dict postgresfm
9
+ samoagent watch
10
+ samoagent frame
11
+ samoagent leave
12
+ ```
13
+
14
+ Start `watch` immediately after `join` with your persistent monitor. Keep it running until the call ends. Each line is:
15
+
16
+ ```text
17
+ [timestamp] Speaker: utterance
18
+ ```
19
+
20
+ React in your agent session. Use meeting chat only for deliberate call-visible messages:
21
+
22
+ ```bash
23
+ samoagent chat "Short message to the meeting"
24
+ ```
25
+
26
+ ## Looking At The Call
27
+
28
+ Frame capture is on by default. Recall sends `video_separate_png.data` frames over the ngrok HTTPS/WSS tunnel. Frames stay in server memory; disk writes happen only when the agent calls:
29
+
30
+ ```bash
31
+ samoagent frame
32
+ ```
33
+
34
+ Default output is outside the repo:
35
+
36
+ ```text
37
+ ~/.samoagent/frames/latest.png
38
+ ~/.samoagent/frames/latest.json
39
+ ```
40
+
41
+ Use explicit outputs only when needed:
42
+
43
+ ```bash
44
+ samoagent frame --out /tmp/call.png
45
+ samoagent frame --archive
46
+ ```
47
+
48
+ `--archive` creates a timestamped filename with bot id, source type, and participant id.
49
+
50
+ ## Mixed Video
51
+
52
+ Use RTMP only when separate PNG frames are not enough:
53
+
54
+ ```bash
55
+ samoagent join "https://zoom.us/j/..." --rtmp
56
+ samoagent join "https://zoom.us/j/..." --rtmp-url rtmp://HOST:1935/live/call
57
+ ```
58
+
59
+ `--rtmp` needs ngrok TCP, which requires ngrok card verification. `--rtmp-url` needs a public RTMP receiver.
60
+
61
+ ## End The Call
62
+
63
+ ```bash
64
+ samoagent leave
65
+ ```
66
+
67
+ `leave` removes the bot, stops local helper processes, writes the `SAMOAGENT_CALL_ENDED` sentinel, and lets `watch` exit cleanly.
package/LICENSE ADDED
@@ -0,0 +1,176 @@
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 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
package/README.md ADDED
@@ -0,0 +1,141 @@
1
+ # samoagent
2
+
3
+ > Build agents that show up to the meeting, not just the codebase.
4
+
5
+ samoagent lets your AI agent (Claude Code, Codex, and others) join Zoom and Google Meet calls as an active participant — listening, responding, and taking action in real time.
6
+
7
+ Give this CLI, a meeting URL, and the needed tokens to your AI agent. samoagent handles the meeting plumbing through Recall.ai: joining calls, streaming the live transcript, sending explicit chat messages, and inspecting the current call view on demand.
8
+
9
+ ## Setup
10
+
11
+ Requirements:
12
+
13
+ - Bun.
14
+ - `RECALL_API_KEY`.
15
+ - `ngrok` installed and authenticated (free plan). `join` starts and manages ngrok automatically — you don't run it yourself.
16
+
17
+ ```bash
18
+ bun install
19
+ export RECALL_API_KEY=...
20
+ bun run build
21
+ ```
22
+
23
+ During development use `bun run samoagent ...`. After build or package install, use `samoagent ...`.
24
+
25
+ ## What It Provides
26
+
27
+ samoagent gives an AI agent a small set of meeting tools:
28
+
29
+ - `join` - bring a Recall.ai bot into a Zoom or Google Meet call.
30
+ - `watch` - stream live transcript lines to the agent.
31
+ - `chat` - send a deliberate message into the meeting chat.
32
+ - `frame` - export the current call view on demand.
33
+ - `leave` - remove the bot and clean up local state.
34
+ - `status` - show the current Recall bot state.
35
+ - `transcript` - print the transcript (local file, or post-call from Recall).
36
+ - `screenshot` - capture the local Mac screen (fallback when no call frame is available).
37
+ - `dicts` - list available Deepgram keyword dictionaries.
38
+
39
+ The agent still decides what to say, when to inspect a frame, and how to use the meeting context. samoagent is the local adapter that exposes those call capabilities.
40
+
41
+ ```text
42
+ AI agent
43
+ | runs CLI tools
44
+ v
45
+ samoagent on your machine
46
+ | starts bot + local callback server + ngrok tunnel
47
+ v
48
+ Recall.ai bot in Zoom/Meet
49
+ | transcript, chat, WebSocket video events
50
+ v
51
+ samoagent watch/chat/frame
52
+ ```
53
+
54
+ ## Integration
55
+
56
+ `join` starts a local callback server and exposes it with `ngrok http` so Recall.ai can deliver HTTPS/WSS events back to your machine. The free ngrok HTTP plan is enough for normal use.
57
+
58
+ ngrok TCP is only needed for the optional RTMP path (`--rtmp`) and requires a credit/debit card on file at ngrok.com (free plan — the card is not charged). The standard WebSocket frame path does not need TCP or card verification.
59
+
60
+ Webhook and frame routes are token-protected, and default runtime files stay under `~/.samoagent/`.
61
+
62
+ ## Agent Workflow
63
+
64
+ ```bash
65
+ samoagent join "https://meet.google.com/..." --name Leo --dict postgresfm
66
+ samoagent watch
67
+ samoagent frame
68
+ samoagent chat "I can see the screen now."
69
+ samoagent leave
70
+ ```
71
+
72
+ Run `watch` immediately after `join` and keep it running for the whole call. It prints one utterance per line:
73
+
74
+ ```text
75
+ [2026-05-30 15:42:10] Speaker Name: words spoken in the meeting
76
+ ```
77
+
78
+ `watch` exits automatically when `leave` is run. If there is no active session, it prints `No active session.` to stderr and exits.
79
+
80
+ Use `chat` only when you intentionally want to write into the meeting chat. Otherwise respond in your agent session.
81
+
82
+ ## Frames
83
+
84
+ Frame capture is on by default. Recall sends separate PNG frames over WebSocket; samoagent keeps the latest in memory and only writes to disk when you call `frame`.
85
+
86
+ `frame` fails with `FRAME_UNAVAILABLE` if no frame has arrived yet — call it after the bot has been in the meeting for a few seconds.
87
+
88
+ ```bash
89
+ samoagent frame
90
+ ```
91
+
92
+ By default it writes outside the repo:
93
+
94
+ ```text
95
+ ~/.samoagent/frames/latest.png
96
+ ~/.samoagent/frames/latest.json
97
+ ```
98
+
99
+ Use `--out` for an explicit path, or `--archive` to create a timestamped copy alongside the latest:
100
+
101
+ ```bash
102
+ samoagent frame --out /tmp/call.png
103
+ samoagent frame --archive
104
+ ```
105
+
106
+ Archive filenames include call id, UTC timestamp, source type, and participant id. Source type and participant id come from the Recall event metadata and may be `unknown` if Recall does not provide them.
107
+
108
+ ## Important Flags
109
+
110
+ - `join --no-ws-video` - disable the default WebSocket frame path (e.g. when using RTMP instead).
111
+ - `join --frame-dir DIR` - where on-demand frame files are written.
112
+ - `join --dict postgresfm` - Deepgram keyterm hints from `dictionaries/postgresfm.txt`.
113
+ - `join --transcript-dir DIR` - transcript location, default `~/.samoagent/`.
114
+ - `join --rtmp` - mixed-video RTMP path using ngrok TCP; requires ngrok card verification.
115
+ - `join --rtmp-url rtmp://host:1935/live/call` - explicit mixed-video RTMP receiver.
116
+
117
+ ## Commands
118
+
119
+ - `join <meeting-url>` - start local server, ngrok tunnel, and Recall bot.
120
+ - `watch` - stream live transcript until `leave` writes the end sentinel; exits immediately if no session is active.
121
+ - `chat <message>` - send meeting chat.
122
+ - `frame [--out FILE] [--archive]` - write latest in-memory frame to disk on demand.
123
+ - `status` - show bot id, name, Recall status code, transcript line count, and transcript file path.
124
+ - `transcript` - print the Recall post-call transcript if available, otherwise print the local transcript file.
125
+ - `screenshot [--out FILE]` - capture the local Mac screen with `screencapture`; use as a fallback when frame is not available.
126
+ - `leave` - remove bot, stop local processes, and clean state.
127
+ - `dicts` - list keyword dictionaries.
128
+
129
+ ## Storage
130
+
131
+ Runtime files live under `~/.samoagent/` by default:
132
+
133
+ - `state.json` - active bot id, process ids, URLs, paths.
134
+ - `transcript.txt` - live transcript.
135
+ - `frames/latest.png` and `frames/latest.json` - written only by `samoagent frame`.
136
+
137
+ Generated runtime files are ignored by git. Do not point `--frame-dir` or `--out` into the repo unless you intentionally want a local artifact.
138
+
139
+ ## License
140
+
141
+ Apache License 2.0. See [LICENSE](LICENSE).
package/avatar.html ADDED
@@ -0,0 +1,31 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <style>
6
+ * { margin: 0; padding: 0; box-sizing: border-box; }
7
+ html, body { width: 100%; height: 100%; background: #000; overflow: hidden; }
8
+ img {
9
+ width: 100%; height: 100%;
10
+ object-fit: cover;
11
+ display: block;
12
+ }
13
+ .rec {
14
+ position: fixed;
15
+ top: 28px; right: 28px;
16
+ width: 36px; height: 36px;
17
+ border-radius: 50%;
18
+ background: #e02020;
19
+ animation: pulse 2s ease-in-out infinite;
20
+ }
21
+ @keyframes pulse {
22
+ 0%, 100% { box-shadow: 0 0 0 0 rgba(224,32,32,0.7); }
23
+ 50% { box-shadow: 0 0 0 18px rgba(224,32,32,0); }
24
+ }
25
+ </style>
26
+ </head>
27
+ <body>
28
+ <img src="https://raw.githubusercontent.com/NikolayS/samoagent/main/avatar.png" alt="">
29
+ <div class="rec"></div>
30
+ </body>
31
+ </html>
package/avatar.png ADDED
Binary file
@@ -0,0 +1,100 @@
1
+ Nikolay Samokhvalov
2
+ Michael Christofides
3
+ Oleg Bartunov
4
+ Heikki Linnakangas
5
+ Andres Freund
6
+ Peter Geoghegan
7
+ Melanie Plageman
8
+ Alexander Korotkov
9
+ Alicja Kucharczyk
10
+ Álvaro Hernández
11
+ Lætitia Avrot
12
+ Markus Winand
13
+ Tomas Vondra
14
+ Masahiko Sawada
15
+ Tom Lane
16
+ Robert Haas
17
+ Peter Eisentraut
18
+ Bruce Momjian
19
+ Lukas Fittl
20
+ Jonathan Katz
21
+ Andrew Atkinson
22
+ Chelsea Dole
23
+ Haki Benita
24
+ Laurenz Albe
25
+ Claire Giordano
26
+ Andreas Scherbaum
27
+ Brendan Gregg
28
+ Erwin Brandstetter
29
+ Andrey Borodin
30
+ Alexander Kukushkin
31
+ Franck Pachot
32
+ Andrei Lepikhov
33
+ Gülçin Yıldırım Jelínek
34
+ Ryan Lambert
35
+ Joe Nelson
36
+ Ian Barwick
37
+ Kirk Wolak
38
+ Regina Obe
39
+ Paul Ramsey
40
+ pgvector
41
+ pgvectorscale
42
+ pgBackRest
43
+ Patroni
44
+ PgBouncer
45
+ PostGIS
46
+ TimescaleDB
47
+ Citus
48
+ OrioleDB
49
+ WAL-G
50
+ CloudNativePG
51
+ Spilo
52
+ repmgr
53
+ pg_auto_failover
54
+ pganalyze
55
+ pgBadger
56
+ pg_stat_statements
57
+ pg_stat_kcache
58
+ pg_wait_sampling
59
+ pg_buffercache
60
+ pg_qualstats
61
+ pg_repack
62
+ pg_partman
63
+ pg_cron
64
+ pg_duckdb
65
+ pg_ivm
66
+ pg_upgrade
67
+ pg_basebackup
68
+ pg_amcheck
69
+ pg_hint_plan
70
+ pg_squeeze
71
+ pg_stat_io
72
+ pg_stat_wal
73
+ pg_stat_monitor
74
+ pg_profile
75
+ pg_ash
76
+ pg_tle
77
+ pgmq
78
+ pgreplay
79
+ pgcopydb
80
+ Neon
81
+ Supabase
82
+ Crunchy Data
83
+ EnterpriseDB
84
+ Tembo
85
+ Xata
86
+ PeerDB
87
+ PlanetScale
88
+ YugabyteDB
89
+ AlloyDB
90
+ ClickHouse
91
+ DuckDB
92
+ FerretDB
93
+ MVCC
94
+ TOAST
95
+ PITR
96
+ autovacuum
97
+ WAL-E
98
+ HyperLogLog
99
+ HNSW
100
+ ivfflat