tide-commander 1.40.2 → 1.40.3
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/{BossLogsModal-CaDrNfm1.js → BossLogsModal-5ehRTeGs.js} +1 -1
- package/dist/assets/{BossSpawnModal-DLJInoVf.js → BossSpawnModal-DibwTCub.js} +1 -1
- package/dist/assets/{ControlsModal-Cnnhwfr_.js → ControlsModal-Bd5SZVzZ.js} +1 -1
- package/dist/assets/{DockerLogsModal-D4CbWK3-.js → DockerLogsModal-DWzJq-fY.js} +1 -1
- package/dist/assets/{EmbeddedEditor-36YBGNE2.js → EmbeddedEditor-D0Yo-o66.js} +1 -1
- package/dist/assets/{GmailOAuthSetup-DI5j7wkF.js → GmailOAuthSetup-CdX36hAm.js} +1 -1
- package/dist/assets/{GoogleOAuthSetup-Bsj02mND.js → GoogleOAuthSetup-B3zA-0E7.js} +1 -1
- package/dist/assets/{IframeModal-BJ4oeDBn.js → IframeModal-Cz8quXPm.js} +1 -1
- package/dist/assets/{IntegrationsPanel-DLmIJEUy.js → IntegrationsPanel-C1ktSqvl.js} +2 -2
- package/dist/assets/{LogViewerModal-D7CXMmZf.js → LogViewerModal-De8tLix0.js} +1 -1
- package/dist/assets/{MonitoringModal-PnEKvezF.js → MonitoringModal-DOaMyrjA.js} +1 -1
- package/dist/assets/{PM2LogsModal-EB_Au0iK.js → PM2LogsModal-D-Gq8l2H.js} +1 -1
- package/dist/assets/{RestoreArchivedAreaModal-C-X90Qxe.js → RestoreArchivedAreaModal-COSiM8Fi.js} +1 -1
- package/dist/assets/{SaveSnapshotModal-D6XAjL2T.js → SaveSnapshotModal-DxwK-i0L.js} +1 -1
- package/dist/assets/{Scene2DCanvas-DlVguRVM.js → Scene2DCanvas-4ByVcSoi.js} +1 -1
- package/dist/assets/{SceneManager-OOaJ_z8v.js → SceneManager-7WDKGyPC.js} +1 -1
- package/dist/assets/{SkillsPanel-D5wo2MHh.js → SkillsPanel-1Msh9dAe.js} +1 -1
- package/dist/assets/{SnapshotManager-BLjpctX_.js → SnapshotManager-DQ6jkxDW.js} +1 -1
- package/dist/assets/{SpawnModal-DQ4uUm1y.js → SpawnModal-CHALHOLz.js} +1 -1
- package/dist/assets/{SubordinateAssignmentModal-BDUDt6WC.js → SubordinateAssignmentModal-DBZsFe-S.js} +1 -1
- package/dist/assets/{SupervisorPanel-BZaBI9BA.js → SupervisorPanel-NYoLg7_B.js} +1 -1
- package/dist/assets/{TriggerManagerPanel-DuBiclsE.js → TriggerManagerPanel-CNhhmDvm.js} +1 -1
- package/dist/assets/{WorkflowEditorPanel-D49yDqth.js → WorkflowEditorPanel-BMpT0GGS.js} +1 -1
- package/dist/assets/{index-mQmnkGdF.js → index-BvYoT0dH.js} +1 -1
- package/dist/assets/{index-BxbFh16W.js → index-BzYz2FJi.js} +2 -2
- package/dist/assets/{index-BiGvhrCO.js → index-CDKrcnoB.js} +1 -1
- package/dist/assets/{index-BSl18-4e.js → index-CEZ1e3Of.js} +1 -1
- package/dist/assets/{index-DZ3f9mNd.js → index-CSOx3Jk0.js} +1 -1
- package/dist/assets/{index-Bxjd0N-j.js → index-CTINc_P-.js} +1 -1
- package/dist/assets/{index-DJdXbeWz.js → index-CqZxf78s.js} +3 -3
- package/dist/assets/{index-BwkNteiZ.js → index-DAOIgllP.js} +1 -1
- package/dist/assets/{main-DULfVodw.js → main-DSF4XPLl.js} +4 -4
- package/dist/assets/{web-DAqM9uoZ.js → web-2Scyvbzn.js} +1 -1
- package/dist/assets/{web-DQ10iSod.js → web-DXju9dHs.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/src/packages/server/cli.js +17 -1
- package/dist/src/packages/server/data/builtin-skills/boss-instructions.js +2 -2
- package/dist/src/packages/server/websocket/handlers/boss-response-handler.js +5 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bx as s}from"./main-
|
|
1
|
+
import{bx as s}from"./main-DSF4XPLl.js";import"./modulepreload-polyfill-B5Qt9EMX.js";import"./vendor-react--Eh9ivFN.js";import"./vendor-three-Chj50gSY.js";class f extends s{constructor(){super(...arguments),this.pending=[],this.deliveredNotifications=[],this.hasNotificationSupport=()=>{if(!("Notification"in window)||!Notification.requestPermission)return!1;if(Notification.permission!=="granted")try{new Notification("")}catch(i){if(i instanceof Error&&i.name==="TypeError")return!1}return!0}}async getDeliveredNotifications(){const i=[];for(const t of this.deliveredNotifications){const e={title:t.title,id:parseInt(t.tag),body:t.body};i.push(e)}return{notifications:i}}async removeDeliveredNotifications(i){for(const t of i.notifications){const e=this.deliveredNotifications.find(n=>n.tag===String(t.id));e==null||e.close(),this.deliveredNotifications=this.deliveredNotifications.filter(()=>!e)}}async removeAllDeliveredNotifications(){for(const i of this.deliveredNotifications)i.close();this.deliveredNotifications=[]}async createChannel(){throw this.unimplemented("Not implemented on web.")}async deleteChannel(){throw this.unimplemented("Not implemented on web.")}async listChannels(){throw this.unimplemented("Not implemented on web.")}async schedule(i){if(!this.hasNotificationSupport())throw this.unavailable("Notifications not supported in this browser.");for(const t of i.notifications)this.sendNotification(t);return{notifications:i.notifications.map(t=>({id:t.id}))}}async getPending(){return{notifications:this.pending}}async registerActionTypes(){throw this.unimplemented("Not implemented on web.")}async cancel(i){this.pending=this.pending.filter(t=>!i.notifications.find(e=>e.id===t.id))}async areEnabled(){const{display:i}=await this.checkPermissions();return{value:i==="granted"}}async changeExactNotificationSetting(){throw this.unimplemented("Not implemented on web.")}async checkExactNotificationSetting(){throw this.unimplemented("Not implemented on web.")}async requestPermissions(){if(!this.hasNotificationSupport())throw this.unavailable("Notifications not supported in this browser.");return{display:this.transformNotificationPermission(await Notification.requestPermission())}}async checkPermissions(){if(!this.hasNotificationSupport())throw this.unavailable("Notifications not supported in this browser.");return{display:this.transformNotificationPermission(Notification.permission)}}transformNotificationPermission(i){switch(i){case"granted":return"granted";case"denied":return"denied";default:return"prompt"}}sendPending(){var i;const t=[],e=new Date().getTime();for(const n of this.pending)!((i=n.schedule)===null||i===void 0)&&i.at&&n.schedule.at.getTime()<=e&&(this.buildNotification(n),t.push(n));this.pending=this.pending.filter(n=>!t.find(o=>o===n))}sendNotification(i){var t;if(!((t=i.schedule)===null||t===void 0)&&t.at){const e=i.schedule.at.getTime()-new Date().getTime();this.pending.push(i),setTimeout(()=>{this.sendPending()},e);return}this.buildNotification(i)}buildNotification(i){const t=new Notification(i.title,{body:i.body,tag:String(i.id)});return t.addEventListener("click",this.onClick.bind(this,i),!1),t.addEventListener("show",this.onShow.bind(this,i),!1),t.addEventListener("close",()=>{this.deliveredNotifications=this.deliveredNotifications.filter(()=>!this)},!1),this.deliveredNotifications.push(t),t}onClick(i){const t={actionId:"tap",notification:i};this.notifyListeners("localNotificationActionPerformed",t)}onShow(i){this.notifyListeners("localNotificationReceived",i)}}export{f as LocalNotificationsWeb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bx as a}from"./main-
|
|
1
|
+
import{bx as a}from"./main-DSF4XPLl.js";import{ImpactStyle as i,NotificationType as r}from"./index-BzYz2FJi.js";import"./modulepreload-polyfill-B5Qt9EMX.js";import"./vendor-react--Eh9ivFN.js";import"./vendor-three-Chj50gSY.js";class u extends a{constructor(){super(...arguments),this.selectionStarted=!1}async impact(t){const e=this.patternForImpact(t==null?void 0:t.style);this.vibrateWithPattern(e)}async notification(t){const e=this.patternForNotification(t==null?void 0:t.type);this.vibrateWithPattern(e)}async vibrate(t){const e=(t==null?void 0:t.duration)||300;this.vibrateWithPattern([e])}async selectionStart(){this.selectionStarted=!0}async selectionChanged(){this.selectionStarted&&this.vibrateWithPattern([70])}async selectionEnd(){this.selectionStarted=!1}patternForImpact(t=i.Heavy){return t===i.Medium?[43]:t===i.Light?[20]:[61]}patternForNotification(t=r.Success){return t===r.Warning?[30,40,30,50,60]:t===r.Error?[27,45,50]:[35,65,21]}vibrateWithPattern(t){if(navigator.vibrate)navigator.vibrate(t);else throw this.unavailable("Browser does not support the vibrate API")}}export{u as HapticsWeb};
|
package/dist/index.html
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<link rel="icon" type="image/png" sizes="16x16" href="/assets/icons/favicon-16x16.png" />
|
|
23
23
|
<link rel="apple-touch-icon" sizes="180x180" href="/assets/icons/apple-touch-icon.png" />
|
|
24
24
|
<title>Tide Commander</title>
|
|
25
|
-
<script type="module" crossorigin src="/assets/main-
|
|
25
|
+
<script type="module" crossorigin src="/assets/main-DSF4XPLl.js"></script>
|
|
26
26
|
<link rel="modulepreload" crossorigin href="/assets/modulepreload-polyfill-B5Qt9EMX.js">
|
|
27
27
|
<link rel="modulepreload" crossorigin href="/assets/vendor-react--Eh9ivFN.js">
|
|
28
28
|
<link rel="modulepreload" crossorigin href="/assets/vendor-three-Chj50gSY.js">
|
|
@@ -644,7 +644,23 @@ async function main() {
|
|
|
644
644
|
|| options.generateAuthToken === true
|
|
645
645
|
|| options.foreground === true;
|
|
646
646
|
if (existingPid && isRunning(existingPid)) {
|
|
647
|
-
if (
|
|
647
|
+
if (runInForeground) {
|
|
648
|
+
// In foreground mode (PM2 managed), the process manager handles lifecycle.
|
|
649
|
+
// The old process is already being killed by PM2 — just wait for it to exit
|
|
650
|
+
// and clear the stale PID file instead of trying to send another SIGTERM.
|
|
651
|
+
const stopped = await waitForProcessExit(existingPid);
|
|
652
|
+
if (!stopped) {
|
|
653
|
+
// Force kill as last resort — PM2's SIGTERM may not have been enough
|
|
654
|
+
try {
|
|
655
|
+
process.kill(existingPid, 'SIGKILL');
|
|
656
|
+
}
|
|
657
|
+
catch { }
|
|
658
|
+
await waitForProcessExit(existingPid, 3000);
|
|
659
|
+
}
|
|
660
|
+
clearPidFile();
|
|
661
|
+
clearServerMeta();
|
|
662
|
+
}
|
|
663
|
+
else if (hasStartupOverrides) {
|
|
648
664
|
try {
|
|
649
665
|
process.kill(existingPid, 'SIGTERM');
|
|
650
666
|
}
|
|
@@ -272,7 +272,7 @@ When the user asks to **plan**, **create a work plan**, or requests something co
|
|
|
272
272
|
{
|
|
273
273
|
"id": "task-1",
|
|
274
274
|
"description": "<What needs to be done>",
|
|
275
|
-
"suggestedClass": "
|
|
275
|
+
"suggestedClass": "<any valid agent class slug>",
|
|
276
276
|
"assignToAgent": "<agent id>",
|
|
277
277
|
"assignToAgentName": "<agent name>",
|
|
278
278
|
"priority": "high|medium|low",
|
|
@@ -468,5 +468,5 @@ You can ONLY spawn new agents when the user EXPLICITLY requests it.
|
|
|
468
468
|
[{"name": "<Agent Name>", "class": "<agent class>", "cwd": "<optional working directory>"}]
|
|
469
469
|
\\\`\\\`\\\`
|
|
470
470
|
|
|
471
|
-
Valid classes: scout, builder, debugger, architect, warrior, support
|
|
471
|
+
Valid classes: Any registered agent class in the system, including built-in classes (scout, builder, debugger, architect, warrior, support) and custom classes. Use the class slug (e.g. "growey", "espeon", "charming"). If the user requests a specific class, use that class name exactly as they specify it.`,
|
|
472
472
|
};
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* Boss Response Handler
|
|
3
3
|
* Parses delegation, spawn, work-plan, and analysis-request blocks from boss agent responses
|
|
4
4
|
*/
|
|
5
|
+
import { BUILT_IN_AGENT_CLASSES } from '../../../shared/agent-types.js';
|
|
5
6
|
import { agentService, runtimeService, bossService, workPlanService } from '../../services/index.js';
|
|
7
|
+
import { getAllCustomClasses } from '../../services/custom-class-service.js';
|
|
6
8
|
import { logger } from '../../utils/index.js';
|
|
7
9
|
import { getLastBossCommand, buildCustomAgentConfig } from './command-handler.js';
|
|
8
10
|
const log = logger.ws;
|
|
@@ -301,7 +303,9 @@ export async function parseBossSpawn(bossId, bossName, resultText, broadcast, se
|
|
|
301
303
|
log.log(` Parsed ${spawns.length} spawn request(s) from boss ${bossName}`);
|
|
302
304
|
const boss = agentService.getAgent(bossId);
|
|
303
305
|
const bossCwd = boss?.cwd || process.cwd();
|
|
304
|
-
const
|
|
306
|
+
const builtInClassIds = Object.keys(BUILT_IN_AGENT_CLASSES).filter(c => c !== 'boss');
|
|
307
|
+
const customClassIds = getAllCustomClasses().map(c => c.id);
|
|
308
|
+
const validClasses = [...builtInClassIds, ...customClassIds];
|
|
305
309
|
for (const spawnRequest of spawns) {
|
|
306
310
|
const { name, class: agentClass, cwd } = spawnRequest;
|
|
307
311
|
if (!name || !agentClass) {
|