@kl-c/matrixos 0.1.18 → 0.1.19

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
@@ -2145,7 +2145,7 @@ var package_default;
2145
2145
  var init_package = __esm(() => {
2146
2146
  package_default = {
2147
2147
  name: "@kl-c/matrixos",
2148
- version: "0.1.18",
2148
+ version: "0.1.19",
2149
2149
  description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
2150
2150
  main: "./dist/index.js",
2151
2151
  types: "dist/index.d.ts",
@@ -141070,12 +141070,20 @@ function thirtyDaysAgoMs() {
141070
141070
  }
141071
141071
  function readPackageVersion2() {
141072
141072
  try {
141073
- const pkgPath = new URL("../../../../package.json", import.meta.url).pathname;
141074
- const pkg = JSON.parse(fs20.readFileSync(pkgPath, "utf-8"));
141075
- return pkg.version ?? "0.0.0";
141076
- } catch {
141077
- return "0.0.0";
141078
- }
141073
+ const candidates = [
141074
+ new URL("../package.json", import.meta.url).pathname,
141075
+ new URL("../../package.json", import.meta.url).pathname,
141076
+ path24.resolve(process.cwd(), "package.json")
141077
+ ];
141078
+ for (const candidate of candidates) {
141079
+ if (fs20.existsSync(candidate)) {
141080
+ const pkg = JSON.parse(fs20.readFileSync(candidate, "utf-8"));
141081
+ if (pkg.version)
141082
+ return pkg.version;
141083
+ }
141084
+ }
141085
+ } catch {}
141086
+ return "0.0.0";
141079
141087
  }
141080
141088
  function createDataProvider(config4) {
141081
141089
  const matrixosHome = config4?.matrixosHome ?? ".matrixos";
@@ -2145,7 +2145,7 @@ var package_default;
2145
2145
  var init_package = __esm(() => {
2146
2146
  package_default = {
2147
2147
  name: "@kl-c/matrixos",
2148
- version: "0.1.18",
2148
+ version: "0.1.19",
2149
2149
  description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
2150
2150
  main: "./dist/index.js",
2151
2151
  types: "dist/index.d.ts",
@@ -141125,12 +141125,20 @@ function thirtyDaysAgoMs() {
141125
141125
  }
141126
141126
  function readPackageVersion2() {
141127
141127
  try {
141128
- const pkgPath = new URL("../../../../package.json", import.meta.url).pathname;
141129
- const pkg = JSON.parse(fs20.readFileSync(pkgPath, "utf-8"));
141130
- return pkg.version ?? "0.0.0";
141131
- } catch {
141132
- return "0.0.0";
141133
- }
141128
+ const candidates = [
141129
+ new URL("../package.json", import.meta.url).pathname,
141130
+ new URL("../../package.json", import.meta.url).pathname,
141131
+ path24.resolve(process.cwd(), "package.json")
141132
+ ];
141133
+ for (const candidate of candidates) {
141134
+ if (fs20.existsSync(candidate)) {
141135
+ const pkg = JSON.parse(fs20.readFileSync(candidate, "utf-8"));
141136
+ if (pkg.version)
141137
+ return pkg.version;
141138
+ }
141139
+ }
141140
+ } catch {}
141141
+ return "0.0.0";
141134
141142
  }
141135
141143
  function createDataProvider(config4) {
141136
141144
  const matrixosHome = config4?.matrixosHome ?? ".matrixos";
package/dist/index.js CHANGED
@@ -367932,7 +367932,7 @@ function getCachedVersion(options = {}) {
367932
367932
  // package.json
367933
367933
  var package_default = {
367934
367934
  name: "@kl-c/matrixos",
367935
- version: "0.1.18",
367935
+ version: "0.1.19",
367936
367936
  description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
367937
367937
  main: "./dist/index.js",
367938
367938
  types: "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kl-c/matrixos",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "MaTrixOS — Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "dist/index.d.ts",