@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/entry.js
CHANGED
|
@@ -10228,18 +10228,55 @@ function createMessageDispatcher(opts) {
|
|
|
10228
10228
|
send(ws, { type: "pong", payload: {} });
|
|
10229
10229
|
break;
|
|
10230
10230
|
case "tools.list": {
|
|
10231
|
-
const
|
|
10232
|
-
|
|
10231
|
+
const entries = [...deps2.toolRegistry.listWithOwner(), ...deps2.toolRegistry.listDisabled()];
|
|
10232
|
+
const list = entries.map(({ tool, owner }) => {
|
|
10233
|
+
const schema = tool.inputSchema ?? {};
|
|
10233
10234
|
const params = schema.properties ? Object.keys(schema.properties) : [];
|
|
10234
10235
|
return {
|
|
10235
|
-
name:
|
|
10236
|
-
|
|
10237
|
-
|
|
10236
|
+
name: tool.name,
|
|
10237
|
+
owner,
|
|
10238
|
+
description: tool.description ?? "",
|
|
10239
|
+
params,
|
|
10240
|
+
disabled: deps2.toolRegistry.isDisabled(tool.name),
|
|
10241
|
+
mutating: tool.mutating,
|
|
10242
|
+
permission: tool.permission
|
|
10238
10243
|
};
|
|
10239
10244
|
});
|
|
10240
10245
|
send(ws, { type: "tools.list", payload: { tools: list } });
|
|
10241
10246
|
break;
|
|
10242
10247
|
}
|
|
10248
|
+
case "tool.disable": {
|
|
10249
|
+
const name2 = (msg.payload ?? {}).name;
|
|
10250
|
+
if (!name2) {
|
|
10251
|
+
send(ws, { type: "error", payload: { message: "tool.disable requires a name" } });
|
|
10252
|
+
break;
|
|
10253
|
+
}
|
|
10254
|
+
const ok2 = deps2.toolRegistry.disable(name2);
|
|
10255
|
+
const currentCfg = deps2.configStore.get().tools ?? {};
|
|
10256
|
+
const currentDisabled = currentCfg.disabledTools ?? [];
|
|
10257
|
+
if (ok2 && !currentDisabled.includes(name2)) {
|
|
10258
|
+
deps2.configStore.update({ tools: { ...currentCfg, disabledTools: [...currentDisabled, name2] } });
|
|
10259
|
+
}
|
|
10260
|
+
send(ws, { type: "tool.disabled", payload: { name: name2, ok: ok2 } });
|
|
10261
|
+
break;
|
|
10262
|
+
}
|
|
10263
|
+
case "tool.enable": {
|
|
10264
|
+
const name2 = (msg.payload ?? {}).name;
|
|
10265
|
+
if (!name2) {
|
|
10266
|
+
send(ws, { type: "error", payload: { message: "tool.enable requires a name" } });
|
|
10267
|
+
break;
|
|
10268
|
+
}
|
|
10269
|
+
const ok2 = deps2.toolRegistry.enable(name2);
|
|
10270
|
+
if (ok2) {
|
|
10271
|
+
const currentCfg = deps2.configStore.get().tools ?? {};
|
|
10272
|
+
const currentDisabled = currentCfg.disabledTools ?? [];
|
|
10273
|
+
deps2.configStore.update({
|
|
10274
|
+
tools: { ...currentCfg, disabledTools: currentDisabled.filter((n) => n !== name2) }
|
|
10275
|
+
});
|
|
10276
|
+
}
|
|
10277
|
+
send(ws, { type: "tool.enabled", payload: { name: name2, ok: ok2 } });
|
|
10278
|
+
break;
|
|
10279
|
+
}
|
|
10243
10280
|
// ── Memory operations — delegated to shared handlers (memory-handlers.ts) ──
|
|
10244
10281
|
case "memory.list":
|
|
10245
10282
|
return handleMemoryList(ws, deps2.memoryStore);
|