tor-to-proposal 2.1.0 → 2.1.1

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.
package/bin/bid-pack.mjs CHANGED
@@ -327,7 +327,11 @@ function apply() {
327
327
  if (pricing.loading !== null && pricing.loading !== undefined) argv.push('--loading', String(pricing.loading));
328
328
  if (pricing.contingency !== null && pricing.contingency !== undefined) argv.push('--contingency', String(pricing.contingency));
329
329
  const extractPath = inDir('tor-extract.json');
330
- const effort = pricing.effort ?? (extractPath && JSON.parse(fs.readFileSync(extractPath, 'utf8')).effortPersonDays?.value);
330
+ // users answer effort in natural language ("25", "25 person-days", "about 25 days") —
331
+ // pricing-model needs a bare number, so coerce here instead of failing pricing
332
+ const effortRaw = pricing.effort ?? (extractPath && JSON.parse(fs.readFileSync(extractPath, 'utf8')).effortPersonDays?.value);
333
+ const effortMatch = effortRaw === null || effortRaw === undefined ? null : String(effortRaw).replace(/,/g, '').match(/-?\d+(\.\d+)?/);
334
+ const effort = effortMatch ? Number(effortMatch[0]) : null;
331
335
  if (effort !== null && effort !== undefined) argv.push('--effort', String(effort));
332
336
  const r = run('pricing-model.mjs', argv, { label: 'pricing-model' });
333
337
  pricingRan = r !== null;
package/mcp/server.mjs CHANGED
@@ -322,7 +322,7 @@ function handle(msg) {
322
322
  return {
323
323
  protocolVersion: typeof params?.protocolVersion === 'string' ? params.protocolVersion : '2024-11-05',
324
324
  capabilities: { tools: {} },
325
- serverInfo: { name: 'tor-to-proposal', version: '2.1.0' },
325
+ serverInfo: { name: 'tor-to-proposal', version: '2.1.1' },
326
326
  };
327
327
  }
328
328
  if (typeof method === 'string' && method.startsWith('notifications/')) return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tor-to-proposal",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "The bid tool that refuses to lie. ToR + CV in -> verified bid pack out: cover letter, tailored CV, technical response, financial proposal, submission checklist. Deterministic CLI + agent skill for UN / NGO / government consultants.",
5
5
  "type": "module",
6
6
  "bin": {