MCPcopy Index your code
hub / github.com/AI45Lab/Code / session

Method session

sdk/node/src/lib.rs:2844–2857  ·  view source on GitHub ↗
(
        &self,
        workspace: String,
        options: Option<SessionOptions>,
    )

Source from the content-addressed store, hash-verified

2842 /// @param options - Optional session overrides
2843 #[napi]
2844 pub fn session(
2845 &self,
2846 workspace: String,
2847 options: Option<SessionOptions>,
2848 ) -> napi::Result<Session> {
2849 let rust_opts = js_session_options_to_rust(options)?;
2850 let session = self
2851 .inner
2852 .session(workspace, Some(rust_opts))
2853 .map_err(|e| napi::Error::from_reason(format!("{e}")))?;
2854 Ok(Session {
2855 inner: Arc::new(session),
2856 })
2857 }
2858
2859 /// Resume a previously saved session by ID.
2860 ///

Callers 15

test.mjsFile · 0.45
makeSessionFunction · 0.45
runFunction · 0.45
onceFunction · 0.45
build_test_sessionFunction · 0.45
mainFunction · 0.45
runAllMethod · 0.45
testDefaultSearchMethod · 0.45

Calls 1

Tested by 10

mainFunction · 0.36
make_monitored_sessionFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
test_basic_chartFunction · 0.36
test_data_file_chartFunction · 0.36
test_multiple_chartsFunction · 0.36
test_explicit_skill_callFunction · 0.36
mainFunction · 0.36