@customize-agent/server 4.60.2 → 4.60.4

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.
Files changed (95) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +56 -54
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/required-server-files.json +1 -1
  5. package/.next/server/chunks/1243.js +1 -1
  6. package/.next/server/chunks/2328.js +1 -1
  7. package/.next/server/chunks/{7848.js → 4683.js} +89 -86
  8. package/.next/server/chunks/5304.js +1 -1
  9. package/.next/server/chunks/6321.js +1 -1
  10. package/.next/server/chunks/6822.js +1 -1
  11. package/.next/server/chunks/8204.js +1 -1
  12. package/.next/server/chunks/9399.js +1 -0
  13. package/.next/server/chunks/9666.js +58 -55
  14. package/.next/server/instrumentation.js +1 -1
  15. package/.next/server/instrumentation.js.nft.json +1 -1
  16. package/.next/server/middleware-build-manifest.js +1 -1
  17. package/.next/server/pages/404.html +1 -1
  18. package/.next/server/pages/500.html +1 -1
  19. package/.next/server/pages/api/documents/export.js +2 -2
  20. package/.next/server/pages/api/documents/generate/preview.js +1 -1
  21. package/.next/server/pages/api/documents/generate.js +1 -1
  22. package/.next/server/pages/api/health.js +1 -1
  23. package/.next/server/pages/canvas/[id].html +1 -1
  24. package/.next/server/pages/canvas.html +1 -1
  25. package/.next/server/pages/documents.html +1 -1
  26. package/.next/server/pages/guide.html +1 -1
  27. package/.next/server/pages/index.html +1 -1
  28. package/.next/server/pages/knowledge/file-detail.html +1 -1
  29. package/.next/server/pages/knowledge/files.html +1 -1
  30. package/.next/server/pages/knowledge/manage.html +1 -1
  31. package/.next/server/pages/knowledge/source-preview.html +1 -1
  32. package/.next/server/pages/knowledge.html +1 -1
  33. package/.next/server/pages/models.html +1 -1
  34. package/.next/server/pages/overview.html +1 -1
  35. package/.next/server/pages/prompt.html +1 -1
  36. package/.next/server/pages/settings.html +1 -1
  37. package/.next/server/pages/skills/[id]/edit.html +1 -1
  38. package/.next/server/pages/skills/[id]/edit.js.nft.json +1 -1
  39. package/.next/server/pages/skills/[id].html +1 -1
  40. package/.next/server/pages/skills/[id].js.nft.json +1 -1
  41. package/.next/server/pages/skills/new.html +1 -1
  42. package/.next/server/pages/skills/new.js.nft.json +1 -1
  43. package/.next/server/pages/skills.html +1 -1
  44. package/.next/server/pages/system/logs.html +1 -1
  45. package/.next/server/pages-manifest.json +30 -30
  46. package/.next/static/77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539/_buildManifest.js +1 -0
  47. package/.next/static/chunks/2-8570cd2beee4da6e.js +1 -0
  48. package/.next/static/chunks/257-3ea888b096943bc8.js +1 -0
  49. package/.next/static/chunks/280-3ce590d421b5c47d.js +16 -0
  50. package/.next/static/chunks/425-42f2568bcdd98f4c.js +1 -0
  51. package/.next/static/chunks/530-7e79396d68742829.js +1 -0
  52. package/.next/static/chunks/564-d3426eef3e3e415b.js +4 -0
  53. package/.next/static/chunks/576-6699fed6c88502fe.js +1 -0
  54. package/.next/static/chunks/579-fc0a2eb64aedb001.js +1 -0
  55. package/.next/static/chunks/{795-1a33b085051ecf2b.js → 795-1c1cb3bf1f600e99.js} +1 -1
  56. package/.next/static/chunks/819-96247c9054ad9683.js +1 -0
  57. package/.next/static/chunks/{964-82cc4701f08f7351.js → 964-569c27befeaff602.js} +2 -2
  58. package/.next/static/chunks/pages/{_app-3df96a32b2c9a6ca.js → _app-3f5aa4ff7951feca.js} +3 -3
  59. package/.next/static/chunks/pages/canvas/[id]-534b45f39f39630c.js +1 -0
  60. package/.next/static/chunks/pages/{canvas-8372faba7b5bb116.js → canvas-ffb08963e5cf9558.js} +1 -1
  61. package/.next/static/chunks/pages/knowledge/{file-detail-6c8b86752d2ddf88.js → file-detail-4ccc50ced6382dab.js} +1 -1
  62. package/.next/static/chunks/pages/knowledge/source-preview-56ce59763fa015db.js +1 -0
  63. package/.next/static/chunks/pages/knowledge-84e386d765ddd311.js +1 -0
  64. package/.next/static/chunks/pages/{models-dde7dc26b2ee4b83.js → models-5eee2d09deb081fb.js} +1 -1
  65. package/.next/static/chunks/pages/prompt-f00bf2272142bfa1.js +1 -0
  66. package/.next/static/chunks/pages/{settings-8ebbd4413f976a60.js → settings-f6dfff648cf9ac0e.js} +1 -1
  67. package/.next/static/chunks/pages/skills/[id]/{edit-334c249d48dc651d.js → edit-89bbed9a3a854b04.js} +1 -1
  68. package/.next/static/chunks/pages/skills/[id]-101d753aa8fbf7a9.js +1 -0
  69. package/.next/static/chunks/pages/skills/{new-750c28325b6c869a.js → new-124599c772150a1d.js} +1 -1
  70. package/.next/static/chunks/pages/{skills-25f02f34e4a24e7e.js → skills-476714776be63ce5.js} +1 -1
  71. package/.next/static/chunks/pages/system/logs-40edb648d89b0749.js +1 -0
  72. package/.next/static/css/39e9d8f998ce517b.css +1 -0
  73. package/package.json +1 -1
  74. package/public/apple-touch-icon.png +0 -0
  75. package/public/favicon.ico +0 -0
  76. package/public/favicon.svg +9 -0
  77. package/scripts/brand-moon-fit.cjs +147 -0
  78. package/scripts/generate-brand-assets.cjs +152 -0
  79. package/.next/static/cf07df1d78876548cb59ce9935b756d62660ad2a6b02180bef97865f98fcc4c8/_buildManifest.js +0 -1
  80. package/.next/static/chunks/257-9484b4285bd5f43b.js +0 -1
  81. package/.next/static/chunks/530-ccc3837d353bcf74.js +0 -1
  82. package/.next/static/chunks/573-c52901488f5731dd.js +0 -4
  83. package/.next/static/chunks/576-052a39d403d5d32e.js +0 -1
  84. package/.next/static/chunks/638-29ddb55b708c7969.js +0 -1
  85. package/.next/static/chunks/712-1f2d7c40d613f4d8.js +0 -1
  86. package/.next/static/chunks/815-585fb0b4aa9b369c.js +0 -16
  87. package/.next/static/chunks/933-e9c4889bb9f825ce.js +0 -1
  88. package/.next/static/chunks/pages/canvas/[id]-996d9a43ff45a4b3.js +0 -1
  89. package/.next/static/chunks/pages/knowledge/source-preview-c803a44df4b1d2f2.js +0 -1
  90. package/.next/static/chunks/pages/knowledge-135c4c9260f07108.js +0 -1
  91. package/.next/static/chunks/pages/prompt-7559b2569b3934a5.js +0 -1
  92. package/.next/static/chunks/pages/skills/[id]-eb1bdec00ba09ad2.js +0 -1
  93. package/.next/static/chunks/pages/system/logs-e08749c3a8f9a104.js +0 -1
  94. package/.next/static/css/5bab0d7ea874d4e0.css +0 -1
  95. /package/.next/static/{cf07df1d78876548cb59ce9935b756d62660ad2a6b02180bef97865f98fcc4c8 → 77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539}/_ssgManifest.js +0 -0
package/.next/BUILD_ID CHANGED
@@ -1 +1 @@
1
- cf07df1d78876548cb59ce9935b756d62660ad2a6b02180bef97865f98fcc4c8
1
+ 77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539
@@ -5,8 +5,8 @@
5
5
  "devFiles": [],
6
6
  "ampDevFiles": [],
7
7
  "lowPriorityFiles": [
8
- "static/cf07df1d78876548cb59ce9935b756d62660ad2a6b02180bef97865f98fcc4c8/_buildManifest.js",
9
- "static/cf07df1d78876548cb59ce9935b756d62660ad2a6b02180bef97865f98fcc4c8/_ssgManifest.js"
8
+ "static/77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539/_buildManifest.js",
9
+ "static/77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539/_ssgManifest.js"
10
10
  ],
11
11
  "rootMainFiles": [],
12
12
  "rootMainFilesTree": {},
@@ -16,15 +16,15 @@
16
16
  "static/chunks/framework-4b565b3ddc94cdac.js",
17
17
  "static/chunks/main-0c91f573696223ca.js",
18
18
  "static/chunks/880-64d8a15c524106d2.js",
19
- "static/chunks/795-1a33b085051ecf2b.js",
19
+ "static/chunks/795-1c1cb3bf1f600e99.js",
20
20
  "static/chunks/pages/index-cb27bfa36c212ab5.js"
21
21
  ],
22
22
  "/_app": [
23
23
  "static/chunks/webpack-6224d37324e372cb.js",
24
24
  "static/chunks/framework-4b565b3ddc94cdac.js",
25
25
  "static/chunks/main-0c91f573696223ca.js",
26
- "static/css/5bab0d7ea874d4e0.css",
27
- "static/chunks/pages/_app-3df96a32b2c9a6ca.js"
26
+ "static/css/39e9d8f998ce517b.css",
27
+ "static/chunks/pages/_app-3f5aa4ff7951feca.js"
28
28
  ],
29
29
  "/_error": [
30
30
  "static/chunks/webpack-6224d37324e372cb.js",
@@ -37,28 +37,28 @@
37
37
  "static/chunks/framework-4b565b3ddc94cdac.js",
38
38
  "static/chunks/main-0c91f573696223ca.js",
39
39
  "static/chunks/324-650dc02536b071bf.js",
40
- "static/chunks/815-585fb0b4aa9b369c.js",
41
- "static/chunks/576-052a39d403d5d32e.js",
40
+ "static/chunks/280-3ce590d421b5c47d.js",
41
+ "static/chunks/576-6699fed6c88502fe.js",
42
42
  "static/chunks/499-2233cadc6d4da647.js",
43
43
  "static/chunks/127-7d37d37dab02bd10.js",
44
- "static/chunks/530-ccc3837d353bcf74.js",
45
- "static/chunks/pages/canvas-8372faba7b5bb116.js"
44
+ "static/chunks/530-7e79396d68742829.js",
45
+ "static/chunks/pages/canvas-ffb08963e5cf9558.js"
46
46
  ],
47
47
  "/canvas/[id]": [
48
48
  "static/chunks/webpack-6224d37324e372cb.js",
49
49
  "static/chunks/framework-4b565b3ddc94cdac.js",
50
50
  "static/chunks/main-0c91f573696223ca.js",
51
51
  "static/chunks/324-650dc02536b071bf.js",
52
- "static/chunks/815-585fb0b4aa9b369c.js",
52
+ "static/chunks/280-3ce590d421b5c47d.js",
53
53
  "static/chunks/665-0634aa49137defc4.js",
54
- "static/chunks/576-052a39d403d5d32e.js",
54
+ "static/chunks/576-6699fed6c88502fe.js",
55
55
  "static/chunks/569-2bfdde9e402af5b2.js",
56
56
  "static/chunks/499-2233cadc6d4da647.js",
57
57
  "static/chunks/808-0506edc7454b5c0e.js",
58
58
  "static/chunks/127-7d37d37dab02bd10.js",
59
- "static/chunks/638-29ddb55b708c7969.js",
60
- "static/chunks/530-ccc3837d353bcf74.js",
61
- "static/chunks/pages/canvas/[id]-996d9a43ff45a4b3.js"
59
+ "static/chunks/579-fc0a2eb64aedb001.js",
60
+ "static/chunks/530-7e79396d68742829.js",
61
+ "static/chunks/pages/canvas/[id]-534b45f39f39630c.js"
62
62
  ],
63
63
  "/documents": [
64
64
  "static/chunks/webpack-6224d37324e372cb.js",
@@ -82,31 +82,31 @@
82
82
  "static/chunks/framework-4b565b3ddc94cdac.js",
83
83
  "static/chunks/main-0c91f573696223ca.js",
84
84
  "static/chunks/324-650dc02536b071bf.js",
85
- "static/chunks/815-585fb0b4aa9b369c.js",
85
+ "static/chunks/280-3ce590d421b5c47d.js",
86
86
  "static/chunks/665-0634aa49137defc4.js",
87
- "static/chunks/576-052a39d403d5d32e.js",
87
+ "static/chunks/576-6699fed6c88502fe.js",
88
88
  "static/chunks/499-2233cadc6d4da647.js",
89
89
  "static/chunks/338-19ccbaec57a7bf9c.js",
90
- "static/chunks/964-82cc4701f08f7351.js",
90
+ "static/chunks/964-569c27befeaff602.js",
91
91
  "static/css/2da1c822e3bdb4bb.css",
92
- "static/chunks/pages/knowledge-135c4c9260f07108.js"
92
+ "static/chunks/pages/knowledge-84e386d765ddd311.js"
93
93
  ],
94
94
  "/knowledge/file-detail": [
95
95
  "static/chunks/webpack-6224d37324e372cb.js",
96
96
  "static/chunks/framework-4b565b3ddc94cdac.js",
97
97
  "static/chunks/main-0c91f573696223ca.js",
98
98
  "static/chunks/324-650dc02536b071bf.js",
99
- "static/chunks/815-585fb0b4aa9b369c.js",
99
+ "static/chunks/280-3ce590d421b5c47d.js",
100
100
  "static/chunks/665-0634aa49137defc4.js",
101
- "static/chunks/576-052a39d403d5d32e.js",
101
+ "static/chunks/576-6699fed6c88502fe.js",
102
102
  "static/chunks/569-2bfdde9e402af5b2.js",
103
103
  "static/chunks/499-2233cadc6d4da647.js",
104
104
  "static/chunks/787-207289f4bb577708.js",
105
105
  "static/chunks/338-19ccbaec57a7bf9c.js",
106
- "static/chunks/964-82cc4701f08f7351.js",
106
+ "static/chunks/964-569c27befeaff602.js",
107
107
  "static/chunks/808-0506edc7454b5c0e.js",
108
108
  "static/css/2da1c822e3bdb4bb.css",
109
- "static/chunks/pages/knowledge/file-detail-6c8b86752d2ddf88.js"
109
+ "static/chunks/pages/knowledge/file-detail-4ccc50ced6382dab.js"
110
110
  ],
111
111
  "/knowledge/files": [
112
112
  "static/chunks/webpack-6224d37324e372cb.js",
@@ -125,35 +125,34 @@
125
125
  "static/chunks/framework-4b565b3ddc94cdac.js",
126
126
  "static/chunks/main-0c91f573696223ca.js",
127
127
  "static/chunks/324-650dc02536b071bf.js",
128
- "static/chunks/815-585fb0b4aa9b369c.js",
128
+ "static/chunks/280-3ce590d421b5c47d.js",
129
129
  "static/chunks/665-0634aa49137defc4.js",
130
- "static/chunks/576-052a39d403d5d32e.js",
131
130
  "static/chunks/569-2bfdde9e402af5b2.js",
132
131
  "static/chunks/499-2233cadc6d4da647.js",
133
132
  "static/chunks/787-207289f4bb577708.js",
134
133
  "static/chunks/808-0506edc7454b5c0e.js",
135
134
  "static/chunks/318-ca122b774ea4ee84.js",
136
135
  "static/chunks/781-a6b83dbcd1a33cab.js",
137
- "static/chunks/pages/knowledge/source-preview-c803a44df4b1d2f2.js"
136
+ "static/chunks/pages/knowledge/source-preview-56ce59763fa015db.js"
138
137
  ],
139
138
  "/models": [
140
139
  "static/chunks/webpack-6224d37324e372cb.js",
141
140
  "static/chunks/framework-4b565b3ddc94cdac.js",
142
141
  "static/chunks/main-0c91f573696223ca.js",
143
142
  "static/chunks/324-650dc02536b071bf.js",
144
- "static/chunks/815-585fb0b4aa9b369c.js",
145
- "static/chunks/576-052a39d403d5d32e.js",
143
+ "static/chunks/280-3ce590d421b5c47d.js",
144
+ "static/chunks/576-6699fed6c88502fe.js",
146
145
  "static/chunks/338-19ccbaec57a7bf9c.js",
147
146
  "static/chunks/864-b06700e1a4e573f2.js",
148
147
  "static/chunks/318-ca122b774ea4ee84.js",
149
- "static/chunks/pages/models-dde7dc26b2ee4b83.js"
148
+ "static/chunks/pages/models-5eee2d09deb081fb.js"
150
149
  ],
151
150
  "/overview": [
152
151
  "static/chunks/webpack-6224d37324e372cb.js",
153
152
  "static/chunks/framework-4b565b3ddc94cdac.js",
154
153
  "static/chunks/main-0c91f573696223ca.js",
155
154
  "static/chunks/880-64d8a15c524106d2.js",
156
- "static/chunks/795-1a33b085051ecf2b.js",
155
+ "static/chunks/795-1c1cb3bf1f600e99.js",
157
156
  "static/chunks/pages/overview-8713b5d37af0eeb3.js"
158
157
  ],
159
158
  "/prompt": [
@@ -161,35 +160,35 @@
161
160
  "static/chunks/framework-4b565b3ddc94cdac.js",
162
161
  "static/chunks/main-0c91f573696223ca.js",
163
162
  "static/chunks/324-650dc02536b071bf.js",
164
- "static/chunks/815-585fb0b4aa9b369c.js",
163
+ "static/chunks/280-3ce590d421b5c47d.js",
165
164
  "static/chunks/665-0634aa49137defc4.js",
166
- "static/chunks/576-052a39d403d5d32e.js",
165
+ "static/chunks/576-6699fed6c88502fe.js",
167
166
  "static/chunks/499-2233cadc6d4da647.js",
168
167
  "static/chunks/338-19ccbaec57a7bf9c.js",
169
- "static/chunks/964-82cc4701f08f7351.js",
168
+ "static/chunks/964-569c27befeaff602.js",
170
169
  "static/chunks/711-40c1a2dbd15c2807.js",
171
- "static/chunks/pages/prompt-7559b2569b3934a5.js"
170
+ "static/chunks/pages/prompt-f00bf2272142bfa1.js"
172
171
  ],
173
172
  "/settings": [
174
173
  "static/chunks/webpack-6224d37324e372cb.js",
175
174
  "static/chunks/framework-4b565b3ddc94cdac.js",
176
175
  "static/chunks/main-0c91f573696223ca.js",
177
- "static/chunks/pages/settings-8ebbd4413f976a60.js"
176
+ "static/chunks/pages/settings-f6dfff648cf9ac0e.js"
178
177
  ],
179
178
  "/skills": [
180
179
  "static/chunks/webpack-6224d37324e372cb.js",
181
180
  "static/chunks/framework-4b565b3ddc94cdac.js",
182
181
  "static/chunks/main-0c91f573696223ca.js",
183
182
  "static/chunks/324-650dc02536b071bf.js",
184
- "static/chunks/815-585fb0b4aa9b369c.js",
183
+ "static/chunks/280-3ce590d421b5c47d.js",
185
184
  "static/chunks/665-0634aa49137defc4.js",
186
185
  "static/chunks/569-2bfdde9e402af5b2.js",
187
186
  "static/chunks/499-2233cadc6d4da647.js",
188
187
  "static/chunks/787-207289f4bb577708.js",
189
188
  "static/chunks/338-19ccbaec57a7bf9c.js",
190
- "static/chunks/964-82cc4701f08f7351.js",
191
- "static/chunks/712-1f2d7c40d613f4d8.js",
192
- "static/chunks/pages/skills-25f02f34e4a24e7e.js"
189
+ "static/chunks/964-569c27befeaff602.js",
190
+ "static/chunks/425-42f2568bcdd98f4c.js",
191
+ "static/chunks/pages/skills-476714776be63ce5.js"
193
192
  ],
194
193
  "/skills/[id]": [
195
194
  "static/chunks/webpack-6224d37324e372cb.js",
@@ -198,51 +197,54 @@
198
197
  "static/chunks/665-0634aa49137defc4.js",
199
198
  "static/chunks/569-2bfdde9e402af5b2.js",
200
199
  "static/chunks/787-207289f4bb577708.js",
201
- "static/chunks/573-c52901488f5731dd.js",
202
- "static/chunks/pages/skills/[id]-eb1bdec00ba09ad2.js"
200
+ "static/chunks/564-d3426eef3e3e415b.js",
201
+ "static/chunks/2-8570cd2beee4da6e.js",
202
+ "static/chunks/pages/skills/[id]-101d753aa8fbf7a9.js"
203
203
  ],
204
204
  "/skills/[id]/edit": [
205
205
  "static/chunks/webpack-6224d37324e372cb.js",
206
206
  "static/chunks/framework-4b565b3ddc94cdac.js",
207
207
  "static/chunks/main-0c91f573696223ca.js",
208
208
  "static/chunks/324-650dc02536b071bf.js",
209
- "static/chunks/815-585fb0b4aa9b369c.js",
209
+ "static/chunks/280-3ce590d421b5c47d.js",
210
210
  "static/chunks/665-0634aa49137defc4.js",
211
- "static/chunks/576-052a39d403d5d32e.js",
211
+ "static/chunks/576-6699fed6c88502fe.js",
212
212
  "static/chunks/569-2bfdde9e402af5b2.js",
213
213
  "static/chunks/787-207289f4bb577708.js",
214
214
  "static/chunks/864-b06700e1a4e573f2.js",
215
- "static/chunks/933-e9c4889bb9f825ce.js",
216
- "static/chunks/257-9484b4285bd5f43b.js",
217
- "static/chunks/pages/skills/[id]/edit-334c249d48dc651d.js"
215
+ "static/chunks/819-96247c9054ad9683.js",
216
+ "static/chunks/2-8570cd2beee4da6e.js",
217
+ "static/chunks/257-3ea888b096943bc8.js",
218
+ "static/chunks/pages/skills/[id]/edit-89bbed9a3a854b04.js"
218
219
  ],
219
220
  "/skills/new": [
220
221
  "static/chunks/webpack-6224d37324e372cb.js",
221
222
  "static/chunks/framework-4b565b3ddc94cdac.js",
222
223
  "static/chunks/main-0c91f573696223ca.js",
223
224
  "static/chunks/324-650dc02536b071bf.js",
224
- "static/chunks/815-585fb0b4aa9b369c.js",
225
+ "static/chunks/280-3ce590d421b5c47d.js",
225
226
  "static/chunks/665-0634aa49137defc4.js",
226
- "static/chunks/576-052a39d403d5d32e.js",
227
+ "static/chunks/576-6699fed6c88502fe.js",
227
228
  "static/chunks/569-2bfdde9e402af5b2.js",
228
229
  "static/chunks/787-207289f4bb577708.js",
229
230
  "static/chunks/864-b06700e1a4e573f2.js",
230
- "static/chunks/933-e9c4889bb9f825ce.js",
231
- "static/chunks/257-9484b4285bd5f43b.js",
232
- "static/chunks/pages/skills/new-750c28325b6c869a.js"
231
+ "static/chunks/819-96247c9054ad9683.js",
232
+ "static/chunks/2-8570cd2beee4da6e.js",
233
+ "static/chunks/257-3ea888b096943bc8.js",
234
+ "static/chunks/pages/skills/new-124599c772150a1d.js"
233
235
  ],
234
236
  "/system/logs": [
235
237
  "static/chunks/webpack-6224d37324e372cb.js",
236
238
  "static/chunks/framework-4b565b3ddc94cdac.js",
237
239
  "static/chunks/main-0c91f573696223ca.js",
238
240
  "static/chunks/324-650dc02536b071bf.js",
239
- "static/chunks/815-585fb0b4aa9b369c.js",
241
+ "static/chunks/280-3ce590d421b5c47d.js",
240
242
  "static/chunks/665-0634aa49137defc4.js",
241
- "static/chunks/576-052a39d403d5d32e.js",
243
+ "static/chunks/576-6699fed6c88502fe.js",
242
244
  "static/chunks/499-2233cadc6d4da647.js",
243
245
  "static/chunks/338-19ccbaec57a7bf9c.js",
244
- "static/chunks/964-82cc4701f08f7351.js",
245
- "static/chunks/pages/system/logs-e08749c3a8f9a104.js"
246
+ "static/chunks/964-569c27befeaff602.js",
247
+ "static/chunks/pages/system/logs-40edb648d89b0749.js"
246
248
  ]
247
249
  },
248
250
  "ampFirstPages": []
@@ -3,9 +3,9 @@
3
3
  "routes": {},
4
4
  "dynamicRoutes": {},
5
5
  "preview": {
6
- "previewModeId": "b71bc9f2d0b3d756c094c993481c3341",
7
- "previewModeSigningKey": "523db0a204d892e03931e5eb994fe915203cd00ea443faddc51bb3afd5018ce2",
8
- "previewModeEncryptionKey": "8bc87ef3fddc7c6e8f7d17a11d763e46c4e572451b61ae536d0036c52125aa69"
6
+ "previewModeId": "f220d64a5db3c5b1501d27962e6d70f5",
7
+ "previewModeSigningKey": "80376cebaff9f0dff060d17f42d75a85c289e684eab88947effb9c25d27e0e60",
8
+ "previewModeEncryptionKey": "2a40f1263d2c5e8f81ef736d45b77732fcd3aaec3b4644c5045ae06d572be95e"
9
9
  },
10
10
  "notFoundRoutes": []
11
11
  }
@@ -2,7 +2,7 @@
2
2
  "version": 1,
3
3
  "config": {
4
4
  "env": {
5
- "CUSTOMIZE_COMPILED_BUILD_IDENTITY": "{\"version\":1,\"sourceFingerprint\":\"cf07df1d78876548cb59ce9935b756d62660ad2a6b02180bef97865f98fcc4c8\",\"semanticFingerprints\":{\"projectFacts\":\"e60636a041b6b597ae468bd94ba4193348fad5db9058b377be73de4b06fd34d3\",\"documentGeneration\":\"d9ba2c31c0a84168613b69f6bb15983419fca4e1c74207507c1f520e876022e3\"},\"gitCommit\":\"7507c09e332fbc3c131d96116fd15e4acbe71320\",\"serverVersion\":\"4.60.2\",\"sourceFiles\":716,\"capturedAt\":\"2026-10-12T14:10:34.320Z\"}"
5
+ "CUSTOMIZE_COMPILED_BUILD_IDENTITY": "{\"version\":1,\"sourceFingerprint\":\"77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539\",\"semanticFingerprints\":{\"projectFacts\":\"54d6e428a3824c57e416b54151a779e3a624d364d0a6f7449ad1b9c6e857d2c4\",\"documentGeneration\":\"4b1749e6872df9590c193bb0745efa6a3336d9ac715dacbb756624ea15d34731\"},\"gitCommit\":\"7507c09e332fbc3c131d96116fd15e4acbe71320\",\"serverVersion\":\"4.60.4\",\"sourceFiles\":723,\"capturedAt\":\"2026-10-12T18:13:53.498Z\"}"
6
6
  },
7
7
  "eslint": {
8
8
  "ignoreDuringBuilds": true
@@ -1,3 +1,3 @@
1
1
  "use strict";exports.id=1243,exports.ids=[1243],exports.modules={21312:(a,b,c)=>{c.d(b,{DH:()=>h,aU:()=>i,pY:()=>j,u3:()=>k});var d=c(22496),e=c(67680);function f(a,b){let c=new Set(a);return(0,d.cn)([b]).filter(a=>c.has(a.id)).map(a=>a.id)}let g=d.ts.map(a=>a.id);function h(a){return[...new Set(a)].map(a=>{let b=(0,d.VY)(a);return b?[`▸ ${b.name}(方法参考,步骤不作为正文句式):`,...b.applicability?[` 适用对象与方法条件:${b.applicability}`]:[],...b.exclusions?.length?[` 不适用或需另选的条件:${b.exclusions.join(";")}`]:[],...b.process.map((a,b)=>` ${b+1}. ${a}`)," 写作时说明适用条件、实施动作、控制与转序;不能只把这些步骤串成动作列表。",...b.params.map(a=>` \xb7 工艺参数:${a}`),...b.acceptance.map(a=>` \xb7 检测验收:${a}`),...(b.interfaces??[]).map(a=>` \xb7 专业接口:${a}`),...b.resourceBasis?[` \xb7 资源与工效推演:${b.resourceBasis}`]:[],...b.standards.map(a=>` \xb7 规范候选:${a}(具体版本、适用条文与工程采用另核)`),...b.source?[` \xb7 知识参考出处(非项目证据或采用结论):${b.source}`]:[]].join("\n"):""}).filter(Boolean).join("\n")}function i(a){return[...a.structure.map(a=>`${a.title}:${(a.required??[]).join(";")}`).filter(a=>!a.endsWith(":")),...a.acceptance.flatMap(a=>a.items),...a.forbidden.map(a=>"string"==typeof a?a:`${a.phrase}${a.reason?`(${a.reason})`:""}`),...a.examples?[`表达示例(仅教写法,不构成本项目事实或专家验收):${a.examples.good}`,`需避免的写法及原因:${a.examples.defect}`]:[]].filter(Boolean).join("\n")}function j(a){let b=(0,e.mG)(a.chapterTitle,a.sections,a.projectType,a.skills),c=[],d=new Set,j=new Set;for(let h of b){let b=[...new Set([...f(h.knowledge.flatMap(a=>a.ids),a.blockText),...f(g,a.blockText)])];for(let a of b)d.add(a);let k=i(h);for(let a of k.split("\n").filter(Boolean))j.add(a);let l=(0,e.mJ)(h,a.chapterTitle,a.sections,a.projectType);c.push({skillId:h.id,matchedBy:`章域${l.matchedDomains.join("、")};主题${l.matchedKeywords.join("、")};类型${a.projectType}`,cards:b,forbiddenCount:h.forbidden.length,injectedChars:k.length})}if(!b.length){let b=f(g,a.blockText);for(let a of b)d.add(a);b.length&&c.push({skillId:"(块文本直配)",matchedBy:`主题提及实际工艺:${b.join("、")}`,cards:b,forbiddenCount:0,injectedChars:0})}let k=h([...d]),l=[j.size?`【专业内容提示】
2
2
  ${[...j].join("\n")}`:"",k].filter(Boolean).join("\n\n");return{text:l?`【领域规则\xb7专业写作参考】以下为专业写作参考,不是本项目的资料事实。按当前任务对象、工况和真实来源选用;不增加小节或规定字数、信息点、参数数量/密度,不机械套用全部提示。禁止编造本项目没有的参数数值;卡片参数与规范候选仍须核版本、条件和采用资格,技能命中或模型自评不证明已通过验收。
3
- ${l}`:"",hits:c}}function k(a){return[...new Set(a.flatMap(a=>a.knowledge.flatMap(a=>a.ids)).filter(a=>!(0,d.VY)(a)))]}},67680:(a,b,c)=>{c.d(b,{$i:()=>m,VO:()=>i,mG:()=>l,mJ:()=>k});var d=c(81892),e=c(32374),f=c(13424);let g=["C01","C02","C02","C03","C04","C05","C06","C07","C08","C09","C10","C11","C12","C14","C15","C16"],h=[{domain:"C13",pattern:/危大工程专项|危险性较大的分部分项工程专项|危大专项/u}];function i(a){if(g.length!==d.h.length)throw Error(`章域映射表与 CHAPTER_FOCUS_RULES 失配:映射 ${g.length} 条 / 规则 ${d.h.length} 条`);let b=[];for(let{domain:c,pattern:e}of function(){let a=[];return d.h.forEach((b,c)=>{let d=g[c];d&&a.push({domain:d,pattern:b.pattern})}),a.push(...h),a}())!b.includes(c)&&e.test(a)&&b.push(c);return b}function j(a){return a.replace(/\s+/gu,"").toLowerCase()}function k(a,b,c,d){let e=i(b),g=e.includes(a.match.chapterDomain),h=(0,f.Yf)(a,d),k=c.map(j).filter(a=>a.length>0),l=k.length>0,m=a.match.sectionKeywords.filter(a=>{let b=j(a);return b.length>0&&k.some(a=>a.includes(b))}),n=l?function(a){let b=a.match.sectionRegex;if(b&&(0,f.s_)(b))try{return RegExp(b,"u")}catch{return}}(a):void 0,o=!!n&&k.some(a=>n.test(a)),p=a.match.sectionKeywords.length>0||void 0!==n,q=!l||!p||m.length>0||o;return{skillId:a.id,domainHit:g,matchedDomains:e,projectTypeHit:h,sectionGateApplied:l,matchedKeywords:m,regexHit:o,matched:g&&h&&q}}function l(a,b,c,d=e.d7){let f=d.filter(a=>a.enabled).map(d=>({skill:d,explanation:k(d,a,b,c)})).filter(a=>a.explanation.matched).map(a=>{var b;return{skill:a.skill,specificity:(b=a.explanation).matchedKeywords.length+ +!!b.regexHit}});return f.sort((a,b)=>b.specificity!==a.specificity?b.specificity-a.specificity:a.skill.id<b.skill.id?-1:+(a.skill.id>b.skill.id)),f.map(a=>a.skill)}function m(a){let b=[...a].sort((a,b)=>a.id<b.id?-1:+(a.id>b.id)),c=[],d={},e=(a,b)=>{let c=d[a]??[];c.includes(b)||c.push(b),d[a]=c},g=[];for(let a of b)for(let b of a.acceptance)for(let c of b.items)g.includes(c)||g.push(c),e(`llmChecklist:${c}`,a.id);let h=g.length?[{kind:"llmChecklist",items:g,nonDeterministic:!0}]:[],i=new Map;for(let a of b)for(let b of a.requires){let a=i.get(b.key);if(!a){i.set(b.key,{...b});continue}i.set(b.key,{...a,required:a.required||b.required})}let j=a=>`${a.kind}:${[...a.ids].sort().join(",")}`,k=new Map;for(let a of b)for(let b of a.knowledge){let a=j(b);k.has(a)||k.set(a,{...b,...b.ids?{ids:[...b.ids]}:{}})}let l=new Map;for(let a of b)for(let b of a.structure){let c=b.title.trim(),d=l.get(c)??[];d.push({skillId:a.id,spec:{...b,title:c}}),l.set(c,d)}let m=new Set,n=a=>a.structure.map(a=>a.title.trim()).filter(a=>!m.has(a)).join("|"),o=new Set(b.map(n).filter(a=>a.length>0));if(o.size>1){let a=[...o].sort();1===new Set(b.map(a=>[...new Set(a.structure.map(a=>a.title.trim()))].filter(a=>!m.has(a)).sort().join("|"))).size&&c.push({field:"structure",kind:"structure-order-mismatch",target:a.join(" ⇄ "),skillIds:b.map(a=>a.id),declarations:b.map(a=>({skillId:a.id,value:n(a)})),message:`技能声明了相同的小节集合但顺序不同:${b.map(a=>`${a.id}=[${n(a)}]`).join(" / ")}——需用户裁决小节顺序`})}let p=[],q=new Set;for(let a of b)for(let b of a.structure){let a=b.title.trim();if(m.has(a)||q.has(a))continue;q.add(a);let c=[...new Set((l.get(a)??[]).flatMap(a=>a.spec.required??[]))];p.push({title:a,...c.length?{required:c}:{}})}let r=new Map;for(let a of b)for(let b of(0,f.is)(a.forbidden)){let c=r.get(b)??[];c.includes(a.id)||c.push(a.id),r.set(b,c)}let s=b.flatMap(a=>{let b=[];for(let c of a.structure)for(let d of(b.push({phrase:c.title.trim(),skillId:a.id}),c.required??[]))b.push({phrase:d.trim(),skillId:a.id});return b}),t=new Set;for(let[a,b]of r){if(0===a.length)continue;let d=[...new Set(s.filter(b=>b.phrase.includes(a)||a.includes(b.phrase)).map(a=>a.skillId))].filter(a=>!b.includes(a));0!==d.length&&(t.add(a),c.push({field:"forbidden",kind:"forbidden-required-contradiction",target:a,skillIds:[...b,...d].sort(),declarations:[...b.map(b=>({skillId:b,value:`禁写「${a}」`})),...d.map(b=>({skillId:b,value:`要求写入含「${a}」的内容`}))],message:`禁写项「${a}」被另一技能明确要求写入——需用户裁决(自动合并会同时下发“必须写”与“禁止写”两条相反指令)`}))}let u=[];for(let a of b)for(let b of a.forbidden){let a=("string"==typeof b?b:b.phrase).trim();!(0===a.length||t.has(a))&&(u.some(b=>("string"==typeof b?b:b.phrase).trim()===a)||u.push("string"==typeof b?a:{...b,phrase:a}))}return{acceptance:h,acceptanceProvenance:d,requires:[...i.values()],knowledge:[...k.values()],structure:p,forbidden:u,conflicts:c,requiresArbitration:c.length>0}}},81892:(a,b,c)=>{c.d(b,{h:()=>d,u:()=>e});let d=[{pattern:/概况|总体|理解|说明|编制/u,goal:"依据真实资料说明范围、专业组成、实施条件和编制依据,区分已知事实与核验事项",mustCover:["工程名称、地点、规模、工期和质量目标等有出处且适用的项目事实","工程范围、专业组成、接口和场地条件;关键未知条件保留核验责任","实际采用的招标补遗、法规、标准及管理文件;名称、编号、版本和资格状态可核,实际引用与依据对应","全部真实专业、单体、系统和特殊构造的施工与交接责任,不强凑专业数量","单项目多属性以信息项—内容纵向或按含义分组;对象比较才横向,完整保留对象、控制数值和单位,不以固定列数或表数删数据"]},{pattern:/主要施工内容/u,goal:"完整承接真实对象、方法和接口,不以工程量罗列代替施工说明",mustCover:["全部实际专业、部位和对象,近名归并不遗漏不同职责","对应对象的工程量口径、准备条件、顺序、方法和专业接口","按对象和工法控制需要说明真实规格或参数、质量安全控制、检验验收及记录交接"]},{pattern:/主要分部分项工程施工方案|主要施工方法/u,goal:"按真实对象和工法说明可执行操作、控制和验收,必要参数随实际控制用途展开",mustCover:["各分项、独立系统和特殊构造的方法职责,不因工程量小或名称近似遗漏","对象部位、前置准备与验收、关键步骤、工作面和相邻专业衔接","工法确需的材料规格、操作或检验条件;数值具有来源、对象、单位和完整前提,未知不补造","工艺质量、安全、成品保护、记录及交接验收,不统一要求参数或环节数量"]},{pattern:/重点|难点/u,goal:"说明真实对象及工况的成因、影响、针对性控制和处置闭环",mustCover:["实际对象、部位、工况、成因和影响范围","对应方法、接口或专项控制及真实适用条件","责任、检查验收节点、异常处置、整改复核和记录","需要数值控制时准确引用参数及依据;管理或接口问题以完整程序表达,不按量化占比评分"]},{pattern:/部署|总体|流水|顺序/u,goal:"按真实范围、工作面和同一施工活动网络组织阶段及资源",mustCover:["真实对象、区段、工作面及交接界面","工序依赖、阶段顺序、穿插和必要等待,不照搬单一类型的整套工序","同一计划的资源、能力约束、动态协调及责任"]},{pattern:/进度|工期/u,goal:"基于工期约束、工程量和统一施工计划说明进度可实施性",mustCover:["总工期与日期口径、活动网络、依赖、必要等待和关键线路","阶段及滚动计划、资源工作面能力、供应和交接","进度监测、偏差原因、纠偏调整及责任,拟定节点与资料事实分开表达"]},{pattern:/质量/u,goal:"按适用质量要求落实材料、过程、验收、整改与资料闭环",mustCover:["有出处的质量目标、适用验收依据、对象和条件","交底、样板或首件、自检互检专检的实际责任及程序","适用复验与见证取样、隐蔽验收、试验及报验,参数和比例仅按真实适用要求","通病或缺陷防治、记录、整改复验及资料闭合","交接、保修与缺陷响应;有依据的期限准确写出,不补造承诺值"]},{pattern:/安全|危大|风险/u,goal:"按真实作业对象和工况落实风险、专项程序、检查整改及应急控制",mustCover:["实际安全目标与责任,不统一补造伤亡率、轻伤频率或达标率","对象、部位、作业形态和风险辨识,关键工况缺失保留核验责任","危大候选和分级以同对象完整参数及适用规则为依据,未决不等于不触发或已需专家论证","按已成立的条件落实方案编审、必要论证、交底、实施、监测和验收责任","人员设备、临电、消防及防护按实际形式组织,必要参数和检验周期具有真实适用依据","安全检查、隐患处置、复查记录和应急响应"]},{pattern:/资源|材料|设备|劳动力|人材机/u,goal:"使人机料、仪器和设施同实际活动、工程量、能力及阶段对应",mustCover:["设备适用作业、选型依据、能力约束、投入及进退场","工种、班组、工作面、阶段安排及交接","材料技术要求、采购批次、验收保管及供应","同一施工计划的资源口径和推导依据,区分拟定配置与现场已投入事实","表格按对象比较与阶段关系组织,完整对象、控制数值和单位可读;单对象多属性不堆成无比较目的的十几列单行,真实宽表保留全部字段"]},{pattern:/文明|绿色|环保|扬尘|噪声/u,goal:"按真实现场、作业影响及适用属地要求组织环境保护和文明施工",mustCover:["适用围挡、覆盖、清洗、场地和运输扬尘措施,不自动套固定百分比承诺","实际噪声振动、时段、污水、固废及交通秩序控制","监测检查、预警、处置复查、责任及记录,限值和频次仅按真实依据","适用节水节材节地节能和环保措施,不强凑每类数字或声称已完成评价"]},{pattern:/应急|预案/u,goal:"按真实风险源落实预警、响应、救援和恢复职责",mustCover:["实际风险、预警触发条件、组织及职责","与风险和救援条件相符的物资设备、通信协同","适用处置、疏散、报告救援、后期恢复、培训演练和记录,不套固定事故名单或数量"]},{pattern:/竣工|验收|移交|保修/u,goal:"按真实交付范围组织清理、验收、整改、移交和缺陷响应",mustCover:["实际收尾清理、废弃物处置和设施恢复","验收、缺陷记录、责任、整改复验和交接条件","实物资料移交、签认、保修响应及有依据的期限"]},{pattern:/工资|劳务|实名/u,goal:"按真实用工、合同和适用规定落实实名、工资、保险及争议处置",mustCover:["实名登记、合同考勤的适用对象、责任及资料管理","适用工资支付、专户代发、保证措施和台账,不把制度要求写成已开户或已支付","适用保险、参保、事故申报及劳动争议处理责任"]},{pattern:/交通导改|交通导行|交通组织|导改|管线保护|占道/u,goal:"对真实交通及管线接口说明调查、阶段保障与保护责任,不按工程类型排除",mustCover:["真实或需核验的交通、出入口及管线条件与调查责任","需要的阶段导改、通行能力、围挡隔离及恢复条件","实际通行保障、管线探明保护、权属协同和应急","适用标志标线、警示照明、监护交接,不把拟调查写成已调查"]},{pattern:/居民|扰民|既有(?:设施|管线|建筑|构筑物)保护|沟通协调|公众参与/u,goal:"按真实受影响对象组织沟通、通行、扰动控制与保护,不假定所有改造都有在场居民",mustCover:["实际影响对象、诉求和调查沟通责任,不补造户数或已走访事实","实际噪声扬尘振动和作业时间影响及控制","分区通行、出入口保障及既有设施保护接口","公示协调、投诉响应、责任记录和恢复移交"]},{pattern:/成品保护|半成品保护|交叉施工|交叉作业/u,goal:"按真实成品、系统和作业接口组织保护、交接与责任转移",mustCover:["真实保护对象、风险、责任和形式,不强行套齐房建饰面部位","工序作业面交接条件、检查记录、责任转移和专业协调","损坏记录、责任认定、修复复验、清洁和最终移交"]}];function e(a){return d.find(b=>b.pattern.test(a))}},87942:(a,b,c)=>{c.d(b,{x:()=>d});let d={version:"professional-document-workflow-v112",rules:["semantic-project-facts-without-global-raw-numeric-token-expansion","namespaced-original-member-references-with-server-recorded-batch-responses","current-source-model-and-protocol-bound-completed-discovery-response-reuse","independent-persisted-parsed-documents-and-knowledge-internal-source-unit-identities","uploaded-original-disappearance-never-deletes-indexed-knowledge","text-conservation-preview-and-structural-query-without-original-file-dependency","vector-row-file-chunk-and-parsed-version-validation-before-sqlite-hydration","provider-default-output-and-selected-model-role-based-thinking-without-total-generation-ceilings","task-local-facts-and-source-use-dependencies-with-condition-aware-query-diagnostics","source-file-ownership-routing-without-per-section-model-repetition","strict-duplicate-json-key-rejection-before-body-or-tool-admission","per-transport-cancellation-request-and-actual-settlement-with-unknown-usage-preserved","preserved-original-failures-and-pause-at-reported-output-truncation-without-whole-input-retries","whole-run-token-anomaly-pause-and-same-project-queue-suspension-without-cost-or-time-ceilings","current-professional-grade-required-for-delivery-with-verification-quality-gaps-separated","first-candidate-professional-pass-metrics-without-retention-percentage-delivery-veto","removed-unused-client-reservations-and-inactive-node-payload-writing-pruning","full-per-call-usage-ledger-with-unreported-cancelled-usage","lossless-repeated-evidence-projection-with-intact-thinking-tool-protocol","quantity-purpose-and-partial-boundary-aware-construction-network","professional-execution-defects-in-first-candidate-with-preserved-original","spatial-layout-schematics-without-invented-survey-dimensions","partial-draft-figure-rendering-and-explicit-portable-review-fonts","task-located-excerpt-reading-without-speculative-whole-file-scans","complete-work-package-directory-and-explicit-member-selection-without-default-paging","project-resource-authors-inherit-planned-crews-without-false-derived-peaks","professional-first-draft-and-seven-anchored-diagnostics-without-aggregate-pass-score","complete-object-directory-and-on-demand-full-source-without-preflight-candidate-census","current-v7-submission-only-and-actual-rendered-figure-evidence-without-body-node-dumps","whole-source-purpose-and-completed-claim-state-validation","single-activity-network-and-typed-source-quantity-production-plan","server-owned-author-unit-row-and-section-reference-identities","retained-body-annotation-correction-with-cumulative-meaningful-raw-writing-ledger","actual-task-executions-preserved-through-final-render-and-honest-terminal-nodes","all-actual-normative-use-catalog-with-independent-official-metadata-and-adoption-status","source-bound-hazard-candidates-without-unknown-to-nonhazard-conclusions","faithful-technical-rendering-and-actual-bookmark-page-toc-cache","no-bid-type-page-quotas-or-client-wall-clock-generation-cutoffs","chapter-fair-dynamic-author-dispatch-through-single-shared-model-capacity","single-chief-whole-outline-and-table-plan-with-complete-raw-protocol-receipts","current-candidate-identity-bound-plan-reuse-without-repeated-chapter-routing","user-outline-preservation-without-tail-character-title-rejection-or-post-plan-mutations","actual-body-normative-use-register-before-first-compilation-basis-writing","source-bound-exact-normative-name-code-and-use-position-review","single-optional-explicit-process-concurrency-without-default-four-or-six","complete-typed-tool-output-without-generic-tail-clipping","task-owned-complete-evidence-without-repeated-whole-chapter-source-matrices","authenticated-deep-frozen-source-policy-with-independent-current-use-validation","server-owned-source-evidence-indices-without-model-quote-or-hash-copy","actual-task-progress-and-substantive-body-without-title-shell-completion","explicit-input-resource-limits-without-hidden-env-or-default-document-cutoffs","active-task-engineering-decisions-with-reviewed-qualitative-adoption","professional-process-coverage-without-character-density-point-collapse","complete-source-library-and-positive-technical-obligation-discovery-without-commercial-role-closure","typed-task-local-writing-readiness-and-preserved-unresolved-source-ledger","single-common-construction-organization-plan-with-on-demand-engineering-decisions","source-first-omission-audit-after-preserved-real-first-draft","review-draft-export-separated-from-delivery-acceptance-with-bound-issue-sidecar","actual-claim-fidelity-review-separated-from-engineering-adoption-permission","balanced-same-family-source-bracket-intervals-without-unclosed-tail-suppression-or-source-rewriting","complete-physical-source-question-continuations-before-answer-purpose-review","source-context-semantic-projection-with-complete-server-owned-provenance-and-frozen-application-qualification","complete-clarification-source-groups-with-unique-original-member-accounting-and-independent-projection-binding","source-explicit-length-units-without-bare-number-or-neighbor-line-default-meters","complete-local-knowledge-assumption","knowledge-coverage-recovery","fact-trace-placement","chapter-coverage-gate","structured-quality-report","post-repair-verification","immutable-run-inputs","user-cancellation-and-typed-progress-execution-receipts","pre-writing-frozen-project-model","frozen-prompt-skill-and-model-configuration","object-and-attribute-bound-fact-governance","pre-writing-document-contract","complete-json-results-without-tail-clipping","single-explicit-selected-model-for-all-agent-and-review-calls","selected-model-without-vendor-allowlist-and-glm53-valid-thinking-tool-history","scoped-preparation-cancellation-and-drain-before-terminal-with-source-before-model-planning","source-complete-chief-model-projection-with-authoritative-native-proof-ledger","native-json-with-explicit-shared-total-output-capacity","technical-structure-requirements-grounded-in-local-presentation-purpose","object-property-condition-and-adoption-constraints-without-onsite-verb-or-edition-shortcuts","signal-driven-generation-with-stream-progress-and-effective-source-worker-capacity","exact-decimal-value-equivalence-with-source-object-unit-and-application-conservation","strict-explicit-source-indices-without-positional-recovery-or-retired-anchor-acceptance","mutable-live-activity-snapshots-separated-from-immutable-run-evidence","physical-property-corrections-separated-from-price-and-document-description-procedures","source-row-and-header-bound-table-quantity-witnesses-without-unit-inference","engineering-interfaces-separated-from-supplier-service-entitlements-and-charge-conditions","minimal-source-bound-static-constraints-without-synthetic-performance-duties","schema-correction-bound-to-actual-prior-output-and-preserved-source-semantics","native-contract-evaluation-with-retired-density-and-legacy-score-entrypoints","explicit-shared-total-output-capacity-with-frozen-selected-thinking-policy","source-owned-edition-sections-without-whole-document-catalog-qualification","single-chief-outline-duty-coverage-without-score-keyword-module-injection","real-provider-calls-without-hidden-prefix-warmup-requests","ordered-whole-dimension-and-celsius-identity-without-invented-unit-or-currency","reusable-provider-owned-http2-pool-with-concurrent-streamed-posts-and-signal-driven-cancellation","source-bound-planned-start-date-and-trigger-preserved-through-schedule-authority","contract-bound-seven-dimension-review","structured-author-tasks-and-cumulative-rework","canonical-document-model-and-guarded-incremental-repair","fixed-outline-and-unique-task-responsibility","same-selected-model-retry-without-provider-or-model-fallback","actual-task-instances-and-shared-chapter-budget","generation-scoped-llm-context","source-grounded-project-type-and-required-content-semantics","source-analysis-without-formal-writing-quotas","parent-grounded-financial-performance-separated-from-engineering-compensation","canonical-verified-whitespace-gaps-and-failed-request-ledger-preservation","source-text-once-and-payload-bounded-original-parent-batches","complete-outline-candidates-without-density-derived-section-count-or-blind-title-deletion","project-specific-substance-without-history-driven-novelty-or-correct-content-rewriting","native-cad-literal-location-and-root-bound-annotation-reading","chief-read-scope-pagination-without-premature-human-source-deferral","versioned-native-pdf-ruled-cell-reading-with-original-glyph-conservation","painted-horizontal-cell-spans-with-physical-row-edge-conservation","explicit-native-ordinary-page-continuation-without-grid-or-canonical-inference","fact-extraction-output-capacity-bound-to-complete-source-payload","sealed-actual-c0-rework-accounting-and-ninety-percent-retention-delivery-gate","persistent-source-and-parameter-bound-ocr-cache-default","native-table-row-boundaries-and-source-preserved-physical-page-continuation","file-level-proof-once-and-scalar-source-evidence-without-child-metadata-duplication","producer-bound-metadata-excluded-with-complete-original-ledger","immutable-source-and-provenance-bound-effective-facts","chief-frozen-original-source-queries","preserved-author-annotations-without-inferred-criterion-binding","scoped-chief-engineering-controls-with-independent-applicability-review","dxf-declared-codepage-and-observable-source-judgments","unchecked-blind-means-open-and-content-only-front-matter","canonical-native-toc-without-cover-or-invented-page-numbers","question-answer-boundaries-and-independent-review-with-frozen-model","dimension-picture-blocks-and-honest-polyline-transforms","evidence-progress-driven-chief-source-and-cad-reading","native-writing-without-legacy-drawing-lock-preparation","native-writing-without-legacy-density-or-duplicate-bill-preparation","chief-reasoning-tools-with-provider-session-roundtrip","source-binding-defect-scopes-without-unrelated-writing-penalties","pre-writing-shared-construction-deployment-and-task-interfaces","no-unscoped-elevation-subtraction-in-frozen-facts","single-native-generation-and-finalization-pipeline","request-local-llm-failure-attribution","lazy-cad-instances-with-complete-source-definitions","atomic-per-file-reindex-with-preserved-valid-snapshots","explicit-user-section-protection-with-adjudicable-skill-candidates","whole-selected-material-pack-index-and-source-byte-admission","native-contract-required-for-archived-repair","source-content-page-read-closure-without-native-garbled-or-raster-shortcuts","independently-reviewed-project-source-application-and-selection-bridges","immutable-chief-source-application-receipts-and-resume-replay","native-skill-knowledge-without-retired-density-depth-or-example-contracts","preserved-technical-ocr-content-without-prose-density-page-discard","native-raster-resolution-with-verified-composite-fallback","no-whole-library-project-intelligence-preheat-or-shadow-model","preserved-original-material-without-destructive-business-text-cleaning","explicit-user-sections-and-adjudicable-skill-candidate-preview","preserved-cad-stacked-engineering-units-and-fractions","file-level-source-coverage-without-per-chunk-audit-duplication","signature-driven-cad-source-routing-for-mislabeled-files","actual-carrier-source-routing-without-binary-fragment-success","frozen-source-edition-domains-without-filename-or-model-confirmation-shortcuts","selected-source-fingerprint-worker-with-epoch-bound-complete-cache-admission","source-document-headings-without-incidental-clarification-reference-reclassification","scalar-knowledge-discovery-with-selected-parser-version-receipts","planned-arrangements-without-invented-project-geometry-or-design-properties"]}}};
3
+ ${l}`:"",hits:c}}function k(a){return[...new Set(a.flatMap(a=>a.knowledge.flatMap(a=>a.ids)).filter(a=>!(0,d.VY)(a)))]}},67680:(a,b,c)=>{c.d(b,{$i:()=>m,VO:()=>i,mG:()=>l,mJ:()=>k});var d=c(81892),e=c(32374),f=c(13424);let g=["C01","C02","C02","C03","C04","C05","C06","C07","C08","C09","C10","C11","C12","C14","C15","C16"],h=[{domain:"C13",pattern:/危大工程专项|危险性较大的分部分项工程专项|危大专项/u}];function i(a){if(g.length!==d.h.length)throw Error(`章域映射表与 CHAPTER_FOCUS_RULES 失配:映射 ${g.length} 条 / 规则 ${d.h.length} 条`);let b=[];for(let{domain:c,pattern:e}of function(){let a=[];return d.h.forEach((b,c)=>{let d=g[c];d&&a.push({domain:d,pattern:b.pattern})}),a.push(...h),a}())!b.includes(c)&&e.test(a)&&b.push(c);return b}function j(a){return a.replace(/\s+/gu,"").toLowerCase()}function k(a,b,c,d){let e=i(b),g=e.includes(a.match.chapterDomain),h=(0,f.Yf)(a,d),k=c.map(j).filter(a=>a.length>0),l=k.length>0,m=a.match.sectionKeywords.filter(a=>{let b=j(a);return b.length>0&&k.some(a=>a.includes(b))}),n=l?function(a){let b=a.match.sectionRegex;if(b&&(0,f.s_)(b))try{return RegExp(b,"u")}catch{return}}(a):void 0,o=!!n&&k.some(a=>n.test(a)),p=a.match.sectionKeywords.length>0||void 0!==n,q=!l||!p||m.length>0||o;return{skillId:a.id,domainHit:g,matchedDomains:e,projectTypeHit:h,sectionGateApplied:l,matchedKeywords:m,regexHit:o,matched:g&&h&&q}}function l(a,b,c,d=e.d7){let f=d.filter(a=>a.enabled).map(d=>({skill:d,explanation:k(d,a,b,c)})).filter(a=>a.explanation.matched).map(a=>{var b;return{skill:a.skill,specificity:(b=a.explanation).matchedKeywords.length+ +!!b.regexHit}});return f.sort((a,b)=>b.specificity!==a.specificity?b.specificity-a.specificity:a.skill.id<b.skill.id?-1:+(a.skill.id>b.skill.id)),f.map(a=>a.skill)}function m(a){let b=[...a].sort((a,b)=>a.id<b.id?-1:+(a.id>b.id)),c=[],d={},e=(a,b)=>{let c=d[a]??[];c.includes(b)||c.push(b),d[a]=c},g=[];for(let a of b)for(let b of a.acceptance)for(let c of b.items)g.includes(c)||g.push(c),e(`llmChecklist:${c}`,a.id);let h=g.length?[{kind:"llmChecklist",items:g,nonDeterministic:!0}]:[],i=new Map;for(let a of b)for(let b of a.requires){let a=i.get(b.key);if(!a){i.set(b.key,{...b});continue}i.set(b.key,{...a,required:a.required||b.required})}let j=a=>`${a.kind}:${[...a.ids].sort().join(",")}`,k=new Map;for(let a of b)for(let b of a.knowledge){let a=j(b);k.has(a)||k.set(a,{...b,...b.ids?{ids:[...b.ids]}:{}})}let l=new Map;for(let a of b)for(let b of a.structure){let c=b.title.trim(),d=l.get(c)??[];d.push({skillId:a.id,spec:{...b,title:c}}),l.set(c,d)}let m=new Set,n=a=>a.structure.map(a=>a.title.trim()).filter(a=>!m.has(a)).join("|"),o=new Set(b.map(n).filter(a=>a.length>0));if(o.size>1){let a=[...o].sort();1===new Set(b.map(a=>[...new Set(a.structure.map(a=>a.title.trim()))].filter(a=>!m.has(a)).sort().join("|"))).size&&c.push({field:"structure",kind:"structure-order-mismatch",target:a.join(" ⇄ "),skillIds:b.map(a=>a.id),declarations:b.map(a=>({skillId:a.id,value:n(a)})),message:`技能声明了相同的小节集合但顺序不同:${b.map(a=>`${a.id}=[${n(a)}]`).join(" / ")}——需用户裁决小节顺序`})}let p=[],q=new Set;for(let a of b)for(let b of a.structure){let a=b.title.trim();if(m.has(a)||q.has(a))continue;q.add(a);let c=[...new Set((l.get(a)??[]).flatMap(a=>a.spec.required??[]))];p.push({title:a,...c.length?{required:c}:{}})}let r=new Map;for(let a of b)for(let b of(0,f.is)(a.forbidden)){let c=r.get(b)??[];c.includes(a.id)||c.push(a.id),r.set(b,c)}let s=b.flatMap(a=>{let b=[];for(let c of a.structure)for(let d of(b.push({phrase:c.title.trim(),skillId:a.id}),c.required??[]))b.push({phrase:d.trim(),skillId:a.id});return b}),t=new Set;for(let[a,b]of r){if(0===a.length)continue;let d=[...new Set(s.filter(b=>b.phrase.includes(a)||a.includes(b.phrase)).map(a=>a.skillId))].filter(a=>!b.includes(a));0!==d.length&&(t.add(a),c.push({field:"forbidden",kind:"forbidden-required-contradiction",target:a,skillIds:[...b,...d].sort(),declarations:[...b.map(b=>({skillId:b,value:`禁写「${a}」`})),...d.map(b=>({skillId:b,value:`要求写入含「${a}」的内容`}))],message:`禁写项「${a}」被另一技能明确要求写入——需用户裁决(自动合并会同时下发“必须写”与“禁止写”两条相反指令)`}))}let u=[];for(let a of b)for(let b of a.forbidden){let a=("string"==typeof b?b:b.phrase).trim();!(0===a.length||t.has(a))&&(u.some(b=>("string"==typeof b?b:b.phrase).trim()===a)||u.push("string"==typeof b?a:{...b,phrase:a}))}return{acceptance:h,acceptanceProvenance:d,requires:[...i.values()],knowledge:[...k.values()],structure:p,forbidden:u,conflicts:c,requiresArbitration:c.length>0}}},81892:(a,b,c)=>{c.d(b,{h:()=>d,u:()=>e});let d=[{pattern:/概况|总体|理解|说明|编制/u,goal:"依据真实资料说明范围、专业组成、实施条件和编制依据,区分已知事实与核验事项",mustCover:["工程名称、地点、规模、工期和质量目标等有出处且适用的项目事实","工程范围、专业组成、接口和场地条件;关键未知条件保留核验责任","实际采用的招标补遗、法规、标准及管理文件;名称、编号、版本和资格状态可核,实际引用与依据对应","全部真实专业、单体、系统和特殊构造的施工与交接责任,不强凑专业数量","单项目多属性以信息项—内容纵向或按含义分组;对象比较才横向,完整保留对象、控制数值和单位,不以固定列数或表数删数据"]},{pattern:/主要施工内容/u,goal:"完整承接真实对象、方法和接口,不以工程量罗列代替施工说明",mustCover:["全部实际专业、部位和对象,近名归并不遗漏不同职责","对应对象的工程量口径、准备条件、顺序、方法和专业接口","按对象和工法控制需要说明真实规格或参数、质量安全控制、检验验收及记录交接"]},{pattern:/主要分部分项工程施工方案|主要施工方法/u,goal:"按真实对象和工法说明可执行操作、控制和验收,必要参数随实际控制用途展开",mustCover:["各分项、独立系统和特殊构造的方法职责,不因工程量小或名称近似遗漏","对象部位、前置准备与验收、关键步骤、工作面和相邻专业衔接","工法确需的材料规格、操作或检验条件;数值具有来源、对象、单位和完整前提,未知不补造","工艺质量、安全、成品保护、记录及交接验收,不统一要求参数或环节数量"]},{pattern:/重点|难点/u,goal:"说明真实对象及工况的成因、影响、针对性控制和处置闭环",mustCover:["实际对象、部位、工况、成因和影响范围","对应方法、接口或专项控制及真实适用条件","责任、检查验收节点、异常处置、整改复核和记录","需要数值控制时准确引用参数及依据;管理或接口问题以完整程序表达,不按量化占比评分"]},{pattern:/部署|总体|流水|顺序/u,goal:"按真实范围、工作面和同一施工活动网络组织阶段及资源",mustCover:["真实对象、区段、工作面及交接界面","工序依赖、阶段顺序、穿插和必要等待,不照搬单一类型的整套工序","同一计划的资源、能力约束、动态协调及责任"]},{pattern:/进度|工期/u,goal:"基于工期约束、工程量和统一施工计划说明进度可实施性",mustCover:["总工期与日期口径、活动网络、依赖、必要等待和关键线路","阶段及滚动计划、资源工作面能力、供应和交接","进度监测、偏差原因、纠偏调整及责任,拟定节点与资料事实分开表达"]},{pattern:/质量/u,goal:"按适用质量要求落实材料、过程、验收、整改与资料闭环",mustCover:["有出处的质量目标、适用验收依据、对象和条件","交底、样板或首件、自检互检专检的实际责任及程序","适用复验与见证取样、隐蔽验收、试验及报验,参数和比例仅按真实适用要求","通病或缺陷防治、记录、整改复验及资料闭合","交接、保修与缺陷响应;有依据的期限准确写出,不补造承诺值"]},{pattern:/安全|危大|风险/u,goal:"按真实作业对象和工况落实风险、专项程序、检查整改及应急控制",mustCover:["实际安全目标与责任,不统一补造伤亡率、轻伤频率或达标率","对象、部位、作业形态和风险辨识,关键工况缺失保留核验责任","危大候选和分级以同对象完整参数及适用规则为依据,未决不等于不触发或已需专家论证","按已成立的条件落实方案编审、必要论证、交底、实施、监测和验收责任","人员设备、临电、消防及防护按实际形式组织,必要参数和检验周期具有真实适用依据","安全检查、隐患处置、复查记录和应急响应"]},{pattern:/资源|材料|设备|劳动力|人材机/u,goal:"使人机料、仪器和设施同实际活动、工程量、能力及阶段对应",mustCover:["设备适用作业、选型依据、能力约束、投入及进退场","工种、班组、工作面、阶段安排及交接","材料技术要求、采购批次、验收保管及供应","同一施工计划的资源口径和推导依据,区分拟定配置与现场已投入事实","表格按对象比较与阶段关系组织,完整对象、控制数值和单位可读;单对象多属性不堆成无比较目的的十几列单行,真实宽表保留全部字段"]},{pattern:/文明|绿色|环保|扬尘|噪声/u,goal:"按真实现场、作业影响及适用属地要求组织环境保护和文明施工",mustCover:["适用围挡、覆盖、清洗、场地和运输扬尘措施,不自动套固定百分比承诺","实际噪声振动、时段、污水、固废及交通秩序控制","监测检查、预警、处置复查、责任及记录,限值和频次仅按真实依据","适用节水节材节地节能和环保措施,不强凑每类数字或声称已完成评价"]},{pattern:/应急|预案/u,goal:"按真实风险源落实预警、响应、救援和恢复职责",mustCover:["实际风险、预警触发条件、组织及职责","与风险和救援条件相符的物资设备、通信协同","适用处置、疏散、报告救援、后期恢复、培训演练和记录,不套固定事故名单或数量"]},{pattern:/竣工|验收|移交|保修/u,goal:"按真实交付范围组织清理、验收、整改、移交和缺陷响应",mustCover:["实际收尾清理、废弃物处置和设施恢复","验收、缺陷记录、责任、整改复验和交接条件","实物资料移交、签认、保修响应及有依据的期限"]},{pattern:/工资|劳务|实名/u,goal:"按真实用工、合同和适用规定落实实名、工资、保险及争议处置",mustCover:["实名登记、合同考勤的适用对象、责任及资料管理","适用工资支付、专户代发、保证措施和台账,不把制度要求写成已开户或已支付","适用保险、参保、事故申报及劳动争议处理责任"]},{pattern:/交通导改|交通导行|交通组织|导改|管线保护|占道/u,goal:"对真实交通及管线接口说明调查、阶段保障与保护责任,不按工程类型排除",mustCover:["真实或需核验的交通、出入口及管线条件与调查责任","需要的阶段导改、通行能力、围挡隔离及恢复条件","实际通行保障、管线探明保护、权属协同和应急","适用标志标线、警示照明、监护交接,不把拟调查写成已调查"]},{pattern:/居民|扰民|既有(?:设施|管线|建筑|构筑物)保护|沟通协调|公众参与/u,goal:"按真实受影响对象组织沟通、通行、扰动控制与保护,不假定所有改造都有在场居民",mustCover:["实际影响对象、诉求和调查沟通责任,不补造户数或已走访事实","实际噪声扬尘振动和作业时间影响及控制","分区通行、出入口保障及既有设施保护接口","公示协调、投诉响应、责任记录和恢复移交"]},{pattern:/成品保护|半成品保护|交叉施工|交叉作业/u,goal:"按真实成品、系统和作业接口组织保护、交接与责任转移",mustCover:["真实保护对象、风险、责任和形式,不强行套齐房建饰面部位","工序作业面交接条件、检查记录、责任转移和专业协调","损坏记录、责任认定、修复复验、清洁和最终移交"]}];function e(a){return d.find(b=>b.pattern.test(a))}},87942:(a,b,c)=>{c.d(b,{x:()=>d});let d={version:"professional-document-workflow-v114",rules:["shared-author-system-and-canonical-plan-prefix-with-task-specific-delegation-at-tail","same-selected-model-composition-separated-from-chief-engineering-reasoning-with-user-thinking-preference-preserved","explicit-full-document-normative-collection-dependency-with-local-basis-tasks-parallel","complete-spatial-region-label-legends-and-task-local-preview-failure-isolation","single-reference-discovery-owner-and-author-task-local-chief-question-indices","shared-provider-capacity-and-evidence-progress-without-cad-text-discard","semantic-project-facts-without-global-raw-numeric-token-expansion","namespaced-original-member-references-with-server-recorded-batch-responses","current-source-model-and-protocol-bound-completed-discovery-response-reuse","independent-persisted-parsed-documents-and-knowledge-internal-source-unit-identities","uploaded-original-disappearance-never-deletes-indexed-knowledge","text-conservation-preview-and-structural-query-without-original-file-dependency","vector-row-file-chunk-and-parsed-version-validation-before-sqlite-hydration","provider-default-output-and-selected-model-role-based-thinking-without-total-generation-ceilings","task-local-facts-and-source-use-dependencies-with-condition-aware-query-diagnostics","source-file-ownership-routing-without-per-section-model-repetition","strict-duplicate-json-key-rejection-before-body-or-tool-admission","per-transport-cancellation-request-and-actual-settlement-with-unknown-usage-preserved","preserved-original-failures-and-pause-at-reported-output-truncation-without-whole-input-retries","whole-run-token-anomaly-pause-and-same-project-queue-suspension-without-cost-or-time-ceilings","current-professional-grade-required-for-delivery-with-verification-quality-gaps-separated","first-candidate-professional-pass-metrics-without-retention-percentage-delivery-veto","removed-unused-client-reservations-and-inactive-node-payload-writing-pruning","full-per-call-usage-ledger-with-unreported-cancelled-usage","lossless-repeated-evidence-projection-with-intact-thinking-tool-protocol","quantity-purpose-and-partial-boundary-aware-construction-network","professional-execution-defects-in-first-candidate-with-preserved-original","spatial-layout-schematics-without-invented-survey-dimensions","partial-draft-figure-rendering-and-explicit-portable-review-fonts","task-located-excerpt-reading-without-speculative-whole-file-scans","complete-work-package-directory-and-explicit-member-selection-without-default-paging","project-resource-authors-inherit-planned-crews-without-false-derived-peaks","professional-first-draft-and-seven-anchored-diagnostics-without-aggregate-pass-score","complete-object-directory-and-on-demand-full-source-without-preflight-candidate-census","current-v7-submission-only-and-actual-rendered-figure-evidence-without-body-node-dumps","whole-source-purpose-and-completed-claim-state-validation","single-activity-network-and-typed-source-quantity-production-plan","server-owned-author-unit-row-and-section-reference-identities","retained-body-annotation-correction-with-cumulative-meaningful-raw-writing-ledger","actual-task-executions-preserved-through-final-render-and-honest-terminal-nodes","all-actual-normative-use-catalog-with-independent-official-metadata-and-adoption-status","source-bound-hazard-candidates-without-unknown-to-nonhazard-conclusions","faithful-technical-rendering-and-actual-bookmark-page-toc-cache","no-bid-type-page-quotas-or-client-wall-clock-generation-cutoffs","chapter-fair-dynamic-author-dispatch-through-single-shared-model-capacity","single-chief-whole-outline-and-table-plan-with-complete-raw-protocol-receipts","current-candidate-identity-bound-plan-reuse-without-repeated-chapter-routing","user-outline-preservation-without-tail-character-title-rejection-or-post-plan-mutations","actual-body-normative-use-register-before-first-compilation-basis-writing","source-bound-exact-normative-name-code-and-use-position-review","single-optional-explicit-process-concurrency-without-default-four-or-six","complete-typed-tool-output-without-generic-tail-clipping","task-owned-complete-evidence-without-repeated-whole-chapter-source-matrices","authenticated-deep-frozen-source-policy-with-independent-current-use-validation","server-owned-source-evidence-indices-without-model-quote-or-hash-copy","actual-task-progress-and-substantive-body-without-title-shell-completion","explicit-input-resource-limits-without-hidden-env-or-default-document-cutoffs","active-task-engineering-decisions-with-reviewed-qualitative-adoption","professional-process-coverage-without-character-density-point-collapse","complete-source-library-and-positive-technical-obligation-discovery-without-commercial-role-closure","typed-task-local-writing-readiness-and-preserved-unresolved-source-ledger","single-common-construction-organization-plan-with-on-demand-engineering-decisions","source-first-omission-audit-after-preserved-real-first-draft","review-draft-export-separated-from-delivery-acceptance-with-bound-issue-sidecar","actual-claim-fidelity-review-separated-from-engineering-adoption-permission","balanced-same-family-source-bracket-intervals-without-unclosed-tail-suppression-or-source-rewriting","complete-physical-source-question-continuations-before-answer-purpose-review","source-context-semantic-projection-with-complete-server-owned-provenance-and-frozen-application-qualification","complete-clarification-source-groups-with-unique-original-member-accounting-and-independent-projection-binding","source-explicit-length-units-without-bare-number-or-neighbor-line-default-meters","complete-local-knowledge-assumption","knowledge-coverage-recovery","fact-trace-placement","chapter-coverage-gate","structured-quality-report","post-repair-verification","immutable-run-inputs","user-cancellation-and-typed-progress-execution-receipts","pre-writing-frozen-project-model","frozen-prompt-skill-and-model-configuration","object-and-attribute-bound-fact-governance","pre-writing-document-contract","complete-json-results-without-tail-clipping","single-explicit-selected-model-for-all-agent-and-review-calls","selected-model-without-vendor-allowlist-and-glm53-valid-thinking-tool-history","scoped-preparation-cancellation-and-drain-before-terminal-with-source-before-model-planning","source-complete-chief-model-projection-with-authoritative-native-proof-ledger","native-json-with-explicit-shared-total-output-capacity","technical-structure-requirements-grounded-in-local-presentation-purpose","object-property-condition-and-adoption-constraints-without-onsite-verb-or-edition-shortcuts","signal-driven-generation-with-stream-progress-and-effective-source-worker-capacity","exact-decimal-value-equivalence-with-source-object-unit-and-application-conservation","strict-explicit-source-indices-without-positional-recovery-or-retired-anchor-acceptance","mutable-live-activity-snapshots-separated-from-immutable-run-evidence","physical-property-corrections-separated-from-price-and-document-description-procedures","source-row-and-header-bound-table-quantity-witnesses-without-unit-inference","engineering-interfaces-separated-from-supplier-service-entitlements-and-charge-conditions","minimal-source-bound-static-constraints-without-synthetic-performance-duties","schema-correction-bound-to-actual-prior-output-and-preserved-source-semantics","native-contract-evaluation-with-retired-density-and-legacy-score-entrypoints","explicit-shared-total-output-capacity-with-frozen-selected-thinking-policy","source-owned-edition-sections-without-whole-document-catalog-qualification","single-chief-outline-duty-coverage-without-score-keyword-module-injection","real-provider-calls-without-hidden-prefix-warmup-requests","ordered-whole-dimension-and-celsius-identity-without-invented-unit-or-currency","reusable-provider-owned-http2-pool-with-concurrent-streamed-posts-and-signal-driven-cancellation","source-bound-planned-start-date-and-trigger-preserved-through-schedule-authority","contract-bound-seven-dimension-review","structured-author-tasks-and-cumulative-rework","canonical-document-model-and-guarded-incremental-repair","fixed-outline-and-unique-task-responsibility","same-selected-model-retry-without-provider-or-model-fallback","actual-task-instances-and-shared-chapter-budget","generation-scoped-llm-context","source-grounded-project-type-and-required-content-semantics","source-analysis-without-formal-writing-quotas","parent-grounded-financial-performance-separated-from-engineering-compensation","canonical-verified-whitespace-gaps-and-failed-request-ledger-preservation","source-text-once-and-payload-bounded-original-parent-batches","complete-outline-candidates-without-density-derived-section-count-or-blind-title-deletion","project-specific-substance-without-history-driven-novelty-or-correct-content-rewriting","native-cad-literal-location-and-root-bound-annotation-reading","chief-read-scope-pagination-without-premature-human-source-deferral","versioned-native-pdf-ruled-cell-reading-with-original-glyph-conservation","painted-horizontal-cell-spans-with-physical-row-edge-conservation","explicit-native-ordinary-page-continuation-without-grid-or-canonical-inference","fact-extraction-output-capacity-bound-to-complete-source-payload","persistent-source-and-parameter-bound-ocr-cache-default","native-table-row-boundaries-and-source-preserved-physical-page-continuation","file-level-proof-once-and-scalar-source-evidence-without-child-metadata-duplication","producer-bound-metadata-excluded-with-complete-original-ledger","immutable-source-and-provenance-bound-effective-facts","chief-frozen-original-source-queries","preserved-author-annotations-without-inferred-criterion-binding","scoped-chief-engineering-controls-with-independent-applicability-review","dxf-declared-codepage-and-observable-source-judgments","unchecked-blind-means-open-and-content-only-front-matter","canonical-native-toc-without-cover-or-invented-page-numbers","question-answer-boundaries-and-independent-review-with-frozen-model","dimension-picture-blocks-and-honest-polyline-transforms","evidence-progress-driven-chief-source-and-cad-reading","native-writing-without-legacy-drawing-lock-preparation","native-writing-without-legacy-density-or-duplicate-bill-preparation","chief-reasoning-tools-with-provider-session-roundtrip","source-binding-defect-scopes-without-unrelated-writing-penalties","pre-writing-shared-construction-deployment-and-task-interfaces","no-unscoped-elevation-subtraction-in-frozen-facts","single-native-generation-and-finalization-pipeline","request-local-llm-failure-attribution","lazy-cad-instances-with-complete-source-definitions","atomic-per-file-reindex-with-preserved-valid-snapshots","explicit-user-section-protection-with-adjudicable-skill-candidates","whole-selected-material-pack-index-and-source-byte-admission","native-contract-required-for-archived-repair","source-content-page-read-closure-without-native-garbled-or-raster-shortcuts","independently-reviewed-project-source-application-and-selection-bridges","immutable-chief-source-application-receipts-and-resume-replay","native-skill-knowledge-without-retired-density-depth-or-example-contracts","preserved-technical-ocr-content-without-prose-density-page-discard","native-raster-resolution-with-verified-composite-fallback","no-whole-library-project-intelligence-preheat-or-shadow-model","preserved-original-material-without-destructive-business-text-cleaning","explicit-user-sections-and-adjudicable-skill-candidate-preview","preserved-cad-stacked-engineering-units-and-fractions","file-level-source-coverage-without-per-chunk-audit-duplication","signature-driven-cad-source-routing-for-mislabeled-files","actual-carrier-source-routing-without-binary-fragment-success","frozen-source-edition-domains-without-filename-or-model-confirmation-shortcuts","selected-source-fingerprint-worker-with-epoch-bound-complete-cache-admission","source-document-headings-without-incidental-clarification-reference-reclassification","scalar-knowledge-discovery-with-selected-parser-version-receipts","planned-arrangements-without-invented-project-geometry-or-design-properties"]}}};
@@ -1,5 +1,5 @@
1
1
  "use strict";exports.id=2328,exports.ids=[2328],exports.modules={22328:(a,b,c)=>{c.d(b,{I4:()=>r,Q6:()=>q,WW:()=>t,oO:()=>p,oy:()=>n,rN:()=>m,xv:()=>o});var d=c(73024),e=c(76760),f=c(70949),g=c(77416),h=c(44533),i=c(58543),j=c(68023);class k extends Error{constructor(a,b,c){super(a),this.file=b,this.cause=c,this.name="RepairStoreError"}}function l(a,b){return e.join(b,`${a}.repairs.jsonl`)}function m(a,b,c){let f=l(a,c),g={v:1,t:Date.now(),request:b};try{d.mkdirSync(e.dirname(f),{recursive:!0}),d.appendFileSync(f,`${JSON.stringify(g)}
2
- `)}catch(b){throw new k(`修复请求落盘失败(节点/修复日志是唯一真相源,不得静默丢):${a}`,f,b)}}function n(a,b){let c,e=l(a,b);try{c=d.readFileSync(e,"utf8")}catch{return[]}let f=new Map;for(let a of c.split("\n"))if(a.trim())try{let b=JSON.parse(a);if(b?.v!==1||!b.request?.id)continue;f.set(b.request.id,b.request)}catch{continue}return[...f.values()].sort((a,b)=>a.id.localeCompare(b.id))}function o(a){return a.targetNodeId||a.localization?.accepted?a.transaction?(0,j.Ui)(a.transaction.recheck.before,a.transaction.recheck.after)||a.transaction.recheck.after.contractQuality?.requestedChangeVerified!==!0?"unclassified":/资料|证据|材料|知识库/u.test(a.impact?.reason||"")?"material-insufficient":(0,j.Un)(a.transaction.recheck.before,a.transaction.recheck.after)?"unclassified":"writing-capacity":a.execution&&!a.execution.available?"rerun-with-feedback"===a.execution.action?"detector-unwired":/不在本文档节点表内/u.test(a.execution.unavailableReason||"")?"unclassified":"detector-unwired":"unclassified":(a.localization?.candidates?.length??0)===0?"detector-missing":"detector-unwired"}class p extends Error{constructor(){super("该历史文档没有冻结合同和统一文档模型,不能按新体系自动补写;历史正文与报告仍可读取"),this.code="NATIVE_REPAIR_CONTRACT_REQUIRED",this.name="NativeRepairContractRequiredError"}}function q(a){let b=(0,f.getGeneratedDocument)(a.documentId,a.projectRoot);if(!b)throw Error("待修订文档不存在");if(!(0,i.Jd)(b))throw new p;return(0,i.fC)({request:a.request,documentId:a.documentId,projectRoot:a.projectRoot??b.projectRoot??(0,h.aY)()})}function r(a){let b=[];for(let c of a.matchAll(/[「『“"《【]([^」』”"》】]{2,})[」』”"》】]/gu))b.push(c[1].trim());for(let c of a.matchAll(/[0-9A-Za-z一-龥][0-9A-Za-z一-龥0-9.-]{2,}/gu))b.push(c[0].trim());return[...new Set(b.filter(a=>a.length>=4))]}function s(a){let{request:b,at:c}=a,d=b.transaction?.recheck,e={at:c,requestId:b.id,nodeId:b.targetNodeId,nodeKind:b.transaction?.nodeKind,action:b.transaction?.action,actionSource:b.transaction?.actionSource,userMessage:b.userMessage,localization:{method:b.localization?.method,candidateCount:b.localization?.candidates?.length??0,acceptedNodeId:b.localization?.accepted},changes:(b.transaction?.changes||[]).map(a=>({nodeId:a.nodeId,beforeChars:a.beforeChars,afterChars:a.afterChars})),outcome:b.outcome||"unfixable",attribution:o(b),impactClass:b.impact?.class,notExecutedReason:b.notExecutedReason};if(d){let a=(0,j.Ui)(d.before,d.after)??("fixed"!==b.outcome&&"partial"!==b.outcome||(0,j.Un)(d.before,d.after)?void 0:"回执未证明请求修改已核验且同合同复验未退步");a&&(e.notExecutedReason=[e.notExecutedReason,`历史修复结果无法按当前固定合同验证:${a};原始 outcome 仅为历史记录,观察计数不代表七维验收。`].filter(Boolean).join(" ")),e.netEffect={blocking:[d.before.blocking,d.after.blocking],entityPlacement:[d.before.entityPlacement,d.after.entityPlacement],chars:[d.before.chars,d.after.chars]}}return e}function t(a,b){return(0,g.ZS)((function(a,b){let c,e=l(a,b);try{c=d.readFileSync(e,"utf8")}catch{return[]}let f=new Map;for(let a of c.split("\n"))if(a.trim())try{let b=JSON.parse(a);if(b?.v!==1||!b.request?.id)continue;f.set(b.request.id,{at:b.t,request:b.request})}catch{continue}return[...f.values()].sort((a,b)=>a.at-b.at||a.request.id.localeCompare(b.request.id))})(a,b).map(s))}},58543:(a,b,c)=>{c.d(b,{fC:()=>J,Du:()=>I,pA:()=>L,Jd:()=>G});var d=c(73024),e=c.n(d),f=c(77598),g=c(32460),h=c(70949),i=c(7942),j=c(35091),k=c(31698),l=c(21123),m=c(94173),n=c(19444),o=c(80408),p=c(12866),q=c(22157),r=c(59948),s=c(30839),t=c(72275),u=c(34680),v=c(68115),w=c(43800),x=c(41791),y=c(62065),z=c(51326),A=c(7661),B=c(51750),C=c(48479),D=c(94776);let E=a=>(0,f.createHash)("sha256").update(JSON.stringify(a)).digest("hex"),F=a=>Object.fromEntries(Object.entries(a.tasks).map(([a,b])=>[a,b.current.output]));function G(a){return!!(a.nativeRevision||a.reviewMetadata?.contractQuality||a.draft?.reviewMetadata?.contractQuality)}function H(a,b){if(!a.runId||!a.draft||["generating","queued"].includes(a.status))throw Error("结构化修复需要已经停止写入的文档运行及完整草稿资产");let c=(0,h.Gl)(b),d=(b,d)=>{let g=e().readFileSync((0,i.HM)(c,b,a.runId));if(d&&(0,f.createHash)("sha256").update(g).digest("hex")!==d)throw Error("结构化修订资产哈希不一致");return JSON.parse(g.toString("utf8"))},g=d("author-resume-state.json");(0,j.oH)(g.contract),(0,k.oG)(b,g.projectModel);let p=g.writerContext.sharedConstructionPlan;if(!p)throw Error("当前结构化文档缺少同版共享施工计划,不能恢复来源适用性校验");(0,l.wB)(p,g.contract,g.projectModel),(0,m.tD)(g.projectModel,g.contract.sections.map(a=>(0,l.G6)(p,g.projectModel,a.id))),(0,n.R)(g.projectModel,c,a.runId),(0,n.u)(g.projectModel,c,a.runId);let q=d(a.nativeRevision?.modelFile??"document-model-final.json",a.nativeRevision?.modelSha256),A=(0,u.Zk)();(0,o.cv)(A,g.contract,g.projectModel,{restore:q}),(0,j.qK)(A,g.contract);let B=a.nativeRevision?.accountingFile??"author-accounting-final.json";(a.nativeRevision?.accountingFile||e().existsSync((0,i.HM)(c,B,a.runId)))&&(0,r.zh)(A,d(B,a.nativeRevision?.accountingSha256)),(0,s.C)({directory:c,runId:a.runId,contractId:g.contract.id,diagnostics:A});let C={};(0,z.ST)(C),(0,z.er)(A,C);let D=(0,z.c9)(A),G=D.models.active,H=G&&D.models.list.find(a=>a.name===G.name&&a.provider===G.provider),I={origin:"current-user-selection-at-repair-start",active:G,selected:H?{provider:H.provider,name:H.name,thinking:H.thinking??"follow-task"}:null,configurationFingerprint:(0,z.Q6)(C)},J=(0,v.rZ)({generatedDir:c,projectRoot:b,documentId:a.id}),K=b=>(0,o.BO)(g.contract,b,a.title,a.draft.chapters,J.renderer),L=K(q);if((a.editedMarkdown??a.markdown)!==L.markdown||a.draft.markdown!==L.markdown)throw Error("当前正文已脱离统一模型;须先重建并复验,不能通过字符串修复覆盖原结构化资产");let M=a.nativeRevision?d(a.nativeRevision.qualityFile,a.nativeRevision.qualitySha256):a.reviewMetadata?.contractQuality??a.draft.reviewMetadata?.contractQuality;if(!M||M.version!==t.Ly||M.contractId!==g.contract.id||M.projectSnapshotId!==g.projectModel.snapshotId||M.documentHash!==(0,t.Sl)(L.chapters,L.markdown)||M.authorModelHash!==(0,t.Np)(F(q))||E(M.score)!==E((0,j._n)(g.contract,M.findings)))throw Error("当前七维回执与统一模型不一致,需要完整复验");if(!g.writerContext.resumeContext)throw Error("缺少写作及机械终检的冻结上下文,不能空跑后宣称修复通过");let N=function(a){let b=new w.h(a.signal);return{global:{input:{...a,signal:b.signal},preparationWork:b,emitProgress:()=>void 0,withProgressHeartbeat:async a=>a(),...void 0!==a.nodeLogBaseDir?{nodeLogBaseDir:a.nodeLogBaseDir}:{},chapterDrafts:[],checkpointChapterOrderIds:[]},prepare:{},understanding:{},planning:{},blueprint:{},chapterLoop:{}}}({});return(0,x.k)(N,g.writerContext.resumeContext),{base:g,model:q,quality:M,diagnostics:A,render:K,rendered:L,mechanical:a=>(0,y.u)({documentContract:g.contract,generationDiagnostics:A,projectMaterialSummary:N.prepare.projectMaterialSummary,bidComposition:N.understanding.bidComposition,hazardBindings:N.understanding.hazardResolution?.bindings},K(a),a),figures:J,directory:c,modelSelection:I}}function I(a,b,c){return Object.entries(H(a,b).model.tasks).flatMap(([a,b])=>{let d=c.filter(a=>b.current.markdown.includes(a));if(!d.length)return[];let e=b.current.markdown.indexOf(d[0]);return[{nodeId:a,score:d.reduce((a,b)=>a+b.length,0),excerpt:b.current.markdown.slice(Math.max(0,e-20),e+d[0].length+20)}]}).sort((a,b)=>b.score-a.score||a.nodeId.localeCompare(b.nodeId)).slice(0,5)}function J(a){let b,c,d=(0,h.CX)(a.documentId,a.projectRoot);if(!d)throw Error("待修复文档不存在");let e=H(d,a.projectRoot),j=E(d),k=`repair-${(0,f.randomUUID)()}`;(0,g.yY)(e.diagnostics,{generatedDir:e.directory,runId:k,contract:e.base.contract}),(0,i.tv)(e.directory,"repair-inputs.json",{repairRunId:k,originRunId:d.runId,documentId:d.id,request:a.request,modelSelection:e.modelSelection,originalRecordHash:j,contractId:e.base.contract.id,projectSnapshotId:e.base.projectModel.snapshotId,firstCandidateHashes:e.model.c0TaskHashes},k);let l=function(a,b,c){if(a.base.contract.sections.some(a=>a.id===c))return[c];let d=a.base.contract.chapters.find(a=>a.id===c||(0,C.Ts)(a.id)===c);if(d)return d.sectionIds;let e=(0,B.g0)(b.id,a.directory).find(a=>a.id===c),f=e?.metrics?.taskId;if("string"==typeof f&&a.base.contract.sections.some(a=>a.id===f))return[f];throw Error("目标节点没有固定作者任务身份,不能猜测修改范围")}(e,d,a.request.targetNodeId),m=(a,b,c)=>({blocking:e.mechanical(a).filter(a=>"error"===a.level||"blocker"===a.severity).length+b.score.blocking.length+(0,t.ie)(b).length,entityPlacement:Object.values(a.tasks).reduce((a,b)=>a+b.current.output.factBindings.length,0),chars:e.render(a).markdown.length,contractQuality:{contractId:b.contractId,unresolvedCount:b.findings.filter(a=>"met"!==a.status).length,requestedChangeVerified:c,findings:b.findings.map(({criterionId:a,status:b})=>({criterionId:a,status:b}))},judges:{mode:"full",executed:b.findings.filter(a=>"unmeasured"!==a.status).map(a=>a.criterionId),degraded:b.findings.filter(a=>"unmeasured"===a.status).map(a=>a.criterionId),missing:[],unavailableInputs:[]}});return{request:a.request,execution:{nodeKind:"writing-block",action:a.request.patch?"targeted-patch":"rerun-with-feedback",actionSource:a.request.patch?"explicit-patch":"default",available:!0,reason:"通过固定任务的统一模型执行,在全文累计轻修预算内复验后提交"},snapshot:async()=>{let a=E({model:e.model,quality:e.quality});return(0,i.tv)(e.directory,`native-snapshot-${a}.json`,{model:e.model,quality:e.quality},d.runId),`native:${a}`},apply:async()=>(0,s.e)({directory:e.directory,runId:d.runId,contractId:e.base.contract.id,diagnostics:e.diagnostics},async()=>{let c=a.request.patch;if(c){if(c.append||c.endText)throw Error("结构化定点修改须使用单一单元的逐字锚点;跨单元区间或追加须由作者提交完整结构化任务");let d=l.flatMap(a=>e.model.tasks[a]?.current.output.units.flatMap(b=>"paragraph"===b.kind&&b.text.includes(c.anchor)?[{taskId:a,unitId:b.id}]:"table"===b.kind?b.rows.flatMap(d=>b.columns.filter(a=>d.cells[a.key].includes(c.anchor)).map(c=>({taskId:a,unitId:b.id,rowId:d.id,columnKey:c.key}))):[])??[]);if(1!==d.length)throw Error("锚点必须唯一定位一个实际段落或表格字段,不能修改多个对象");let f=d[0];b=function(a){let{change:b}=a,c=a.model.tasks[b.taskId];if(!c||c.current.contentHash!==b.expectedContentHash)throw Error("待修改的任务不存在或内容已变更,原定位不能继续执行");if(!b.anchor.trim()||!b.reason.trim())throw Error("结构化修改须有逐字锚点和明确原因");let d=structuredClone(c.current.output),e=d.units.find(a=>a.id===b.unitId);if(!e)throw Error("目标单元不属于已定位的作者任务");let f=a=>{let c=a.indexOf(b.anchor);if(c<0||a.indexOf(b.anchor,c+b.anchor.length)>=0)throw Error("逐字锚点不存在或不唯一,不能模糊匹配修改");return a.slice(0,c)+b.replacement+a.slice(c+b.anchor.length)};if("paragraph"===e.kind){if(void 0!==b.rowId||void 0!==b.columnKey)throw Error("段落修改不能携带表格记录定位");e.text=f(e.text)}else if("table"===e.kind){let a=e.rows.find(a=>a.id===b.rowId);if(!a||!b.columnKey||!e.columns.some(a=>a.key===b.columnKey))throw Error("表格修改须明确定位真实记录与字段");a.cells[b.columnKey]=f(a.cells[b.columnKey])}else throw Error("流程图修改须提交完整节点与边的结构化事务,不能把图件字符串替换当成关系修改");let g=(0,u.Zk)();(0,o.cv)(g,a.contract,a.project,{restore:a.model});let h=(0,o.wI)(g,b.taskId,d,b.reason),i=a.contract.sections.find(a=>a.id===b.taskId).chapterId,j=a.contract.criteria.filter(a=>a.applicable&&(!a.chapterId||a.chapterId===i)).map(a=>a.id);return{...h,affectedCriterionIds:j}}({contract:e.base.contract,project:e.base.projectModel,model:e.model,change:{...f,expectedContentHash:e.model.tasks[f.taskId].current.contentHash,anchor:c.anchor,replacement:c.replacement,reason:a.request.userMessage}}).model}else{if(1!==l.length)throw Error("自然语言轻修须先定位一个固定作者任务;不能以整章重写替代局部修正");let c=e.base.contract.sections.find(a=>a.id===l[0]),f=e.model.tasks[c.id]?.current;if(!f)throw Error("本任务没有完整首候选,须继续生成,不能作为轻修处理");try{await (0,D.X4)({chapterId:c.chapterId,blockTitle:c.title,contractScoped:!0,maxAuthorSubmissions:1,maxTokens:Math.max(6e3,Math.ceil(1.8*f.markdown.length)),diagnostics:e.diagnostics,system:`你是专业文档作者智能体。按用户已定位的局部问题轻修,不改变其他信息单元、事实来源和方案决定。
2
+ `)}catch(b){throw new k(`修复请求落盘失败(节点/修复日志是唯一真相源,不得静默丢):${a}`,f,b)}}function n(a,b){let c,e=l(a,b);try{c=d.readFileSync(e,"utf8")}catch{return[]}let f=new Map;for(let a of c.split("\n"))if(a.trim())try{let b=JSON.parse(a);if(b?.v!==1||!b.request?.id)continue;f.set(b.request.id,b.request)}catch{continue}return[...f.values()].sort((a,b)=>a.id.localeCompare(b.id))}function o(a){return a.targetNodeId||a.localization?.accepted?a.transaction?(0,j.Ui)(a.transaction.recheck.before,a.transaction.recheck.after)||a.transaction.recheck.after.contractQuality?.requestedChangeVerified!==!0?"unclassified":/资料|证据|材料|知识库/u.test(a.impact?.reason||"")?"material-insufficient":(0,j.Un)(a.transaction.recheck.before,a.transaction.recheck.after)?"unclassified":"writing-capacity":a.execution&&!a.execution.available?"rerun-with-feedback"===a.execution.action?"detector-unwired":/不在本文档节点表内/u.test(a.execution.unavailableReason||"")?"unclassified":"detector-unwired":"unclassified":(a.localization?.candidates?.length??0)===0?"detector-missing":"detector-unwired"}class p extends Error{constructor(){super("该历史文档没有冻结合同和统一文档模型,不能按新体系自动补写;历史正文与报告仍可读取"),this.code="NATIVE_REPAIR_CONTRACT_REQUIRED",this.name="NativeRepairContractRequiredError"}}function q(a){let b=(0,f.getGeneratedDocument)(a.documentId,a.projectRoot);if(!b)throw Error("待修订文档不存在");if(!(0,i.Jd)(b))throw new p;return(0,i.fC)({request:a.request,documentId:a.documentId,projectRoot:a.projectRoot??b.projectRoot??(0,h.aY)()})}function r(a){let b=[];for(let c of a.matchAll(/[「『“"《【]([^」』”"》】]{2,})[」』”"》】]/gu))b.push(c[1].trim());for(let c of a.matchAll(/[0-9A-Za-z一-龥][0-9A-Za-z一-龥0-9.-]{2,}/gu))b.push(c[0].trim());return[...new Set(b.filter(a=>a.length>=4))]}function s(a){let{request:b,at:c}=a,d=b.transaction?.recheck,e={at:c,requestId:b.id,nodeId:b.targetNodeId,nodeKind:b.transaction?.nodeKind,action:b.transaction?.action,actionSource:b.transaction?.actionSource,userMessage:b.userMessage,localization:{method:b.localization?.method,candidateCount:b.localization?.candidates?.length??0,acceptedNodeId:b.localization?.accepted},changes:(b.transaction?.changes||[]).map(a=>({nodeId:a.nodeId,beforeChars:a.beforeChars,afterChars:a.afterChars})),outcome:b.outcome||"unfixable",attribution:o(b),impactClass:b.impact?.class,notExecutedReason:b.notExecutedReason};if(d){let a=(0,j.Ui)(d.before,d.after)??("fixed"!==b.outcome&&"partial"!==b.outcome||(0,j.Un)(d.before,d.after)?void 0:"回执未证明请求修改已核验且同合同复验未退步");a&&(e.notExecutedReason=[e.notExecutedReason,`历史修复结果无法按当前固定合同验证:${a};原始 outcome 仅为历史记录,观察计数不代表七维验收。`].filter(Boolean).join(" ")),e.netEffect={blocking:[d.before.blocking,d.after.blocking],entityPlacement:[d.before.entityPlacement,d.after.entityPlacement],chars:[d.before.chars,d.after.chars]}}return e}function t(a,b){return(0,g.ZS)((function(a,b){let c,e=l(a,b);try{c=d.readFileSync(e,"utf8")}catch{return[]}let f=new Map;for(let a of c.split("\n"))if(a.trim())try{let b=JSON.parse(a);if(b?.v!==1||!b.request?.id)continue;f.set(b.request.id,{at:b.t,request:b.request})}catch{continue}return[...f.values()].sort((a,b)=>a.at-b.at||a.request.id.localeCompare(b.request.id))})(a,b).map(s))}},58543:(a,b,c)=>{c.d(b,{fC:()=>J,Du:()=>I,pA:()=>L,Jd:()=>G});var d=c(73024),e=c.n(d),f=c(77598),g=c(32460),h=c(70949),i=c(7942),j=c(35091),k=c(31698),l=c(21123),m=c(94173),n=c(19444),o=c(80408),p=c(12866),q=c(22157),r=c(59948),s=c(30839),t=c(72275),u=c(34680),v=c(96241),w=c(43800),x=c(41791),y=c(62065),z=c(51326),A=c(7661),B=c(51750),C=c(48479),D=c(94776);let E=a=>(0,f.createHash)("sha256").update(JSON.stringify(a)).digest("hex"),F=a=>Object.fromEntries(Object.entries(a.tasks).map(([a,b])=>[a,b.current.output]));function G(a){return!!(a.nativeRevision||a.reviewMetadata?.contractQuality||a.draft?.reviewMetadata?.contractQuality)}function H(a,b){if(!a.runId||!a.draft||["generating","queued"].includes(a.status))throw Error("结构化修复需要已经停止写入的文档运行及完整草稿资产");let c=(0,h.Gl)(b),d=(b,d)=>{let g=e().readFileSync((0,i.HM)(c,b,a.runId));if(d&&(0,f.createHash)("sha256").update(g).digest("hex")!==d)throw Error("结构化修订资产哈希不一致");return JSON.parse(g.toString("utf8"))},g=d("author-resume-state.json");(0,j.oH)(g.contract),(0,k.oG)(b,g.projectModel);let p=g.writerContext.sharedConstructionPlan;if(!p)throw Error("当前结构化文档缺少同版共享施工计划,不能恢复来源适用性校验");(0,l.wB)(p,g.contract,g.projectModel),(0,m.tD)(g.projectModel,g.contract.sections.map(a=>(0,l.G6)(p,g.projectModel,a.id))),(0,n.R)(g.projectModel,c,a.runId),(0,n.u)(g.projectModel,c,a.runId);let q=d(a.nativeRevision?.modelFile??"document-model-final.json",a.nativeRevision?.modelSha256),A=(0,u.Zk)();(0,o.cv)(A,g.contract,g.projectModel,{restore:q}),(0,j.qK)(A,g.contract);let B=a.nativeRevision?.accountingFile??"author-accounting-final.json";(a.nativeRevision?.accountingFile||e().existsSync((0,i.HM)(c,B,a.runId)))&&(0,r.zh)(A,d(B,a.nativeRevision?.accountingSha256)),(0,s.C)({directory:c,runId:a.runId,contractId:g.contract.id,diagnostics:A});let C={};(0,z.ST)(C),(0,z.er)(A,C);let D=(0,z.c9)(A),G=D.models.active,H=G&&D.models.list.find(a=>a.name===G.name&&a.provider===G.provider),I={origin:"current-user-selection-at-repair-start",active:G,selected:H?{provider:H.provider,name:H.name,thinking:H.thinking??"follow-task"}:null,configurationFingerprint:(0,z.Q6)(C)},J=(0,v.rZ)({generatedDir:c,projectRoot:b,documentId:a.id}),K=b=>(0,o.BO)(g.contract,b,a.title,a.draft.chapters,J.renderer),L=K(q);if((a.editedMarkdown??a.markdown)!==L.markdown||a.draft.markdown!==L.markdown)throw Error("当前正文已脱离统一模型;须先重建并复验,不能通过字符串修复覆盖原结构化资产");let M=a.nativeRevision?d(a.nativeRevision.qualityFile,a.nativeRevision.qualitySha256):a.reviewMetadata?.contractQuality??a.draft.reviewMetadata?.contractQuality;if(!M||M.version!==t.Ly||M.contractId!==g.contract.id||M.projectSnapshotId!==g.projectModel.snapshotId||M.documentHash!==(0,t.Sl)(L.chapters,L.markdown)||M.authorModelHash!==(0,t.Np)(F(q))||E(M.score)!==E((0,j._n)(g.contract,M.findings)))throw Error("当前七维回执与统一模型不一致,需要完整复验");if(!g.writerContext.resumeContext)throw Error("缺少写作及机械终检的冻结上下文,不能空跑后宣称修复通过");let N=function(a){let b=new w.h(a.signal);return{global:{input:{...a,signal:b.signal},preparationWork:b,emitProgress:()=>void 0,withProgressHeartbeat:async a=>a(),...void 0!==a.nodeLogBaseDir?{nodeLogBaseDir:a.nodeLogBaseDir}:{},chapterDrafts:[],checkpointChapterOrderIds:[]},prepare:{},understanding:{},planning:{},blueprint:{},chapterLoop:{}}}({});return(0,x.k)(N,g.writerContext.resumeContext),{base:g,model:q,quality:M,diagnostics:A,render:K,rendered:L,mechanical:a=>(0,y.u)({documentContract:g.contract,generationDiagnostics:A,projectMaterialSummary:N.prepare.projectMaterialSummary,bidComposition:N.understanding.bidComposition,hazardBindings:N.understanding.hazardResolution?.bindings},K(a),a),figures:J,directory:c,modelSelection:I}}function I(a,b,c){return Object.entries(H(a,b).model.tasks).flatMap(([a,b])=>{let d=c.filter(a=>b.current.markdown.includes(a));if(!d.length)return[];let e=b.current.markdown.indexOf(d[0]);return[{nodeId:a,score:d.reduce((a,b)=>a+b.length,0),excerpt:b.current.markdown.slice(Math.max(0,e-20),e+d[0].length+20)}]}).sort((a,b)=>b.score-a.score||a.nodeId.localeCompare(b.nodeId)).slice(0,5)}function J(a){let b,c,d=(0,h.CX)(a.documentId,a.projectRoot);if(!d)throw Error("待修复文档不存在");let e=H(d,a.projectRoot),j=E(d),k=`repair-${(0,f.randomUUID)()}`;(0,g.yY)(e.diagnostics,{generatedDir:e.directory,runId:k,contract:e.base.contract}),(0,i.tv)(e.directory,"repair-inputs.json",{repairRunId:k,originRunId:d.runId,documentId:d.id,request:a.request,modelSelection:e.modelSelection,originalRecordHash:j,contractId:e.base.contract.id,projectSnapshotId:e.base.projectModel.snapshotId,firstCandidateHashes:e.model.c0TaskHashes},k);let l=function(a,b,c){if(a.base.contract.sections.some(a=>a.id===c))return[c];let d=a.base.contract.chapters.find(a=>a.id===c||(0,C.Ts)(a.id)===c);if(d)return d.sectionIds;let e=(0,B.g0)(b.id,a.directory).find(a=>a.id===c),f=e?.metrics?.taskId;if("string"==typeof f&&a.base.contract.sections.some(a=>a.id===f))return[f];throw Error("目标节点没有固定作者任务身份,不能猜测修改范围")}(e,d,a.request.targetNodeId),m=(a,b,c)=>({blocking:e.mechanical(a).filter(a=>"error"===a.level||"blocker"===a.severity).length+b.score.blocking.length+(0,t.ie)(b).length,entityPlacement:Object.values(a.tasks).reduce((a,b)=>a+b.current.output.factBindings.length,0),chars:e.render(a).markdown.length,contractQuality:{contractId:b.contractId,unresolvedCount:b.findings.filter(a=>"met"!==a.status).length,requestedChangeVerified:c,findings:b.findings.map(({criterionId:a,status:b})=>({criterionId:a,status:b}))},judges:{mode:"full",executed:b.findings.filter(a=>"unmeasured"!==a.status).map(a=>a.criterionId),degraded:b.findings.filter(a=>"unmeasured"===a.status).map(a=>a.criterionId),missing:[],unavailableInputs:[]}});return{request:a.request,execution:{nodeKind:"writing-block",action:a.request.patch?"targeted-patch":"rerun-with-feedback",actionSource:a.request.patch?"explicit-patch":"default",available:!0,reason:"通过固定任务的统一模型执行,在全文累计轻修预算内复验后提交"},snapshot:async()=>{let a=E({model:e.model,quality:e.quality});return(0,i.tv)(e.directory,`native-snapshot-${a}.json`,{model:e.model,quality:e.quality},d.runId),`native:${a}`},apply:async()=>(0,s.e)({directory:e.directory,runId:d.runId,contractId:e.base.contract.id,diagnostics:e.diagnostics},async()=>{let c=a.request.patch;if(c){if(c.append||c.endText)throw Error("结构化定点修改须使用单一单元的逐字锚点;跨单元区间或追加须由作者提交完整结构化任务");let d=l.flatMap(a=>e.model.tasks[a]?.current.output.units.flatMap(b=>"paragraph"===b.kind&&b.text.includes(c.anchor)?[{taskId:a,unitId:b.id}]:"table"===b.kind?b.rows.flatMap(d=>b.columns.filter(a=>d.cells[a.key].includes(c.anchor)).map(c=>({taskId:a,unitId:b.id,rowId:d.id,columnKey:c.key}))):[])??[]);if(1!==d.length)throw Error("锚点必须唯一定位一个实际段落或表格字段,不能修改多个对象");let f=d[0];b=function(a){let{change:b}=a,c=a.model.tasks[b.taskId];if(!c||c.current.contentHash!==b.expectedContentHash)throw Error("待修改的任务不存在或内容已变更,原定位不能继续执行");if(!b.anchor.trim()||!b.reason.trim())throw Error("结构化修改须有逐字锚点和明确原因");let d=structuredClone(c.current.output),e=d.units.find(a=>a.id===b.unitId);if(!e)throw Error("目标单元不属于已定位的作者任务");let f=a=>{let c=a.indexOf(b.anchor);if(c<0||a.indexOf(b.anchor,c+b.anchor.length)>=0)throw Error("逐字锚点不存在或不唯一,不能模糊匹配修改");return a.slice(0,c)+b.replacement+a.slice(c+b.anchor.length)};if("paragraph"===e.kind){if(void 0!==b.rowId||void 0!==b.columnKey)throw Error("段落修改不能携带表格记录定位");e.text=f(e.text)}else if("table"===e.kind){let a=e.rows.find(a=>a.id===b.rowId);if(!a||!b.columnKey||!e.columns.some(a=>a.key===b.columnKey))throw Error("表格修改须明确定位真实记录与字段");a.cells[b.columnKey]=f(a.cells[b.columnKey])}else throw Error("流程图修改须提交完整节点与边的结构化事务,不能把图件字符串替换当成关系修改");let g=(0,u.Zk)();(0,o.cv)(g,a.contract,a.project,{restore:a.model});let h=(0,o.wI)(g,b.taskId,d,b.reason),i=a.contract.sections.find(a=>a.id===b.taskId).chapterId,j=a.contract.criteria.filter(a=>a.applicable&&(!a.chapterId||a.chapterId===i)).map(a=>a.id);return{...h,affectedCriterionIds:j}}({contract:e.base.contract,project:e.base.projectModel,model:e.model,change:{...f,expectedContentHash:e.model.tasks[f.taskId].current.contentHash,anchor:c.anchor,replacement:c.replacement,reason:a.request.userMessage}}).model}else{if(1!==l.length)throw Error("自然语言轻修须先定位一个固定作者任务;不能以整章重写替代局部修正");let c=e.base.contract.sections.find(a=>a.id===l[0]),f=e.model.tasks[c.id]?.current;if(!f)throw Error("本任务没有完整首候选,须继续生成,不能作为轻修处理");try{await (0,D.X4)({chapterId:c.chapterId,blockTitle:c.title,contractScoped:!0,maxAuthorSubmissions:1,maxTokens:Math.max(6e3,Math.ceil(1.8*f.markdown.length)),diagnostics:e.diagnostics,system:`你是专业文档作者智能体。按用户已定位的局部问题轻修,不改变其他信息单元、事实来源和方案决定。
3
3
  ${e.base.writerContext.promptTexts}`,prompt:`用户原话:${a.request.userMessage}
4
4
  当前固定任务:${JSON.stringify(c)}
5
5
  当前完整结构化产物:${JSON.stringify(f.output)}