@tomflow/chatloop-context 0.6.42 → 0.6.43

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.
@@ -41,7 +41,9 @@ const formReceipt=(text,kind,stored)=>{
41
41
  ||lines[5]!==FORM_NOTE)return null;
42
42
  const id=lines[1].match(/^formId:\s*([a-z0-9][a-z0-9_-]{7,127})$/i);
43
43
  const trace=lines[2].match(new RegExp('^traceRef:\\s*('+FORM_UUID+')$','i'));
44
- const oldChoice=lines[4].match(/^选项标签:\s*A[||]\s*确认当前\s*([RP][1-9][0-9]*)\s*(需求|技术与验证方案|技术方案|方案)$/i);
44
+ // Some real R/P Forms label the version as “确认 P1 方案”, others as
45
+ // “确认当前 P1 方案”. Both carry an explicit, checkable document version.
46
+ const oldChoice=lines[4].match(/^选项标签:\s*A[||]\s*确认(?:当前\s*)?([RP][1-9][0-9]*)\s*(需求|技术与验证方案|技术方案|方案)$/i);
45
47
  const modernChoice=lines[3]==='选项值: approve'
46
48
  &&lines[4].match(/^选项标签:\s*A[||]\s*确认(需求|技术与验证方案|技术方案|方案)$/);
47
49
  if(!id||!trace||!oldChoice&&!modernChoice)return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomflow/chatloop-context",
3
- "version": "0.6.42",
3
+ "version": "0.6.43",
4
4
  "type": "module",
5
5
  "description": "Independent local Context SDK and short-lived CLI for Chat Loop projects",
6
6
  "publishConfig": {