@kl-c/matrixos 0.1.21 → 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 +1 -1
- package/dist/cli-node/index.js +1 -1
- package/dist/index.js +15 -2
- package/package.json +1 -1
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.
|
|
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",
|
package/dist/cli-node/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.
|
|
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",
|
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.
|
|
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",
|
|
@@ -439183,7 +439183,20 @@ function createChatMessageHandler3(args) {
|
|
|
439183
439183
|
if (isFirstMessage) {
|
|
439184
439184
|
firstMessageVariantGate.markApplied(input.sessionID);
|
|
439185
439185
|
if (isAdoptionNeeded()) {
|
|
439186
|
-
output.parts.
|
|
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
|
+
}
|
|
439187
439200
|
log2("[chat-message] Auto-adoption triggered \u2014 no user-context.md found", {
|
|
439188
439201
|
sessionID: input.sessionID
|
|
439189
439202
|
});
|
package/package.json
CHANGED