MCPcopy
hub / github.com/codeaashu/claude-code / create

Function create

web/lib/api/conversations.ts:56–68  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

54 },
55
56 async create(opts) {
57 const store = getStore();
58 const id = store.getState().createConversation();
59
60 if (opts?.title || opts?.model) {
61 store.getState().updateConversation(id, {
62 ...(opts.title ? { title: opts.title } : {}),
63 ...(opts.model ? { model: opts.model } : {}),
64 });
65 }
66
67 return findConversation(id);
68 },
69
70 async update(id, updates) {
71 findConversation(id); // throws 404 if missing

Callers 3

store.tsFile · 0.50
notifications.tsFile · 0.50
fileViewerStore.tsFile · 0.50

Calls 2

findConversationFunction · 0.85
getStoreFunction · 0.70

Tested by

no test coverage detected