@wrongstack/webui 0.282.1 → 0.282.2
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/dist/assets/{AnalyticsDashboard-TCNC-sVb.js → AnalyticsDashboard-CPLSpHzV.js} +1 -1
- package/dist/assets/{AutoPhaseView-BMUiT6aI.js → AutoPhaseView-HIzNPExo.js} +1 -1
- package/dist/assets/{CodeEditor-C0si742k.js → CodeEditor-dOQDoCfn.js} +1 -1
- package/dist/assets/{DebugDashboard-BHpiEOcf.js → DebugDashboard-CQCI-B4W.js} +1 -1
- package/dist/assets/{DesignGalleryView-BfZTw48N.js → DesignGalleryView-BxTlrmrr.js} +1 -1
- package/dist/assets/{KanbanView-C4T4y0b7.js → KanbanView-2uDRr6Qd.js} +1 -1
- package/dist/assets/{MailboxDetailView-DJtjP0NF.js → MailboxDetailView-B0DCs5lu.js} +1 -1
- package/dist/assets/OfficeMapPanel-lGSaptet.js +4 -0
- package/dist/assets/{ProcessMonitor-D53zn0h4.js → ProcessMonitor-eTb8_-ZW.js} +1 -1
- package/dist/assets/{QueuePanel-DTO68vaB.js → QueuePanel-TbbkNAx_.js} +1 -1
- package/dist/assets/{RefreshDebugView-BXq2P3wo.js → RefreshDebugView-CX6x-xHs.js} +1 -1
- package/dist/assets/SddBoardView-BXQsH6fr.js +2 -0
- package/dist/assets/{SddFlowGraph-CtMpzU4S.js → SddFlowGraph-DTWV-DPB.js} +1 -1
- package/dist/assets/SddWizard-1ZhDgcgM.js +1 -0
- package/dist/assets/{SessionsDashboard-Dqsrp5CK.js → SessionsDashboard-CfNbqjeh.js} +1 -1
- package/dist/assets/SkillDetailView-UzixISza.js +2 -0
- package/dist/assets/{SpecsView-Cwd6PiYr.js → SpecsView-BO8yG6ID.js} +1 -1
- package/dist/assets/{TerminalPanel-Bzyhr2aC.js → TerminalPanel-Bjbu9ktV.js} +1 -1
- package/dist/assets/{chat-store-CIMOL6-x.js → chat-store-7ekEnPAf.js} +1 -1
- package/dist/assets/{i18n-CNo6A2vu.js → i18n-BCQuDmQo.js} +2 -2
- package/dist/assets/index-Cb-hw9qG.js +147 -0
- package/dist/assets/index-ZtF5f7wy.css +1 -0
- package/dist/assets/{session-store-DN1UYDL9.js → session-store-KCJiKVqL.js} +1 -1
- package/dist/assets/settings-wb322bGN.js +1 -0
- package/dist/assets/{ui-store-BdOsq6T-.js → ui-store-CcznRsiV.js} +1 -1
- package/dist/assets/utils-C3qJEm2b.js +1 -0
- package/dist/assets/{vendor-Ch4m_qLI.js → vendor-Cm3Womkr.js} +25 -25
- package/dist/assets/{ws-client-BAV7SLzK.js → ws-client-9j1mjm9I.js} +1 -1
- package/dist/assets/{xyflow-D5_yey7w.js → xyflow-Dy5Edi88.js} +3 -3
- package/dist/index.html +10 -10
- package/dist/index.js +4040 -3685
- package/dist/index.js.map +1 -1
- package/dist/server/entry.js +42 -5
- package/dist/server/entry.js.map +1 -1
- package/dist/server/index.js +42 -5
- package/dist/server/index.js.map +1 -1
- package/dist/types.d.ts +28 -0
- package/package.json +6 -6
- package/dist/assets/OfficeMapPanel-CgvHvGQm.js +0 -4
- package/dist/assets/SddBoardView-C8X4MiTy.js +0 -2
- package/dist/assets/SddWizard-t5Cly3CG.js +0 -1
- package/dist/assets/SkillDetailView-Dq-fTqSp.js +0 -2
- package/dist/assets/index-CWj2bI87.js +0 -145
- package/dist/assets/index-D7_FeyCA.css +0 -1
- package/dist/assets/settings-CGhOOFpI.js +0 -1
- package/dist/assets/utils-DBns3uMk.js +0 -1
package/dist/server/index.js
CHANGED
|
@@ -10232,18 +10232,55 @@ function createMessageDispatcher(opts) {
|
|
|
10232
10232
|
send(ws, { type: "pong", payload: {} });
|
|
10233
10233
|
break;
|
|
10234
10234
|
case "tools.list": {
|
|
10235
|
-
const
|
|
10236
|
-
|
|
10235
|
+
const entries = [...deps2.toolRegistry.listWithOwner(), ...deps2.toolRegistry.listDisabled()];
|
|
10236
|
+
const list = entries.map(({ tool, owner }) => {
|
|
10237
|
+
const schema = tool.inputSchema ?? {};
|
|
10237
10238
|
const params = schema.properties ? Object.keys(schema.properties) : [];
|
|
10238
10239
|
return {
|
|
10239
|
-
name:
|
|
10240
|
-
|
|
10241
|
-
|
|
10240
|
+
name: tool.name,
|
|
10241
|
+
owner,
|
|
10242
|
+
description: tool.description ?? "",
|
|
10243
|
+
params,
|
|
10244
|
+
disabled: deps2.toolRegistry.isDisabled(tool.name),
|
|
10245
|
+
mutating: tool.mutating,
|
|
10246
|
+
permission: tool.permission
|
|
10242
10247
|
};
|
|
10243
10248
|
});
|
|
10244
10249
|
send(ws, { type: "tools.list", payload: { tools: list } });
|
|
10245
10250
|
break;
|
|
10246
10251
|
}
|
|
10252
|
+
case "tool.disable": {
|
|
10253
|
+
const name2 = (msg.payload ?? {}).name;
|
|
10254
|
+
if (!name2) {
|
|
10255
|
+
send(ws, { type: "error", payload: { message: "tool.disable requires a name" } });
|
|
10256
|
+
break;
|
|
10257
|
+
}
|
|
10258
|
+
const ok2 = deps2.toolRegistry.disable(name2);
|
|
10259
|
+
const currentCfg = deps2.configStore.get().tools ?? {};
|
|
10260
|
+
const currentDisabled = currentCfg.disabledTools ?? [];
|
|
10261
|
+
if (ok2 && !currentDisabled.includes(name2)) {
|
|
10262
|
+
deps2.configStore.update({ tools: { ...currentCfg, disabledTools: [...currentDisabled, name2] } });
|
|
10263
|
+
}
|
|
10264
|
+
send(ws, { type: "tool.disabled", payload: { name: name2, ok: ok2 } });
|
|
10265
|
+
break;
|
|
10266
|
+
}
|
|
10267
|
+
case "tool.enable": {
|
|
10268
|
+
const name2 = (msg.payload ?? {}).name;
|
|
10269
|
+
if (!name2) {
|
|
10270
|
+
send(ws, { type: "error", payload: { message: "tool.enable requires a name" } });
|
|
10271
|
+
break;
|
|
10272
|
+
}
|
|
10273
|
+
const ok2 = deps2.toolRegistry.enable(name2);
|
|
10274
|
+
if (ok2) {
|
|
10275
|
+
const currentCfg = deps2.configStore.get().tools ?? {};
|
|
10276
|
+
const currentDisabled = currentCfg.disabledTools ?? [];
|
|
10277
|
+
deps2.configStore.update({
|
|
10278
|
+
tools: { ...currentCfg, disabledTools: currentDisabled.filter((n) => n !== name2) }
|
|
10279
|
+
});
|
|
10280
|
+
}
|
|
10281
|
+
send(ws, { type: "tool.enabled", payload: { name: name2, ok: ok2 } });
|
|
10282
|
+
break;
|
|
10283
|
+
}
|
|
10247
10284
|
// ── Memory operations — delegated to shared handlers (memory-handlers.ts) ──
|
|
10248
10285
|
case "memory.list":
|
|
10249
10286
|
return handleMemoryList(ws, deps2.memoryStore);
|