@kl-c/matrixos 0.3.31 → 0.3.32

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/cli/index.js CHANGED
@@ -2163,7 +2163,7 @@ var package_default;
2163
2163
  var init_package = __esm(() => {
2164
2164
  package_default = {
2165
2165
  name: "@kl-c/matrixos",
2166
- version: "0.3.31",
2166
+ version: "0.3.32",
2167
2167
  description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
2168
2168
  main: "./dist/index.js",
2169
2169
  types: "dist/index.d.ts",
@@ -2163,7 +2163,7 @@ var package_default;
2163
2163
  var init_package = __esm(() => {
2164
2164
  package_default = {
2165
2165
  name: "@kl-c/matrixos",
2166
- version: "0.3.31",
2166
+ version: "0.3.32",
2167
2167
  description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
2168
2168
  main: "./dist/index.js",
2169
2169
  types: "dist/index.d.ts",
@@ -204,7 +204,7 @@ function renderKanban(){
204
204
  </div>`+
205
205
  KANBAN_STATUSES.map(status=>{
206
206
  const tasks=cols[status]||[]
207
- return `<div class="kanban-col" data-status="${status}" ondragover="onKanbanDragOver(event)" ondrop="onKanbanDrop(event,'${status}')">
207
+ return `<div class="kanban-col" data-status="${status}" ondragover="onKanbanDragOver(event)" ondragleave="onKanbanDragLeave(event)" ondrop="onKanbanDrop(event)">
208
208
  <div class="kanban-header"><span>${KANBAN_LABELS[status]}</span><span class="kanban-count">${tasks.length}</span></div>
209
209
  <div class="kanban-body">${
210
210
  tasks.length?tasks.map(t=>`<div class="kanban-card" draggable="true" ondragstart="onKanbanDragStart(event,'${t.id}')" ondblclick="openKanbanModal('${t.id}')">
@@ -221,9 +221,21 @@ function escapeHtml(s){return (s||'').replace(/[&<>"']/g,c=>({'&':'&amp;','<':'&
221
221
 
222
222
  let dragTaskId=null
223
223
  function onKanbanDragStart(e,id){dragTaskId=id;e.dataTransfer.setData('text/plain',id)}
224
- function onKanbanDragOver(e){e.preventDefault()}
225
- async function onKanbanDrop(e,status){
224
+ function onKanbanDragOver(e){
225
+ // Allow drop anywhere inside a column (including on cards)
226
+ const col=e.target.closest('[data-status]')
227
+ if(col){e.preventDefault();col.classList.add('drag-over')}
228
+ }
229
+ function onKanbanDragLeave(e){
230
+ const col=e.target.closest('[data-status]')
231
+ if(col)col.classList.remove('drag-over')
232
+ }
233
+ async function onKanbanDrop(e){
234
+ const col=e.target.closest('[data-status]')
235
+ if(!col)return
226
236
  e.preventDefault()
237
+ col.classList.remove('drag-over')
238
+ const status=col.getAttribute('data-status')
227
239
  if(!dragTaskId)return
228
240
  const id=dragTaskId;dragTaskId=null
229
241
  const task=findKanbanTask(id)
package/dist/index.js CHANGED
@@ -368019,7 +368019,7 @@ function getCachedVersion(options = {}) {
368019
368019
  // package.json
368020
368020
  var package_default = {
368021
368021
  name: "@kl-c/matrixos",
368022
- version: "0.3.31",
368022
+ version: "0.3.32",
368023
368023
  description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
368024
368024
  main: "./dist/index.js",
368025
368025
  types: "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kl-c/matrixos",
3
- "version": "0.3.31",
3
+ "version": "0.3.32",
4
4
  "description": "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "dist/index.d.ts",