Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
[workspace]
default-members = ["crates/cli"]
exclude = ["native/gitoxide-helper", "native/runtime-host-peer", "native/runtime-host-windows-task-launcher", "experiments/windows-sandbox/launcher"]
members = ["crates/jev", "crates/session-import", "crates/insights", "crates/sandbox", "crates/web", "crates/workhub", "crates/assistant", "crates/scheduler", "crates/graph", "crates/plugins", "crates/skills", "crates/apply-patch", "crates/cli", "crates/runtime", "crates/event-log", "crates/js-runtime", "crates/runtime-host", "crates/protocol", "crates/model", "crates/responses", "crates/providers", "crates/transport", "crates/agent", "crates/config", "crates/presentation", "crates/tools", "crates/tool-catalog", "crates/fs-tools", "crates/process", "crates/client-capability", "crates/network"]
members = ["crates/session-recap", "crates/jev", "crates/session-import", "crates/insights", "crates/sandbox", "crates/web", "crates/workhub", "crates/assistant", "crates/scheduler", "crates/graph", "crates/plugins", "crates/skills", "crates/apply-patch", "crates/cli", "crates/runtime", "crates/event-log", "crates/js-runtime", "crates/runtime-host", "crates/protocol", "crates/model", "crates/responses", "crates/providers", "crates/transport", "crates/agent", "crates/config", "crates/presentation", "crates/tools", "crates/tool-catalog", "crates/fs-tools", "crates/process", "crates/client-capability", "crates/network"]
resolver = "3"

[workspace.package]
Expand All @@ -44,6 +44,7 @@ maka-tui = { path = "crates/tui" }
ratatui = { version = "0.30.2", default-features = false, features = ["crossterm"] }
crossterm = { version = "0.29.0", features = ["event-stream"] }
maka-sandbox = { path = "crates/sandbox" }
maka-session-recap = { path = "crates/session-recap" }
maka-jev = { path = "crates/jev" }
maka-web = { path = "crates/web" }
maka-assistant = { path = "crates/assistant" }
Expand Down
1 change: 1 addition & 0 deletions crates/cli/DEPENDENCIES.rust.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ maka-runtime-host@0.2.0 X
maka-sandbox@0.2.0 X
maka-scheduler@0.2.0 X
maka-session-import@0.2.0 X
maka-session-recap@0.2.0 X
maka-skills@0.2.0 X
maka-tool-catalog@0.2.0 X
maka-tools@0.2.0 X
Expand Down
1 change: 1 addition & 0 deletions crates/runtime-host/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ maka-graph.workspace = true
maka-scheduler.workspace = true
jiff = "0.2.37"
maka-skills.workspace = true
maka-session-recap.workspace = true
maka-jev.workspace = true
maka-web.workspace = true
maka-insights.workspace = true
Expand Down
1 change: 1 addition & 0 deletions crates/runtime-host/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fn main() {
"../skills/src/client",
"../skills/src/client.tsx",
"../jev/src/client.tsx",
"../session-recap/src/client.tsx",
"../web/src/client.tsx",
"../insights/src/client.tsx",
"../insights/src/client",
Expand Down
1 change: 1 addition & 0 deletions crates/runtime-host/src/plugins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ pub(crate) mod recall;
pub(crate) mod remote;
pub(crate) mod scheduler;
pub(crate) mod session_import;
pub(crate) mod session_recap;
pub(crate) mod skills;
pub(crate) mod storage;
mod terminal;
Expand Down
75 changes: 75 additions & 0 deletions crates/runtime-host/src/plugins/session_recap.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

use super::Setup;
use maka_plugins::{
composition::{Entry, Operation, Scope},
kernel::Definition,
};
use maka_session_recap::plugin::{Builtin, ID};
use std::sync::Arc;

pub(crate) fn install(setup: &mut Setup) -> Result<(), maka_plugins::Error> {
if setup.builtins.contains_key(ID) || setup.layers.contains_key(ID) {
return Err(maka_plugins::Error::Invalid(
"built-in Jev identity is reserved".into(),
));
}
setup.builtins.insert(
ID.into(),
Arc::new(Definition {
id: ID.into(),
revision: env!("CARGO_PKG_VERSION").into(),
dependencies: vec![],
inject: vec![],
plugin: Arc::new(Builtin {
client: Some(maka_plugins::client::Bundle::builtin(
ID,
env!("CARGO_PKG_VERSION"),
include_str!(concat!(env!("OUT_DIR"), "/session-recap-client.js")),
)?),
}),
}),
);
let mut entry = Entry::new(ID)?;
entry.package_id = Some(ID.into());
let mut client = Entry::new("maka.session-recap.ui")?;
client.package_id = Some(ID.into());
client.inject = maka_plugins::composition::Injection::Names(vec![
maka_session_recap::plugin::client_service(ID),
]);
setup.layers.insert(
ID.into(),
vec![
Operation::Insert {
root_id: Some(Scope::Profile),
parent_id: None,
position: None,
entry,
},
Operation::Insert {
root_id: Some(Scope::DesktopUi),
parent_id: None,
position: None,
entry: client,
},
],
);
Ok(())
}
1 change: 1 addition & 0 deletions crates/runtime-host/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ impl Host {
}
crate::plugins::skills::install(&mut setup)?;
crate::plugins::jev::install(&mut setup)?;
crate::plugins::session_recap::install(&mut setup)?;
crate::plugins::web::install(&mut setup)?;
crate::plugins::insights::install(&mut setup)?;
crate::plugins::session_import::install(&mut setup)?;
Expand Down
1 change: 1 addition & 0 deletions crates/runtime-host/tests/integration/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ mod retirement;
mod runtime_policy;
mod scheduler_plugin;
mod session_history;
mod session_recap_plugin;
mod session_removal;
mod skills_management;
mod skills_plugin;
Expand Down
Loading