@cslug/ai 0.4.1 → 0.5.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/README.md +5 -2
- package/docs/README.md +128 -3
- package/docs/api.md +36 -0
- package/migrations/00000000_000500_cslug_ai.sql +48 -0
- package/package.json +19 -5
- package/src/agent.ts +115 -0
- package/src/ai-eval-command.ts +100 -0
- package/src/ai-provider.ts +138 -0
- package/src/ai-stream.ts +31 -0
- package/src/ai.ts +317 -0
- package/src/budget.ts +103 -0
- package/src/conversation-store.ts +79 -0
- package/src/conversations.ts +215 -0
- package/src/drivers.ts +249 -0
- package/src/fake.ts +156 -0
- package/src/index.ts +68 -4
- package/src/mcp-client.ts +154 -0
- package/src/mcp.ts +75 -0
- package/src/model.ts +111 -0
- package/src/sse.ts +35 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { CslugError } from '@cslug/core'
|
|
2
|
+
import { exposeMcp, type McpOptions } from './mcp'
|
|
3
|
+
import { sseEvents } from './model'
|
|
4
|
+
|
|
5
|
+
/** `config/ai.ts` → `mcp.<name>`: a streamable HTTP endpoint, or a command speaking MCP on stdio. */
|
|
6
|
+
export type McpServerConfig =
|
|
7
|
+
| { url: string; headers?: Record<string, string> }
|
|
8
|
+
| { command: string[]; env?: Record<string, string> }
|
|
9
|
+
|
|
10
|
+
const MODERN = '2026-07-28'
|
|
11
|
+
const LEGACY = '2025-11-25'
|
|
12
|
+
const CLIENT = { name: 'cslug', version: '0' }
|
|
13
|
+
type Reply = { id?: unknown; result?: Record<string, unknown>; error?: { code: number; message: string } }
|
|
14
|
+
|
|
15
|
+
/** One connection to an MCP server: the version is probed (`server/discover`, else `initialize`) on first use. */
|
|
16
|
+
export class McpConnection {
|
|
17
|
+
private version?: string
|
|
18
|
+
private session?: string
|
|
19
|
+
private nextId = 1
|
|
20
|
+
private proc?: Bun.Subprocess<'pipe', 'pipe', 'inherit'>
|
|
21
|
+
private readonly waiting = new Map<number, (reply: Reply) => void>()
|
|
22
|
+
|
|
23
|
+
constructor(
|
|
24
|
+
readonly name: string,
|
|
25
|
+
private readonly config: McpServerConfig,
|
|
26
|
+
) {}
|
|
27
|
+
|
|
28
|
+
/** A request; a JSON-RPC error is an `ai.mcp` error. */
|
|
29
|
+
async request(method: string, params: Record<string, unknown> = {}): Promise<Record<string, unknown>> {
|
|
30
|
+
if (!this.version) await this.connect()
|
|
31
|
+
const reply = await this.send(method, params)
|
|
32
|
+
if (reply?.error) throw new CslugError('ai.mcp', `${this.name}: ${reply.error.message} (${reply.error.code})`)
|
|
33
|
+
return reply?.result ?? {}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
private async connect() {
|
|
37
|
+
this.version = MODERN
|
|
38
|
+
const discovered = await this.send('server/discover', {}).catch(() => undefined)
|
|
39
|
+
if ((discovered?.result?.supportedVersions as string[] | undefined)?.includes(MODERN)) return
|
|
40
|
+
this.version = undefined // an older server: the initialize handshake
|
|
41
|
+
const init = await this.send('initialize', { protocolVersion: LEGACY, capabilities: {}, clientInfo: CLIENT })
|
|
42
|
+
if (!init?.result) throw new CslugError('ai.mcp', `${this.name}: initialize failed (${init?.error?.message})`)
|
|
43
|
+
this.version = String(init.result.protocolVersion)
|
|
44
|
+
await this.send('notifications/initialized', undefined)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
private async send(method: string, params: Record<string, unknown> | undefined): Promise<Reply | undefined> {
|
|
48
|
+
const notification = method.startsWith('notifications/')
|
|
49
|
+
const id = notification ? undefined : this.nextId++
|
|
50
|
+
const modern = this.version === MODERN
|
|
51
|
+
const meta = modern
|
|
52
|
+
? {
|
|
53
|
+
_meta: {
|
|
54
|
+
'io.modelcontextprotocol/protocolVersion': MODERN,
|
|
55
|
+
'io.modelcontextprotocol/clientCapabilities': {},
|
|
56
|
+
'io.modelcontextprotocol/clientInfo': CLIENT,
|
|
57
|
+
},
|
|
58
|
+
}
|
|
59
|
+
: {}
|
|
60
|
+
const message = {
|
|
61
|
+
jsonrpc: '2.0',
|
|
62
|
+
...(id ? { id } : {}),
|
|
63
|
+
method,
|
|
64
|
+
...(params || modern ? { params: { ...params, ...meta } } : {}),
|
|
65
|
+
}
|
|
66
|
+
return 'url' in this.config ? this.http(message, id) : this.stdio(message, id)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
private async http(message: { method: string; params?: Record<string, unknown> }, id?: number) {
|
|
70
|
+
const config = this.config as { url: string; headers?: Record<string, string> }
|
|
71
|
+
const res = await fetch(config.url, {
|
|
72
|
+
method: 'POST',
|
|
73
|
+
headers: {
|
|
74
|
+
'content-type': 'application/json',
|
|
75
|
+
accept: 'application/json, text/event-stream',
|
|
76
|
+
'mcp-method': message.method,
|
|
77
|
+
...(this.version ? { 'mcp-protocol-version': this.version } : {}),
|
|
78
|
+
...(message.method === 'tools/call' ? { 'mcp-name': String(message.params?.name) } : {}),
|
|
79
|
+
...(this.session ? { 'mcp-session-id': this.session } : {}),
|
|
80
|
+
...config.headers,
|
|
81
|
+
},
|
|
82
|
+
body: JSON.stringify(message),
|
|
83
|
+
})
|
|
84
|
+
this.session = res.headers.get('mcp-session-id') ?? this.session
|
|
85
|
+
if (id === undefined || res.status === 202) return undefined
|
|
86
|
+
if (!res.ok && !res.headers.get('content-type')?.includes('json'))
|
|
87
|
+
throw new CslugError('ai.mcp', `${this.name} answered ${res.status}`)
|
|
88
|
+
if (!res.headers.get('content-type')?.includes('event-stream')) return (await res.json()) as Reply
|
|
89
|
+
for await (const { data } of sseEvents(res.body as ReadableStream<Uint8Array>)) {
|
|
90
|
+
const reply = JSON.parse(data) as Reply
|
|
91
|
+
if (reply.id === id) return reply
|
|
92
|
+
}
|
|
93
|
+
throw new CslugError('ai.mcp', `${this.name}: the stream ended without a response`)
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
private async stdio(message: object, id?: number) {
|
|
97
|
+
const proc = this.proc ?? this.spawn()
|
|
98
|
+
const reply = id === undefined ? undefined : new Promise<Reply>((done) => this.waiting.set(id, done))
|
|
99
|
+
proc.stdin.write(`${JSON.stringify(message)}\n`)
|
|
100
|
+
await proc.stdin.flush()
|
|
101
|
+
return reply
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
private spawn() {
|
|
105
|
+
const { command, env } = this.config as { command: string[]; env?: Record<string, string> }
|
|
106
|
+
const proc = Bun.spawn(command, {
|
|
107
|
+
stdin: 'pipe',
|
|
108
|
+
stdout: 'pipe',
|
|
109
|
+
stderr: 'inherit',
|
|
110
|
+
env: { ...process.env, ...env },
|
|
111
|
+
})
|
|
112
|
+
this.proc = proc
|
|
113
|
+
void (async () => {
|
|
114
|
+
const reader = proc.stdout.getReader()
|
|
115
|
+
const decoder = new TextDecoder()
|
|
116
|
+
let buffer = ''
|
|
117
|
+
for (let read = await reader.read(); !read.done; read = await reader.read()) {
|
|
118
|
+
buffer += decoder.decode(read.value, { stream: true })
|
|
119
|
+
for (let end = buffer.indexOf('\n'); end >= 0; end = buffer.indexOf('\n')) {
|
|
120
|
+
const line = buffer.slice(0, end).trim()
|
|
121
|
+
buffer = buffer.slice(end + 1)
|
|
122
|
+
const reply = line ? (JSON.parse(line) as Reply) : undefined
|
|
123
|
+
if (typeof reply?.id === 'number') this.waiting.get(reply.id)?.(reply)
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
})()
|
|
127
|
+
return proc
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
async close(): Promise<void> {
|
|
131
|
+
this.proc?.stdin.end()
|
|
132
|
+
this.proc?.kill()
|
|
133
|
+
await this.proc?.exited
|
|
134
|
+
this.proc = undefined
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** The tools of an MCP server (all, or the `only` names), for an agent's `tools`. */
|
|
139
|
+
export class McpTools {
|
|
140
|
+
constructor(
|
|
141
|
+
readonly server: string,
|
|
142
|
+
readonly only?: readonly string[],
|
|
143
|
+
) {}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* `mcp('maps').tools(['route_duration'])`: an MCP server's tools for an agent (spread into `tools`).
|
|
148
|
+
* `@mcp({ ability })`: expose a `Tool` class over MCP.
|
|
149
|
+
*/
|
|
150
|
+
export function mcp(server: string): { tools(only?: readonly string[]): McpTools[] }
|
|
151
|
+
export function mcp(options?: McpOptions): ReturnType<typeof exposeMcp>
|
|
152
|
+
export function mcp(arg?: string | McpOptions) {
|
|
153
|
+
return typeof arg === 'string' ? { tools: (only?: readonly string[]) => [new McpTools(arg, only)] } : exposeMcp(arg)
|
|
154
|
+
}
|
package/src/mcp.ts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { existsSync, readdirSync } from 'node:fs'
|
|
2
|
+
import { join } from 'node:path'
|
|
3
|
+
import { type Application, handleMcpMessage, type McpMessage, type McpReply, type McpTool } from '@cslug/core'
|
|
4
|
+
import type { Tool, ToolClass } from './agent'
|
|
5
|
+
|
|
6
|
+
export { MCP_VERSIONS, type McpReply } from '@cslug/core'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Who may call an exposed tool over HTTP. Default: an authenticated caller (any guard); `public: true` exposes it
|
|
10
|
+
* to anyone; `guard` requires one guard; `ability` an API-token ability (session users pass, as with `ability()`).
|
|
11
|
+
*/
|
|
12
|
+
export type McpOptions = { public?: boolean; guard?: string; ability?: string }
|
|
13
|
+
|
|
14
|
+
const exposed = new Map<ToolClass, McpOptions>()
|
|
15
|
+
|
|
16
|
+
/** `@mcp({ ability: 'mcp:bookings' })` on a `Tool` class: served by `/mcp` and `cslug mcp:serve`. */
|
|
17
|
+
export const exposeMcp =
|
|
18
|
+
(options: McpOptions = {}) =>
|
|
19
|
+
<C extends ToolClass>(cls: C, _context?: ClassDecoratorContext): C => {
|
|
20
|
+
exposed.set(cls, options)
|
|
21
|
+
return cls
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** The tools marked with `@mcp()` (after `discoverTools` imported `app/tools/`). */
|
|
25
|
+
export const mcpTools = (): [ToolClass, McpOptions][] => [...exposed]
|
|
26
|
+
|
|
27
|
+
/** Import every module under `app/tools/`, so their `@mcp()` decorators run. */
|
|
28
|
+
export async function discoverTools(app: Application): Promise<void> {
|
|
29
|
+
const dir = join(app.rootDir, 'app/tools')
|
|
30
|
+
if (!existsSync(dir)) return
|
|
31
|
+
for (const file of (readdirSync(dir, { recursive: true }) as string[]).filter((f) => /(?<!\.test)\.ts$/.test(f)))
|
|
32
|
+
await import(join(dir, file))
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** The caller as the HTTP route sees it: `ctx.auth` when @cslug/auth is installed. */
|
|
36
|
+
export type McpCaller = { check(): boolean; guard?: string; tokenCan(ability: string): boolean } | undefined
|
|
37
|
+
|
|
38
|
+
const allowed = (options: McpOptions, caller: McpCaller | 'local') =>
|
|
39
|
+
caller === 'local' ||
|
|
40
|
+
options.public === true ||
|
|
41
|
+
(!!caller?.check() &&
|
|
42
|
+
(!options.guard || caller.guard === options.guard) &&
|
|
43
|
+
(!options.ability || caller.tokenCan(options.ability)))
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* One MCP message → its response (undefined for a notification). `tools` builds the exposed tools; `caller` is who
|
|
47
|
+
* is asking (`'local'` for stdio: every exposed tool).
|
|
48
|
+
*/
|
|
49
|
+
export async function handleMcp(
|
|
50
|
+
message: McpMessage,
|
|
51
|
+
tools: (cls: ToolClass) => Tool,
|
|
52
|
+
caller: McpCaller | 'local',
|
|
53
|
+
serverInfo = { name: 'cslug', version: '0' },
|
|
54
|
+
): Promise<McpReply | undefined> {
|
|
55
|
+
return handleMcpMessage(message, asMcpTools(tools, caller), serverInfo)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** The `@mcp()` tools `caller` may use, as MCP tools (arguments validated with the tool's schema). */
|
|
59
|
+
export function asMcpTools(tools: (cls: ToolClass) => Tool, caller: McpCaller | 'local'): McpTool[] {
|
|
60
|
+
return mcpTools()
|
|
61
|
+
.filter(([, options]) => allowed(options, caller))
|
|
62
|
+
.map(([cls]) => {
|
|
63
|
+
const tool = tools(cls)
|
|
64
|
+
return {
|
|
65
|
+
name: tool.name,
|
|
66
|
+
description: tool.description,
|
|
67
|
+
inputSchema: tool.input.toJSONSchema() as Record<string, unknown>,
|
|
68
|
+
call: (args) => {
|
|
69
|
+
const input = tool.input.safeParse(args)
|
|
70
|
+
if (!input.success) throw new Error(`Invalid arguments: ${JSON.stringify(input.error.issues)}`)
|
|
71
|
+
return tool.handle(input.data as never)
|
|
72
|
+
},
|
|
73
|
+
}
|
|
74
|
+
})
|
|
75
|
+
}
|
package/src/model.ts
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { CslugError } from '@cslug/core'
|
|
2
|
+
|
|
3
|
+
/** A content block, close to the Anthropic Messages API. `raw` carries a provider's own blocks back unchanged. */
|
|
4
|
+
export type Block =
|
|
5
|
+
| { type: 'text'; text: string }
|
|
6
|
+
| { type: 'tool_use'; id: string; name: string; input: unknown }
|
|
7
|
+
| { type: 'tool_result'; toolUseId: string; content: string; isError?: boolean }
|
|
8
|
+
| { type: 'raw'; value: unknown }
|
|
9
|
+
export type Message = { role: 'user' | 'assistant'; content: Block[] }
|
|
10
|
+
export type ToolSpec = { name: string; description: string; inputSchema: Record<string, unknown> }
|
|
11
|
+
export type Effort = 'low' | 'medium' | 'high' | 'xhigh' | 'max'
|
|
12
|
+
|
|
13
|
+
export type ModelRequest = {
|
|
14
|
+
model: string
|
|
15
|
+
system: string
|
|
16
|
+
messages: Message[]
|
|
17
|
+
tools: ToolSpec[]
|
|
18
|
+
/** JSON Schema the final answer must follow (structured output). */
|
|
19
|
+
output?: Record<string, unknown>
|
|
20
|
+
maxTokens?: number
|
|
21
|
+
effort?: Effort
|
|
22
|
+
/** Compact a long history server-side where the provider can (Anthropic `compact_20260112`). */
|
|
23
|
+
compact?: boolean
|
|
24
|
+
}
|
|
25
|
+
/** Tokens a model call used; cache reads and writes are counted apart from `inputTokens` (Anthropic). */
|
|
26
|
+
export type Usage = { inputTokens: number; outputTokens: number; cacheReadTokens?: number; cacheWriteTokens?: number }
|
|
27
|
+
export type ModelResponse = { content: Block[]; stopReason: string; usage: Usage }
|
|
28
|
+
/** While streaming: text as it arrives, then the whole response. */
|
|
29
|
+
export type StreamEvent = { type: 'text'; text: string } | { type: 'done'; response: ModelResponse }
|
|
30
|
+
|
|
31
|
+
/** A model API. Built from `config/ai.ts` → `providers.<name>`. */
|
|
32
|
+
export interface Provider {
|
|
33
|
+
complete(request: ModelRequest): Promise<ModelResponse>
|
|
34
|
+
stream(request: ModelRequest): AsyncIterable<StreamEvent>
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** The provider declined (a safety refusal). */
|
|
38
|
+
export class AiRefusalError extends CslugError {
|
|
39
|
+
constructor(readonly category?: string) {
|
|
40
|
+
super('ai.refusal', `The model declined the request${category ? ` (${category})` : ''}`)
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** POST JSON; a non-2xx answer is an `ai.provider` error with the provider's message. */
|
|
45
|
+
export async function postJson(url: string, headers: Record<string, string>, body: unknown): Promise<Response> {
|
|
46
|
+
const res = await fetch(url, {
|
|
47
|
+
method: 'POST',
|
|
48
|
+
headers: { 'content-type': 'application/json', ...headers },
|
|
49
|
+
body: JSON.stringify(body),
|
|
50
|
+
})
|
|
51
|
+
if (!res.ok)
|
|
52
|
+
throw new CslugError(
|
|
53
|
+
'ai.provider',
|
|
54
|
+
`${new URL(url).host} answered ${res.status}: ${(await res.text()).slice(0, 500)}`,
|
|
55
|
+
)
|
|
56
|
+
return res
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** Server-sent events as `{ event, data }`, parsed from a fetch body. */
|
|
60
|
+
export async function* sseEvents(body: ReadableStream<Uint8Array>): AsyncIterable<{ event?: string; data: string }> {
|
|
61
|
+
const decoder = new TextDecoder()
|
|
62
|
+
const reader = body.getReader() // not `for await`: some DOM typings lack ReadableStream's async iterator
|
|
63
|
+
let buffer = ''
|
|
64
|
+
for (let read = await reader.read(); !read.done; read = await reader.read()) {
|
|
65
|
+
buffer += decoder.decode(read.value, { stream: true })
|
|
66
|
+
let end = buffer.indexOf('\n\n')
|
|
67
|
+
while (end >= 0) {
|
|
68
|
+
const frame = buffer.slice(0, end)
|
|
69
|
+
buffer = buffer.slice(end + 2)
|
|
70
|
+
const event = /^event: ?(.*)$/m.exec(frame)?.[1]
|
|
71
|
+
const data = [...frame.matchAll(/^data: ?(.*)$/gm)].map((m) => m[1]).join('\n')
|
|
72
|
+
if (data) yield { event, data }
|
|
73
|
+
end = buffer.indexOf('\n\n')
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const UNSUPPORTED = [
|
|
79
|
+
'minimum',
|
|
80
|
+
'maximum',
|
|
81
|
+
'exclusiveMinimum',
|
|
82
|
+
'exclusiveMaximum',
|
|
83
|
+
'multipleOf',
|
|
84
|
+
'minLength',
|
|
85
|
+
'maxLength',
|
|
86
|
+
'pattern',
|
|
87
|
+
'minItems',
|
|
88
|
+
'maxItems',
|
|
89
|
+
'uniqueItems',
|
|
90
|
+
'$schema',
|
|
91
|
+
]
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* A `v` schema's JSON Schema as structured output accepts it: numeric, length and array constraints removed (the
|
|
95
|
+
* `v` schema still checks them on the answer), `additionalProperties: false` on every object.
|
|
96
|
+
*/
|
|
97
|
+
export function modelSchema(schema: object): Record<string, unknown> {
|
|
98
|
+
const clean = (x: unknown): unknown =>
|
|
99
|
+
Array.isArray(x) ? x.map(clean) : x && typeof x === 'object' ? modelSchema(x) : x
|
|
100
|
+
const out: Record<string, unknown> = {}
|
|
101
|
+
for (const [k, v] of Object.entries(schema)) {
|
|
102
|
+
if (UNSUPPORTED.includes(k)) continue
|
|
103
|
+
// under `properties` the keys are field names (a field may be called `pattern`), not keywords
|
|
104
|
+
out[k] =
|
|
105
|
+
k === 'properties' && v && typeof v === 'object'
|
|
106
|
+
? Object.fromEntries(Object.entries(v).map(([name, field]) => [name, clean(field)]))
|
|
107
|
+
: clean(v)
|
|
108
|
+
}
|
|
109
|
+
if (out.type === 'object') out.additionalProperties = false
|
|
110
|
+
return out
|
|
111
|
+
}
|
package/src/sse.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { currentContext, runInContext } from '@cslug/core'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Stream text to the browser as server-sent events: `return sse(this.assistant.stream({ input }))`. Each piece of
|
|
5
|
+
* text is a `data:` line (JSON string); the end is `event: done`, a failure `event: error`. The stream keeps the
|
|
6
|
+
* request's context (user, scope) while the model answers.
|
|
7
|
+
*/
|
|
8
|
+
export function sse(text: AsyncIterable<string>) {
|
|
9
|
+
const context = currentContext()
|
|
10
|
+
const encoder = new TextEncoder()
|
|
11
|
+
const iterator = text[Symbol.asyncIterator]()
|
|
12
|
+
const next = () => (context ? runInContext(context, () => iterator.next()) : iterator.next())
|
|
13
|
+
return {
|
|
14
|
+
toResponse: () =>
|
|
15
|
+
new Response(
|
|
16
|
+
new ReadableStream<Uint8Array>({
|
|
17
|
+
async pull(controller) {
|
|
18
|
+
try {
|
|
19
|
+
const { value, done } = await next()
|
|
20
|
+
if (done) {
|
|
21
|
+
controller.enqueue(encoder.encode('event: done\ndata: {}\n\n'))
|
|
22
|
+
controller.close()
|
|
23
|
+
} else controller.enqueue(encoder.encode(`data: ${JSON.stringify(value)}\n\n`))
|
|
24
|
+
} catch (error) {
|
|
25
|
+
const message = error instanceof Error ? error.message : String(error)
|
|
26
|
+
controller.enqueue(encoder.encode(`event: error\ndata: ${JSON.stringify({ message })}\n\n`))
|
|
27
|
+
controller.close()
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
cancel: () => void iterator.return?.(),
|
|
31
|
+
}),
|
|
32
|
+
{ headers: { 'content-type': 'text/event-stream', 'cache-control': 'no-cache', 'x-accel-buffering': 'no' } },
|
|
33
|
+
),
|
|
34
|
+
}
|
|
35
|
+
}
|