MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / handleCreateNew

Function handleCreateNew

frontend/builder/app-selection-modal.tsx:149–160  ·  view source on GitHub ↗
(appName: string)

Source from the content-addressed store, hash-verified

147 };
148
149 const handleCreateNew = async (appName: string) => {
150 const draftAppId = `draft/${appName}`;
151 const builderId = globalStore.get(atoms.builderId);
152 const oref = WOS.makeORef("builder", builderId);
153 await RpcApi.SetRTInfoCommand(TabRpcClient, {
154 oref,
155 data: { "builder:appid": draftAppId },
156 });
157 globalStore.set(atoms.builderAppId, draftAppId);
158 document.title = `WaveApp Builder (${draftAppId})`;
159 getApi().setBuilderWindowAppId(draftAppId);
160 };
161
162 const isDraftApp = (appId: string) => {
163 return appId.startsWith("draft/");

Callers

nothing calls this directly

Calls 4

getApiFunction · 0.90
getMethod · 0.80
setMethod · 0.80
SetRTInfoCommandMethod · 0.65

Tested by

no test coverage detected