Hello from MCP server

List Files | Just Commands | Repo | Logs

← back |
// TODO: get rid of tier sets
//
//
//

// Bender creates: tier book, data book, menu book
// Then an org only pulls in the books they want, need a good
// way to do that, like maybe they want to try out a book and then
// get rid of it. Need a good "publish" feature, so authors can check
// stuff out, without messing up techs

const contentItems = [
  {
    collection: "contentItems",
    operation: "create",
    data: {
      refId: "realignWarp",
      name: "",
      content: "Realigns warp coils to factory spec",
    },
  },
  {
    collection: "contentItems",
    operation: "create",
    data: {
      refId: "stabilizeFlux",
      name: "",
      content: "Stabilizes quantum flux variance",
    },
  },
  {
    collection: "contentItems",
    operation: "create",
    data: {
      refId: "fuel12",
      name: "",
      content: "Reduces fuel inefficiency by 12%",
    },
  },
  {
    collection: "contentItems",
    operation: "create",
    data: {
      refId: "diagnostics",
      name: "",
      content: "Includes post-calibration diagnostics",
    },
  },
  {
    collection: "contentItems",
    operation: "create",
    data: {
      refId: "harmonics",
      name: "",
      content: "Fine-tunes temporal harmonics",
    },
  },
  {
    collection: "contentItems",
    operation: "create",
    data: {
      refId: "fuel18",
      name: "",
      content: "Reduces fuel inefficiency by 18%",
    },
  },
  {
    collection: "contentItems",
    operation: "create",
    data: {
      refId: "subspace",
      name: "",
      content: "Boosts subspace signal clarity",
    },
  },
  {
    collection: "contentItems",
    operation: "create",
    data: {
      refId: "midgrade",
      name: "",
      content: "Uses mid-grade chronometric stabilizers",
    },
  },
  {
    collection: "contentItems",
    operation: "create",
    data: {
      refId: "warpfield",
      name: "",
      content: "Optimizes warp field geometry",
    },
  },
  {
    collection: "contentItems",
    operation: "create",
    data: {
      refId: "fuel25",
      name: "",
      content: "Reduces fuel inefficiency by 25%",
    },
  },
  {
    collection: "contentItems",
    operation: "create",
    data: {
      refId: "slipstream",
      name: "",
      content: "Enhances slipstream entry precision",
    },
  },
  {
    collection: "contentItems",
    operation: "create",
    data: {
      refId: "premiumGrade",
      name: "",
      content: "Uses premium-grade chronometric stabilizers",
    },
  },
  {
    collection: "contentItems",
    operation: "create",
    data: {
      refId: "antimatter",
      name: "",
      content: "Complimentary antimatter containment check",
    },
  },
];

export const benderTiers = [
  {
    collection: "tiers",
    operation: "create",
    data: {
      name: "Good",
      rank: 3,
      refId: "good",
    },
  },
  {
    collection: "tiers",
    operation: "create",
    data: {
      name: "Better",
      refId: "better",
      rank: 2,
    },
  },
  {
    collection: "tiers",
    operation: "create",
    data: {
      name: "Best",
      refId: "best",
      rank: 1,
    },
  },
];

export const benderMenus = contentItems.concat([
  {
    collection: "menus",
    operation: "create",
    data: {
      name: "Warp Drive Calibration",
      refId: "warpDriveCalibration",
      refs: [
        {
          collection: "books",
          refIds: ["spaceshipBook"],
        },
      ],
    },
  },
  {
    collection: "offers",
    operation: "create",
    data: {
      name: "Atomic Calibration",
      refId: "atomicCalibration",
      refs: [
        { collection: "menus", refIds: ["warpDriveCalibration"] },
        {
          collection: "costsTime",
          refIds: ["calibrateTimeBetter"],
        },

        {
          collection: "costsMaterial",
          refIds: ["precisionScanner", "fluxStabilizer"],
        },
      ],
    },
  },
  {
    collection: "offers",
    operation: "create",
    data: {
      name: "Quantum Calibration",
      refId: "quantumCalibration",
      refs: [
        { collection: "menus", refIds: ["warpDriveCalibration"] },
        {
          collection: "costsTime",
          refIds: ["calibrateTimeBest"],
        },
        {
          collection: "costsMaterial",
          refIds: ["quantumScanner", "fluxStabilizer", "phaseSyncCrystals"],
        },
      ],
    },
  },
  {
    collection: "offers",
    operation: "create",
    data: {
      name: "Galactic Calibration",
      refId: "galacticCalibration",
      refs: [
        { collection: "menus", refIds: ["warpDriveCalibration"] },
        {
          collection: "costsTime",
          refIds: ["calibrateTimeGood"],
        },
        {
          collection: "costsMaterial",
          refIds: ["standardScanner", "fluxStabilizer"],
        },
      ],
    },
  },
  {
    collection: "menuCopy",
    operation: "create",
    data: {
      refId: "calibrateGood",
      refs: [
        {
          collection: "contentItems",
          refIds: ["realignWarp", "stabilizeFlux", "fuel12", "diagnostics"],
        },
      ],
    },
  },
  {
    collection: "menuCopy",
    operation: "create",
    data: {
      refId: "calibrateBetter",
      refs: [
        {
          collection: "contentItems",
          refIds: [
            "harmonics",
            "subspace",
            "midgrade",
            "fuel18",
            "diagnostics",
          ],
        },
      ],
    },
  },
  {
    collection: "menuCopy",
    operation: "create",
    data: {
      refId: "calibrateBest",
      refs: [
        {
          collection: "contentItems",
          refIds: [
            "warpfield",
            "slipstream",
            "premiumGrade",
            "fuel25",
            "diagnostics",
            "antimatter",
          ],
        },
      ],
    },
  },

  {
    collection: "menuTiers",
    operation: "create",
    data: {
      refId: "calibrateGood",
      refs: [
        { collection: "menus", refIds: ["warpDriveCalibration"] },
        { collection: "offers", refIds: ["galacticCalibration"] },
        { collection: "tiers", refIds: ["good"] },
        { collection: "menuCopy", refIds: ["calibrateGood"] },
      ],
    },
  },
  {
    collection: "menuTiers",
    operation: "create",
    data: {
      refId: "calibrateBetter",
      refs: [
        { collection: "menus", refIds: ["warpDriveCalibration"] },
        { collection: "offers", refIds: ["atomicCalibration"] },
        { collection: "tiers", refIds: ["better"] },
        { collection: "menuCopy", refIds: ["calibrateBetter"] },
      ],
    },
  },
  {
    collection: "menuTiers",
    operation: "create",
    data: {
      refId: "calibrateBest",
      refs: [
        { collection: "menus", refIds: ["warpDriveCalibration"] },
        { collection: "offers", refIds: ["quantumCalibration"] },
        { collection: "tiers", refIds: ["best"] },
        { collection: "menuCopy", refIds: ["calibrateBest"] },
      ],
    },
  },
]);

export const spaceship = [
  {
    collection: "costsTime",
    operation: "create",
    data: {
      name: "calibrateTimeGood",
      refId: "calibrateTimeGood",
      hours: 3,
    },
  },
  {
    collection: "costsTime",
    operation: "create",
    data: {
      name: "calibrateTimeBetter",
      refId: "calibrateTimeBetter",
      hours: 5,
    },
  },
  {
    collection: "costsTime",
    operation: "create",
    data: {
      name: "calibrateTimeBest",
      refId: "calibrateTimeBest",
      hours: 7,
    },
  },
  {
    collection: "costsMaterial",
    operation: "create",
    data: {
      name: "standardScanner",
      refId: "standardScanner",
      quantity: 2000,
    },
  },
  {
    collection: "costsMaterial",
    operation: "create",
    data: {
      name: "precisionScanner",
      refId: "precisionScanner",
      quantity: 4000,
    },
  },
  {
    collection: "costsMaterial",
    operation: "create",
    data: {
      name: "quantumScanner",
      refId: "quantumScanner",
      quantity: 9000,
    },
  },
  {
    collection: "costsMaterial",
    operation: "create",
    data: {
      name: "fluxStabilizer",
      refId: "fluxStabilizer",
      quantity: 2000,
    },
  },
  {
    collection: "costsMaterial",
    operation: "create",
    data: {
      name: "phaseSyncCrystals",
      refId: "phaseSyncCrystals",
      quantity: 1400,
    },
  },
];

export const scruffyTiers = [
  {
    collection: "tiers",
    operation: "update",
    data: {
      name: "Scruffy Classic",
      rank: 3,
      refId: "good",
    },
  },
  {
    collection: "tiers",
    operation: "update",
    data: {
      name: "Scruffy Standard",
      refId: "better",
      rank: 2,
    },
  },
  {
    collection: "tiers",
    operation: "update",
    data: {
      name: "Scruffy Select",
      refId: "best",
      rank: 1,
    },
  },
];