fluxy-bot 0.5.48 → 0.5.49
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/bin/cli.js +3 -3
- package/package.json +5 -5
- package/worker/prompts/fluxy-system-prompt.txt +16 -21
package/bin/cli.js
CHANGED
|
@@ -9,7 +9,7 @@ import { fileURLToPath } from 'url';
|
|
|
9
9
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
10
10
|
|
|
11
11
|
const REPO_ROOT = path.resolve(__dirname, '..');
|
|
12
|
-
const DATA_DIR = path.join(os.homedir(), '.fluxy');
|
|
12
|
+
const DATA_DIR = path.join(process.env.FLUXY_REAL_HOME || os.homedir(), '.fluxy');
|
|
13
13
|
const IS_DEV = fs.existsSync(path.join(REPO_ROOT, '.git'));
|
|
14
14
|
const ROOT = IS_DEV ? REPO_ROOT : DATA_DIR;
|
|
15
15
|
const CONFIG_PATH = path.join(DATA_DIR, 'config.json');
|
|
@@ -455,7 +455,7 @@ async function init() {
|
|
|
455
455
|
const nodePath = process.execPath;
|
|
456
456
|
const realHome = os.homedir();
|
|
457
457
|
const res = spawnSync(process.execPath, [process.argv[1], 'daemon', 'install'], {
|
|
458
|
-
stdio: '
|
|
458
|
+
stdio: 'inherit',
|
|
459
459
|
env: { ...process.env, FLUXY_NODE_PATH: nodePath, FLUXY_REAL_HOME: realHome },
|
|
460
460
|
});
|
|
461
461
|
stepper.advance();
|
|
@@ -546,7 +546,7 @@ async function start() {
|
|
|
546
546
|
const nodePath = process.execPath;
|
|
547
547
|
const realHome = os.homedir();
|
|
548
548
|
const res = spawnSync(process.execPath, [process.argv[1], 'daemon', 'install'], {
|
|
549
|
-
stdio: '
|
|
549
|
+
stdio: 'inherit',
|
|
550
550
|
env: { ...process.env, FLUXY_NODE_PATH: nodePath, FLUXY_REAL_HOME: realHome },
|
|
551
551
|
});
|
|
552
552
|
stepper.advance();
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fluxy-bot",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.49",
|
|
4
4
|
"releaseNotes": [
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
5
|
+
"1. ",
|
|
6
|
+
"2. ",
|
|
7
|
+
"3. ",
|
|
8
|
+
"4. "
|
|
9
9
|
],
|
|
10
10
|
"description": "Self-hosted, self-evolving AI agent with its own dashboard.",
|
|
11
11
|
"type": "module",
|
|
@@ -152,27 +152,22 @@ If a `<CRON_TASK_DETAIL>` block follows the CRON tag, it contains the full instr
|
|
|
152
152
|
|
|
153
153
|
Notify your human only if importance is 7+ — otherwise log results silently.
|
|
154
154
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
3. ALWAYS send a <Message>:
|
|
172
|
-
"Updated to vX.Y.Z! Here's what's new:
|
|
173
|
-
1. ...
|
|
174
|
-
2. ...
|
|
175
|
-
3. ..."
|
|
155
|
+
## Self-Update
|
|
156
|
+
|
|
157
|
+
**Check version:** `cat ~/.fluxy/VERSION` (current) vs `npm view fluxy-bot version` (latest).
|
|
158
|
+
|
|
159
|
+
**To update:** Create the trigger file `touch ~/.fluxy/workspace/.update` — the supervisor runs the update after your turn ends. You will
|
|
160
|
+
NOT die. Finish your turn normally.
|
|
161
|
+
|
|
162
|
+
**On PULSE:** Occasionally check for updates (not every pulse — once every few hours). If a new version exists:
|
|
163
|
+
1. Read release notes: `npm view fluxy-bot releaseNotes --json`
|
|
164
|
+
2. `touch ~/.fluxy/workspace/.update`
|
|
165
|
+
3. Save to daily notes: "Updated from vX to vY" + notable changes to talk with your human later "Btw I updated myself this night"
|
|
166
|
+
|
|
167
|
+
**When user asks to update:**
|
|
168
|
+
1. Check version, if already latest say so
|
|
169
|
+
2. Otherwise read release notes, `touch ~/.fluxy/workspace/.update`
|
|
170
|
+
3. Tell your human what is new and that the page will be unresponsive for up to 2 minutes while this happens.
|
|
176
171
|
|
|
177
172
|
## Task Files — `tasks/`
|
|
178
173
|
|