@kirosnn/mosaic 0.0.91 → 0.73.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/LICENSE +1 -1
- package/README.md +2 -6
- package/package.json +55 -48
- package/src/agent/Agent.ts +353 -131
- package/src/agent/context.ts +4 -4
- package/src/agent/prompts/systemPrompt.ts +209 -70
- package/src/agent/prompts/toolsPrompt.ts +285 -138
- package/src/agent/provider/anthropic.ts +109 -105
- package/src/agent/provider/google.ts +111 -107
- package/src/agent/provider/mistral.ts +95 -95
- package/src/agent/provider/ollama.ts +73 -17
- package/src/agent/provider/openai.ts +146 -102
- package/src/agent/provider/rateLimit.ts +178 -0
- package/src/agent/provider/reasoning.ts +29 -0
- package/src/agent/provider/xai.ts +108 -104
- package/src/agent/tools/definitions.ts +15 -1
- package/src/agent/tools/executor.ts +717 -98
- package/src/agent/tools/exploreExecutor.ts +20 -22
- package/src/agent/tools/fetch.ts +58 -0
- package/src/agent/tools/glob.ts +20 -4
- package/src/agent/tools/grep.ts +64 -9
- package/src/agent/tools/plan.ts +27 -0
- package/src/agent/tools/question.ts +7 -1
- package/src/agent/tools/read.ts +2 -0
- package/src/agent/types.ts +15 -14
- package/src/components/App.tsx +50 -8
- package/src/components/CustomInput.tsx +461 -77
- package/src/components/Main.tsx +1459 -1112
- package/src/components/Setup.tsx +1 -1
- package/src/components/ShortcutsModal.tsx +11 -8
- package/src/components/Welcome.tsx +1 -1
- package/src/components/main/ApprovalPanel.tsx +4 -3
- package/src/components/main/ChatPage.tsx +858 -516
- package/src/components/main/HomePage.tsx +58 -39
- package/src/components/main/QuestionPanel.tsx +52 -7
- package/src/components/main/ThinkingIndicator.tsx +13 -2
- package/src/components/main/types.ts +11 -10
- package/src/index.tsx +53 -25
- package/src/mcp/approvalPolicy.ts +148 -0
- package/src/mcp/cli/add.ts +185 -0
- package/src/mcp/cli/doctor.ts +77 -0
- package/src/mcp/cli/index.ts +85 -0
- package/src/mcp/cli/list.ts +50 -0
- package/src/mcp/cli/logs.ts +24 -0
- package/src/mcp/cli/manage.ts +99 -0
- package/src/mcp/cli/show.ts +53 -0
- package/src/mcp/cli/tools.ts +77 -0
- package/src/mcp/config.ts +223 -0
- package/src/mcp/index.ts +80 -0
- package/src/mcp/processManager.ts +299 -0
- package/src/mcp/rateLimiter.ts +50 -0
- package/src/mcp/registry.ts +151 -0
- package/src/mcp/schemaConverter.ts +100 -0
- package/src/mcp/servers/navigation.ts +854 -0
- package/src/mcp/toolCatalog.ts +169 -0
- package/src/mcp/types.ts +95 -0
- package/src/utils/approvalBridge.ts +45 -12
- package/src/utils/approvalModeBridge.ts +17 -0
- package/src/utils/commands/approvals.ts +48 -0
- package/src/utils/commands/compact.ts +30 -0
- package/src/utils/commands/echo.ts +1 -1
- package/src/utils/commands/image.ts +109 -0
- package/src/utils/commands/index.ts +9 -7
- package/src/utils/commands/new.ts +15 -0
- package/src/utils/commands/types.ts +3 -0
- package/src/utils/config.ts +3 -1
- package/src/utils/diffRendering.tsx +13 -16
- package/src/utils/exploreBridge.ts +10 -0
- package/src/utils/history.ts +82 -40
- package/src/utils/imageBridge.ts +28 -0
- package/src/utils/images.ts +31 -0
- package/src/utils/markdown.tsx +163 -99
- package/src/utils/models.ts +31 -16
- package/src/utils/notificationBridge.ts +23 -0
- package/src/utils/questionBridge.ts +36 -1
- package/src/utils/tokenEstimator.ts +32 -0
- package/src/utils/toolFormatting.ts +428 -48
- package/src/web/app.tsx +65 -5
- package/src/web/assets/css/ChatPage.css +102 -30
- package/src/web/assets/css/MessageItem.css +26 -29
- package/src/web/assets/css/ThinkingIndicator.css +44 -6
- package/src/web/assets/css/ToolMessage.css +36 -14
- package/src/web/components/ChatPage.tsx +228 -105
- package/src/web/components/HomePage.tsx +3 -3
- package/src/web/components/MessageItem.tsx +80 -81
- package/src/web/components/QuestionPanel.tsx +72 -12
- package/src/web/components/Setup.tsx +1 -1
- package/src/web/components/Sidebar.tsx +1 -3
- package/src/web/components/ThinkingIndicator.tsx +41 -21
- package/src/web/router.ts +1 -1
- package/src/web/server.tsx +894 -662
- package/src/web/storage.ts +23 -1
- package/src/web/types.ts +7 -6
- package/src/utils/commands/redo.ts +0 -74
- package/src/utils/commands/sessions.ts +0 -129
- package/src/utils/commands/undo.ts +0 -75
- package/src/utils/undoRedo.ts +0 -429
- package/src/utils/undoRedoBridge.ts +0 -45
- package/src/utils/undoRedoDb.ts +0 -338
|
@@ -1,139 +1,286 @@
|
|
|
1
1
|
export const TOOLS_PROMPT = `
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
132
|
-
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
2
|
+
# Available Tools
|
|
3
|
+
|
|
4
|
+
## File Operations
|
|
5
|
+
|
|
6
|
+
### read
|
|
7
|
+
Read file contents. ALWAYS read before modifying.
|
|
8
|
+
- path (string, required): File path relative to workspace
|
|
9
|
+
- start_line (number, optional): Start reading from this line (1-based)
|
|
10
|
+
- end_line (number, optional): End reading at this line (1-based)
|
|
11
|
+
|
|
12
|
+
### write
|
|
13
|
+
Create or overwrite a file. Creates parent directories automatically.
|
|
14
|
+
- path (string, required): File path
|
|
15
|
+
- content (string, optional): File content (empty to create empty file)
|
|
16
|
+
- append (boolean, optional): Append instead of overwrite
|
|
17
|
+
|
|
18
|
+
### edit
|
|
19
|
+
Replace specific text in a file. Preferred for targeted changes.
|
|
20
|
+
- path (string, required): File path
|
|
21
|
+
- old_content (string, required): Exact text to replace
|
|
22
|
+
- new_content (string, required): Replacement text
|
|
23
|
+
- occurrence (number, optional): Which occurrence (default: 1)
|
|
24
|
+
|
|
25
|
+
### list
|
|
26
|
+
List directory contents.
|
|
27
|
+
- path (string, required): Directory path
|
|
28
|
+
- recursive (boolean, optional): Include subdirectories
|
|
29
|
+
- filter (string, optional): Glob pattern filter
|
|
30
|
+
- include_hidden (boolean, optional): Include hidden files
|
|
31
|
+
|
|
32
|
+
## Search & Discovery
|
|
33
|
+
|
|
34
|
+
### explore (RECOMMENDED for understanding context)
|
|
35
|
+
Autonomous exploration agent that intelligently searches the codebase.
|
|
36
|
+
- purpose (string, required): What to find/understand
|
|
37
|
+
|
|
38
|
+
USE EXPLORE WHEN:
|
|
39
|
+
- Starting work on an unfamiliar codebase
|
|
40
|
+
- Understanding how something works
|
|
41
|
+
- Finding related code, patterns, or architecture
|
|
42
|
+
- You're unsure where to make changes
|
|
43
|
+
|
|
44
|
+
Examples:
|
|
45
|
+
- explore(purpose="Find API endpoints and understand routing")
|
|
46
|
+
- explore(purpose="Understand the authentication flow")
|
|
47
|
+
- explore(purpose="Find UserService and all its usages")
|
|
48
|
+
|
|
49
|
+
The explore tool is INTELLIGENT - it autonomously reads files, follows imports, and builds understanding. This is MORE EFFICIENT than manual glob/grep/read cycles.
|
|
50
|
+
|
|
51
|
+
### glob
|
|
52
|
+
Find files by name pattern. Fast file discovery.
|
|
53
|
+
- pattern (string, required): Glob pattern with **/ for recursive search
|
|
54
|
+
- path (string, optional): Directory to search
|
|
55
|
+
|
|
56
|
+
IMPORTANT: Use "**/" prefix for recursive search:
|
|
57
|
+
- "**/*.ts" - All TypeScript files (recursive)
|
|
58
|
+
- "*.ts" - Only in current directory (NOT recursive)
|
|
59
|
+
|
|
60
|
+
### grep
|
|
61
|
+
Search for text within files.
|
|
62
|
+
- query (string, required): Text to search for
|
|
63
|
+
- file_type (string, optional): language or extension (ts, tsx, js, txt, .env)
|
|
64
|
+
- pattern (string, optional): Glob pattern for files
|
|
65
|
+
- regex (boolean, optional): Treat query as regex
|
|
66
|
+
- context (number, optional): Lines around matches
|
|
67
|
+
- output_mode (string, optional): "matches", "files", or "count"
|
|
68
|
+
|
|
69
|
+
RECOMMENDED: Use file_type for best results:
|
|
70
|
+
- grep(query="handleClick", file_type="tsx")
|
|
71
|
+
- grep(query="interface User", file_type="ts")
|
|
72
|
+
|
|
73
|
+
TOOL SELECTION:
|
|
74
|
+
| Need to understand how X works | explore |
|
|
75
|
+
| Find specific file by name | glob |
|
|
76
|
+
| Find specific text in code | grep |
|
|
77
|
+
|
|
78
|
+
## Planning
|
|
79
|
+
|
|
80
|
+
### plan
|
|
81
|
+
Track progress on multi-step tasks.
|
|
82
|
+
- explanation (string, optional): Context about the plan
|
|
83
|
+
- plan (array, required): Steps with statuses
|
|
84
|
+
- step (string): Action description
|
|
85
|
+
- status: "pending" | "in_progress" | "completed"
|
|
86
|
+
|
|
87
|
+
Use plan for any task that is not a single obvious step. Default to planning when unsure.
|
|
88
|
+
Use plan when there are 2+ actions, file changes, or unclear success criteria.
|
|
89
|
+
Plan rules:
|
|
90
|
+
- Keep plans short (3-6 steps) and outcome-focused
|
|
91
|
+
- Exactly one step can be "in_progress" at a time
|
|
92
|
+
- Mark a step "completed" before starting the next
|
|
93
|
+
- Keep unstarted steps "pending"
|
|
94
|
+
Always update the plan after each step.
|
|
95
|
+
Never output a plan as plain text, JSON, or tags. Use the plan tool call only.
|
|
96
|
+
Never mark multiple future steps as completed in a single update. Show progress incrementally as each step is done.
|
|
97
|
+
|
|
98
|
+
## Web Access
|
|
99
|
+
|
|
100
|
+
### fetch
|
|
101
|
+
Retrieve web content as markdown.
|
|
102
|
+
- url (string, required): URL to fetch
|
|
103
|
+
- max_length (number, optional): Max chars (default: 10000)
|
|
104
|
+
- start_index (number, optional): For pagination
|
|
105
|
+
- raw (boolean, optional): Return raw HTML
|
|
106
|
+
- timeout (number, optional): Timeout in ms (default: 30000)
|
|
107
|
+
|
|
108
|
+
## Command Execution
|
|
109
|
+
|
|
110
|
+
### bash
|
|
111
|
+
Execute shell commands. Adapt to OS ({{OS}}).
|
|
112
|
+
- command (string, required): Command to execute
|
|
113
|
+
|
|
114
|
+
Timeouts (add --timeout <ms> to long commands):
|
|
115
|
+
- Dev servers: 5000
|
|
116
|
+
- Builds: 120000
|
|
117
|
+
- Tests: 60000
|
|
118
|
+
- Package installs: 120000
|
|
119
|
+
|
|
120
|
+
## User Interaction
|
|
121
|
+
|
|
122
|
+
### question
|
|
123
|
+
Ask user with predefined options. ONLY way to ask questions.
|
|
124
|
+
- prompt (string, required): Question in user's language
|
|
125
|
+
- options (array, required): At least 2 options
|
|
126
|
+
- label (string): Display text
|
|
127
|
+
- value (string|null): Return value
|
|
128
|
+
- group (string, optional): Group header for consecutive options with the same group
|
|
129
|
+
- timeout (number, optional): Seconds before the question auto-rejects
|
|
130
|
+
- validation (object, optional): Regex validation for custom text input
|
|
131
|
+
- pattern (string): Regex pattern the custom text must match
|
|
132
|
+
- message (string, optional): Error message shown on validation failure
|
|
133
|
+
|
|
134
|
+
CRITICAL: Never ask questions in plain text. Always use this tool.
|
|
135
|
+
|
|
136
|
+
# Tool Selection Guide
|
|
137
|
+
|
|
138
|
+
| Task | Tool | Example |
|
|
139
|
+
|------|------|---------|
|
|
140
|
+
| Understand codebase/architecture | explore | explore(purpose="How does auth work?") |
|
|
141
|
+
| Find files by name | glob | glob(pattern="**/*.config.ts") |
|
|
142
|
+
| Find specific text | grep | grep(query="handleSubmit", file_type="tsx") |
|
|
143
|
+
| Read file contents | read | read(path="src/auth.ts") |
|
|
144
|
+
| Small targeted edit | edit | edit(path="...", old_content="...", new_content="...") |
|
|
145
|
+
| New file or full rewrite | write | write(path="...", content="...") |
|
|
146
|
+
| Run commands/tests | bash | bash(command="npm test") |
|
|
147
|
+
| Track multi-step work | plan | plan(plan=[...]) |
|
|
148
|
+
| Need user input | question | question(prompt="...", options=[...]) |
|
|
149
|
+
|
|
150
|
+
PREFER EXPLORE for understanding context before making changes.
|
|
151
|
+
PREFER grep with file_type for targeted text searches.
|
|
152
|
+
|
|
153
|
+
# Continuation - CRITICAL
|
|
154
|
+
|
|
155
|
+
NEVER stop after using a tool. ALWAYS continue to the next step in the SAME response.
|
|
156
|
+
|
|
157
|
+
Pattern: text → tool → text → tool → text → tool → ... → completion
|
|
158
|
+
|
|
159
|
+
CORRECT:
|
|
160
|
+
"Searching for config files." → [glob] → "Found 3 files. Reading the main one." → [read] → "I see the issue. Fixing now." → [edit] → "Done."
|
|
161
|
+
|
|
162
|
+
WRONG:
|
|
163
|
+
"Searching for config files." → [glob] → "Found 3 files. I'll read them next." → [STOP]
|
|
164
|
+
|
|
165
|
+
After EVERY tool result, you must either:
|
|
166
|
+
1. Continue with the next action (use another tool), OR
|
|
167
|
+
2. Complete the task with a summary, OR
|
|
168
|
+
3. Ask the user via question tool if genuinely blocked
|
|
169
|
+
|
|
170
|
+
FORBIDDEN:
|
|
171
|
+
- Stopping mid-task after announcing what you'll do next
|
|
172
|
+
- Ending with "I'll do X next" without actually doing X
|
|
173
|
+
- Waiting for implicit user approval to continue
|
|
174
|
+
|
|
175
|
+
# Communication with Tools
|
|
176
|
+
|
|
177
|
+
BEFORE using tools:
|
|
178
|
+
- Brief explanation of what you're doing
|
|
179
|
+
- Then IMMEDIATELY use the tool in the same response
|
|
180
|
+
|
|
181
|
+
AFTER tool results:
|
|
182
|
+
- Brief comment on result if needed
|
|
183
|
+
- Then IMMEDIATELY continue to next action
|
|
184
|
+
|
|
185
|
+
AFTER tool errors:
|
|
186
|
+
- Explain what went wrong
|
|
187
|
+
- Then IMMEDIATELY retry with different approach
|
|
188
|
+
|
|
189
|
+
# File Modification - MANDATORY RULE
|
|
190
|
+
|
|
191
|
+
You MUST read a file BEFORE modifying it. This is NOT optional.
|
|
192
|
+
|
|
193
|
+
Correct workflow:
|
|
194
|
+
1. "Let me examine the current implementation." → read(path="src/auth.ts")
|
|
195
|
+
2. "I see the issue. I'll fix the validation logic." → edit(path="src/auth.ts", ...)
|
|
196
|
+
|
|
197
|
+
WRONG (will fail):
|
|
198
|
+
- Using edit or write on a file you haven't read in this conversation
|
|
199
|
+
- Assuming you know what's in a file without reading it
|
|
200
|
+
|
|
201
|
+
# Error Recovery
|
|
202
|
+
|
|
203
|
+
When a tool returns {"error": "..."}:
|
|
204
|
+
1. Tell the user what went wrong
|
|
205
|
+
2. Explain your retry strategy
|
|
206
|
+
3. Try with adjusted parameters
|
|
207
|
+
4. After 2-3 failures, explain the blocker and ask for help
|
|
208
|
+
|
|
209
|
+
# Question Tool - When to Use
|
|
210
|
+
|
|
211
|
+
USE question tool:
|
|
212
|
+
- Multiple valid approaches need user preference
|
|
213
|
+
- Destructive action needs confirmation
|
|
214
|
+
- Requirements are genuinely ambiguous
|
|
215
|
+
- A tool was rejected and you need to understand why
|
|
216
|
+
|
|
217
|
+
DO NOT use question tool:
|
|
218
|
+
- You can figure out the answer by exploring
|
|
219
|
+
- The path forward is reasonably clear
|
|
220
|
+
- It's a standard implementation decision
|
|
221
|
+
|
|
222
|
+
NEVER ask questions in plain text. The question tool is MANDATORY.
|
|
223
|
+
|
|
224
|
+
# Workflow Summary
|
|
225
|
+
|
|
226
|
+
1. PLAN: Use plan unless the task is trivial (single obvious action)
|
|
227
|
+
2. COMMUNICATE: Say what you're about to do
|
|
228
|
+
3. READ: Always read files before modifying
|
|
229
|
+
4. ACT: Use the appropriate tool
|
|
230
|
+
5. VERIFY: Run tests/builds to confirm
|
|
231
|
+
6. REPORT: Summarize what was done`;
|
|
232
|
+
|
|
233
|
+
export function getToolsPrompt(mcpToolInfos?: Array<{ serverId: string; name: string; description: string; inputSchema: Record<string, unknown>; canonicalId: string; safeId: string }>): string {
|
|
234
|
+
if (!mcpToolInfos || mcpToolInfos.length === 0) {
|
|
235
|
+
return TOOLS_PROMPT;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
const mcpSection = buildMcpToolsSection(mcpToolInfos);
|
|
239
|
+
return TOOLS_PROMPT + '\n\n' + mcpSection;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
function buildMcpToolsSection(tools: Array<{ serverId: string; name: string; description: string; inputSchema: Record<string, unknown>; canonicalId: string; safeId: string }>): string {
|
|
243
|
+
const lines: string[] = [];
|
|
244
|
+
lines.push('## External Tools (MCP)');
|
|
245
|
+
lines.push('');
|
|
246
|
+
lines.push('These tools are provided by external MCP servers. Call them by their tool name.');
|
|
247
|
+
lines.push('They may require approval before execution.');
|
|
248
|
+
lines.push('');
|
|
249
|
+
|
|
250
|
+
const byServer = new Map<string, typeof tools>();
|
|
251
|
+
for (const t of tools) {
|
|
252
|
+
const list = byServer.get(t.serverId) || [];
|
|
253
|
+
list.push(t);
|
|
254
|
+
byServer.set(t.serverId, list);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
for (const [serverId, serverTools] of byServer) {
|
|
258
|
+
lines.push(`### Server: ${serverId}`);
|
|
259
|
+
lines.push('');
|
|
260
|
+
for (const t of serverTools) {
|
|
261
|
+
lines.push(`#### ${t.safeId}`);
|
|
262
|
+
if (t.description) {
|
|
263
|
+
lines.push(t.description);
|
|
264
|
+
}
|
|
265
|
+
const schema = t.inputSchema;
|
|
266
|
+
if (schema && typeof schema === 'object' && schema.properties) {
|
|
267
|
+
const props = schema.properties as Record<string, Record<string, unknown>>;
|
|
268
|
+
const required = (schema.required || []) as string[];
|
|
269
|
+
const paramLines: string[] = [];
|
|
270
|
+
for (const [key, propSchema] of Object.entries(props)) {
|
|
271
|
+
const type = propSchema.type || 'unknown';
|
|
272
|
+
const desc = propSchema.description || '';
|
|
273
|
+
const req = required.includes(key) ? 'required' : 'optional';
|
|
274
|
+
paramLines.push(`- ${key} (${type}, ${req})${desc ? ': ' + desc : ''}`);
|
|
275
|
+
}
|
|
276
|
+
if (paramLines.length > 0) {
|
|
277
|
+
lines.push('Parameters:');
|
|
278
|
+
lines.push(...paramLines);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
lines.push('');
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
return lines.join('\n');
|
|
286
|
+
}
|