{"record":{"id":"92efdcd6efff9aae","repo":"paperclipai/paperclip","slug":"git-install-cannot-stage-workspace-dependency-pa","errorCode":null,"errorMessage":"Git install cannot stage workspace dependency ${packageName}; it is missing from scripts/release-package-manifest.json.","messagePattern":"Git install cannot stage workspace dependency (.+?); it is missing from scripts/release-package-manifest\\.json\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/install.ts","lineNumber":68,"sourceCode":"      : \"\";\n    if (!stderr || (error instanceof Error && error.message.includes(stderr))) throw error;\n    throw new Error(`${error instanceof Error ? error.message : String(error)}\\n${stderr}`, { cause: error });\n  }\n}\n\nexport function resolveGitInstallWorkspacePackages(checkoutPath: string): ReleasePackageEntry[] {\n  const manifestPath = path.join(checkoutPath, \"scripts\", \"release-package-manifest.json\");\n  const manifest = JSON.parse(fs.readFileSync(manifestPath, \"utf8\")) as ReleasePackageEntry[];\n  const packageByName = new Map(manifest.map((entry) => [entry.name, entry]));\n  const visiting = new Set<string>();\n  const visited = new Set<string>();\n  const ordered: ReleasePackageEntry[] = [];\n\n  const visit = (packageName: string): void => {\n    if (visited.has(packageName)) return;\n    if (visiting.has(packageName)) throw new Error(`Circular workspace dependency while staging ${packageName}.`);\n    const entry = packageByName.get(packageName);\n    if (!entry) throw new Error(`Git install cannot stage workspace dependency ${packageName}; it is missing from scripts/release-package-manifest.json.`);\n    visiting.add(packageName);\n    const packageJson = JSON.parse(fs.readFileSync(path.join(checkoutPath, entry.dir, \"package.json\"), \"utf8\")) as Record<string, unknown>;\n    for (const section of [\"dependencies\", \"optionalDependencies\", \"peerDependencies\"] as const) {\n      const dependencies = packageJson[section];\n      if (!dependencies || typeof dependencies !== \"object\") continue;\n      for (const dependencyName of Object.keys(dependencies)) {\n        if (dependencyName.startsWith(\"@paperclipai/\")) visit(dependencyName);\n      }\n    }\n    visiting.delete(packageName);\n    visited.add(packageName);\n    ordered.push(entry);\n  };\n\n  visit(\"@paperclipai/server\");\n  return ordered;\n}\n","sourceCodeStart":50,"sourceCodeEnd":86,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/cli/src/commands/install.ts#L50-L86","documentation":"Error \"Git install cannot stage workspace dependency ${packageName}; it is missing from scripts/release-package-manifest.json.\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at cli/src/commands/install.ts:67 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add the missing workspace package to scripts/release-package-manifest.json."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}