@kl-c/matrixos 0.1.14 → 0.1.16

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.
@@ -36,6 +36,7 @@ Ask the user which they want activated. Confirm specifically the **Dashboard (Mi
36
36
  Write/edit `/root/MOS_Vault/04-Areas/user-context.md`:
37
37
  - Adoption mode: fill sections 1–4, set `last_verified` to today, add a line in section 5 (Mises à jour) with today's date.
38
38
  - Re-adoption mode: edit only the sections the user changed; update `last_verified`; append a line in section 5.
39
+ - **ALWAYS add a `## Features` section** (even in re-adoption) listing which opt-in features the user chose to activate (e.g. `Dashboard: activé`, `Kanban: non`, etc.). This marker tells the auto-adoption trigger that the feature checklist was presented — without it, the ritual will re-run on next launch.
39
40
  Never rewrite the whole file from scratch — preserve existing context.
40
41
 
41
42
  Also update `/root/MOS_Vault/MEMORY.md` routing if the user-context file was just created.
@@ -36,6 +36,7 @@ Ask the user which they want activated. Confirm specifically the **Dashboard (Mi
36
36
  Write/edit `/root/MOS_Vault/04-Areas/user-context.md`:
37
37
  - Adoption mode: fill sections 1–4, set `last_verified` to today, add a line in section 5 (Mises à jour) with today's date.
38
38
  - Re-adoption mode: edit only the sections the user changed; update `last_verified`; append a line in section 5.
39
+ - **ALWAYS add a `## Features` section** (even in re-adoption) listing which opt-in features the user chose to activate (e.g. `Dashboard: activé`, `Kanban: non`, etc.). This marker tells the auto-adoption trigger that the feature checklist was presented — without it, the ritual will re-run on next launch.
39
40
  Never rewrite the whole file from scratch — preserve existing context.
40
41
 
41
42
  Also update `/root/MOS_Vault/MEMORY.md` routing if the user-context file was just created.
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.14",
2148
+ version: "0.1.16",
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",
@@ -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.14",
2148
+ version: "0.1.16",
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
@@ -196791,7 +196791,7 @@ var require_filesystem = __commonJS((exports, module) => {
196791
196791
  var LDD_PATH = "/usr/bin/ldd";
196792
196792
  var SELF_PATH = "/proc/self/exe";
196793
196793
  var MAX_LENGTH = 2048;
196794
- var readFileSync77 = (path28) => {
196794
+ var readFileSync78 = (path28) => {
196795
196795
  const fd = fs26.openSync(path28, "r");
196796
196796
  const buffer = Buffer.alloc(MAX_LENGTH);
196797
196797
  const bytesRead = fs26.readSync(fd, buffer, 0, MAX_LENGTH, 0);
@@ -196814,7 +196814,7 @@ var require_filesystem = __commonJS((exports, module) => {
196814
196814
  module.exports = {
196815
196815
  LDD_PATH,
196816
196816
  SELF_PATH,
196817
- readFileSync: readFileSync77,
196817
+ readFileSync: readFileSync78,
196818
196818
  readFile: readFile14
196819
196819
  };
196820
196820
  });
@@ -196857,7 +196857,7 @@ var require_elf = __commonJS((exports, module) => {
196857
196857
  var require_detect_libc = __commonJS((exports, module) => {
196858
196858
  var childProcess3 = __require("child_process");
196859
196859
  var { isLinux, getReport } = require_process();
196860
- var { LDD_PATH, SELF_PATH, readFile: readFile14, readFileSync: readFileSync77 } = require_filesystem();
196860
+ var { LDD_PATH, SELF_PATH, readFile: readFile14, readFileSync: readFileSync78 } = require_filesystem();
196861
196861
  var { interpreterPath } = require_elf();
196862
196862
  var cachedFamilyInterpreter;
196863
196863
  var cachedFamilyFilesystem;
@@ -196948,7 +196948,7 @@ var require_detect_libc = __commonJS((exports, module) => {
196948
196948
  }
196949
196949
  cachedFamilyFilesystem = null;
196950
196950
  try {
196951
- const lddContent = readFileSync77(LDD_PATH);
196951
+ const lddContent = readFileSync78(LDD_PATH);
196952
196952
  cachedFamilyFilesystem = getFamilyFromLddContent(lddContent);
196953
196953
  } catch (e) {}
196954
196954
  return cachedFamilyFilesystem;
@@ -196971,7 +196971,7 @@ var require_detect_libc = __commonJS((exports, module) => {
196971
196971
  }
196972
196972
  cachedFamilyInterpreter = null;
196973
196973
  try {
196974
- const selfContent = readFileSync77(SELF_PATH);
196974
+ const selfContent = readFileSync78(SELF_PATH);
196975
196975
  const path28 = interpreterPath(selfContent);
196976
196976
  cachedFamilyInterpreter = familyFromInterpreterPath(path28);
196977
196977
  } catch (e) {}
@@ -197033,7 +197033,7 @@ var require_detect_libc = __commonJS((exports, module) => {
197033
197033
  }
197034
197034
  cachedVersionFilesystem = null;
197035
197035
  try {
197036
- const lddContent = readFileSync77(LDD_PATH);
197036
+ const lddContent = readFileSync78(LDD_PATH);
197037
197037
  const versionMatch = lddContent.match(RE_GLIBC_VERSION);
197038
197038
  if (versionMatch) {
197039
197039
  cachedVersionFilesystem = versionMatch[1];
@@ -297183,13 +297183,13 @@ var init_merge = __esm(() => {
297183
297183
  });
297184
297184
 
297185
297185
  // packages/omo-config-core/src/loader/types.ts
297186
- import { existsSync as existsSync115, lstatSync as lstatSync5, readFileSync as readFileSync77 } from "fs";
297186
+ import { existsSync as existsSync115, lstatSync as lstatSync5, readFileSync as readFileSync78 } from "fs";
297187
297187
  var DEFAULT_READ_FILE_SYSTEM;
297188
297188
  var init_types7 = __esm(() => {
297189
297189
  DEFAULT_READ_FILE_SYSTEM = {
297190
297190
  existsSync: existsSync115,
297191
297191
  lstatSync: lstatSync5,
297192
- readFileSync: readFileSync77
297192
+ readFileSync: readFileSync78
297193
297193
  };
297194
297194
  });
297195
297195
 
@@ -297507,7 +297507,7 @@ import {
297507
297507
  existsSync as existsSync116,
297508
297508
  lstatSync as lstatSync6,
297509
297509
  mkdirSync as mkdirSync25,
297510
- readFileSync as readFileSync78,
297510
+ readFileSync as readFileSync79,
297511
297511
  readdirSync as readdirSync29,
297512
297512
  renameSync as renameSync10,
297513
297513
  unlinkSync as unlinkSync17,
@@ -297520,7 +297520,7 @@ var init_types8 = __esm(() => {
297520
297520
  existsSync: existsSync116,
297521
297521
  lstatSync: lstatSync6,
297522
297522
  mkdirSync: mkdirSync25,
297523
- readFileSync: readFileSync78,
297523
+ readFileSync: readFileSync79,
297524
297524
  readdirSync: readdirSync29,
297525
297525
  renameSync: renameSync10,
297526
297526
  unlinkSync: unlinkSync17,
@@ -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.14",
367935
+ version: "0.1.16",
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",
@@ -438539,7 +438539,7 @@ function createChatHeadersHandler(args) {
438539
438539
  }
438540
438540
 
438541
438541
  // packages/omo-opencode/src/plugin/auto-adoption.ts
438542
- import { existsSync as existsSync111 } from "fs";
438542
+ import { existsSync as existsSync111, readFileSync as readFileSync76 } from "fs";
438543
438543
  import { join as join133 } from "path";
438544
438544
  import { homedir as homedir35 } from "os";
438545
438545
  var ADOPTION_CONTEXT_RELATIVE = join133("MOS_Vault", "04-Areas", "user-context.md");
@@ -438548,9 +438548,17 @@ function resolveUserContextPath() {
438548
438548
  return join133(base, "04-Areas", "user-context.md");
438549
438549
  }
438550
438550
  function isAdoptionNeeded() {
438551
- return !existsSync111(resolveUserContextPath());
438551
+ const path26 = resolveUserContextPath();
438552
+ if (!existsSync111(path26))
438553
+ return true;
438554
+ try {
438555
+ const content = readFileSync76(path26, "utf8");
438556
+ return !/features/i.test(content);
438557
+ } catch {
438558
+ return true;
438559
+ }
438552
438560
  }
438553
- var ADOPTION_TRIGGER_INSTRUCTION = `SYST\xC8ME \u2014 Rituel d'adoption automatique : aucun contexte utilisateur (user-context.md) n'est configur\xE9. Lance imm\xE9diatement le rituel d'adoption comme si l'utilisateur avait tap\xE9 /adopt : pose les 5 questions (identit\xE9, projet, contraintes, style de collaboration, reporting), puis propose les fonctionnalit\xE9s opt-in (\u5C24\u5176 Dashboard Mission Control sur 127.0.0.1:9123). Utilise l'outil question pour les questions. Ne r\xE9ponds pas encore \xE0 la demande de l'utilisateur \u2014 l'adoption prime.`;
438561
+ var ADOPTION_TRIGGER_INSTRUCTION = `SYST\xC8ME \u2014 Rituel d'adoption automatique : lance imm\xE9diatement le rituel d'adoption comme si l'utilisateur avait tap\xE9 /adopt. M\xEAme si un contexte utilisateur (user-context.md) existe d\xE9j\xE0, tu DOIS proposer les fonctionnalit\xE9s opt-in (especially Dashboard Mission Control sur 127.0.0.1:9123) \u2014 ne saute jamais cette \xE9tape. Pose les 5 questions (identit\xE9, projet, contraintes, style de collaboration, reporting), puis pr\xE9sente la checklist des fonctionnalit\xE9s opt-in depuis l'inventaire (OPT_IN_FEATURES). Utilise l'outil question pour les questions. Ne r\xE9ponds pas encore \xE0 la demande de l'utilisateur \u2014 l'adoption prime.`;
438554
438562
 
438555
438563
  // packages/omo-opencode/src/plugin/ultrawork-db-model-override.ts
438556
438564
  import { join as join134 } from "path";
@@ -444362,7 +444370,7 @@ init_plugin_identity();
444362
444370
  // packages/telemetry-core/src/activity-state.ts
444363
444371
  init_atomic_write();
444364
444372
  init_xdg_data_dir();
444365
- import { existsSync as existsSync120, mkdirSync as mkdirSync27, readFileSync as readFileSync80 } from "fs";
444373
+ import { existsSync as existsSync120, mkdirSync as mkdirSync27, readFileSync as readFileSync81 } from "fs";
444366
444374
  import { basename as basename26, join as join144 } from "path";
444367
444375
  var POSTHOG_ACTIVITY_STATE_FILE = "posthog-activity.json";
444368
444376
  function resolveTelemetryStateDir(product, options = {}) {
@@ -444406,7 +444414,7 @@ function readPostHogActivityState(stateDir, diagnostics) {
444406
444414
  return {};
444407
444415
  }
444408
444416
  try {
444409
- const stateContent = readFileSync80(stateFilePath, "utf-8");
444417
+ const stateContent = readFileSync81(stateFilePath, "utf-8");
444410
444418
  const stateJson = JSON.parse(stateContent);
444411
444419
  if (!isPostHogActivityState(stateJson)) {
444412
444420
  return {};
@@ -1,3 +1,10 @@
1
- /** True when adoption context is missing (no user-context.md yet). */
1
+ /**
2
+ * True when adoption is incomplete and the ritual should (re)run:
3
+ * - no user-context.md yet, OR
4
+ * - user-context.md exists but the opt-in features were never presented
5
+ * (a user who already has context but never saw the feature checklist
6
+ * would otherwise treat the truncated state as truth — see VPS cantabo,
7
+ * where user-context.md existed but Dashboard/features were never offered).
8
+ */
2
9
  export declare function isAdoptionNeeded(): boolean;
3
- export declare const ADOPTION_TRIGGER_INSTRUCTION = "SYST\u00C8ME \u2014 Rituel d'adoption automatique : aucun contexte utilisateur (user-context.md) n'est configur\u00E9. Lance imm\u00E9diatement le rituel d'adoption comme si l'utilisateur avait tap\u00E9 /adopt : pose les 5 questions (identit\u00E9, projet, contraintes, style de collaboration, reporting), puis propose les fonctionnalit\u00E9s opt-in (\u5C24\u5176 Dashboard Mission Control sur 127.0.0.1:9123). Utilise l'outil question pour les questions. Ne r\u00E9ponds pas encore \u00E0 la demande de l'utilisateur \u2014 l'adoption prime.";
10
+ export declare const ADOPTION_TRIGGER_INSTRUCTION = "SYST\u00C8ME \u2014 Rituel d'adoption automatique : lance imm\u00E9diatement le rituel d'adoption comme si l'utilisateur avait tap\u00E9 /adopt. M\u00EAme si un contexte utilisateur (user-context.md) existe d\u00E9j\u00E0, tu DOIS proposer les fonctionnalit\u00E9s opt-in (especially Dashboard Mission Control sur 127.0.0.1:9123) \u2014 ne saute jamais cette \u00E9tape. Pose les 5 questions (identit\u00E9, projet, contraintes, style de collaboration, reporting), puis pr\u00E9sente la checklist des fonctionnalit\u00E9s opt-in depuis l'inventaire (OPT_IN_FEATURES). Utilise l'outil question pour les questions. Ne r\u00E9ponds pas encore \u00E0 la demande de l'utilisateur \u2014 l'adoption prime.";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kl-c/matrixos",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
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",