@kl-c/matrixos 0.1.7 → 0.1.10
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/.agents/command/adopt.md +50 -0
- package/.agents/command/features.md +35 -0
- package/.opencode/command/adopt.md +50 -0
- package/.opencode/command/features.md +35 -0
- package/dist/cli/config-manager/write-gateway-env.d.ts +7 -0
- package/dist/cli/index.js +942 -789
- package/dist/cli/install-validators.d.ts +1 -0
- package/dist/cli/skills/debugging/references/methodology/02-investigate.md +1 -1
- package/dist/cli/skills/refactor/SKILL.md +1 -1
- package/dist/cli/skills/superpowers-brainstorming/SKILL.md +162 -0
- package/dist/cli/skills/superpowers-brainstorming/SUPERPOWERS_LICENSE +21 -0
- package/dist/cli/skills/superpowers-brainstorming/scripts/frame-template.html +213 -0
- package/dist/cli/skills/superpowers-brainstorming/scripts/helper.js +167 -0
- package/dist/cli/skills/superpowers-brainstorming/scripts/server.cjs +723 -0
- package/dist/cli/skills/superpowers-brainstorming/scripts/start-server.sh +209 -0
- package/dist/cli/skills/superpowers-brainstorming/scripts/stop-server.sh +120 -0
- package/dist/cli/skills/superpowers-brainstorming/spec-document-reviewer-prompt.md +49 -0
- package/dist/cli/skills/superpowers-brainstorming/visual-companion.md +291 -0
- package/dist/cli/skills/superpowers-receiving-code-review/SKILL.md +216 -0
- package/dist/cli/skills/superpowers-receiving-code-review/SUPERPOWERS_LICENSE +21 -0
- package/dist/cli/skills/superpowers-systematic-debugging/CREATION-LOG.md +119 -0
- package/dist/cli/skills/superpowers-systematic-debugging/SKILL.md +299 -0
- package/dist/cli/skills/superpowers-systematic-debugging/SUPERPOWERS_LICENSE +21 -0
- package/dist/cli/skills/superpowers-systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/dist/cli/skills/superpowers-systematic-debugging/condition-based-waiting.md +115 -0
- package/dist/cli/skills/superpowers-systematic-debugging/defense-in-depth.md +122 -0
- package/dist/cli/skills/superpowers-systematic-debugging/find-polluter.sh +63 -0
- package/dist/cli/skills/superpowers-systematic-debugging/root-cause-tracing.md +169 -0
- package/dist/cli/skills/superpowers-systematic-debugging/test-academic.md +14 -0
- package/dist/cli/skills/superpowers-systematic-debugging/test-pressure-1.md +58 -0
- package/dist/cli/skills/superpowers-systematic-debugging/test-pressure-2.md +68 -0
- package/dist/cli/skills/superpowers-systematic-debugging/test-pressure-3.md +69 -0
- package/dist/cli/skills/superpowers-writing-skills/SKILL.md +692 -0
- package/dist/cli/skills/superpowers-writing-skills/SUPERPOWERS_LICENSE +21 -0
- package/dist/cli/skills/superpowers-writing-skills/anthropic-best-practices.md +1150 -0
- package/dist/cli/skills/superpowers-writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
- package/dist/cli/skills/superpowers-writing-skills/graphviz-conventions.dot +172 -0
- package/dist/cli/skills/superpowers-writing-skills/persuasion-principles.md +187 -0
- package/dist/cli/skills/superpowers-writing-skills/render-graphs.js +168 -0
- package/dist/cli/skills/superpowers-writing-skills/testing-skills-with-subagents.md +384 -0
- package/dist/cli/types.d.ts +4 -0
- package/dist/cli-node/index.js +942 -789
- package/dist/config/schema/oh-my-opencode-config.d.ts +6 -0
- package/dist/config/schema/watchdog.d.ts +6 -0
- package/dist/features/anti-loop/background-registry.d.ts +10 -0
- package/dist/features/dashboard/frontend/css/style.css +211 -0
- package/dist/features/dashboard/frontend/index.html +173 -0
- package/dist/features/dashboard/frontend/js/api.js +2 -0
- package/dist/features/dashboard/frontend/js/app.js +349 -0
- package/dist/features/matrix-inventory/features.d.ts +45 -0
- package/dist/hooks/agent-anti-loop/hook.d.ts +16 -0
- package/dist/index.js +220 -45
- package/dist/{oh-my-opencode.schema.json → matrixos.schema.json} +43 -1
- package/dist/plugin/agent-anti-loop.d.ts +6 -0
- package/dist/skills/debugging/references/methodology/02-investigate.md +1 -1
- package/dist/skills/refactor/SKILL.md +1 -1
- package/dist/skills/superpowers-brainstorming/SKILL.md +162 -0
- package/dist/skills/superpowers-brainstorming/SUPERPOWERS_LICENSE +21 -0
- package/dist/skills/superpowers-brainstorming/scripts/frame-template.html +213 -0
- package/dist/skills/superpowers-brainstorming/scripts/helper.js +167 -0
- package/dist/skills/superpowers-brainstorming/scripts/server.cjs +723 -0
- package/dist/skills/superpowers-brainstorming/scripts/start-server.sh +209 -0
- package/dist/skills/superpowers-brainstorming/scripts/stop-server.sh +120 -0
- package/dist/skills/superpowers-brainstorming/spec-document-reviewer-prompt.md +49 -0
- package/dist/skills/superpowers-brainstorming/visual-companion.md +291 -0
- package/dist/skills/superpowers-receiving-code-review/SKILL.md +216 -0
- package/dist/skills/superpowers-receiving-code-review/SUPERPOWERS_LICENSE +21 -0
- package/dist/skills/superpowers-systematic-debugging/CREATION-LOG.md +119 -0
- package/dist/skills/superpowers-systematic-debugging/SKILL.md +299 -0
- package/dist/skills/superpowers-systematic-debugging/SUPERPOWERS_LICENSE +21 -0
- package/dist/skills/superpowers-systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/dist/skills/superpowers-systematic-debugging/condition-based-waiting.md +115 -0
- package/dist/skills/superpowers-systematic-debugging/defense-in-depth.md +122 -0
- package/dist/skills/superpowers-systematic-debugging/find-polluter.sh +63 -0
- package/dist/skills/superpowers-systematic-debugging/root-cause-tracing.md +169 -0
- package/dist/skills/superpowers-systematic-debugging/test-academic.md +14 -0
- package/dist/skills/superpowers-systematic-debugging/test-pressure-1.md +58 -0
- package/dist/skills/superpowers-systematic-debugging/test-pressure-2.md +68 -0
- package/dist/skills/superpowers-systematic-debugging/test-pressure-3.md +69 -0
- package/dist/skills/superpowers-writing-skills/SKILL.md +692 -0
- package/dist/skills/superpowers-writing-skills/SUPERPOWERS_LICENSE +21 -0
- package/dist/skills/superpowers-writing-skills/anthropic-best-practices.md +1150 -0
- package/dist/skills/superpowers-writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
- package/dist/skills/superpowers-writing-skills/graphviz-conventions.dot +172 -0
- package/dist/skills/superpowers-writing-skills/persuasion-principles.md +187 -0
- package/dist/skills/superpowers-writing-skills/render-graphs.js +168 -0
- package/dist/skills/superpowers-writing-skills/testing-skills-with-subagents.md +384 -0
- package/dist/testing/create-gateway-relay.d.ts +26 -0
- package/dist/tui.js +13 -0
- package/package.json +2 -1
- package/packages/shared-skills/skills/debugging/references/methodology/02-investigate.md +1 -1
- package/packages/shared-skills/skills/refactor/SKILL.md +1 -1
- package/packages/shared-skills/skills/superpowers-brainstorming/SKILL.md +162 -0
- package/packages/shared-skills/skills/superpowers-brainstorming/SUPERPOWERS_LICENSE +21 -0
- package/packages/shared-skills/skills/superpowers-brainstorming/scripts/frame-template.html +213 -0
- package/packages/shared-skills/skills/superpowers-brainstorming/scripts/helper.js +167 -0
- package/packages/shared-skills/skills/superpowers-brainstorming/scripts/server.cjs +723 -0
- package/packages/shared-skills/skills/superpowers-brainstorming/scripts/start-server.sh +209 -0
- package/packages/shared-skills/skills/superpowers-brainstorming/scripts/stop-server.sh +120 -0
- package/packages/shared-skills/skills/superpowers-brainstorming/spec-document-reviewer-prompt.md +49 -0
- package/packages/shared-skills/skills/superpowers-brainstorming/visual-companion.md +291 -0
- package/packages/shared-skills/skills/superpowers-receiving-code-review/SKILL.md +216 -0
- package/packages/shared-skills/skills/superpowers-receiving-code-review/SUPERPOWERS_LICENSE +21 -0
- package/packages/shared-skills/skills/superpowers-systematic-debugging/CREATION-LOG.md +119 -0
- package/packages/shared-skills/skills/superpowers-systematic-debugging/SKILL.md +299 -0
- package/packages/shared-skills/skills/superpowers-systematic-debugging/SUPERPOWERS_LICENSE +21 -0
- package/packages/shared-skills/skills/superpowers-systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/packages/shared-skills/skills/superpowers-systematic-debugging/condition-based-waiting.md +115 -0
- package/packages/shared-skills/skills/superpowers-systematic-debugging/defense-in-depth.md +122 -0
- package/packages/shared-skills/skills/superpowers-systematic-debugging/find-polluter.sh +63 -0
- package/packages/shared-skills/skills/superpowers-systematic-debugging/root-cause-tracing.md +169 -0
- package/packages/shared-skills/skills/superpowers-systematic-debugging/test-academic.md +14 -0
- package/packages/shared-skills/skills/superpowers-systematic-debugging/test-pressure-1.md +58 -0
- package/packages/shared-skills/skills/superpowers-systematic-debugging/test-pressure-2.md +68 -0
- package/packages/shared-skills/skills/superpowers-systematic-debugging/test-pressure-3.md +69 -0
- package/packages/shared-skills/skills/superpowers-writing-skills/SKILL.md +692 -0
- package/packages/shared-skills/skills/superpowers-writing-skills/SUPERPOWERS_LICENSE +21 -0
- package/packages/shared-skills/skills/superpowers-writing-skills/anthropic-best-practices.md +1150 -0
- package/packages/shared-skills/skills/superpowers-writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
- package/packages/shared-skills/skills/superpowers-writing-skills/graphviz-conventions.dot +172 -0
- package/packages/shared-skills/skills/superpowers-writing-skills/persuasion-principles.md +187 -0
- package/packages/shared-skills/skills/superpowers-writing-skills/render-graphs.js +168 -0
- package/packages/shared-skills/skills/superpowers-writing-skills/testing-skills-with-subagents.md +384 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Launch or re-run the Morpheus adoption ritual — establish user context and offer opt-in features (dashboard, kanban, cron, etc.)
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<command-instruction>
|
|
6
|
+
You are executing the **Morpheus adoption ritual** (`/adopt`). This is the first-contact (or re-adoption) ceremony that establishes the user's context and offers optional MaTrixOS features.
|
|
7
|
+
|
|
8
|
+
## When this runs
|
|
9
|
+
- First launch, if `/root/MOS_Vault/04-Areas/user-context.md` is missing or still a template.
|
|
10
|
+
- Any time the user explicitly types `/adopt` to (re)do the ritual.
|
|
11
|
+
|
|
12
|
+
## Behavior
|
|
13
|
+
|
|
14
|
+
### 1. Detect current state
|
|
15
|
+
Check whether `/root/MOS_Vault/04-Areas/user-context.md` exists and is filled.
|
|
16
|
+
- If filled: tell the user "Tu as déjà un contexte d'adoption. Je relance le rituel pour le mettre à jour." and proceed to step 2 (re-adoption mode — EDIT sections, do NOT rewrite from scratch).
|
|
17
|
+
- If missing/template: adoption mode — you will CREATE the file.
|
|
18
|
+
|
|
19
|
+
### 2. Ask the adoption questions (in conversation, French, interactive `question` tool)
|
|
20
|
+
Pose ~5 targeted questions:
|
|
21
|
+
1. **Qui es-tu ?** (nom/alias, rôle, ce que tu fais)
|
|
22
|
+
2. **Pour quel projet / besoin m'as-tu déployé ?** (objectif, stack, périmètre)
|
|
23
|
+
3. **Quelles contraintes / garde-fous ?** (infra, interdits, modèles si hors défaut)
|
|
24
|
+
4. **Comment veux-tu collaborer ?** (style de réponse, proactivité, niveau de vérif)
|
|
25
|
+
5. **À qui est-ce que je rends compte ?** (confirmation : toi seul, ou une entité que tu désignes)
|
|
26
|
+
|
|
27
|
+
### 3. Offer opt-in features (DO NOT skip this)
|
|
28
|
+
After the questions, read the feature inventory from:
|
|
29
|
+
`packages/omo-opencode/src/features/matrix-inventory/features.ts` (export `OPT_IN_FEATURES`).
|
|
30
|
+
|
|
31
|
+
Present the opt-in features as a checklist. For EACH, give: name, one-line description, and the honest provisioning note (especially the Dashboard — clarify it is a web UI served on 127.0.0.1:9123, backend always present, frontend bundled by the build; to enable: `matrixos dashboard --daemon`).
|
|
32
|
+
|
|
33
|
+
Ask the user which they want activated. Confirm specifically the **Dashboard (Mission Control)** since the user explicitly cares about it.
|
|
34
|
+
|
|
35
|
+
### 4. Synthesize
|
|
36
|
+
Write/edit `/root/MOS_Vault/04-Areas/user-context.md`:
|
|
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
|
+
- Re-adoption mode: edit only the sections the user changed; update `last_verified`; append a line in section 5.
|
|
39
|
+
Never rewrite the whole file from scratch — preserve existing context.
|
|
40
|
+
|
|
41
|
+
Also update `/root/MOS_Vault/MEMORY.md` routing if the user-context file was just created.
|
|
42
|
+
|
|
43
|
+
### 5. Confirm
|
|
44
|
+
End with: « C'est noté, je suis désormais configuré pour toi. Tu peux à tout moment utiliser `/features` pour voir ce que je peux faire, ou `/adopt` pour refaire ce rituel. »
|
|
45
|
+
|
|
46
|
+
## Rules
|
|
47
|
+
- User context is NEVER fixed: user can say "mets à jour mon contexte" → edit, not rewrite.
|
|
48
|
+
- Do not invent a hierarchy/manager — Morpheus reports only to the user who installed it.
|
|
49
|
+
- Do not store code-derivable facts in user-context.md (that belongs to Magic Context / MOS_Vault project files).
|
|
50
|
+
- If the user wants a feature activated that requires provisioning (e.g. Dashboard), relay the exact provisioning steps from the inventory — and if you are instructed to actually enable it, follow the `provisioning.activation` recipe (e.g. launch `matrixos dashboard --daemon`).
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: List and explain MaTrixOS capabilities (features) on demand — read from the feature inventory
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<command-instruction>
|
|
6
|
+
You are executing `/features` — the user wants to know what MaTrixOS can do.
|
|
7
|
+
|
|
8
|
+
## Source of truth
|
|
9
|
+
Read the feature inventory from:
|
|
10
|
+
`packages/omo-opencode/src/features/matrix-inventory/features.ts` (export `MATRIX_FEATURES`, `OPT_IN_FEATURES`, `getFeature(id)`).
|
|
11
|
+
|
|
12
|
+
This is the ONLY place you describe capabilities from. Do NOT guess or fouille the codebase for feature descriptions — the inventory is authoritative and kept in sync with the code.
|
|
13
|
+
|
|
14
|
+
## Behavior
|
|
15
|
+
|
|
16
|
+
### No argument: list everything
|
|
17
|
+
Print a compact table of all features:
|
|
18
|
+
- name | one-line description | status (native / opt-in / cli-only) | enabled by default?
|
|
19
|
+
|
|
20
|
+
Group them: **Toujours actif** (enabledByDefault) first, then **Optionnel** (opt-in / cli-only).
|
|
21
|
+
|
|
22
|
+
### With an argument (e.g. `/features dashboard`): detail one feature
|
|
23
|
+
Look it up via `getFeature(<id>)`. Print:
|
|
24
|
+
- Full name + description
|
|
25
|
+
- Status + enabledByDefault
|
|
26
|
+
- User benefit (what they get)
|
|
27
|
+
- Provisioning: how to activate it (exact command/config), config path, and honest notes/caveats.
|
|
28
|
+
For the Dashboard, be explicit: web UI on 127.0.0.1:9123, backend always present, frontend bundled by build; enable with `matrixos dashboard --daemon` (remote: `--host <tailscale-ip>`).
|
|
29
|
+
|
|
30
|
+
### Offer next step
|
|
31
|
+
End with: « Dis-moi si tu veux activer l'une de ces fonctionnalités — utilise `/adopt` pour lancer le rituel et choisir celles que tu veux. »
|
|
32
|
+
|
|
33
|
+
## Rules
|
|
34
|
+
- The inventory is the single source of truth. If a feature seems missing or outdated, say so and flag it for update — do not invent.
|
|
35
|
+
- Keep it readable; no raw code dump. One screen max for the list.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Launch or re-run the Morpheus adoption ritual — establish user context and offer opt-in features (dashboard, kanban, cron, etc.)
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<command-instruction>
|
|
6
|
+
You are executing the **Morpheus adoption ritual** (`/adopt`). This is the first-contact (or re-adoption) ceremony that establishes the user's context and offers optional MaTrixOS features.
|
|
7
|
+
|
|
8
|
+
## When this runs
|
|
9
|
+
- First launch, if `/root/MOS_Vault/04-Areas/user-context.md` is missing or still a template.
|
|
10
|
+
- Any time the user explicitly types `/adopt` to (re)do the ritual.
|
|
11
|
+
|
|
12
|
+
## Behavior
|
|
13
|
+
|
|
14
|
+
### 1. Detect current state
|
|
15
|
+
Check whether `/root/MOS_Vault/04-Areas/user-context.md` exists and is filled.
|
|
16
|
+
- If filled: tell the user "Tu as déjà un contexte d'adoption. Je relance le rituel pour le mettre à jour." and proceed to step 2 (re-adoption mode — EDIT sections, do NOT rewrite from scratch).
|
|
17
|
+
- If missing/template: adoption mode — you will CREATE the file.
|
|
18
|
+
|
|
19
|
+
### 2. Ask the adoption questions (in conversation, French, interactive `question` tool)
|
|
20
|
+
Pose ~5 targeted questions:
|
|
21
|
+
1. **Qui es-tu ?** (nom/alias, rôle, ce que tu fais)
|
|
22
|
+
2. **Pour quel projet / besoin m'as-tu déployé ?** (objectif, stack, périmètre)
|
|
23
|
+
3. **Quelles contraintes / garde-fous ?** (infra, interdits, modèles si hors défaut)
|
|
24
|
+
4. **Comment veux-tu collaborer ?** (style de réponse, proactivité, niveau de vérif)
|
|
25
|
+
5. **À qui est-ce que je rends compte ?** (confirmation : toi seul, ou une entité que tu désignes)
|
|
26
|
+
|
|
27
|
+
### 3. Offer opt-in features (DO NOT skip this)
|
|
28
|
+
After the questions, read the feature inventory from:
|
|
29
|
+
`packages/omo-opencode/src/features/matrix-inventory/features.ts` (export `OPT_IN_FEATURES`).
|
|
30
|
+
|
|
31
|
+
Present the opt-in features as a checklist. For EACH, give: name, one-line description, and the honest provisioning note (especially the Dashboard — clarify it is a web UI served on 127.0.0.1:9123, backend always present, frontend bundled by the build; to enable: `matrixos dashboard --daemon`).
|
|
32
|
+
|
|
33
|
+
Ask the user which they want activated. Confirm specifically the **Dashboard (Mission Control)** since the user explicitly cares about it.
|
|
34
|
+
|
|
35
|
+
### 4. Synthesize
|
|
36
|
+
Write/edit `/root/MOS_Vault/04-Areas/user-context.md`:
|
|
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
|
+
- Re-adoption mode: edit only the sections the user changed; update `last_verified`; append a line in section 5.
|
|
39
|
+
Never rewrite the whole file from scratch — preserve existing context.
|
|
40
|
+
|
|
41
|
+
Also update `/root/MOS_Vault/MEMORY.md` routing if the user-context file was just created.
|
|
42
|
+
|
|
43
|
+
### 5. Confirm
|
|
44
|
+
End with: « C'est noté, je suis désormais configuré pour toi. Tu peux à tout moment utiliser `/features` pour voir ce que je peux faire, ou `/adopt` pour refaire ce rituel. »
|
|
45
|
+
|
|
46
|
+
## Rules
|
|
47
|
+
- User context is NEVER fixed: user can say "mets à jour mon contexte" → edit, not rewrite.
|
|
48
|
+
- Do not invent a hierarchy/manager — Morpheus reports only to the user who installed it.
|
|
49
|
+
- Do not store code-derivable facts in user-context.md (that belongs to Magic Context / MOS_Vault project files).
|
|
50
|
+
- If the user wants a feature activated that requires provisioning (e.g. Dashboard), relay the exact provisioning steps from the inventory — and if you are instructed to actually enable it, follow the `provisioning.activation` recipe (e.g. launch `matrixos dashboard --daemon`).
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: List and explain MaTrixOS capabilities (features) on demand — read from the feature inventory
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<command-instruction>
|
|
6
|
+
You are executing `/features` — the user wants to know what MaTrixOS can do.
|
|
7
|
+
|
|
8
|
+
## Source of truth
|
|
9
|
+
Read the feature inventory from:
|
|
10
|
+
`packages/omo-opencode/src/features/matrix-inventory/features.ts` (export `MATRIX_FEATURES`, `OPT_IN_FEATURES`, `getFeature(id)`).
|
|
11
|
+
|
|
12
|
+
This is the ONLY place you describe capabilities from. Do NOT guess or fouille the codebase for feature descriptions — the inventory is authoritative and kept in sync with the code.
|
|
13
|
+
|
|
14
|
+
## Behavior
|
|
15
|
+
|
|
16
|
+
### No argument: list everything
|
|
17
|
+
Print a compact table of all features:
|
|
18
|
+
- name | one-line description | status (native / opt-in / cli-only) | enabled by default?
|
|
19
|
+
|
|
20
|
+
Group them: **Toujours actif** (enabledByDefault) first, then **Optionnel** (opt-in / cli-only).
|
|
21
|
+
|
|
22
|
+
### With an argument (e.g. `/features dashboard`): detail one feature
|
|
23
|
+
Look it up via `getFeature(<id>)`. Print:
|
|
24
|
+
- Full name + description
|
|
25
|
+
- Status + enabledByDefault
|
|
26
|
+
- User benefit (what they get)
|
|
27
|
+
- Provisioning: how to activate it (exact command/config), config path, and honest notes/caveats.
|
|
28
|
+
For the Dashboard, be explicit: web UI on 127.0.0.1:9123, backend always present, frontend bundled by build; enable with `matrixos dashboard --daemon` (remote: `--host <tailscale-ip>`).
|
|
29
|
+
|
|
30
|
+
### Offer next step
|
|
31
|
+
End with: « Dis-moi si tu veux activer l'une de ces fonctionnalités — utilise `/adopt` pour lancer le rituel et choisir celles que tu veux. »
|
|
32
|
+
|
|
33
|
+
## Rules
|
|
34
|
+
- The inventory is the single source of truth. If a feature seems missing or outdated, say so and flag it for update — do not invent.
|
|
35
|
+
- Keep it readable; no raw code dump. One screen max for the list.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const GATEWAY_ENV_FILENAME = ".klc-gateway.env";
|
|
2
|
+
/**
|
|
3
|
+
* Write the Telegram bot token to a chmod-600 env file next to matrixos.json.
|
|
4
|
+
* The token is NEVER stored in matrixos.json — the gateway reads it via
|
|
5
|
+
* `env:TELEGRAM_BOT_TOKEN` at runtime. Returns the written file path.
|
|
6
|
+
*/
|
|
7
|
+
export declare function writeGatewayEnv(token: string): string;
|