@agent-native/core 0.114.6 → 0.114.8
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/corpus/README.md +2 -2
- package/corpus/core/CHANGELOG.md +15 -0
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/cli/mcp-config-writers.ts +6 -4
- package/corpus/core/src/cli/mcp.ts +124 -0
- package/corpus/core/src/cli/skills-content/help.ts +4 -3
- package/corpus/core/src/cli/skills-content/index.ts +1 -0
- package/corpus/core/src/cli/skills-content/rewind-skill.ts +52 -0
- package/corpus/core/src/cli/skills.ts +115 -13
- package/corpus/core/src/mcp/screen-memory-stdio.ts +1360 -104
- package/corpus/core/src/mcp-client/index.ts +9 -0
- package/corpus/core/src/mcp-client/screen-memory-local.ts +847 -13
- package/corpus/core/src/server/agent-chat-plugin.ts +16 -9
- package/corpus/templates/analytics/app/components/dashboard/SqlChart.tsx +19 -7
- package/corpus/templates/analytics/app/hooks/use-chart-tooltip-portal.ts +60 -0
- package/corpus/templates/analytics/app/routes/chart.tsx +1 -1
- package/corpus/templates/analytics/changelog/2026-07-20-dashboard-requests-no-longer-stall-without-progress.md +6 -0
- package/corpus/templates/analytics/server/plugins/agent-chat.ts +6 -0
- package/corpus/templates/clips/actions/apply-rewind-extension.ts +195 -0
- package/corpus/templates/clips/actions/delete-agent-recording-if-unpromoted.ts +64 -0
- package/corpus/templates/clips/actions/get-rewind-extension-request.ts +22 -0
- package/corpus/templates/clips/actions/get-screen-memory-status.ts +18 -2
- package/corpus/templates/clips/actions/list-rewind-extension-requests.ts +52 -0
- package/corpus/templates/clips/actions/make-recording-private-for-rewind.ts +55 -0
- package/corpus/templates/clips/actions/query-screen-memory-context.ts +4 -4
- package/corpus/templates/clips/actions/request-rewind-extension.ts +81 -0
- package/corpus/templates/clips/actions/update-rewind-extension-request.ts +47 -0
- package/corpus/templates/clips/app/components/editor/editor-layout.tsx +25 -0
- package/corpus/templates/clips/app/components/editor/editor-toolbar.tsx +36 -0
- package/corpus/templates/clips/app/components/editor/rewind-extension-dialog.tsx +338 -0
- package/corpus/templates/clips/app/components/editor/stitch-manager.tsx +1 -16
- package/corpus/templates/clips/app/components/editor/timeline.tsx +26 -0
- package/corpus/templates/clips/app/i18n/en-US.ts +18 -0
- package/corpus/templates/clips/app/lib/ffmpeg-export.ts +19 -12
- package/corpus/templates/clips/app/lib/rewind-visibility.ts +31 -0
- package/corpus/templates/clips/app/lib/timestamp-mapping.ts +7 -0
- package/corpus/templates/clips/app/lib/upload-file-client.ts +17 -0
- package/corpus/templates/clips/changelog/2026-07-14-rewind-keeps-recent-screen-context-local-and-turns-it-into-clips.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-17-active-clips-keep-rewind-stable-and-settings-clear.md +12 -0
- package/corpus/templates/clips/changelog/2026-07-17-clicking-the-clips-icon-during-a-recording-now-opens-the-app.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-17-default-mic-now-uses-the-mac-default-and-transcription-shares-one-capture.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-17-full-screen-clips-finalize-even-when-screencapturekit-stop-hangs.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-17-normal-full-screen-clips-no-longer-stop-immediately-after-th.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-17-rewind-can-hand-one-bounded-private-clip-to-your-agent.md +12 -0
- package/corpus/templates/clips/changelog/2026-07-17-rewind-home-can-copy-a-local-agent-prompt.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-17-rewind-now-has-a-calm-home-status-focused-first-run-consent-.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-17-rewind-settings-are-smaller-clearer-and-agent-first.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-17-the-full-clips-interface-stays-available-while-recording.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-18-rewind-organizes-recent-work-into-local-searchable-chapters.md +8 -0
- package/corpus/templates/clips/changelog/2026-07-18-searchable-rewind-chapters.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-19-rewind-backed-recordings-now-start-immediately-after-the-cou.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-20-rewind-can-set-up-your-local-agent-once-so-future-requests-w.md +6 -0
- package/corpus/templates/clips/desktop/package.json +1 -0
- package/corpus/templates/clips/desktop/scripts/sign-macos-local.ts +12 -1
- package/corpus/templates/clips/desktop/src/app.tsx +2498 -239
- package/corpus/templates/clips/desktop/src/components/ReadinessPanel.tsx +21 -1
- package/corpus/templates/clips/desktop/src/components/Switch.tsx +3 -0
- package/corpus/templates/clips/desktop/src/hooks/useMeetingTranscription.ts +156 -24
- package/corpus/templates/clips/desktop/src/lib/native-recording-warm.ts +6 -7
- package/corpus/templates/clips/desktop/src/lib/recorder.ts +1763 -1160
- package/corpus/templates/clips/desktop/src/lib/rewind-agent-prompt.ts +9 -0
- package/corpus/templates/clips/desktop/src/lib/rewind-recording-start.ts +20 -0
- package/corpus/templates/clips/desktop/src/main.tsx +3 -0
- package/corpus/templates/clips/desktop/src/overlays/countdown.tsx +14 -14
- package/corpus/templates/clips/desktop/src/overlays/onboarding.tsx +4 -4
- package/corpus/templates/clips/desktop/src/overlays/preparing.tsx +13 -0
- package/corpus/templates/clips/desktop/src/overlays/toolbar.tsx +27 -2
- package/corpus/templates/clips/desktop/src/shared/config.ts +16 -0
- package/corpus/templates/clips/desktop/src/styles.css +956 -134
- package/corpus/templates/clips/desktop/src-tauri/Cargo.toml +5 -0
- package/corpus/templates/clips/desktop/src-tauri/build.rs +69 -1
- package/corpus/templates/clips/desktop/src-tauri/src/accessibility.rs +386 -12
- package/corpus/templates/clips/desktop/src-tauri/src/capture_audio_bus.rs +382 -0
- package/corpus/templates/clips/desktop/src-tauri/src/capture_graph.rs +777 -0
- package/corpus/templates/clips/desktop/src-tauri/src/clips/mod.rs +249 -22
- package/corpus/templates/clips/desktop/src-tauri/src/config.rs +148 -1
- package/corpus/templates/clips/desktop/src-tauri/src/lib.rs +58 -4
- package/corpus/templates/clips/desktop/src-tauri/src/logfile.rs +13 -1
- package/corpus/templates/clips/desktop/src-tauri/src/native_screen/custom_capture.rs +1505 -51
- package/corpus/templates/clips/desktop/src-tauri/src/native_screen/live_upload.rs +124 -0
- package/corpus/templates/clips/desktop/src-tauri/src/native_screen.rs +1006 -95
- package/corpus/templates/clips/desktop/src-tauri/src/rewind_capture_suspension.rs +165 -0
- package/corpus/templates/clips/desktop/src-tauri/src/rewind_chapters.rs +2434 -0
- package/corpus/templates/clips/desktop/src-tauri/src/rewind_clip.rs +1650 -0
- package/corpus/templates/clips/desktop/src-tauri/src/rewind_egress.rs +643 -0
- package/corpus/templates/clips/desktop/src-tauri/src/rewind_local_ask.rs +803 -0
- package/corpus/templates/clips/desktop/src-tauri/src/rewind_meeting_history.rs +595 -0
- package/corpus/templates/clips/desktop/src-tauri/src/screen_memory.rs +2900 -91
- package/corpus/templates/clips/desktop/src-tauri/src/screen_memory_ocr.rs +360 -0
- package/corpus/templates/clips/desktop/src-tauri/src/screen_memory_transcript.rs +408 -0
- package/corpus/templates/clips/desktop/src-tauri/src/shortcuts.rs +114 -33
- package/corpus/templates/clips/desktop/src-tauri/src/state.rs +2 -2
- package/corpus/templates/clips/desktop/src-tauri/src/system_audio.rs +13 -3
- package/corpus/templates/clips/desktop/src-tauri/src/tray.rs +4 -1
- package/corpus/templates/clips/desktop/src-tauri/src/util.rs +7 -13
- package/corpus/templates/clips/desktop/src-tauri/src/whisper_speech.rs +198 -11
- package/corpus/templates/clips/desktop/src-tauri/tauri.alpha.conf.json +17 -0
- package/corpus/toolkit/CHANGELOG.md +6 -0
- package/corpus/toolkit/package.json +1 -1
- package/dist/cli/mcp-config-writers.d.ts +2 -2
- package/dist/cli/mcp-config-writers.d.ts.map +1 -1
- package/dist/cli/mcp-config-writers.js +6 -6
- package/dist/cli/mcp-config-writers.js.map +1 -1
- package/dist/cli/mcp.d.ts +14 -0
- package/dist/cli/mcp.d.ts.map +1 -1
- package/dist/cli/mcp.js +79 -0
- package/dist/cli/mcp.js.map +1 -1
- package/dist/cli/skills-content/help.d.ts +1 -1
- package/dist/cli/skills-content/help.d.ts.map +1 -1
- package/dist/cli/skills-content/help.js +4 -3
- package/dist/cli/skills-content/help.js.map +1 -1
- package/dist/cli/skills-content/index.d.ts +1 -0
- package/dist/cli/skills-content/index.d.ts.map +1 -1
- package/dist/cli/skills-content/index.js +1 -0
- package/dist/cli/skills-content/index.js.map +1 -1
- package/dist/cli/skills-content/rewind-skill.d.ts +2 -0
- package/dist/cli/skills-content/rewind-skill.d.ts.map +1 -0
- package/dist/cli/skills-content/rewind-skill.js +53 -0
- package/dist/cli/skills-content/rewind-skill.js.map +1 -0
- package/dist/cli/skills.d.ts +6 -0
- package/dist/cli/skills.d.ts.map +1 -1
- package/dist/cli/skills.js +90 -14
- package/dist/cli/skills.js.map +1 -1
- package/dist/collab/struct-routes.d.ts +1 -1
- package/dist/mcp/screen-memory-stdio.d.ts +365 -0
- package/dist/mcp/screen-memory-stdio.d.ts.map +1 -1
- package/dist/mcp/screen-memory-stdio.js +1014 -91
- package/dist/mcp/screen-memory-stdio.js.map +1 -1
- package/dist/mcp-client/index.d.ts +1 -1
- package/dist/mcp-client/index.d.ts.map +1 -1
- package/dist/mcp-client/index.js +1 -1
- package/dist/mcp-client/index.js.map +1 -1
- package/dist/mcp-client/screen-memory-local.d.ts +90 -0
- package/dist/mcp-client/screen-memory-local.d.ts.map +1 -1
- package/dist/mcp-client/screen-memory-local.js +590 -12
- package/dist/mcp-client/screen-memory-local.js.map +1 -1
- package/dist/observability/routes.d.ts +1 -1
- package/dist/progress/routes.d.ts +1 -1
- package/dist/provider-api/actions/provider-api.d.ts +4 -4
- package/dist/resources/handlers.d.ts +1 -1
- package/dist/server/agent-chat-plugin.d.ts +5 -0
- package/dist/server/agent-chat-plugin.d.ts.map +1 -1
- package/dist/server/agent-chat-plugin.js +10 -9
- package/dist/server/agent-chat-plugin.js.map +1 -1
- package/package.json +2 -2
- package/src/cli/mcp-config-writers.ts +6 -4
- package/src/cli/mcp.ts +124 -0
- package/src/cli/skills-content/help.ts +4 -3
- package/src/cli/skills-content/index.ts +1 -0
- package/src/cli/skills-content/rewind-skill.ts +52 -0
- package/src/cli/skills.ts +115 -13
- package/src/mcp/screen-memory-stdio.ts +1360 -104
- package/src/mcp-client/index.ts +9 -0
- package/src/mcp-client/screen-memory-local.ts +847 -13
- package/src/server/agent-chat-plugin.ts +16 -9
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
mod accessibility;
|
|
8
8
|
mod adhoc_meetings_watcher;
|
|
9
|
+
mod capture_audio_bus;
|
|
10
|
+
mod capture_graph;
|
|
9
11
|
mod clips;
|
|
10
12
|
mod config;
|
|
11
13
|
mod debug;
|
|
@@ -18,7 +20,15 @@ mod notifications;
|
|
|
18
20
|
mod permission_status;
|
|
19
21
|
mod recording_indicator;
|
|
20
22
|
mod remote_flags;
|
|
23
|
+
mod rewind_capture_suspension;
|
|
24
|
+
mod rewind_chapters;
|
|
25
|
+
mod rewind_clip;
|
|
26
|
+
mod rewind_egress;
|
|
27
|
+
mod rewind_local_ask;
|
|
28
|
+
mod rewind_meeting_history;
|
|
21
29
|
mod screen_memory;
|
|
30
|
+
mod screen_memory_ocr;
|
|
31
|
+
mod screen_memory_transcript;
|
|
22
32
|
mod sentry_report;
|
|
23
33
|
mod shortcuts;
|
|
24
34
|
mod silence_detector;
|
|
@@ -39,7 +49,7 @@ use state::{
|
|
|
39
49
|
};
|
|
40
50
|
use util::{
|
|
41
51
|
configure_overlay_behavior, is_recording_active, present_interactive_window,
|
|
42
|
-
|
|
52
|
+
set_capture_excluded,
|
|
43
53
|
};
|
|
44
54
|
|
|
45
55
|
// Embedded fallback icon — a tiny 16x16 solid purple PNG so the binary always
|
|
@@ -50,7 +60,7 @@ pub(crate) const TRAY_PNG: &[u8] = include_bytes!("../icons/tray.png");
|
|
|
50
60
|
|
|
51
61
|
fn present_popover(app: &tauri::AppHandle) {
|
|
52
62
|
if let Some(window) = app.get_webview_window("popover") {
|
|
53
|
-
|
|
63
|
+
set_capture_excluded(&window);
|
|
54
64
|
configure_overlay_behavior(&window);
|
|
55
65
|
position_popover(app, &window);
|
|
56
66
|
present_interactive_window(&window);
|
|
@@ -71,6 +81,9 @@ pub fn run() {
|
|
|
71
81
|
.invoke_handler(tauri::generate_handler![
|
|
72
82
|
// clips commands
|
|
73
83
|
clips::show_countdown,
|
|
84
|
+
clips::finish_countdown_shortcuts,
|
|
85
|
+
clips::show_preparing,
|
|
86
|
+
clips::hide_preparing,
|
|
74
87
|
clips::show_finalizing,
|
|
75
88
|
clips::hide_finalizing,
|
|
76
89
|
clips::show_toolbar,
|
|
@@ -88,6 +101,8 @@ pub fn run() {
|
|
|
88
101
|
clips::show_popover,
|
|
89
102
|
clips::park_popover_offscreen,
|
|
90
103
|
clips::open_macos_privacy_settings,
|
|
104
|
+
clips::choose_rewind_excluded_apps,
|
|
105
|
+
clips::resolve_rewind_excluded_apps,
|
|
91
106
|
clips::open_local_recording_folder,
|
|
92
107
|
clips::request_macos_screen_recording_access,
|
|
93
108
|
clips::resize_popover,
|
|
@@ -142,6 +157,7 @@ pub fn run() {
|
|
|
142
157
|
native_screen::native_fullscreen_pending_uploads,
|
|
143
158
|
native_screen::native_fullscreen_recording_retry_upload,
|
|
144
159
|
native_screen::native_fullscreen_recording_mark_upload_error,
|
|
160
|
+
native_screen::native_fullscreen_recording_clear_upload,
|
|
145
161
|
native_screen::native_fullscreen_recording_dismiss_upload,
|
|
146
162
|
native_screen::native_fullscreen_open_drafts_folder,
|
|
147
163
|
// local-only always-on screen memory compatibility helpers
|
|
@@ -149,6 +165,36 @@ pub fn run() {
|
|
|
149
165
|
screen_memory::screen_memory_delete_all,
|
|
150
166
|
screen_memory::screen_memory_export_recent,
|
|
151
167
|
screen_memory::screen_memory_open_folder,
|
|
168
|
+
screen_memory::screen_memory_install_agent_connection,
|
|
169
|
+
screen_memory::screen_memory_next_agent_handoff,
|
|
170
|
+
screen_memory::screen_memory_update_agent_handoff,
|
|
171
|
+
screen_memory::screen_memory_due_agent_handoffs,
|
|
172
|
+
screen_memory::screen_memory_mark_agent_handoff_deleted,
|
|
173
|
+
screen_memory::screen_memory_cancel_agent_handoff_cleanup,
|
|
174
|
+
// local-only Rewind evidence policy gate and egress audit trail
|
|
175
|
+
rewind_egress::rewind_prepare_evidence_egress,
|
|
176
|
+
rewind_egress::rewind_complete_evidence_egress,
|
|
177
|
+
rewind_egress::rewind_fail_evidence_egress,
|
|
178
|
+
rewind_egress::rewind_list_evidence_egress,
|
|
179
|
+
rewind_local_ask::rewind_local_ask,
|
|
180
|
+
rewind_local_ask::rewind_replay_moment,
|
|
181
|
+
rewind_meeting_history::rewind_meeting_history_status,
|
|
182
|
+
rewind_meeting_history::rewind_meeting_history_prepare,
|
|
183
|
+
rewind_meeting_history::rewind_meeting_history_collect,
|
|
184
|
+
rewind_meeting_history::rewind_meeting_history_cancel,
|
|
185
|
+
rewind_clip::rewind_clip_status,
|
|
186
|
+
rewind_clip::rewind_clip_prepare,
|
|
187
|
+
rewind_clip::rewind_clip_start,
|
|
188
|
+
rewind_clip::rewind_clip_extend,
|
|
189
|
+
rewind_clip::rewind_clip_pause,
|
|
190
|
+
rewind_clip::rewind_clip_resume,
|
|
191
|
+
rewind_clip::rewind_clip_stop_and_upload,
|
|
192
|
+
rewind_clip::rewind_clip_stop_and_save,
|
|
193
|
+
rewind_clip::rewind_clip_cancel,
|
|
194
|
+
rewind_clip::rewind_agent_handoff_upload,
|
|
195
|
+
rewind_clip::rewind_agent_handoff_preview,
|
|
196
|
+
rewind_capture_suspension::rewind_capture_suspension_acquire,
|
|
197
|
+
rewind_capture_suspension::rewind_capture_suspension_release,
|
|
152
198
|
// recording indicator pill
|
|
153
199
|
recording_indicator::recording_pill_show,
|
|
154
200
|
recording_indicator::recording_pill_expand,
|
|
@@ -221,6 +267,10 @@ pub fn run() {
|
|
|
221
267
|
.manage(LastTranscript::default())
|
|
222
268
|
.manage(native_screen::NativeFullscreenRecordingState::default())
|
|
223
269
|
.manage(screen_memory::ScreenMemoryState::default())
|
|
270
|
+
.manage(capture_graph::CaptureGraphState::default())
|
|
271
|
+
.manage(rewind_clip::RewindClipState::default())
|
|
272
|
+
.manage(rewind_meeting_history::RewindMeetingHistoryState::default())
|
|
273
|
+
.manage(rewind_capture_suspension::RewindCaptureSuspensionState::default())
|
|
224
274
|
.manage(meetings_watcher::MeetingsWatcherState::default())
|
|
225
275
|
.manage(adhoc_meetings_watcher::AdhocMeetingsWatcherState::default())
|
|
226
276
|
.manage(notifications::MeetingNotificationState::default())
|
|
@@ -292,8 +342,8 @@ pub fn run() {
|
|
|
292
342
|
// toggle is off).
|
|
293
343
|
clips::reconcile_region_guides(app.handle());
|
|
294
344
|
shortcuts::register_shortcuts(app)?;
|
|
345
|
+
shortcuts::install_countdown_local_key_monitor(app);
|
|
295
346
|
shortcuts::install_popover_dismiss_handler(app);
|
|
296
|
-
shortcuts::install_countdown_shortcut_handler(app);
|
|
297
347
|
|
|
298
348
|
// Spawn the upcoming-meetings poller. Idempotent — gated by a
|
|
299
349
|
// OnceLock inside `spawn_watcher`. The frontend wires the
|
|
@@ -417,7 +467,11 @@ pub fn run() {
|
|
|
417
467
|
// Reopen is macOS-only — gated behind cfg so Windows compiles.
|
|
418
468
|
#[cfg(target_os = "macos")]
|
|
419
469
|
if let tauri::RunEvent::Reopen { .. } = _event {
|
|
420
|
-
|
|
470
|
+
if is_recording_active(_app_handle) {
|
|
471
|
+
clips::force_show_popover(_app_handle);
|
|
472
|
+
} else {
|
|
473
|
+
toggle_popover(_app_handle);
|
|
474
|
+
}
|
|
421
475
|
}
|
|
422
476
|
// `app.exit()` (tray Quit, Cmd+Q, OS shutdown) delivers
|
|
423
477
|
// `ExitRequested` first, then `Exit` unless prevented. A live
|
|
@@ -114,7 +114,19 @@ fn rotate_if_needed(path: &Path) {
|
|
|
114
114
|
|
|
115
115
|
fn append_line(path: &Path, line: &str) {
|
|
116
116
|
if let Ok(mut file) = OpenOptions::new().create(true).append(true).open(path) {
|
|
117
|
-
|
|
117
|
+
// One append syscall keeps direct diagnostics from interleaving with
|
|
118
|
+
// the webview/stdout log pump at the character level.
|
|
119
|
+
let record = format!("{} {line}\n", timestamp());
|
|
120
|
+
let _ = file.write_all(record.as_bytes());
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/// Write one native diagnostic directly to the persistent log. Unlike
|
|
125
|
+
/// `eprintln!`, this also works in debug-signed Alpha builds where stdout and
|
|
126
|
+
/// stderr intentionally remain attached to the launching terminal.
|
|
127
|
+
pub(crate) fn diagnostic(line: &str) {
|
|
128
|
+
if let Some(path) = log_path() {
|
|
129
|
+
append_line(&path, line);
|
|
118
130
|
}
|
|
119
131
|
}
|
|
120
132
|
|