tor-to-proposal 2.1.5 → 2.1.6
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 +6 -2
- package/mcp/server.mjs +1 -1
- package/package.json +1 -1
package/bin/bid-pack.mjs
CHANGED
|
@@ -395,15 +395,19 @@ function apply() {
|
|
|
395
395
|
const stillYours = fresh.items.filter((i) => i.type !== 'client');
|
|
396
396
|
const stillClient = fresh.items.filter((i) => i.type === 'client');
|
|
397
397
|
const state = readState();
|
|
398
|
+
state.rounds = (state.rounds || 0) + 1;
|
|
399
|
+
const round = state.rounds;
|
|
398
400
|
state.steps.questions = { status: 'done', open: fresh.openCount };
|
|
399
401
|
state.steps.pricing = { status: inDir('pricing.json') ? 'done' : 'awaiting-user-numbers' };
|
|
400
402
|
writeState(state);
|
|
401
403
|
renderPreviews();
|
|
402
404
|
|
|
403
405
|
process.stdout.write(
|
|
404
|
-
`# Apply: ${applied} answer(s) recorded, ${fresh.openCount} still open\n\n` +
|
|
406
|
+
`# Apply (round ${round}): ${applied} answer(s) recorded, ${fresh.openCount} still open\n\n` +
|
|
405
407
|
(stillYours.length
|
|
406
|
-
? `## Still open — answer these (bid-pack ask)\n${mdTable(['#', 'Question'], stillYours.map((i, ix) => [ix + 1, `**${i.id}** — ${i.question}`]))}\
|
|
408
|
+
? `## Still open — answer these (bid-pack ask)\n${mdTable(['#', 'Question'], stillYours.map((i, ix) => [ix + 1, `**${i.id}** — ${i.question}`]))}\n` +
|
|
409
|
+
`THIS IS NORMAL AND CONVERGES: answering one round can reveal new questions when a document is filled or rendered for the first time (your pricing answer just created the financial proposal, whose gaps are now questions). Each round has fewer questions than the last — keep going until zero.\n` +
|
|
410
|
+
`NEXT STEP: run npx tor-to-proposal bid-pack ask --dir ${dir} — it asks each of these in plain language, one at a time.\n`
|
|
407
411
|
: `NEXT STEP: run npx tor-to-proposal bid-pack pack --dir ${dir} --fallback-pdf to build the submission pack.\n`) +
|
|
408
412
|
(stillClient.length
|
|
409
413
|
? `## Reminders — ACTIONS for you, not answers\n(These describe things to DO outside the tool: contact the client, verify a fact. They never close by typing an answer here.)\n${mdTable(['#', 'Action'], stillClient.map((i, ix) => [ix + 1, `**${i.id}** — ${i.question}`]))}\n`
|
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.
|
|
325
|
+
serverInfo: { name: 'tor-to-proposal', version: '2.1.6' },
|
|
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.
|
|
3
|
+
"version": "2.1.6",
|
|
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": {
|