@kl-c/matrixos 0.3.44 → 0.3.46
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 +29 -9
- package/dist/cli-node/index.js +29 -9
- package/dist/index.js +1 -1
- package/package.json +1 -1
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.46",
|
|
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",
|
|
@@ -187518,17 +187518,37 @@ ${row.description ? `Description: ${row.description}
|
|
|
187518
187518
|
return { ok: false, error: "database unavailable" };
|
|
187519
187519
|
try {
|
|
187520
187520
|
let extractTasks = function(text) {
|
|
187521
|
-
const
|
|
187522
|
-
|
|
187521
|
+
for (const line of text.split(`
|
|
187522
|
+
`)) {
|
|
187523
|
+
const trimmed = line.trim();
|
|
187524
|
+
if (!trimmed.startsWith("{") || !trimmed.endsWith("}"))
|
|
187525
|
+
continue;
|
|
187526
|
+
if (!trimmed.includes('"summary"'))
|
|
187527
|
+
continue;
|
|
187523
187528
|
try {
|
|
187524
|
-
const
|
|
187525
|
-
|
|
187526
|
-
const
|
|
187527
|
-
|
|
187528
|
-
|
|
187529
|
+
const obj = JSON.parse(trimmed);
|
|
187530
|
+
const summary = obj.summary ?? "";
|
|
187531
|
+
const clean = summary.replace(/```(?:json)?\n?/g, "").replace(/```/g, "");
|
|
187532
|
+
const arrayMatch = clean.match(/\[[\s\S]*?\]/);
|
|
187533
|
+
if (arrayMatch) {
|
|
187534
|
+
const parsed = JSON.parse(arrayMatch[0]);
|
|
187535
|
+
if (Array.isArray(parsed))
|
|
187536
|
+
return parsed;
|
|
187537
|
+
}
|
|
187538
|
+
} catch {}
|
|
187539
|
+
}
|
|
187540
|
+
const fenceMatch = text.match(/```(?:json)?\n?([\s\S]*?)```/);
|
|
187541
|
+
if (fenceMatch) {
|
|
187542
|
+
try {
|
|
187543
|
+
const arrayMatch = fenceMatch[1].match(/\[[\s\S]*?\]/);
|
|
187544
|
+
if (arrayMatch) {
|
|
187545
|
+
const parsed = JSON.parse(arrayMatch[0]);
|
|
187546
|
+
if (Array.isArray(parsed))
|
|
187547
|
+
return parsed;
|
|
187548
|
+
}
|
|
187529
187549
|
} catch {}
|
|
187530
187550
|
}
|
|
187531
|
-
const rawMatch = text.match(/\[[
|
|
187551
|
+
const rawMatch = text.match(/\[[\s\S]*?\]/);
|
|
187532
187552
|
if (rawMatch) {
|
|
187533
187553
|
try {
|
|
187534
187554
|
const parsed = JSON.parse(rawMatch[0]);
|
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.46",
|
|
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",
|
|
@@ -187573,17 +187573,37 @@ ${row.description ? `Description: ${row.description}
|
|
|
187573
187573
|
return { ok: false, error: "database unavailable" };
|
|
187574
187574
|
try {
|
|
187575
187575
|
let extractTasks = function(text) {
|
|
187576
|
-
const
|
|
187577
|
-
|
|
187576
|
+
for (const line of text.split(`
|
|
187577
|
+
`)) {
|
|
187578
|
+
const trimmed = line.trim();
|
|
187579
|
+
if (!trimmed.startsWith("{") || !trimmed.endsWith("}"))
|
|
187580
|
+
continue;
|
|
187581
|
+
if (!trimmed.includes('"summary"'))
|
|
187582
|
+
continue;
|
|
187578
187583
|
try {
|
|
187579
|
-
const
|
|
187580
|
-
|
|
187581
|
-
const
|
|
187582
|
-
|
|
187583
|
-
|
|
187584
|
+
const obj = JSON.parse(trimmed);
|
|
187585
|
+
const summary = obj.summary ?? "";
|
|
187586
|
+
const clean = summary.replace(/```(?:json)?\n?/g, "").replace(/```/g, "");
|
|
187587
|
+
const arrayMatch = clean.match(/\[[\s\S]*?\]/);
|
|
187588
|
+
if (arrayMatch) {
|
|
187589
|
+
const parsed = JSON.parse(arrayMatch[0]);
|
|
187590
|
+
if (Array.isArray(parsed))
|
|
187591
|
+
return parsed;
|
|
187592
|
+
}
|
|
187593
|
+
} catch {}
|
|
187594
|
+
}
|
|
187595
|
+
const fenceMatch = text.match(/```(?:json)?\n?([\s\S]*?)```/);
|
|
187596
|
+
if (fenceMatch) {
|
|
187597
|
+
try {
|
|
187598
|
+
const arrayMatch = fenceMatch[1].match(/\[[\s\S]*?\]/);
|
|
187599
|
+
if (arrayMatch) {
|
|
187600
|
+
const parsed = JSON.parse(arrayMatch[0]);
|
|
187601
|
+
if (Array.isArray(parsed))
|
|
187602
|
+
return parsed;
|
|
187603
|
+
}
|
|
187584
187604
|
} catch {}
|
|
187585
187605
|
}
|
|
187586
|
-
const rawMatch = text.match(/\[[
|
|
187606
|
+
const rawMatch = text.match(/\[[\s\S]*?\]/);
|
|
187587
187607
|
if (rawMatch) {
|
|
187588
187608
|
try {
|
|
187589
187609
|
const parsed = JSON.parse(rawMatch[0]);
|
package/dist/index.js
CHANGED
|
@@ -368086,7 +368086,7 @@ function getCachedVersion(options = {}) {
|
|
|
368086
368086
|
// package.json
|
|
368087
368087
|
var package_default = {
|
|
368088
368088
|
name: "@kl-c/matrixos",
|
|
368089
|
-
version: "0.3.
|
|
368089
|
+
version: "0.3.46",
|
|
368090
368090
|
description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
|
|
368091
368091
|
main: "./dist/index.js",
|
|
368092
368092
|
types: "dist/index.d.ts",
|
package/package.json
CHANGED