@reconcrap/boss-recommend-mcp 1.2.9 → 1.3.0
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/README.md +82 -1
- package/package.json +2 -1
- package/skills/boss-chat/README.md +5 -0
- package/skills/boss-chat/SKILL.md +69 -0
- package/skills/boss-recommend-pipeline/SKILL.md +40 -4
- package/src/adapters.js +19 -5
- package/src/boss-chat.js +436 -0
- package/src/cli.js +294 -129
- package/src/index.js +459 -108
- package/src/parser.js +4 -5
- package/src/pipeline.js +605 -8
- package/src/run-state.js +5 -0
- package/src/test-adapters-runtime.js +69 -0
- package/src/test-boss-chat.js +399 -0
- package/src/test-index-async.js +238 -4
- package/src/test-parser.js +33 -6
- package/src/test-pipeline.js +408 -1
- package/vendor/boss-chat-cli/README.md +134 -0
- package/vendor/boss-chat-cli/package.json +53 -0
- package/vendor/boss-chat-cli/src/app.js +769 -0
- package/vendor/boss-chat-cli/src/browser/chat-page.js +2681 -0
- package/vendor/boss-chat-cli/src/cli.js +1350 -0
- package/vendor/boss-chat-cli/src/mcp/server.js +149 -0
- package/vendor/boss-chat-cli/src/mcp/tool-runtime.js +193 -0
- package/vendor/boss-chat-cli/src/runtime/async-run-state.js +260 -0
- package/vendor/boss-chat-cli/src/runtime/interaction.js +102 -0
- package/vendor/boss-chat-cli/src/runtime/run-control.js +102 -0
- package/vendor/boss-chat-cli/src/services/chrome-client.js +97 -0
- package/vendor/boss-chat-cli/src/services/llm.js +352 -0
- package/vendor/boss-chat-cli/src/services/profile-store.js +157 -0
- package/vendor/boss-chat-cli/src/services/report-store.js +19 -0
- package/vendor/boss-chat-cli/src/services/resume-capture.js +554 -0
- package/vendor/boss-chat-cli/src/services/state-store.js +217 -0
- package/vendor/boss-chat-cli/src/utils/customer-key.js +82 -0
- package/vendor/boss-recommend-screen-cli/boss-recommend-screen-cli.cjs +902 -56
- package/vendor/boss-recommend-screen-cli/test-recoverable-resume-failures.cjs +387 -1
package/src/parser.js
CHANGED
|
@@ -497,17 +497,16 @@ function resolveMaxGreetCount({ instruction, confirmation, overrides, postAction
|
|
|
497
497
|
const proposed = confirmationValue || overrideValue || instructionValue || null;
|
|
498
498
|
const resolved = confirmed ? (confirmationValue || overrideValue || null) : null;
|
|
499
499
|
const suspiciousAutoFill = Boolean(
|
|
500
|
-
confirmed
|
|
501
|
-
&& Number.isInteger(
|
|
502
|
-
&&
|
|
500
|
+
!confirmed
|
|
501
|
+
&& Number.isInteger(proposed)
|
|
502
|
+
&& proposed > 0
|
|
503
503
|
&& !Number.isInteger(instructionValue)
|
|
504
504
|
&& Number.isInteger(targetCountHint)
|
|
505
505
|
&& targetCountHint > 0
|
|
506
|
-
&&
|
|
506
|
+
&& proposed === targetCountHint
|
|
507
507
|
);
|
|
508
508
|
const needsConfirmation = (
|
|
509
509
|
!(Number.isInteger(resolved) && resolved > 0)
|
|
510
|
-
|| suspiciousAutoFill
|
|
511
510
|
);
|
|
512
511
|
|
|
513
512
|
return {
|