@kl-c/matrixos 0.3.44 → 0.3.45
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 +22 -8
- package/dist/cli-node/index.js +22 -8
- 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.45",
|
|
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,31 @@ ${row.description ? `Description: ${row.description}
|
|
|
187518
187518
|
return { ok: false, error: "database unavailable" };
|
|
187519
187519
|
try {
|
|
187520
187520
|
let extractTasks = function(text) {
|
|
187521
|
-
const summaryMatch = text.match(/"summary"\s
|
|
187521
|
+
const summaryMatch = text.match(/"summary"\s*:\s*"([\s\S]*?)"\s*[},]/);
|
|
187522
187522
|
if (summaryMatch) {
|
|
187523
187523
|
try {
|
|
187524
|
-
|
|
187525
|
-
`).replace(
|
|
187526
|
-
const
|
|
187527
|
-
if (
|
|
187528
|
-
|
|
187524
|
+
let inner = summaryMatch[1].replace(/\\"/g, '"').replace(/\\n/g, `
|
|
187525
|
+
`).replace(/\\\//g, "/").replace(/`{3}(?:json)?\n?/g, "");
|
|
187526
|
+
const arrayMatch = inner.match(/\[[\s\S]*?\]/);
|
|
187527
|
+
if (arrayMatch) {
|
|
187528
|
+
const parsed = JSON.parse(arrayMatch[0]);
|
|
187529
|
+
if (Array.isArray(parsed))
|
|
187530
|
+
return parsed;
|
|
187531
|
+
}
|
|
187532
|
+
} catch {}
|
|
187533
|
+
}
|
|
187534
|
+
const fenceMatch = text.match(/```(?:json)?\n?([\s\S]*?)```/);
|
|
187535
|
+
if (fenceMatch) {
|
|
187536
|
+
try {
|
|
187537
|
+
const arrayMatch = fenceMatch[1].match(/\[[\s\S]*?\]/);
|
|
187538
|
+
if (arrayMatch) {
|
|
187539
|
+
const parsed = JSON.parse(arrayMatch[0]);
|
|
187540
|
+
if (Array.isArray(parsed))
|
|
187541
|
+
return parsed;
|
|
187542
|
+
}
|
|
187529
187543
|
} catch {}
|
|
187530
187544
|
}
|
|
187531
|
-
const rawMatch = text.match(/\[[
|
|
187545
|
+
const rawMatch = text.match(/\[[\s\S]*?\]/);
|
|
187532
187546
|
if (rawMatch) {
|
|
187533
187547
|
try {
|
|
187534
187548
|
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.45",
|
|
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,31 @@ ${row.description ? `Description: ${row.description}
|
|
|
187573
187573
|
return { ok: false, error: "database unavailable" };
|
|
187574
187574
|
try {
|
|
187575
187575
|
let extractTasks = function(text) {
|
|
187576
|
-
const summaryMatch = text.match(/"summary"\s
|
|
187576
|
+
const summaryMatch = text.match(/"summary"\s*:\s*"([\s\S]*?)"\s*[},]/);
|
|
187577
187577
|
if (summaryMatch) {
|
|
187578
187578
|
try {
|
|
187579
|
-
|
|
187580
|
-
`).replace(
|
|
187581
|
-
const
|
|
187582
|
-
if (
|
|
187583
|
-
|
|
187579
|
+
let inner = summaryMatch[1].replace(/\\"/g, '"').replace(/\\n/g, `
|
|
187580
|
+
`).replace(/\\\//g, "/").replace(/`{3}(?:json)?\n?/g, "");
|
|
187581
|
+
const arrayMatch = inner.match(/\[[\s\S]*?\]/);
|
|
187582
|
+
if (arrayMatch) {
|
|
187583
|
+
const parsed = JSON.parse(arrayMatch[0]);
|
|
187584
|
+
if (Array.isArray(parsed))
|
|
187585
|
+
return parsed;
|
|
187586
|
+
}
|
|
187587
|
+
} catch {}
|
|
187588
|
+
}
|
|
187589
|
+
const fenceMatch = text.match(/```(?:json)?\n?([\s\S]*?)```/);
|
|
187590
|
+
if (fenceMatch) {
|
|
187591
|
+
try {
|
|
187592
|
+
const arrayMatch = fenceMatch[1].match(/\[[\s\S]*?\]/);
|
|
187593
|
+
if (arrayMatch) {
|
|
187594
|
+
const parsed = JSON.parse(arrayMatch[0]);
|
|
187595
|
+
if (Array.isArray(parsed))
|
|
187596
|
+
return parsed;
|
|
187597
|
+
}
|
|
187584
187598
|
} catch {}
|
|
187585
187599
|
}
|
|
187586
|
-
const rawMatch = text.match(/\[[
|
|
187600
|
+
const rawMatch = text.match(/\[[\s\S]*?\]/);
|
|
187587
187601
|
if (rawMatch) {
|
|
187588
187602
|
try {
|
|
187589
187603
|
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.45",
|
|
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