@kl-c/matrixos 0.1.20 → 0.1.22

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.20",
2148
+ version: "0.1.22",
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",
@@ -83291,10 +83291,13 @@ function createAutoUpdateCheckerHook(ctx, options = {}, deps = defaultDeps5) {
83291
83291
  modelCapabilities
83292
83292
  } = options;
83293
83293
  const isCliRunMode = process.env.OPENCODE_CLI_RUN_MODE === "true";
83294
- const getToastMessage = (isUpdate, latestVersion) => {
83294
+ const getToastMessage = (isUpdate, latestVersion, currentVersion) => {
83295
+ const brand = currentVersion ? `MaTrixOS v${currentVersion} \xB7 By KLC` : "MaTrixOS \xB7 By KLC";
83295
83296
  if (isMorpheusEnabled) {
83296
- return isUpdate ? `MaTrixOS \xB7 Morpheus pilote OpenCode.
83297
- v${latestVersion} disponible. Red\xE9marre pour appliquer.` : "MaTrixOS \xB7 Morpheus pilote OpenCode.";
83297
+ return isUpdate ? `${brand}
83298
+ Morpheus pilote OpenCode.
83299
+ v${latestVersion} disponible. Red\xE9marre pour appliquer.` : `${brand}
83300
+ Morpheus pilote OpenCode.`;
83298
83301
  }
83299
83302
  return isUpdate ? `OpenCode is now on Steroids. oMoMoMoMo...
83300
83303
  v${latestVersion} available. Restart OpenCode to apply.` : "OpenCode is now on Steroids. oMoMoMoMo...";
@@ -83329,10 +83332,11 @@ v${latestVersion} available. Restart OpenCode to apply.` : "OpenCode is now on S
83329
83332
  deps.log("[auto-update-checker] Local development mode");
83330
83333
  return;
83331
83334
  }
83335
+ const currentVersion = displayVersion ?? undefined;
83332
83336
  if (showStartupToast) {
83333
- deps.showVersionToast(ctx, displayVersion, getToastMessage(false)).catch(ignoreToastError);
83337
+ deps.showVersionToast(ctx, displayVersion, getToastMessage(false, undefined, currentVersion)).catch(ignoreToastError);
83334
83338
  }
83335
- deps.runBackgroundUpdateCheck(ctx, autoUpdate, getToastMessage).catch((err) => {
83339
+ deps.runBackgroundUpdateCheck(ctx, autoUpdate, (isUpdate, latest) => getToastMessage(isUpdate, latest, currentVersion)).catch((err) => {
83336
83340
  deps.log("[auto-update-checker] Background update check failed:", err);
83337
83341
  });
83338
83342
  })();
@@ -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.20",
2148
+ version: "0.1.22",
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",
@@ -83346,10 +83346,13 @@ function createAutoUpdateCheckerHook(ctx, options = {}, deps = defaultDeps5) {
83346
83346
  modelCapabilities
83347
83347
  } = options;
83348
83348
  const isCliRunMode = process.env.OPENCODE_CLI_RUN_MODE === "true";
83349
- const getToastMessage = (isUpdate, latestVersion) => {
83349
+ const getToastMessage = (isUpdate, latestVersion, currentVersion) => {
83350
+ const brand = currentVersion ? `MaTrixOS v${currentVersion} \xB7 By KLC` : "MaTrixOS \xB7 By KLC";
83350
83351
  if (isMorpheusEnabled) {
83351
- return isUpdate ? `MaTrixOS \xB7 Morpheus pilote OpenCode.
83352
- v${latestVersion} disponible. Red\xE9marre pour appliquer.` : "MaTrixOS \xB7 Morpheus pilote OpenCode.";
83352
+ return isUpdate ? `${brand}
83353
+ Morpheus pilote OpenCode.
83354
+ v${latestVersion} disponible. Red\xE9marre pour appliquer.` : `${brand}
83355
+ Morpheus pilote OpenCode.`;
83353
83356
  }
83354
83357
  return isUpdate ? `OpenCode is now on Steroids. oMoMoMoMo...
83355
83358
  v${latestVersion} available. Restart OpenCode to apply.` : "OpenCode is now on Steroids. oMoMoMoMo...";
@@ -83384,10 +83387,11 @@ v${latestVersion} available. Restart OpenCode to apply.` : "OpenCode is now on S
83384
83387
  deps.log("[auto-update-checker] Local development mode");
83385
83388
  return;
83386
83389
  }
83390
+ const currentVersion = displayVersion ?? undefined;
83387
83391
  if (showStartupToast) {
83388
- deps.showVersionToast(ctx, displayVersion, getToastMessage(false)).catch(ignoreToastError);
83392
+ deps.showVersionToast(ctx, displayVersion, getToastMessage(false, undefined, currentVersion)).catch(ignoreToastError);
83389
83393
  }
83390
- deps.runBackgroundUpdateCheck(ctx, autoUpdate, getToastMessage).catch((err) => {
83394
+ deps.runBackgroundUpdateCheck(ctx, autoUpdate, (isUpdate, latest) => getToastMessage(isUpdate, latest, currentVersion)).catch((err) => {
83391
83395
  deps.log("[auto-update-checker] Background update check failed:", err);
83392
83396
  });
83393
83397
  })();
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.20",
367935
+ version: "0.1.22",
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",
@@ -369050,10 +369050,13 @@ function createAutoUpdateCheckerHook(ctx, options = {}, deps = defaultDeps3) {
369050
369050
  modelCapabilities
369051
369051
  } = options;
369052
369052
  const isCliRunMode = process.env.OPENCODE_CLI_RUN_MODE === "true";
369053
- const getToastMessage = (isUpdate, latestVersion) => {
369053
+ const getToastMessage = (isUpdate, latestVersion, currentVersion) => {
369054
+ const brand = currentVersion ? `MaTrixOS v${currentVersion} \xB7 By KLC` : "MaTrixOS \xB7 By KLC";
369054
369055
  if (isMorpheusEnabled) {
369055
- return isUpdate ? `MaTrixOS \xB7 Morpheus pilote OpenCode.
369056
- v${latestVersion} disponible. Red\xE9marre pour appliquer.` : "MaTrixOS \xB7 Morpheus pilote OpenCode.";
369056
+ return isUpdate ? `${brand}
369057
+ Morpheus pilote OpenCode.
369058
+ v${latestVersion} disponible. Red\xE9marre pour appliquer.` : `${brand}
369059
+ Morpheus pilote OpenCode.`;
369057
369060
  }
369058
369061
  return isUpdate ? `OpenCode is now on Steroids. oMoMoMoMo...
369059
369062
  v${latestVersion} available. Restart OpenCode to apply.` : "OpenCode is now on Steroids. oMoMoMoMo...";
@@ -369088,10 +369091,11 @@ v${latestVersion} available. Restart OpenCode to apply.` : "OpenCode is now on S
369088
369091
  deps.log("[auto-update-checker] Local development mode");
369089
369092
  return;
369090
369093
  }
369094
+ const currentVersion = displayVersion ?? undefined;
369091
369095
  if (showStartupToast) {
369092
- deps.showVersionToast(ctx, displayVersion, getToastMessage(false)).catch(ignoreToastError);
369096
+ deps.showVersionToast(ctx, displayVersion, getToastMessage(false, undefined, currentVersion)).catch(ignoreToastError);
369093
369097
  }
369094
- deps.runBackgroundUpdateCheck(ctx, autoUpdate, getToastMessage).catch((err) => {
369098
+ deps.runBackgroundUpdateCheck(ctx, autoUpdate, (isUpdate, latest) => getToastMessage(isUpdate, latest, currentVersion)).catch((err) => {
369095
369099
  deps.log("[auto-update-checker] Background update check failed:", err);
369096
369100
  });
369097
369101
  })();
@@ -439179,7 +439183,20 @@ function createChatMessageHandler3(args) {
439179
439183
  if (isFirstMessage) {
439180
439184
  firstMessageVariantGate.markApplied(input.sessionID);
439181
439185
  if (isAdoptionNeeded()) {
439182
- output.parts.push({ type: "text", text: ADOPTION_TRIGGER_INSTRUCTION });
439186
+ const textPartIndex = output.parts.findIndex((p) => p.type === "text" && typeof p.text === "string");
439187
+ if (textPartIndex >= 0) {
439188
+ const original = output.parts[textPartIndex];
439189
+ const originalText = original.text ?? "";
439190
+ output.parts[textPartIndex] = {
439191
+ ...original,
439192
+ type: "text",
439193
+ text: `${ADOPTION_TRIGGER_INSTRUCTION}
439194
+
439195
+ ${originalText}`
439196
+ };
439197
+ } else {
439198
+ output.parts.push({ type: "text", text: ADOPTION_TRIGGER_INSTRUCTION });
439199
+ }
439183
439200
  log2("[chat-message] Auto-adoption triggered \u2014 no user-context.md found", {
439184
439201
  sessionID: input.sessionID
439185
439202
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kl-c/matrixos",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
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",