@nogataka/smart-edit 0.0.14 → 0.0.16
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/dist/serena/agent.js +1 -1
- package/dist/serena/agno.js +1 -1
- package/dist/serena/analytics.js +1 -1
- package/dist/serena/cli.js +1 -1
- package/dist/serena/config/serena_config.js +1 -1
- package/dist/serena/dashboard.js +1 -1
- package/dist/serena/gui_log_viewer.js +1 -1
- package/dist/serena/mcp.js +2 -2
- package/dist/serena/project.js +1 -1
- package/dist/serena/resources/dashboard/index.html +2 -9
- package/dist/serena/resources/dashboard/serena-icon-16.svg +25 -0
- package/dist/serena/resources/dashboard/serena-icon-32.svg +25 -0
- package/dist/serena/resources/dashboard/serena-icon-48.svg +25 -0
- package/dist/serena/resources/dashboard/serena-logs-dark-mode.svg +25 -0
- package/dist/serena/resources/dashboard/serena-logs.svg +25 -0
- package/dist/serena/symbol.js +1 -1
- package/dist/serena/text_utils.js +1 -1
- package/dist/serena/tools/config_tools.js +2 -2
- package/dist/serena/tools/tools_base.js +1 -1
- package/dist/serena/version.js +1 -1
- package/package.json +1 -1
- package/dist/serena/resources/dashboard/serena-icon-16.png +0 -0
- package/dist/serena/resources/dashboard/serena-icon-32.png +0 -0
- package/dist/serena/resources/dashboard/serena-icon-48.png +0 -0
- package/dist/serena/resources/dashboard/serena-logs-dark-mode.png +0 -0
- package/dist/serena/resources/dashboard/serena-logs.png +0 -0
package/dist/serena/agent.js
CHANGED
|
@@ -22,7 +22,7 @@ import { WriteMemoryTool, ReadMemoryTool, ListMemoriesTool, DeleteMemoryTool } f
|
|
|
22
22
|
import { RestartLanguageServerTool, GetSymbolsOverviewTool, FindSymbolTool, FindReferencingSymbolsTool, ReplaceSymbolBodyTool, InsertAfterSymbolTool, InsertBeforeSymbolTool } from './tools/symbol_tools.js';
|
|
23
23
|
import { CheckOnboardingPerformedTool, OnboardingTool, ThinkAboutCollectedInformationTool, ThinkAboutTaskAdherenceTool, ThinkAboutWhetherYouAreDoneTool, SummarizeChangesTool, PrepareForNewConversationTool, InitialInstructionsTool } from './tools/workflow_tools.js';
|
|
24
24
|
const { logger: log, memoryHandler: defaultMemoryHandler } = createSerenaLogger({
|
|
25
|
-
name: '
|
|
25
|
+
name: 'smart-edit.agent',
|
|
26
26
|
emitToConsole: true,
|
|
27
27
|
level: 'info'
|
|
28
28
|
});
|
package/dist/serena/agno.js
CHANGED
|
@@ -7,7 +7,7 @@ import { REPO_ROOT } from './constants.js';
|
|
|
7
7
|
import { SerenaAgent } from './agent.js';
|
|
8
8
|
import { SerenaAgentContext } from './config/context_mode.js';
|
|
9
9
|
import { showFatalExceptionSafe } from './util/exception.js';
|
|
10
|
-
const { logger: log } = createSerenaLogger({ name: '
|
|
10
|
+
const { logger: log } = createSerenaLogger({ name: 'smart-edit.agno' });
|
|
11
11
|
const DEFAULT_TOOLKIT_NAME = 'Serena';
|
|
12
12
|
const DEFAULT_SQLITE_TABLE_NAME = 'serena_agent_sessions';
|
|
13
13
|
const DEFAULT_SQLITE_RELATIVE_PATH = path.join('temp', 'agno_agent_storage.db');
|
package/dist/serena/analytics.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { encoding_for_model } from '@dqbd/tiktoken';
|
|
2
2
|
import { createSerenaLogger } from './util/logging.js';
|
|
3
3
|
import { RegisteredTokenCountEstimator } from './config/serena_config.js';
|
|
4
|
-
const { logger } = createSerenaLogger({ name: '
|
|
4
|
+
const { logger } = createSerenaLogger({ name: 'smart-edit.analytics', emitToConsole: false, level: 'info' });
|
|
5
5
|
const DEFAULT_TIKTOKEN_MODEL = 'gpt-4o';
|
|
6
6
|
class ApproximateTokenCountEstimator {
|
|
7
7
|
estimateTokenCount(text) {
|
package/dist/serena/cli.js
CHANGED
|
@@ -170,7 +170,7 @@ function setupCliLogging(prefix, options) {
|
|
|
170
170
|
const { logger, memoryHandler } = createSerenaLogger({
|
|
171
171
|
level: 'info',
|
|
172
172
|
emitToConsole: options.emitToConsole,
|
|
173
|
-
name: `
|
|
173
|
+
name: `smart-edit.cli.${prefix}`
|
|
174
174
|
});
|
|
175
175
|
const paths = new SerenaPaths();
|
|
176
176
|
const logFilePath = paths.getNextLogFilePath(prefix);
|
|
@@ -8,7 +8,7 @@ import { determineProgrammingLanguageComposition } from '../util/inspection.js';
|
|
|
8
8
|
import { singleton } from '../util/class_decorators.js';
|
|
9
9
|
import { ToolRegistry } from '../tools/tools_base.js';
|
|
10
10
|
import { Language, coerceLanguage } from '../../solidlsp/ls_config.js';
|
|
11
|
-
const { logger: log } = createSerenaLogger({ name: '
|
|
11
|
+
const { logger: log } = createSerenaLogger({ name: 'smart-edit.config' });
|
|
12
12
|
export class ToolInclusionDefinition {
|
|
13
13
|
excludedTools;
|
|
14
14
|
includedOptionalTools;
|
package/dist/serena/dashboard.js
CHANGED
|
@@ -7,7 +7,7 @@ import path from 'node:path';
|
|
|
7
7
|
import process from 'node:process';
|
|
8
8
|
import { createSerenaLogger } from './util/logging.js';
|
|
9
9
|
import { SERENA_DASHBOARD_DIR } from './constants.js';
|
|
10
|
-
const { logger } = createSerenaLogger({ name: '
|
|
10
|
+
const { logger } = createSerenaLogger({ name: 'smart-edit.dashboard', emitToConsole: false, level: 'info' });
|
|
11
11
|
const DEFAULT_DASHBOARD_PORT = 0x5eda;
|
|
12
12
|
const DASHBOARD_HOST = '127.0.0.1';
|
|
13
13
|
const SSE_HEARTBEAT_INTERVAL_MS = 15_000;
|
|
@@ -3,7 +3,7 @@ import { parse as parseUrl } from 'node:url';
|
|
|
3
3
|
import { spawn } from 'node:child_process';
|
|
4
4
|
import { ensureDefaultSubprocessOptions } from '../solidlsp/util/subprocess_util.js';
|
|
5
5
|
import { createSerenaLogger, MemoryLogHandler } from './util/logging.js';
|
|
6
|
-
const { logger } = createSerenaLogger({ name: '
|
|
6
|
+
const { logger } = createSerenaLogger({ name: 'smart-edit.gui_log_viewer', emitToConsole: false, level: 'info' });
|
|
7
7
|
const LOG_HISTORY_LIMIT = 500;
|
|
8
8
|
function determineLogLevel(message) {
|
|
9
9
|
const trimmed = message.trimStart().toUpperCase();
|
package/dist/serena/mcp.js
CHANGED
|
@@ -16,7 +16,7 @@ import { createSerenaLogger } from './util/logging.js';
|
|
|
16
16
|
import { SerenaAgent } from './agent.js';
|
|
17
17
|
const require = createRequire(import.meta.url);
|
|
18
18
|
const packageJson = require('../../package.json');
|
|
19
|
-
const { logger: log } = createSerenaLogger({ name: '
|
|
19
|
+
const { logger: log } = createSerenaLogger({ name: 'smart-edit.mcp' });
|
|
20
20
|
function unwrapZodObject(schema) {
|
|
21
21
|
if (!schema) {
|
|
22
22
|
return undefined;
|
|
@@ -183,7 +183,7 @@ function maybeCreateJsonSchema(schema, options) {
|
|
|
183
183
|
function createDefaultServerInfo() {
|
|
184
184
|
const version = typeof packageJson.version === 'string' ? packageJson.version : '0.0.0';
|
|
185
185
|
return {
|
|
186
|
-
name: '
|
|
186
|
+
name: 'smart-edit',
|
|
187
187
|
version
|
|
188
188
|
};
|
|
189
189
|
}
|
package/dist/serena/project.js
CHANGED
|
@@ -9,7 +9,7 @@ import { DEFAULT_TOOL_TIMEOUT, ProjectConfig } from './config/serena_config.js';
|
|
|
9
9
|
import { SERENA_MANAGED_DIR_IN_HOME, SERENA_MANAGED_DIR_NAME } from './constants.js';
|
|
10
10
|
import { SolidLanguageServer } from '../solidlsp/ls.js';
|
|
11
11
|
import { getLanguageFilenameMatcher } from '../solidlsp/ls_config.js';
|
|
12
|
-
const { logger: log } = createSerenaLogger({ name: '
|
|
12
|
+
const { logger: log } = createSerenaLogger({ name: 'smart-edit.project', emitToConsole: true, level: 'info' });
|
|
13
13
|
class IgnoreMatcher {
|
|
14
14
|
engine;
|
|
15
15
|
constructor(patterns) {
|
|
@@ -4,10 +4,7 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
-
<title>
|
|
8
|
-
<link rel="icon" type="image/png" sizes="16x16" href="serena-icon-16.png">
|
|
9
|
-
<link rel="icon" type="image/png" sizes="32x32" href="serena-icon-32.png">
|
|
10
|
-
<link rel="icon" type="image/png" sizes="48x48" href="serena-icon-48.png">
|
|
7
|
+
<title>Smart Edit Dashboard</title>
|
|
11
8
|
<script src="jquery.min.js"></script>
|
|
12
9
|
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
|
13
10
|
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels@2"></script>
|
|
@@ -255,17 +252,13 @@
|
|
|
255
252
|
|
|
256
253
|
<body>
|
|
257
254
|
<div class="header">
|
|
258
|
-
|
|
255
|
+
Smart Edit Dashboard
|
|
259
256
|
</div>
|
|
260
257
|
|
|
261
258
|
<div class="controls">
|
|
262
259
|
<button id="load-logs" class="btn">Reload Log</button>
|
|
263
260
|
<button id="shutdown" class="btn">Shutdown Server</button>
|
|
264
261
|
<button id="toggle-stats" class="btn">Show Stats</button>
|
|
265
|
-
<div id="theme-toggle" class="theme-toggle" title="Toggle theme">
|
|
266
|
-
<span class="icon" id="theme-icon">🌙</span>
|
|
267
|
-
<span id="theme-text">Dark</span>
|
|
268
|
-
</div>
|
|
269
262
|
</div>
|
|
270
263
|
|
|
271
264
|
<div id="error-container"></div>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
|
3
|
+
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
|
4
|
+
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
width="32.000000pt" height="32.000000pt" viewBox="0 0 32.000000 32.000000"
|
|
6
|
+
preserveAspectRatio="xMidYMid meet">
|
|
7
|
+
|
|
8
|
+
<g transform="translate(0.000000,32.000000) scale(0.100000,-0.100000)"
|
|
9
|
+
fill="#000000" stroke="none">
|
|
10
|
+
<path d="M17 302 c-14 -15 -17 -41 -17 -144 0 -163 -5 -158 162 -158 163 0
|
|
11
|
+
158 -5 158 162 0 163 5 158 -162 158 -108 0 -127 -2 -141 -18z m192 -23 c27
|
|
12
|
+
-26 27 -94 -1 -94 -9 0 -20 -4 -24 -8 -4 -4 -2 -7 5 -7 7 0 9 -4 6 -10 -11
|
|
13
|
+
-18 -58 -11 -82 12 -28 26 -30 75 -5 106 22 28 71 29 101 1z m-129 -153 c0
|
|
14
|
+
-18 -26 -39 -39 -31 -7 4 -6 12 2 25 14 23 37 27 37 6z m110 -2 c17 9 30 14
|
|
15
|
+
29 9 -1 -4 1 -16 6 -26 11 -26 0 -32 -71 -33 -66 -2 -69 0 -58 43 6 22 7 22
|
|
16
|
+
35 6 27 -16 31 -16 59 1z m87 -4 c8 -13 9 -21 2 -25 -13 -8 -39 13 -39 31 0
|
|
17
|
+
21 23 17 37 -6z m-107 -100 c0 -3 -11 -5 -25 -5 -28 0 -30 7 -14 37 11 21 12
|
|
18
|
+
21 25 -3 7 -13 13 -26 14 -29z m30 15 c0 -14 -4 -25 -10 -25 -5 0 -10 11 -10
|
|
19
|
+
25 0 14 5 25 10 25 6 0 10 -11 10 -25z"/>
|
|
20
|
+
<path d="M100 220 c0 -18 7 -20 60 -20 53 0 60 2 60 20 0 18 -7 20 -60 20 -53
|
|
21
|
+
0 -60 -2 -60 -20z m35 0 c3 -5 1 -10 -4 -10 -6 0 -11 5 -11 10 0 6 2 10 4 10
|
|
22
|
+
3 0 8 -4 11 -10z m65 0 c0 -5 -5 -10 -11 -10 -5 0 -7 5 -4 10 3 6 8 10 11 10
|
|
23
|
+
2 0 4 -4 4 -10z"/>
|
|
24
|
+
</g>
|
|
25
|
+
</svg>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
|
3
|
+
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
|
4
|
+
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
width="32.000000pt" height="32.000000pt" viewBox="0 0 32.000000 32.000000"
|
|
6
|
+
preserveAspectRatio="xMidYMid meet">
|
|
7
|
+
|
|
8
|
+
<g transform="translate(0.000000,32.000000) scale(0.100000,-0.100000)"
|
|
9
|
+
fill="#000000" stroke="none">
|
|
10
|
+
<path d="M17 302 c-14 -15 -17 -41 -17 -144 0 -163 -5 -158 162 -158 163 0
|
|
11
|
+
158 -5 158 162 0 163 5 158 -162 158 -108 0 -127 -2 -141 -18z m192 -23 c27
|
|
12
|
+
-26 27 -94 -1 -94 -9 0 -20 -4 -24 -8 -4 -4 -2 -7 5 -7 7 0 9 -4 6 -10 -11
|
|
13
|
+
-18 -58 -11 -82 12 -28 26 -30 75 -5 106 22 28 71 29 101 1z m-129 -153 c0
|
|
14
|
+
-18 -26 -39 -39 -31 -7 4 -6 12 2 25 14 23 37 27 37 6z m110 -2 c17 9 30 14
|
|
15
|
+
29 9 -1 -4 1 -16 6 -26 11 -26 0 -32 -71 -33 -66 -2 -69 0 -58 43 6 22 7 22
|
|
16
|
+
35 6 27 -16 31 -16 59 1z m87 -4 c8 -13 9 -21 2 -25 -13 -8 -39 13 -39 31 0
|
|
17
|
+
21 23 17 37 -6z m-107 -100 c0 -3 -11 -5 -25 -5 -28 0 -30 7 -14 37 11 21 12
|
|
18
|
+
21 25 -3 7 -13 13 -26 14 -29z m30 15 c0 -14 -4 -25 -10 -25 -5 0 -10 11 -10
|
|
19
|
+
25 0 14 5 25 10 25 6 0 10 -11 10 -25z"/>
|
|
20
|
+
<path d="M100 220 c0 -18 7 -20 60 -20 53 0 60 2 60 20 0 18 -7 20 -60 20 -53
|
|
21
|
+
0 -60 -2 -60 -20z m35 0 c3 -5 1 -10 -4 -10 -6 0 -11 5 -11 10 0 6 2 10 4 10
|
|
22
|
+
3 0 8 -4 11 -10z m65 0 c0 -5 -5 -10 -11 -10 -5 0 -7 5 -4 10 3 6 8 10 11 10
|
|
23
|
+
2 0 4 -4 4 -10z"/>
|
|
24
|
+
</g>
|
|
25
|
+
</svg>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
|
3
|
+
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
|
4
|
+
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
width="32.000000pt" height="32.000000pt" viewBox="0 0 32.000000 32.000000"
|
|
6
|
+
preserveAspectRatio="xMidYMid meet">
|
|
7
|
+
|
|
8
|
+
<g transform="translate(0.000000,32.000000) scale(0.100000,-0.100000)"
|
|
9
|
+
fill="#000000" stroke="none">
|
|
10
|
+
<path d="M17 302 c-14 -15 -17 -41 -17 -144 0 -163 -5 -158 162 -158 163 0
|
|
11
|
+
158 -5 158 162 0 163 5 158 -162 158 -108 0 -127 -2 -141 -18z m192 -23 c27
|
|
12
|
+
-26 27 -94 -1 -94 -9 0 -20 -4 -24 -8 -4 -4 -2 -7 5 -7 7 0 9 -4 6 -10 -11
|
|
13
|
+
-18 -58 -11 -82 12 -28 26 -30 75 -5 106 22 28 71 29 101 1z m-129 -153 c0
|
|
14
|
+
-18 -26 -39 -39 -31 -7 4 -6 12 2 25 14 23 37 27 37 6z m110 -2 c17 9 30 14
|
|
15
|
+
29 9 -1 -4 1 -16 6 -26 11 -26 0 -32 -71 -33 -66 -2 -69 0 -58 43 6 22 7 22
|
|
16
|
+
35 6 27 -16 31 -16 59 1z m87 -4 c8 -13 9 -21 2 -25 -13 -8 -39 13 -39 31 0
|
|
17
|
+
21 23 17 37 -6z m-107 -100 c0 -3 -11 -5 -25 -5 -28 0 -30 7 -14 37 11 21 12
|
|
18
|
+
21 25 -3 7 -13 13 -26 14 -29z m30 15 c0 -14 -4 -25 -10 -25 -5 0 -10 11 -10
|
|
19
|
+
25 0 14 5 25 10 25 6 0 10 -11 10 -25z"/>
|
|
20
|
+
<path d="M100 220 c0 -18 7 -20 60 -20 53 0 60 2 60 20 0 18 -7 20 -60 20 -53
|
|
21
|
+
0 -60 -2 -60 -20z m35 0 c3 -5 1 -10 -4 -10 -6 0 -11 5 -11 10 0 6 2 10 4 10
|
|
22
|
+
3 0 8 -4 11 -10z m65 0 c0 -5 -5 -10 -11 -10 -5 0 -7 5 -4 10 3 6 8 10 11 10
|
|
23
|
+
2 0 4 -4 4 -10z"/>
|
|
24
|
+
</g>
|
|
25
|
+
</svg>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
|
3
|
+
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
|
4
|
+
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
width="32.000000pt" height="32.000000pt" viewBox="0 0 32.000000 32.000000"
|
|
6
|
+
preserveAspectRatio="xMidYMid meet">
|
|
7
|
+
|
|
8
|
+
<g transform="translate(0.000000,32.000000) scale(0.100000,-0.100000)"
|
|
9
|
+
fill="#000000" stroke="none">
|
|
10
|
+
<path d="M17 302 c-14 -15 -17 -41 -17 -144 0 -163 -5 -158 162 -158 163 0
|
|
11
|
+
158 -5 158 162 0 163 5 158 -162 158 -108 0 -127 -2 -141 -18z m192 -23 c27
|
|
12
|
+
-26 27 -94 -1 -94 -9 0 -20 -4 -24 -8 -4 -4 -2 -7 5 -7 7 0 9 -4 6 -10 -11
|
|
13
|
+
-18 -58 -11 -82 12 -28 26 -30 75 -5 106 22 28 71 29 101 1z m-129 -153 c0
|
|
14
|
+
-18 -26 -39 -39 -31 -7 4 -6 12 2 25 14 23 37 27 37 6z m110 -2 c17 9 30 14
|
|
15
|
+
29 9 -1 -4 1 -16 6 -26 11 -26 0 -32 -71 -33 -66 -2 -69 0 -58 43 6 22 7 22
|
|
16
|
+
35 6 27 -16 31 -16 59 1z m87 -4 c8 -13 9 -21 2 -25 -13 -8 -39 13 -39 31 0
|
|
17
|
+
21 23 17 37 -6z m-107 -100 c0 -3 -11 -5 -25 -5 -28 0 -30 7 -14 37 11 21 12
|
|
18
|
+
21 25 -3 7 -13 13 -26 14 -29z m30 15 c0 -14 -4 -25 -10 -25 -5 0 -10 11 -10
|
|
19
|
+
25 0 14 5 25 10 25 6 0 10 -11 10 -25z"/>
|
|
20
|
+
<path d="M100 220 c0 -18 7 -20 60 -20 53 0 60 2 60 20 0 18 -7 20 -60 20 -53
|
|
21
|
+
0 -60 -2 -60 -20z m35 0 c3 -5 1 -10 -4 -10 -6 0 -11 5 -11 10 0 6 2 10 4 10
|
|
22
|
+
3 0 8 -4 11 -10z m65 0 c0 -5 -5 -10 -11 -10 -5 0 -7 5 -4 10 3 6 8 10 11 10
|
|
23
|
+
2 0 4 -4 4 -10z"/>
|
|
24
|
+
</g>
|
|
25
|
+
</svg>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
|
3
|
+
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
|
4
|
+
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
width="32.000000pt" height="32.000000pt" viewBox="0 0 32.000000 32.000000"
|
|
6
|
+
preserveAspectRatio="xMidYMid meet">
|
|
7
|
+
|
|
8
|
+
<g transform="translate(0.000000,32.000000) scale(0.100000,-0.100000)"
|
|
9
|
+
fill="#000000" stroke="none">
|
|
10
|
+
<path d="M17 302 c-14 -15 -17 -41 -17 -144 0 -163 -5 -158 162 -158 163 0
|
|
11
|
+
158 -5 158 162 0 163 5 158 -162 158 -108 0 -127 -2 -141 -18z m192 -23 c27
|
|
12
|
+
-26 27 -94 -1 -94 -9 0 -20 -4 -24 -8 -4 -4 -2 -7 5 -7 7 0 9 -4 6 -10 -11
|
|
13
|
+
-18 -58 -11 -82 12 -28 26 -30 75 -5 106 22 28 71 29 101 1z m-129 -153 c0
|
|
14
|
+
-18 -26 -39 -39 -31 -7 4 -6 12 2 25 14 23 37 27 37 6z m110 -2 c17 9 30 14
|
|
15
|
+
29 9 -1 -4 1 -16 6 -26 11 -26 0 -32 -71 -33 -66 -2 -69 0 -58 43 6 22 7 22
|
|
16
|
+
35 6 27 -16 31 -16 59 1z m87 -4 c8 -13 9 -21 2 -25 -13 -8 -39 13 -39 31 0
|
|
17
|
+
21 23 17 37 -6z m-107 -100 c0 -3 -11 -5 -25 -5 -28 0 -30 7 -14 37 11 21 12
|
|
18
|
+
21 25 -3 7 -13 13 -26 14 -29z m30 15 c0 -14 -4 -25 -10 -25 -5 0 -10 11 -10
|
|
19
|
+
25 0 14 5 25 10 25 6 0 10 -11 10 -25z"/>
|
|
20
|
+
<path d="M100 220 c0 -18 7 -20 60 -20 53 0 60 2 60 20 0 18 -7 20 -60 20 -53
|
|
21
|
+
0 -60 -2 -60 -20z m35 0 c3 -5 1 -10 -4 -10 -6 0 -11 5 -11 10 0 6 2 10 4 10
|
|
22
|
+
3 0 8 -4 11 -10z m65 0 c0 -5 -5 -10 -11 -10 -5 0 -7 5 -4 10 3 6 8 10 11 10
|
|
23
|
+
2 0 4 -4 4 -10z"/>
|
|
24
|
+
</g>
|
|
25
|
+
</svg>
|
package/dist/serena/symbol.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import { createSerenaLogger } from './util/logging.js';
|
|
3
|
-
const { logger } = createSerenaLogger({ name: '
|
|
3
|
+
const { logger } = createSerenaLogger({ name: 'smart-edit.symbol', emitToConsole: false, level: 'info' });
|
|
4
4
|
export var SymbolKind;
|
|
5
5
|
(function (SymbolKind) {
|
|
6
6
|
SymbolKind[SymbolKind["File"] = 1] = "File";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { createSerenaLogger } from './util/logging.js';
|
|
4
|
-
const { logger: log } = createSerenaLogger({ name: '
|
|
4
|
+
const { logger: log } = createSerenaLogger({ name: 'smart-edit.text_utils' });
|
|
5
5
|
export var LineType;
|
|
6
6
|
(function (LineType) {
|
|
7
7
|
LineType["MATCH"] = "match";
|
|
@@ -67,11 +67,11 @@ function resolveInitialPrompt(projectConfig) {
|
|
|
67
67
|
function resolveProjectYamlPath(project) {
|
|
68
68
|
const camelCase = project.pathToProjectYml;
|
|
69
69
|
if (typeof camelCase === 'function') {
|
|
70
|
-
return camelCase();
|
|
70
|
+
return camelCase.call(project);
|
|
71
71
|
}
|
|
72
72
|
const snakeCase = project.path_to_project_yml;
|
|
73
73
|
if (typeof snakeCase === 'function') {
|
|
74
|
-
return snakeCase();
|
|
74
|
+
return snakeCase.call(project);
|
|
75
75
|
}
|
|
76
76
|
return undefined;
|
|
77
77
|
}
|
|
@@ -3,7 +3,7 @@ import path from 'node:path';
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { createSerenaLogger } from '../util/logging.js';
|
|
5
5
|
import { singleton } from '../util/class_decorators.js';
|
|
6
|
-
const { logger: log } = createSerenaLogger({ name: '
|
|
6
|
+
const { logger: log } = createSerenaLogger({ name: 'smart-edit.tools.base' });
|
|
7
7
|
export function assertIsBufferEncoding(value) {
|
|
8
8
|
if (!Buffer.isEncoding(value)) {
|
|
9
9
|
throw new Error(`Unsupported file encoding '${value}'`);
|
package/dist/serena/version.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { createSerenaLogger } from './util/logging.js';
|
|
4
4
|
const require = createRequire(import.meta.url);
|
|
5
5
|
const { version: packageVersion } = require('../../package.json');
|
|
6
|
-
const { logger } = createSerenaLogger({ name: '
|
|
6
|
+
const { logger } = createSerenaLogger({ name: 'smart-edit.version', emitToConsole: false, level: 'info' });
|
|
7
7
|
export function serenaVersion() {
|
|
8
8
|
let version = packageVersion ?? '0.0.0';
|
|
9
9
|
try {
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|