Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: renumber local LLM catalog migration

[._.]/ Adam Eivye19c522352eb
diff --git a/scripts/migrations/298-refresh-local-llm-catalog-custom-task.js b/scripts/migrations/299-refresh-local-llm-catalog-custom-task.js
similarity index 97%
rename from scripts/migrations/298-refresh-local-llm-catalog-custom-task.js
rename to scripts/migrations/299-refresh-local-llm-catalog-custom-task.js
index 989864af6f..7295182f66 100644
--- a/scripts/migrations/298-refresh-local-llm-catalog-custom-task.js
+++ b/scripts/migrations/299-refresh-local-llm-catalog-custom-task.js
@@ -38,7 +38,7 @@ async function readOptionalJsonStrict(path, label) {
try {
return JSON.parse(raw)
} catch (err) {
- throw new Error(`${label} is unreadable; repair it before retrying migration 298: ${err.message}`)
+ throw new Error(`${label} is unreadable; repair it before retrying migration 299: ${err.message}`)
}
}
@@ -78,11 +78,11 @@ export default {
for (const [label, schedule] of [[CURRENT_SCHEDULE_REL, currentSchedule], [LEGACY_SCHEDULE_REL, legacySchedule]]) {
if (schedule != null && (!isObject(schedule) || !isObject(schedule.tasks))) {
- throw new Error(`${label} has an invalid tasks collection; repair it before retrying migration 298`)
+ throw new Error(`${label} has an invalid tasks collection; repair it before retrying migration 299`)
}
}
if (appsData != null && (!isObject(appsData) || !isObject(appsData.apps))) {
- throw new Error(`${APPS_REL} has an invalid apps collection; repair it before retrying migration 298`)
+ throw new Error(`${APPS_REL} has an invalid apps collection; repair it before retrying migration 299`)
}
const schedules = [
@@ -112,7 +112,7 @@ export default {
jobs: []
}
if (!isObject(jobsData) || !Array.isArray(jobsData.jobs)) {
- throw new Error(`${JOBS_REL} has an invalid jobs collection; repair it before retrying migration 298`)
+ throw new Error(`${JOBS_REL} has an invalid jobs collection; repair it before retrying migration 299`)
}
let jobCreated = false
diff --git a/scripts/migrations/298-refresh-local-llm-catalog-custom-task.test.js b/scripts/migrations/299-refresh-local-llm-catalog-custom-task.test.js
similarity index 97%
rename from scripts/migrations/298-refresh-local-llm-catalog-custom-task.test.js
rename to scripts/migrations/299-refresh-local-llm-catalog-custom-task.test.js
index ce6c1f9a38..19aa1640ab 100644
--- a/scripts/migrations/298-refresh-local-llm-catalog-custom-task.test.js
+++ b/scripts/migrations/299-refresh-local-llm-catalog-custom-task.test.js
@@ -4,7 +4,7 @@ import { tmpdir } from 'os'
import { dirname, join } from 'path'
import { PORTOS_APP_ID } from '../../server/lib/appIdentity.js'
import { PORTOS_CATALOG_REFRESH_JOB_ID } from '../../server/services/autonomousJobs/portosCatalogRefresh.js'
-import migration from './298-refresh-local-llm-catalog-custom-task.js'
+import migration from './299-refresh-local-llm-catalog-custom-task.js'
const writeJson = (path, value) => {
mkdirSync(dirname(path), { recursive: true })
@@ -12,7 +12,7 @@ const writeJson = (path, value) => {
}
const readJson = (path) => JSON.parse(readFileSync(path, 'utf8'))
-describe('migration 298 — local-LLM catalog refresh → PortOS custom task', () => {
+describe('migration 299 — local-LLM catalog refresh → PortOS custom task', () => {
let rootDir
let schedulePath
let legacySchedulePath
@@ -20,7 +20,7 @@ describe('migration 298 — local-LLM catalog refresh → PortOS custom task', (
let appsPath
beforeEach(() => {
- rootDir = mkdtempSync(join(tmpdir(), 'migration-298-'))
+ rootDir = mkdtempSync(join(tmpdir(), 'migration-299-'))
schedulePath = join(rootDir, 'data', 'cos', 'task-schedule.json')
legacySchedulePath = join(rootDir, 'data', 'task-schedule.json')
jobsPath = join(rootDir, 'data', 'cos', 'autonomous-jobs.json')