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

1.3 KB
Raw Blame
/**
 * Teach every arc-role planning prompt that climax and finale are distinct:
 * climax owns the decisive active choice; finale follows with consequences
 * and denouement. Hash replacement preserves customized installs.
 */

import { makePromptReplaceMigration } from './_lib.js';

export const ACCEPTED_OLD_MD5 = {
  'pipeline-season-episodes.md': ['a88e8e78a949b7aaf500d03314e2ea0b'],
  'pipeline-idea-expansion.md': ['d6fa86a435f978336661dcabca67258f'],
  'pipeline-arc-verify.md': ['a397f158fd9c0dca1c8dbe62df253f70'],
  'importer-issue-proposal.md': ['a6838832f8289932836db84ee565b870'],
};

export const NEW_SHIPPED_MD5 = {
  'pipeline-season-episodes.md': 'b3fc07d785599b5a4859af8bed3c1d4e',
  'pipeline-idea-expansion.md': 'a032e4a724251ed3e3495d33c4dbab8e',
  'pipeline-arc-verify.md': '090920d816beef8dfc12ee6152511456',
  'importer-issue-proposal.md': '9ba2ff965fba61efb85a3568bb530055',
};

const { applyMigration, up } = makePromptReplaceMigration({
  accepted: ACCEPTED_OLD_MD5,
  current: NEW_SHIPPED_MD5,
  label: 'distinct climax arc role prompts',
  customizedHint: (filename) =>
    `   To add the distinct climax role manually, diff data.reference/prompts/stages/${filename}\n` +
    `   against data/prompts/stages/${filename} and merge the climax/denouement guidance.`,
});

export { applyMigration };
export default { up };