@wrongstack/requirement-intake 0.318.0 → 0.319.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/dist/index.js +4 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1110,11 +1110,7 @@ function applySuggestionProposal(record, proposal2) {
|
|
|
1110
1110
|
break;
|
|
1111
1111
|
}
|
|
1112
1112
|
case "target_user": {
|
|
1113
|
-
const value = assertSuggestionString(
|
|
1114
|
-
proposal2.value,
|
|
1115
|
-
"target_user",
|
|
1116
|
-
MAX_STRING_FIELD_LENGTH
|
|
1117
|
-
);
|
|
1113
|
+
const value = assertSuggestionString(proposal2.value, "target_user", MAX_STRING_FIELD_LENGTH);
|
|
1118
1114
|
appendItems(record.targetUsers, value);
|
|
1119
1115
|
record.fieldSources.target_users = "llm";
|
|
1120
1116
|
break;
|
|
@@ -1174,7 +1170,9 @@ function markQuestionAnswered(record, field, value) {
|
|
|
1174
1170
|
}
|
|
1175
1171
|
}
|
|
1176
1172
|
function applyAnswerToRecord(record, validated, actorId, now) {
|
|
1177
|
-
const matchingQuestion = record.questions.find(
|
|
1173
|
+
const matchingQuestion = record.questions.find(
|
|
1174
|
+
(candidate) => candidate.field === validated.field
|
|
1175
|
+
);
|
|
1178
1176
|
const answer = {
|
|
1179
1177
|
id: `${ANSWER_ID_PREFIX}${ulid4()}`,
|
|
1180
1178
|
field: validated.field,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/requirement-intake",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.319.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "WrongStack Requirements Intake — collect, preserve, validate, normalize, and submit unstructured software development requests as structured intake records. Upstream of spec-driven development: it never plans, specifies, or implements.",
|
|
6
6
|
"repository": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"!dist/**/*.map"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@wrongstack/core": "0.
|
|
30
|
+
"@wrongstack/core": "0.319.1",
|
|
31
31
|
"zod": "4.4.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|