@kl-c/matrixos 0.3.36 → 0.3.37
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.
|
|
2166
|
+
version: "0.3.37",
|
|
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",
|
|
@@ -186946,6 +186946,7 @@ function ensureKanbanTable(db) {
|
|
|
186946
186946
|
id TEXT PRIMARY KEY,
|
|
186947
186947
|
title TEXT NOT NULL,
|
|
186948
186948
|
description TEXT NOT NULL DEFAULT '',
|
|
186949
|
+
output TEXT NOT NULL DEFAULT '',
|
|
186949
186950
|
agent TEXT NOT NULL DEFAULT 'Unknown',
|
|
186950
186951
|
status TEXT NOT NULL DEFAULT 'pending',
|
|
186951
186952
|
priority TEXT NOT NULL DEFAULT 'medium',
|
|
@@ -186958,6 +186959,11 @@ function ensureKanbanTable(db) {
|
|
|
186958
186959
|
} catch {
|
|
186959
186960
|
db.exec("ALTER TABLE matrixos_kanban ADD COLUMN description TEXT NOT NULL DEFAULT ''");
|
|
186960
186961
|
}
|
|
186962
|
+
try {
|
|
186963
|
+
db.query("SELECT output FROM matrixos_kanban LIMIT 1").all();
|
|
186964
|
+
} catch {
|
|
186965
|
+
db.exec("ALTER TABLE matrixos_kanban ADD COLUMN output TEXT NOT NULL DEFAULT ''");
|
|
186966
|
+
}
|
|
186961
186967
|
}
|
|
186962
186968
|
function midnightMs() {
|
|
186963
186969
|
const d = new Date;
|
|
@@ -187226,7 +187232,7 @@ function createDataProvider(config5) {
|
|
|
187226
187232
|
return board;
|
|
187227
187233
|
try {
|
|
187228
187234
|
ensureKanbanTable(db);
|
|
187229
|
-
const rows = db.query("SELECT id, title, description, agent, status, priority, created_at, updated_at FROM matrixos_kanban ORDER BY updated_at DESC").all();
|
|
187235
|
+
const rows = db.query("SELECT id, title, description, output, agent, status, priority, created_at, updated_at FROM matrixos_kanban ORDER BY updated_at DESC").all();
|
|
187230
187236
|
for (const row of rows) {
|
|
187231
187237
|
const status2 = row.status;
|
|
187232
187238
|
if (!board.columns[status2])
|
|
@@ -187235,6 +187241,7 @@ function createDataProvider(config5) {
|
|
|
187235
187241
|
id: row.id,
|
|
187236
187242
|
title: row.title,
|
|
187237
187243
|
description: row.description || "",
|
|
187244
|
+
output: row.output || "",
|
|
187238
187245
|
agent: row.agent || "Unknown",
|
|
187239
187246
|
priority: row.priority ?? "medium",
|
|
187240
187247
|
status: status2,
|
|
@@ -187335,7 +187342,7 @@ ${row.description ? `Description: ${row.description}
|
|
|
187335
187342
|
const combined = [output, errOutput].filter(Boolean).join(`
|
|
187336
187343
|
`).slice(0, 4000);
|
|
187337
187344
|
const finalStatus = result === 0 ? "completed" : "failed";
|
|
187338
|
-
db.query("UPDATE matrixos_kanban SET status = ?, updated_at = ? WHERE id = ?").run(finalStatus, Date.now(), id);
|
|
187345
|
+
db.query("UPDATE matrixos_kanban SET status = ?, output = ?, updated_at = ? WHERE id = ?").run(finalStatus, combined, Date.now(), id);
|
|
187339
187346
|
return { ok: true, status: finalStatus, output: combined };
|
|
187340
187347
|
} catch (e) {
|
|
187341
187348
|
try {
|
package/dist/cli-node/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.
|
|
2166
|
+
version: "0.3.37",
|
|
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",
|
|
@@ -187001,6 +187001,7 @@ function ensureKanbanTable(db) {
|
|
|
187001
187001
|
id TEXT PRIMARY KEY,
|
|
187002
187002
|
title TEXT NOT NULL,
|
|
187003
187003
|
description TEXT NOT NULL DEFAULT '',
|
|
187004
|
+
output TEXT NOT NULL DEFAULT '',
|
|
187004
187005
|
agent TEXT NOT NULL DEFAULT 'Unknown',
|
|
187005
187006
|
status TEXT NOT NULL DEFAULT 'pending',
|
|
187006
187007
|
priority TEXT NOT NULL DEFAULT 'medium',
|
|
@@ -187013,6 +187014,11 @@ function ensureKanbanTable(db) {
|
|
|
187013
187014
|
} catch {
|
|
187014
187015
|
db.exec("ALTER TABLE matrixos_kanban ADD COLUMN description TEXT NOT NULL DEFAULT ''");
|
|
187015
187016
|
}
|
|
187017
|
+
try {
|
|
187018
|
+
db.query("SELECT output FROM matrixos_kanban LIMIT 1").all();
|
|
187019
|
+
} catch {
|
|
187020
|
+
db.exec("ALTER TABLE matrixos_kanban ADD COLUMN output TEXT NOT NULL DEFAULT ''");
|
|
187021
|
+
}
|
|
187016
187022
|
}
|
|
187017
187023
|
function midnightMs() {
|
|
187018
187024
|
const d = new Date;
|
|
@@ -187281,7 +187287,7 @@ function createDataProvider(config5) {
|
|
|
187281
187287
|
return board;
|
|
187282
187288
|
try {
|
|
187283
187289
|
ensureKanbanTable(db);
|
|
187284
|
-
const rows = db.query("SELECT id, title, description, agent, status, priority, created_at, updated_at FROM matrixos_kanban ORDER BY updated_at DESC").all();
|
|
187290
|
+
const rows = db.query("SELECT id, title, description, output, agent, status, priority, created_at, updated_at FROM matrixos_kanban ORDER BY updated_at DESC").all();
|
|
187285
187291
|
for (const row of rows) {
|
|
187286
187292
|
const status2 = row.status;
|
|
187287
187293
|
if (!board.columns[status2])
|
|
@@ -187290,6 +187296,7 @@ function createDataProvider(config5) {
|
|
|
187290
187296
|
id: row.id,
|
|
187291
187297
|
title: row.title,
|
|
187292
187298
|
description: row.description || "",
|
|
187299
|
+
output: row.output || "",
|
|
187293
187300
|
agent: row.agent || "Unknown",
|
|
187294
187301
|
priority: row.priority ?? "medium",
|
|
187295
187302
|
status: status2,
|
|
@@ -187390,7 +187397,7 @@ ${row.description ? `Description: ${row.description}
|
|
|
187390
187397
|
const combined = [output, errOutput].filter(Boolean).join(`
|
|
187391
187398
|
`).slice(0, 4000);
|
|
187392
187399
|
const finalStatus = result === 0 ? "completed" : "failed";
|
|
187393
|
-
db.query("UPDATE matrixos_kanban SET status = ?, updated_at = ? WHERE id = ?").run(finalStatus, Date.now(), id);
|
|
187400
|
+
db.query("UPDATE matrixos_kanban SET status = ?, output = ?, updated_at = ? WHERE id = ?").run(finalStatus, combined, Date.now(), id);
|
|
187394
187401
|
return { ok: true, status: finalStatus, output: combined };
|
|
187395
187402
|
} catch (e) {
|
|
187396
187403
|
try {
|
|
@@ -248,6 +248,8 @@ body{font-family:var(--font-body);font-size:var(--text-base);color:var(--text-pr
|
|
|
248
248
|
.kanban-run:hover{opacity:.85}
|
|
249
249
|
.kanban-run:disabled{opacity:.4;cursor:not-allowed}
|
|
250
250
|
.kanban-card.running{border:1px solid var(--success);box-shadow:0 0 8px rgba(59,203,137,.2)}
|
|
251
|
+
.kanban-output-toggle{all:unset;cursor:pointer;font-size:var(--text-xs);color:var(--info);text-decoration:underline;margin-top:4px}
|
|
252
|
+
.kanban-card-output{background:var(--bg-secondary);border:1px solid var(--border-default);border-radius:var(--radius-sm);padding:8px;margin-top:6px;font-size:var(--text-xs);color:var(--text-secondary);white-space:pre-wrap;max-height:200px;overflow:auto}
|
|
251
253
|
.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}
|
|
252
254
|
|
|
253
255
|
|
|
@@ -210,6 +210,7 @@ function renderKanban(){
|
|
|
210
210
|
tasks.length?tasks.map(t=>`<div class="kanban-card ${t.status==='in_progress'?'running':''}" draggable="true" ondragstart="onKanbanDragStart(event,'${t.id}')" ondblclick="openKanbanModal('${t.id}')">
|
|
211
211
|
<div class="kanban-card-title">${escapeHtml(t.title)}</div>
|
|
212
212
|
${t.description?`<div class="kanban-card-desc">${escapeHtml(t.description)}</div>`:''}
|
|
213
|
+
${t.output?`<button class="kanban-output-toggle" onclick="toggleKanbanOutput(event,'${t.id}')">Voir résultat</button><pre id="ko-${t.id}" class="kanban-card-output" style="display:none">${escapeHtml(t.output)}</pre>`:''}
|
|
213
214
|
<div class="kanban-card-meta"><span>${escapeHtml(t.agent)}</span><span class="prio ${t.priority}">${t.priority}</span></div>
|
|
214
215
|
<div class="kanban-card-actions">
|
|
215
216
|
<button class="kanban-run" onclick="runKanbanTask('${t.id}')" title="Run" ${t.status==='in_progress'?'disabled':''}>▶ Run</button>
|
|
@@ -337,6 +338,7 @@ async function runKanbanTask(id){
|
|
|
337
338
|
kanbanData.columns[s]=(kanbanData.columns[s]||[]).filter(t=>t.id!==id)
|
|
338
339
|
}
|
|
339
340
|
task.status=res.status||'completed'
|
|
341
|
+
task.output=res.output||''
|
|
340
342
|
kanbanData.columns[task.status]=(kanbanData.columns[task.status]||[])
|
|
341
343
|
kanbanData.columns[task.status].unshift(task)
|
|
342
344
|
renderKanban()
|
|
@@ -346,6 +348,15 @@ async function runKanbanTask(id){
|
|
|
346
348
|
}
|
|
347
349
|
}
|
|
348
350
|
|
|
351
|
+
function toggleKanbanOutput(e,id){
|
|
352
|
+
e.stopPropagation()
|
|
353
|
+
const el=document.getElementById('ko-'+id)
|
|
354
|
+
if(!el)return
|
|
355
|
+
const show=el.style.display==='none'
|
|
356
|
+
el.style.display=show?'block':'none'
|
|
357
|
+
e.target.textContent=show?'Masquer résultat':'Voir résultat'
|
|
358
|
+
}
|
|
359
|
+
|
|
349
360
|
// ===== LOGS =====
|
|
350
361
|
let logStream=null
|
|
351
362
|
async function loadLogs(){
|
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.
|
|
368022
|
+
version: "0.3.37",
|
|
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