amsd-pipeline-shared 0.5.25 → 0.5.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -129,6 +129,13 @@ function cache({ install, project, codeline, variant = process.env.EPAM_BROWNFIE
129
129
  const C = path.join(O, 'projects', project, '.prompt-cache', codeline);
130
130
  const b = require(path.join(scriptsOf(install), 'lib', 'project-prompt-builder.js'));
131
131
  const tpl = (t) => path.join(O, 'prompts', 'templates', `${t}.json`);
132
+ // A COMPLETE SET IS REUSED WHOLE (2026-10-22): the mint step keeps a codeline whose set is complete ("completed its agents and
133
+ // prompts — kept") and no prompt is built, so per-prompt entries are not needed — the builder's own test, as the mint step's
134
+ const prev = process.env.EPAM_BROWNFIELD; process.env.EPAM_BROWNFIELD = variant === 'brownfield' ? '1' : '';
135
+ let whole;
136
+ try { whole = b.codelineSetComplete({ projectConfigDir: path.join(O, 'projects', project), codeline, templatesDir: path.join(O, 'prompts', 'templates'), registryFile: path.join(O, 'agents', 'invocation-profiles.json') }); }
137
+ finally { if (prev === undefined) delete process.env.EPAM_BROWNFIELD; else process.env.EPAM_BROWNFIELD = prev; }
138
+ if (whole && whole.complete) return res('cache', true, `${codeline}: its complete set is reused whole by the mint step — nothing rebuilt`, { required: 0, missing: [], willRebuild: [] });
132
139
  const problems = [];
133
140
  const prompts = fs.existsSync(path.join(C, 'prompts')) ? fs.readdirSync(path.join(C, 'prompts')).filter((n) => n.endsWith('.json')).map((n) => n.replace(/\.json$/, '')) : [];
134
141
  if (!prompts.length) problems.push(`no cached prompt set (${path.join(C, 'prompts')})`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amsd-pipeline-shared",
3
- "version": "0.5.25",
3
+ "version": "0.5.26",
4
4
  "description": "The AMSD pipeline's shared components, one source for the bash pipeline and its Claude workflows: the model-call gateway (llm-handler.sh — retry, ladder, self-heal, cost) and the libraries it runs.",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {