Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ sandbox:
memory:
directory: memory/
contextDir: memory/context/
subAgentsDir: memory/sub-agents/
errorsDir: memory/errors/
schedulesDir: memory/schedules/
sessionsDir: memory/sessions/
gc:
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if (config.schedules.syncOnInit !== false) {
const jobResult = Cron.add({
name: "reflection-daily",
cron: "0 2 * * *",
command: `cd ${cwd} && node index.js --message run /reflection`,
command: `cd ${cwd} && node index.js --message "Run the reflection skill"`,
});
if (jobResult.added || !jobResult.error) {
try {
Expand All @@ -70,7 +70,7 @@ if (config.schedules.syncOnInit !== false) {
const jobData = {
name: "reflection-daily",
cron: "0 2 * * *",
command: `cd ${cwd} && node index.js --message run /reflection`,
command: `cd ${cwd} && node index.js --message "Run the reflection skill"`,
enabled: true,
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
Expand Down
4 changes: 2 additions & 2 deletions src/scheduler/autoSchedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function createJobDefinition(cwd) {
return {
name: "reflection-daily",
cron: JOB_CRON,
command: `cd ${cwd} && timeout 300 node src/index.js --message run /reflection`,
command: `cd ${cwd} && timeout 300 node src/index.js --message "Run the reflection skill"`,
};
}

Expand Down Expand Up @@ -59,7 +59,7 @@ function persistJobFile(jobName, job, cwd) {
const jobData = Object.freeze({
name: job.name,
cron: job.cron,
command: `cd ${cwd} && timeout 300 node src/index.js --message run /reflection`,
command: `cd ${cwd} && timeout 300 node src/index.js --message "Run the reflection skill"`,
enabled: true,
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/autoSchedule.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe("setupAutoSchedule", () => {
assert.strictEqual(capturedJob.cron, "0 2 * * *");
assert.ok(typeof capturedJob.command === "string");
assert.ok(
capturedJob.command.includes("node src/index.js --message run /reflection"),
capturedJob.command.includes('node src/index.js --message "Run the reflection skill"'),
"Command should include the --message /reflection command",
);
});
Expand Down Expand Up @@ -99,7 +99,7 @@ describe("setupAutoSchedule", () => {
assert.strictEqual(content.cron, "0 2 * * *");
assert.ok(
content.command.startsWith("cd ") &&
content.command.includes("node src/index.js --message run /reflection"),
content.command.includes('node src/index.js --message "Run the reflection skill"'),
);
assert.strictEqual(content.enabled, true);
assert.ok(content.createdAt);
Expand Down