clideck 1.31.20 → 1.31.21
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/package.json +1 -1
- package/public/js/app.js +2 -2
- package/public/js/creator.js +2 -3
- package/session-ask.js +1 -1
package/package.json
CHANGED
package/public/js/app.js
CHANGED
|
@@ -236,7 +236,7 @@ function connect() {
|
|
|
236
236
|
break;
|
|
237
237
|
}
|
|
238
238
|
case 'telemetry.autosetup.result': {
|
|
239
|
-
const toast = document.querySelector(msg.commandId ?
|
|
239
|
+
const toast = document.querySelector(msg.commandId ? `.telemetry-setup-toast[data-command-id="${msg.commandId}"]` : `.telemetry-setup-toast[data-setup-preset="${msg.presetId}"]`);
|
|
240
240
|
if (!toast) break;
|
|
241
241
|
const actionsEl = toast.querySelector('.setup-actions');
|
|
242
242
|
if (msg.success) {
|
|
@@ -554,7 +554,7 @@ function showTelemetrySetup(commandId, sessionId) {
|
|
|
554
554
|
toast.dataset.setupPreset = preset.presetId;
|
|
555
555
|
if (sessionId) toast.dataset.sessionId = sessionId;
|
|
556
556
|
toast.dataset.commandId = commandId;
|
|
557
|
-
toast.className = 'fixed bottom-5 right-5 z-[500] w-[360px] bg-slate-800/95 backdrop-blur-sm border border-slate-700/60 rounded-xl shadow-2xl shadow-black/60';
|
|
557
|
+
toast.className = 'telemetry-setup-toast fixed bottom-5 right-5 z-[500] w-[360px] bg-slate-800/95 backdrop-blur-sm border border-slate-700/60 rounded-xl shadow-2xl shadow-black/60';
|
|
558
558
|
toast.style.opacity = '0';
|
|
559
559
|
toast.style.transform = 'translateY(12px)';
|
|
560
560
|
toast.style.transition = 'opacity 0.3s ease, transform 0.3s ease';
|
package/public/js/creator.js
CHANGED
|
@@ -213,17 +213,16 @@ export function openCreator() {
|
|
|
213
213
|
card.id = 'session-creator';
|
|
214
214
|
card.className = 'p-3 border-b border-slate-700/50 bg-slate-800/30';
|
|
215
215
|
card.innerHTML = `
|
|
216
|
-
${(state.cfg.projects?.length) ? `
|
|
217
216
|
<div class="text-[10px] font-semibold uppercase tracking-wider text-slate-500 mb-1.5">Select project</div>
|
|
218
217
|
<input type="hidden" id="creator-project" value="">
|
|
219
218
|
<button type="button" id="creator-project-trigger" class="w-full px-3 py-1.5 text-xs bg-slate-900 border border-slate-700 rounded-md text-slate-400 text-left flex items-center justify-between outline-none hover:border-slate-500 transition-colors cursor-pointer mb-2">
|
|
220
219
|
<span id="creator-project-label">Select project</span>
|
|
221
220
|
<span class="text-slate-600 ml-2">▾</span>
|
|
222
|
-
</button
|
|
221
|
+
</button>
|
|
223
222
|
<div class="text-[10px] font-semibold uppercase tracking-wider text-slate-500 mb-1.5">Session name</div>
|
|
224
223
|
<input id="creator-name" type="text" maxlength="35" placeholder="Session name"
|
|
225
224
|
class="w-full px-3 py-2 text-sm bg-slate-900 border border-slate-700 rounded-md text-slate-200 placeholder-slate-500 outline-none focus:border-blue-500 transition-colors mb-2">
|
|
226
|
-
<div id="creator-cwd-wrap" class="flex items-center gap-1.5 mb-2
|
|
225
|
+
<div id="creator-cwd-wrap" class="flex items-center gap-1.5 mb-2 hidden">
|
|
227
226
|
<input id="creator-cwd" type="text" value="${esc(defaultPath)}" placeholder="Working directory"
|
|
228
227
|
class="flex-1 px-3 py-1.5 text-xs bg-slate-900 border border-slate-700 rounded-md text-slate-400 placeholder-slate-600 outline-none focus:border-blue-500 transition-colors font-mono">
|
|
229
228
|
<button id="creator-browse" class="flex-shrink-0 w-7 h-7 flex items-center justify-center rounded-md border border-slate-700 text-slate-500 hover:text-slate-300 hover:bg-slate-700 transition-colors" title="Browse">
|
package/session-ask.js
CHANGED
|
@@ -202,7 +202,7 @@ async function askSession(payload, sessionsApi, cfg = {}) {
|
|
|
202
202
|
|
|
203
203
|
const [targetId, target] = findTarget(sessions, callerId, caller, payload.target, cfg);
|
|
204
204
|
if (target.working) {
|
|
205
|
-
throw jsonError(`Target
|
|
205
|
+
throw jsonError(`Target agent "${target.name}" is busy right now. CliDeck ask only sends to idle agents and does not queue requests because the context can become stale. If you need this specific agent, try again later or set a reminder to retry. You can also ask another idle agent.`, 409);
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
const message = String(payload.message || '').trim();
|