dsh-knit 0.17.0 → 0.19.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/src/host/tool.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Knit · agent 文档工具(v0.7)
3
3
  *
4
- * 把一个**只读**工具交给模型:`knit_docs` —— 列出这个项目里已有的 Markdown 文档,
4
+ * 把一个**只读**工具交给模型:`knit_docs` —— 列出这个项目里已有的**文档与代码文件**,
5
5
  * 按与当前对话(或调用方给出的 query)的相关性排序。
6
6
  *
7
7
  * 解决的问题:agent 想引用项目里已有的文档时只能靠猜路径、或者把 glob 出来的
@@ -85,7 +85,7 @@ const HAYSTACK_NOTE =
85
85
  * 所以描述要点名两件它自己做不到的事:**稀有词权重**(不是数次数)
86
86
  * 与**不依赖文件名**。最后一句是行为引导 —— 直说「别自己来」。
87
87
  */
88
- const DESCRIPTION = 'Project context for the current task, from the workspace Markdown: '
88
+ const DESCRIPTION = 'Project context for the current task, from the workspace documents and code: '
89
89
  + 'primary (read first) / supporting (evidence, implementation) / related. '
90
90
  + 'Ranked by IDF-weighted relevance to the conversation (or an explicit query), then split '
91
91
  + 'by deterministic local rules — prefer it to globbing filenames or counting keyword hits. '
@@ -140,8 +140,8 @@ const ITEM_SCHEMA = {
140
140
  mtimeMs: { type: 'integer' },
141
141
  // 项目里的角色:impl / test / config / design / doc。纯路径规则,不是内容理解。
142
142
  source: { type: 'string', enum: ['impl', 'test', 'config', 'design', 'doc'] },
143
- // 条目是什么:md / image / video。
144
- // ⚠️ **故意不给它 enum**。取值集合归 `index.js` 的 `kindOfName()` 所有;
143
+ // 条目是什么:md / code / image / video。
144
+ // ⚠️ **故意不给它 enum**。取值集合归 `classification.js` 的 `classifyFile()` 所有;
145
145
  // 在这里钉一份名单,等于以后每加一种文件类型就让工具在**校验层**静默失败一次。
146
146
  // v0.14 正是这么坏掉的:`kind` 当时压根没被声明,而 schema 是 `additionalProperties: false`。
147
147
  kind: { type: 'string' },
@@ -153,7 +153,7 @@ const ITEM_SCHEMA = {
153
153
  code: {
154
154
  type: 'string',
155
155
  enum: [
156
- 'direct', 'titleMatch', 'summaryMatch', 'bodyMatch',
156
+ 'direct', 'titleMatch', 'filenameMatch', 'summaryMatch', 'pathMatch', 'bodyMatch',
157
157
  'linkTarget', 'linkSource', 'related',
158
158
  ],
159
159
  },
@@ -185,7 +185,7 @@ const OUTPUT_SCHEMA = {
185
185
  properties: {
186
186
  mode: { type: 'string', enum: ['relevance', 'time'] },
187
187
  topic: { type: 'string' },
188
- // 本批语料里**一共有多少篇** Markdown —— 让模型知道这不是「随便挑的几条」,
188
+ // 本批语料里**一共有多少个文件**(文档 + 代码)—— 让模型知道这不是「随便挑的几条」,
189
189
  // 不必再自己 glob 一遍做交叉验证(v0.8,依据是真机验收里观察到的行为)。
190
190
  total: { type: 'integer' },
191
191
  // v0.14:三层。`primary` 是「先读这几篇」,`supporting` 是「证据 / 实现 / 下一步」,
@@ -393,11 +393,18 @@ export function renderToolText(value, readSnippet) {
393
393
  const topic = value && typeof value.topic === 'string' ? value.topic : ''
394
394
  const total = Number.isInteger(value && value.total) ? value.total : 0
395
395
 
396
+ // v0.19:语料从「只有 Markdown」变成「文档 + 代码」,所以这里的称谓必须跟着改。
397
+ // 说「9 Markdown documents」而实际语料里含着 `.ts`,是在对模型说假话 ——
398
+ // 而且它会误导模型以为「这个项目里没有代码可看」。**称谓集中在这一处**,
399
+ // 免得以后改口径时要追四条字符串。
400
+ const files = (n) => `${n} document${n === 1 ? '' : 's'} and code file${n === 1 ? '' : 's'}`
401
+ const EMPTY = 'No documents or code files found in the workspace.'
402
+
396
403
  // 退化(时间序)与「没有对话」是同一件事的两面:都没有命中词。
397
404
  if (mode !== 'relevance') {
398
405
  const docs = (value && Array.isArray(value.docs)) ? value.docs : []
399
- if (docs.length === 0) return 'No Markdown documents found in the workspace.'
400
- const scope = ` of ${total} Markdown document${total === 1 ? '' : 's'}`
406
+ if (docs.length === 0) return EMPTY
407
+ const scope = ` of ${files(total)}`
401
408
  return [`Not enough conversation to rank by relevance — showing the ${docs.length} most recently modified${scope}:`,
402
409
  ...docs.map((doc, index) => `${index + 1}. ${doc.rel} — ${doc.title}`)].join('\n')
403
410
  }
@@ -409,14 +416,14 @@ export function renderToolText(value, readSnippet) {
409
416
  // 三层都空 = 真的没有可看的上下文。**不能只判 total** —— 工作区有文档、
410
417
  // 但当前话题一篇都没命中、且一条引用邻居都没有时,`total` 是正数而三层全空。
411
418
  if (primary.length + supporting.length + related.length === 0) {
412
- if (total === 0) return 'No Markdown documents found in the workspace.'
413
- // 文档在、但一个词都没命中 —— **不许说成「工作区里没有 Markdown」**:
419
+ if (total === 0) return EMPTY
420
+ // 文档在、但一个词都没命中 —— **不许说成「工作区里没有文档」**:
414
421
  // 那是一句假话,而且会把 agent 推向一个错的结论(「这个项目里没有相关材料」)。
415
422
  // 真机实测:问「路径越界怎么防」时 49 篇一篇都没命中,因为文档侧只看每篇
416
423
  // **前 2500 字**(`index.js` 的 HAYSTACK_CHARS),而这个词在 5 篇 .md 里
417
424
  // 全部出现在 2500 字之后。说实话 + 给下一步,比一句错的空结果有用。
418
425
  return [
419
- `No document matched the current topic — 0 of ${total} Markdown document${total === 1 ? '' : 's'} contain the query terms.`,
426
+ `No document or code file matched the current topic — 0 of ${files(total)} contain the query terms.`,
420
427
  HAYSTACK_NOTE,
421
428
  ].join('\n')
422
429
  }
@@ -436,9 +443,8 @@ export function renderToolText(value, readSnippet) {
436
443
  const out = []
437
444
  const matched = (value && value.totals && Number.isInteger(value.totals.matched))
438
445
  ? value.totals.matched : 0
439
- const scope = ` of ${total} Markdown document${total === 1 ? '' : 's'}`
440
446
  out.push(`Context for ${topic ? `「${topic}」` : 'the current conversation'}: `
441
- + `${matched} matching document${matched === 1 ? '' : 's'}${scope}, split into `
447
+ + `${matched} matching of ${files(total)}, split into `
442
448
  + 'primary / supporting / related by deterministic local rules (first-read order — '
443
449
  + 'not a flat relevance list; each tier is still ranked by IDF-weighted relevance):')
444
450
 
@@ -471,7 +477,12 @@ function whyText(reason) {
471
477
  switch (code) {
472
478
  case 'direct': return terms ? `direct topic match in the title (${terms})` : 'direct topic match in the title'
473
479
  case 'titleMatch': return terms ? `matched in the title (${terms})` : 'matched in the title'
480
+ // v0.19:代码没有「标题 / 摘要」,占这两个槽位的是**文件名**与**所在目录**
481
+ // (见 `index.js` 的 `readCode()`)。判据与 `titleMatch` / `summaryMatch` 完全一样,
482
+ // 只有称谓不同 —— 对一个 `.ts` 文件说 "matched in the title" 是错的。
483
+ case 'filenameMatch': return terms ? `matched in the filename (${terms})` : 'matched in the filename'
474
484
  case 'summaryMatch': return terms ? `matched in the summary (${terms})` : 'matched in the summary'
485
+ case 'pathMatch': return terms ? `matched in the path (${terms})` : 'matched in the path'
475
486
  case 'bodyMatch': return terms ? `matched in the body (${terms})` : 'matched in the body'
476
487
  case 'linkTarget': return 'referenced by a primary document'
477
488
  case 'linkSource': return 'references a primary document'
@@ -574,6 +585,11 @@ export function knitDocsDefinition(scan, read, contextFor, audit) {
574
585
  sessionId,
575
586
  sort: 'relevance',
576
587
  query,
588
+ // v0.19:工具的语料是**文档 + 代码**(不给 HTTP 的 `context` 档)。
589
+ // 这一条正是本次版本的核心主张:代码和 Markdown 在**同一套 BM25、同一套分层**
590
+ // 里竞争,谁进 Primary 只由任务检索决定,没人给代码留座位。
591
+ // 媒体不进 —— 图片/视频没有可检索的正文,进上下文只会稀释(v0.18 起如此)。
592
+ kind: 'context',
577
593
  })
578
594
 
579
595
  // 命中词用 `scan()` 的 `keywords` —— 它是**语料里真实存在**的那批词
@@ -0,0 +1,237 @@
1
+ /**
2
+ * Knit v0.19 · 文件分类层(`src/host/classification.js`)的守卫。
3
+ *
4
+ * 为什么单独一个文件:v0.19 之前,扩展名判断是一个 `kindOfName()` 函数,
5
+ * 而「一个文件能干什么」这件事被**隐含**在三个地方 —— scanner 决定收不收,
6
+ * retrieval 决定要不要给它建索引,preview 决定读不读得出来。三处各自 if。
7
+ *
8
+ * v0.19 把这些浓缩成 `classifyFile()` 返回的**一个固定字段集**:
9
+ *
10
+ * kind / language / previewable / searchable / contextual / generated / sourceMap
11
+ *
12
+ * 这个文件的职责有三层,缺一层都不算守住:
13
+ *
14
+ * 1. **正向**:支持范围内的后缀必须真的进来,且语言标识正确(不然徽章会说谎)。
15
+ * 2. **负向**:`.map` / minified / bundle / generated / lock 必须**一个都不能**带着
16
+ * `searchable` 或 `contextual` 为真漏过去。这是 v0.19 最容易出的错 —— 少了这一条,
17
+ * `dist/bundle.js` 会堂堂正正地进 Context Pack。
18
+ * 3. **架构**:断言扩展名知识**只**住在这一层。`src/host/index.js` 和
19
+ * `src/client/client.js` 里不许再出现 `'.ts'` / `'.yaml'` 这类后缀字面量。
20
+ * 没有第 3 层,前两层守住的边界会被下一个「顺手加一个 if」拆掉。
21
+ *
22
+ * 全部断言都是纯字符串比较 —— 这一层是纯函数、零 I/O。
23
+ */
24
+ import test from 'node:test'
25
+ import assert from 'node:assert/strict'
26
+ import { readFile } from 'node:fs/promises'
27
+ import { fileURLToPath } from 'node:url'
28
+
29
+ import {
30
+ classifyFile,
31
+ isContextKind,
32
+ isPreviewKind,
33
+ CODE_LANGUAGES,
34
+ UNSUPPORTED_CODE_EXTENSIONS,
35
+ KIND_DOCUMENT,
36
+ KIND_CODE,
37
+ KIND_IMAGE,
38
+ KIND_VIDEO,
39
+ KIND_GENERATED,
40
+ KIND_IGNORED,
41
+ } from '../src/host/classification.js'
42
+
43
+ /**
44
+ * 第一批支持的后缀 → 期望的语言标识(与需求 §4 逐条对应)。
45
+ * 刻意**手写**这张表而不用 `CODE_LANGUAGES` 反推:用被测数据构造期望,
46
+ * 表本身改坏了测试也会跟着改坏,那就什么都没测到。
47
+ */
48
+ const SUPPORTED = [
49
+ ['app.js', 'javascript'],
50
+ ['app.mjs', 'javascript'],
51
+ ['app.cjs', 'javascript'],
52
+ ['app.ts', 'typescript'],
53
+ ['Component.tsx', 'tsx'],
54
+ ['Widget.jsx', 'jsx'],
55
+ ['main.py', 'python'],
56
+ ['data.json', 'json'],
57
+ ['index.html', 'html'],
58
+ ['legacy.htm', 'html'],
59
+ ['style.css', 'css'],
60
+ ['theme.scss', 'scss'],
61
+ ['ci.yaml', 'yaml'],
62
+ ['ci.yml', 'yaml'],
63
+ ['run.sh', 'shell'],
64
+ ['run.bash', 'shell'],
65
+ ['run.zsh', 'shell'],
66
+ ]
67
+
68
+ /** 明确**不支持**的后缀(需求 §5)—— 必须是 `ignored`,不能是 code。 */
69
+ const UNSUPPORTED = ['main.go', 'lib.rs', 'App.java', 'Main.kt', 'core.c', 'core.cpp',
70
+ 'core.h', 'core.hpp', 'Program.cs', 'index.php', 'app.rb', 'App.swift', 'schema.sql']
71
+
72
+ test('classification: 第一批代码后缀全部归为 code,且语言标识正确', () => {
73
+ for (const [name, language] of SUPPORTED) {
74
+ const info = classifyFile(name)
75
+ assert.equal(info.kind, KIND_CODE, `${name} 应该是 code`)
76
+ assert.equal(info.language, language, `${name} 的语言标识应该是 ${language}`)
77
+ assert.equal(info.previewable, true, `${name} 应该可预览`)
78
+ assert.equal(info.searchable, true, `${name} 应该可检索(v0.19 的核心)`)
79
+ assert.equal(info.contextual, true, `${name} 应该可进上下文`)
80
+ assert.equal(info.generated, false, `${name} 不是生成产物`)
81
+ assert.equal(info.sourceMap, false, `${name} 不是 source map`)
82
+ }
83
+ })
84
+
85
+ test('classification: 支持范围外的源码后缀一律 ignored,不偷渡成 code', () => {
86
+ for (const name of UNSUPPORTED) {
87
+ const info = classifyFile(name)
88
+ assert.equal(info.kind, KIND_IGNORED, `${name} 在 v0.19 范围外,应该是 ignored`)
89
+ assert.equal(info.searchable, false, `${name} 不能进 BM25 语料`)
90
+ assert.equal(info.contextual, false, `${name} 不能进 Context Pack`)
91
+ assert.equal(info.previewable, false, `${name} 不给预览(没有语言渲染器,也不做纯文本兜底)`)
92
+ }
93
+ // 名单本身也要对得上:测试表和实现表不能各说各话。
94
+ for (const name of UNSUPPORTED) {
95
+ const ext = name.slice(name.lastIndexOf('.') + 1)
96
+ assert.ok(UNSUPPORTED_CODE_EXTENSIONS.has(ext), `${ext} 应该在 UNSUPPORTED_CODE_EXTENSIONS 里`)
97
+ }
98
+ })
99
+
100
+ test('classification: Markdown 仍是文档,能力位与 v0.18 一致', () => {
101
+ const info = classifyFile('README.md')
102
+ assert.equal(info.kind, KIND_DOCUMENT)
103
+ assert.equal(info.language, 'markdown')
104
+ assert.equal(info.previewable, true)
105
+ assert.equal(info.searchable, true)
106
+ assert.equal(info.contextual, true)
107
+ assert.equal(info.generated, false)
108
+ })
109
+
110
+ test('classification: 图片 / 视频可预览可列出,但不进检索、不进上下文', () => {
111
+ for (const [name, kind] of [['shot.png', KIND_IMAGE], ['clip.mp4', KIND_VIDEO]]) {
112
+ const info = classifyFile(name)
113
+ assert.equal(info.kind, kind, `${name} 的 kind`)
114
+ assert.equal(info.language, null, `${name} 没有语言标识`)
115
+ assert.equal(info.previewable, true, `${name} 可预览(走 /api/raw)`)
116
+ // 这两条是 v0.19 的**向后兼容钉**:媒体行为一个字都没变。
117
+ assert.equal(info.searchable, false, `${name} 不进 BM25 语料`)
118
+ assert.equal(info.contextual, false, `${name} 不进 Context Pack`)
119
+ }
120
+ })
121
+
122
+ test('classification: .map 是 generated —— 能预览,但不进检索 / 上下文 / 列表', () => {
123
+ const info = classifyFile('app.js.map')
124
+ assert.equal(info.kind, KIND_GENERATED)
125
+ assert.equal(info.sourceMap, true, '要被认成 source map,预览里才给那个轻量入口')
126
+ assert.equal(info.previewable, true, '同名源文件存在时要能点开看(需求 §6)')
127
+ assert.equal(info.searchable, false, '**绝不能**进 BM25 语料')
128
+ assert.equal(info.contextual, false, '**绝不能**成为 Primary / Supporting / Related')
129
+ assert.equal(info.generated, true)
130
+ // 大写扩展名与路径形式也要认
131
+ assert.equal(classifyFile('dist/App.JS.MAP').sourceMap, true)
132
+ })
133
+
134
+ test('classification: minified / bundle / generated 产物全部是 generated,且不可检索', () => {
135
+ const names = ['app.min.js', 'app.min.css', 'vendor.bundle.js', 'x.generated.js', 'x.gen.js',
136
+ 'y.generated.tsx', 'z.gen.css']
137
+ for (const name of names) {
138
+ const info = classifyFile(name)
139
+ assert.equal(info.kind, KIND_GENERATED, `${name} 应该被过滤成 generated`)
140
+ assert.equal(info.searchable, false, `${name} 不能进 BM25 语料`)
141
+ assert.equal(info.contextual, false, `${name} 不能进 Context Pack`)
142
+ assert.equal(info.previewable, true, `${name} 用户主动打开时仍然能看(Context eligibility ≠ 文件可见性)`)
143
+ }
144
+ // 反例:这些后缀没被规则误伤。
145
+ assert.equal(classifyFile('minify.js').kind, KIND_CODE, 'minify.js 不是压缩产物')
146
+ assert.equal(classifyFile('bundle.js').kind, KIND_CODE, 'bundle.js(无前缀)仍是普通代码')
147
+ assert.equal(classifyFile('generated.js').kind, KIND_CODE, 'generated.js(无前缀)仍是普通代码')
148
+ })
149
+
150
+ test('classification: 锁文件按文件名判定(扩展名是 json,只看后缀会漏)', () => {
151
+ const names = ['package-lock.json', 'npm-shrinkwrap.json', 'yarn.lock', 'pnpm-lock.yaml',
152
+ 'bun.lockb', 'composer.lock', 'cargo.lock', 'poetry.lock', 'Gemfile.lock']
153
+ for (const name of names) {
154
+ const info = classifyFile(name)
155
+ assert.equal(info.kind, KIND_GENERATED, `${name} 应该被过滤`)
156
+ assert.equal(info.searchable, false, `${name} 不能进语料`)
157
+ assert.equal(info.contextual, false, `${name} 不能进上下文`)
158
+ }
159
+ // 反例:普通 json 与不锁的 yaml 不受影响。
160
+ assert.equal(classifyFile('tsconfig.json').kind, KIND_CODE)
161
+ assert.equal(classifyFile('docker-compose.yaml').kind, KIND_CODE)
162
+ })
163
+
164
+ test('classification: 未知类型与无扩展名文件是 ignored,不给纯文本兜底', () => {
165
+ for (const name of ['notes.txt', 'Dockerfile', 'Makefile', 'LICENSE', 'archive.zip',
166
+ 'noext', '.gitignore', 'trailing.']) {
167
+ const info = classifyFile(name)
168
+ assert.equal(info.kind, KIND_IGNORED, `${name} 应该是 ignored`)
169
+ assert.equal(info.previewable, false, `${name} **不能**预览:/api/doc 是按路径读文件的接口,兜底等于开后门`)
170
+ assert.equal(info.searchable, false)
171
+ assert.equal(info.contextual, false)
172
+ }
173
+ })
174
+
175
+ test('classification: 大小写与路径形式不影响判定', () => {
176
+ assert.equal(classifyFile('README.MD').kind, KIND_DOCUMENT)
177
+ assert.equal(classifyFile('TSConfig.JSON').kind, KIND_CODE)
178
+ assert.equal(classifyFile('/abs/path/to/Component.tsx').language, 'tsx')
179
+ assert.equal(classifyFile('src\\win\\path\\main.py').language, 'python')
180
+ assert.equal(classifyFile('deep/nested/dir/app.min.js').kind, KIND_GENERATED)
181
+ })
182
+
183
+ test('classification: 判定顺序是契约的一部分(生成规则必须压过代码白名单)', () => {
184
+ // app.min.js 的后缀也是 js,规则顺序反了它就会变成一篇「正经代码」。
185
+ assert.equal(CODE_LANGUAGES.get('js'), 'javascript', '前提:js 确实在代码白名单里')
186
+ assert.equal(classifyFile('app.min.js').kind, KIND_GENERATED)
187
+ // package-lock.json 的后缀也是 json。
188
+ assert.equal(CODE_LANGUAGES.get('json'), 'json', '前提:json 确实在代码白名单里')
189
+ assert.equal(classifyFile('package-lock.json').kind, KIND_GENERATED)
190
+ })
191
+
192
+ test('classification: isContextKind / isPreviewKind 与 classifyFile 的能力位一致', () => {
193
+ for (const name of ['README.md', 'app.ts', 'app.js.map', 'shot.png', 'clip.mp4',
194
+ 'main.go', 'notes.txt']) {
195
+ const info = classifyFile(name)
196
+ assert.equal(isContextKind(info.kind), info.contextual,
197
+ `${name}:isContextKind 必须与 contextual 一致`)
198
+ /* ⚠️ `previewable` 与 `isPreviewKind()` **不是同一件事**,别把它们等同起来:
199
+ - `previewable`:用户能不能看到它。图片 / 视频为真 —— 走 `/knit/api/raw`。
200
+ - `isPreviewKind()`:`/knit/api/doc`(**按路径读文件**的接口)放不放行。
201
+ 媒体走 /raw,不经 /doc;`ignored` 两边都拒。这条边界是安全属性,不是能力描述。
202
+ 所以媒体是「previewable 为真、isPreviewKind 为假」。 */
203
+ const isMedia = info.kind === KIND_IMAGE || info.kind === KIND_VIDEO
204
+ assert.equal(isPreviewKind(info.kind), info.previewable && !isMedia,
205
+ `${name}:isPreviewKind 必须与「previewable 且不走 /api/raw」一致`)
206
+ if (isMedia) {
207
+ assert.equal(info.previewable, true, `${name}:媒体走 /api/raw,仍然可预览`)
208
+ assert.equal(isPreviewKind(info.kind), false, `${name}:媒体不经 /api/doc`)
209
+ }
210
+ }
211
+ // 只有文档与代码能进上下文 —— 这一版的核心边界。
212
+ assert.equal(isContextKind(KIND_GENERATED), false)
213
+ assert.equal(isContextKind(KIND_IMAGE), false)
214
+ assert.equal(isContextKind(KIND_VIDEO), false)
215
+ assert.equal(isContextKind(KIND_IGNORED), false)
216
+ // 只有文本类产物能被 /api/doc 读出来。
217
+ assert.equal(isPreviewKind(KIND_DOCUMENT), true)
218
+ assert.equal(isPreviewKind(KIND_CODE), true)
219
+ assert.equal(isPreviewKind(KIND_GENERATED), true, '.map 要能点开看(需求 §6)')
220
+ assert.equal(isPreviewKind(KIND_IGNORED), false, '未知类型不给纯文本兜底')
221
+ })
222
+
223
+ test('architecture: 扩展名知识只住在 classification.js,不许散落回 scanner / UI', async () => {
224
+ // 这一条守的不是行为,是**结构**。没有它,上面那些边界会被下一个
225
+ // 「顺手在 client 里加一个 if (name.endsWith('.map'))」拆掉。
226
+ const files = ['../src/host/index.js', '../src/client/client.js']
227
+ const literals = ["'.ts'", "'.tsx'", "'.jsx'", "'.py'", "'.json'", "'.yaml'",
228
+ "'.yml'", "'.scss'", "'.map'", "'.min.js'", "'.bundle.js'", "'.generated.js'"]
229
+ for (const rel of files) {
230
+ const path = fileURLToPath(new URL(rel, import.meta.url))
231
+ const text = await readFile(path, 'utf8')
232
+ for (const literal of literals) {
233
+ assert.equal(text.includes(literal), false,
234
+ `${rel} 里出现了后缀字面量 ${literal} —— 判定必须回到 classification.js`)
235
+ }
236
+ }
237
+ })