update Markdown skills
This commit is contained in:
@@ -12,8 +12,9 @@ import {
|
||||
resolveDraft, weightsFromQuestion, weightsReply, weightsUnchangedReply, whichDraftReply,
|
||||
} from '@/lib/skills/draftFlow';
|
||||
import {
|
||||
appliedToday, askWhichPosition, assignmentPreview, assignmentToExecute, availability,
|
||||
candidateDetail, candidateMatches, candidateRoute, interviewReady, matchWorkforceIntent,
|
||||
appliedToday, askHeadcount, askWhichPosition, assignmentPreview, assignmentToExecute,
|
||||
availability, candidateDetail, candidateMatches, candidateRoute, headcountFrom,
|
||||
interviewReady, matchWorkforceIntent,
|
||||
namedAssignmentPreview,
|
||||
interviewPreview, interviewToExecute,
|
||||
namedAssignmentToExecute, positionPriority, resolveCandidate, resolvePosition,
|
||||
@@ -303,6 +304,22 @@ function resolveWorkforce(question, workforce) {
|
||||
: { kind: 'answer-doc', ...assignmentPreview(position, context) };
|
||||
}
|
||||
|
||||
/**
|
||||
* The answer to "how many people do you need?".
|
||||
*
|
||||
* The only write in the workforce path that is not an assignment, and it
|
||||
* follows the same contract: the routing layer decides *what* should happen
|
||||
* and hands it back, and `useAssistant` performs it through the mutation the
|
||||
* Create Position form already uses. A sentence with no number in it is not a
|
||||
* failure — it is the question being asked again.
|
||||
*/
|
||||
if (intent === 'set_headcount') {
|
||||
const count = headcountFrom(question);
|
||||
return count
|
||||
? { kind: 'workforce', headcount: { position, count } }
|
||||
: { kind: 'answer-doc', ...askHeadcount(position, context) };
|
||||
}
|
||||
|
||||
/**
|
||||
* Interview setup, for one named person against this role. Both steps resolve
|
||||
* the name the same way assignment does, so the conversation stays on the same
|
||||
|
||||
Reference in New Issue
Block a user