@gracker/smartperfetto 1.0.20 → 1.0.22
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/agent/config/domainManifest.d.ts +5 -3
- package/dist/agent/config/domainManifest.d.ts.map +1 -1
- package/dist/agent/config/domainManifest.js +120 -5
- package/dist/agent/config/domainManifest.js.map +1 -1
- package/dist/agent/core/orchestratorTypes.d.ts +5 -0
- package/dist/agent/core/orchestratorTypes.d.ts.map +1 -1
- package/dist/agent/core/orchestratorTypes.js.map +1 -1
- package/dist/agent/scene/buildSmartChatReport.d.ts +13 -0
- package/dist/agent/scene/buildSmartChatReport.d.ts.map +1 -0
- package/dist/agent/scene/buildSmartChatReport.js +333 -0
- package/dist/agent/scene/buildSmartChatReport.js.map +1 -0
- package/dist/agent/scene/sceneAnalysisJobRunner.d.ts +8 -4
- package/dist/agent/scene/sceneAnalysisJobRunner.d.ts.map +1 -1
- package/dist/agent/scene/sceneAnalysisJobRunner.js +78 -3
- package/dist/agent/scene/sceneAnalysisJobRunner.js.map +1 -1
- package/dist/agent/scene/sceneIntervalBuilder.d.ts +14 -5
- package/dist/agent/scene/sceneIntervalBuilder.d.ts.map +1 -1
- package/dist/agent/scene/sceneIntervalBuilder.js +578 -1
- package/dist/agent/scene/sceneIntervalBuilder.js.map +1 -1
- package/dist/agent/scene/sceneStage1Verifier.d.ts +8 -0
- package/dist/agent/scene/sceneStage1Verifier.d.ts.map +1 -0
- package/dist/agent/scene/sceneStage1Verifier.js +245 -0
- package/dist/agent/scene/sceneStage1Verifier.js.map +1 -0
- package/dist/agent/scene/sceneStoryService.d.ts +20 -2
- package/dist/agent/scene/sceneStoryService.d.ts.map +1 -1
- package/dist/agent/scene/sceneStoryService.js +238 -25
- package/dist/agent/scene/sceneStoryService.js.map +1 -1
- package/dist/agent/scene/smartCancelBridge.d.ts +13 -0
- package/dist/agent/scene/smartCancelBridge.d.ts.map +1 -0
- package/dist/agent/scene/smartCancelBridge.js +44 -0
- package/dist/agent/scene/smartCancelBridge.js.map +1 -0
- package/dist/agent/scene/smartDeepDiveDispatch.d.ts +15 -0
- package/dist/agent/scene/smartDeepDiveDispatch.d.ts.map +1 -0
- package/dist/agent/scene/smartDeepDiveDispatch.js +170 -0
- package/dist/agent/scene/smartDeepDiveDispatch.js.map +1 -0
- package/dist/agent/scene/types.d.ts +97 -6
- package/dist/agent/scene/types.d.ts.map +1 -1
- package/dist/agent/types.d.ts +1 -1
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/agentv3/claudeMcpServer.d.ts.map +1 -1
- package/dist/agentv3/claudeMcpServer.js +3 -2
- package/dist/agentv3/claudeMcpServer.js.map +1 -1
- package/dist/agentv3/claudeSystemPrompt.d.ts.map +1 -1
- package/dist/agentv3/claudeSystemPrompt.js +8 -0
- package/dist/agentv3/claudeSystemPrompt.js.map +1 -1
- package/dist/agentv3/queryComplexityClassifier.d.ts +1 -1
- package/dist/agentv3/queryComplexityClassifier.d.ts.map +1 -1
- package/dist/agentv3/queryComplexityClassifier.js +20 -7
- package/dist/agentv3/queryComplexityClassifier.js.map +1 -1
- package/dist/agentv3/strategyLoader.d.ts +3 -0
- package/dist/agentv3/strategyLoader.d.ts.map +1 -1
- package/dist/agentv3/strategyLoader.js +17 -4
- package/dist/agentv3/strategyLoader.js.map +1 -1
- package/dist/agentv3/types.d.ts +5 -1
- package/dist/agentv3/types.d.ts.map +1 -1
- package/dist/agentv3/types.js.map +1 -1
- package/dist/config/index.d.ts +12 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +6 -0
- package/dist/config/index.js.map +1 -1
- package/dist/routes/agent/finalizeAgentDrivenSession.d.ts +67 -0
- package/dist/routes/agent/finalizeAgentDrivenSession.d.ts.map +1 -0
- package/dist/routes/agent/finalizeAgentDrivenSession.js +103 -0
- package/dist/routes/agent/finalizeAgentDrivenSession.js.map +1 -0
- package/dist/routes/agent/normalizeAnalyzeOptions.d.ts +42 -0
- package/dist/routes/agent/normalizeAnalyzeOptions.d.ts.map +1 -0
- package/dist/routes/agent/normalizeAnalyzeOptions.js +185 -0
- package/dist/routes/agent/normalizeAnalyzeOptions.js.map +1 -0
- package/dist/routes/agentRoutes.d.ts.map +1 -1
- package/dist/routes/agentRoutes.js +285 -125
- package/dist/routes/agentRoutes.js.map +1 -1
- package/dist/scripts/verifyAgentSseScrolling.js +131 -8
- package/dist/scripts/verifyAgentSseScrolling.js.map +1 -1
- package/dist/services/sceneReport/sceneJobArtifactStore.d.ts +22 -0
- package/dist/services/sceneReport/sceneJobArtifactStore.d.ts.map +1 -0
- package/dist/services/sceneReport/sceneJobArtifactStore.js +65 -0
- package/dist/services/sceneReport/sceneJobArtifactStore.js.map +1 -0
- package/dist/services/sceneReport/sceneReportMemoryCache.d.ts +5 -3
- package/dist/services/sceneReport/sceneReportMemoryCache.d.ts.map +1 -1
- package/dist/services/sceneReport/sceneReportMemoryCache.js +15 -10
- package/dist/services/sceneReport/sceneReportMemoryCache.js.map +1 -1
- package/dist/services/sceneReport/sceneReportStore.d.ts +9 -4
- package/dist/services/sceneReport/sceneReportStore.d.ts.map +1 -1
- package/dist/services/sceneReport/sceneReportStore.js +27 -7
- package/dist/services/sceneReport/sceneReportStore.js.map +1 -1
- package/dist/services/traceProcessor/sqlSemaphore.d.ts +16 -0
- package/dist/services/traceProcessor/sqlSemaphore.d.ts.map +1 -0
- package/dist/services/traceProcessor/sqlSemaphore.js +63 -0
- package/dist/services/traceProcessor/sqlSemaphore.js.map +1 -0
- package/dist/types/dataContract.d.ts +1 -1
- package/dist/types/dataContract.d.ts.map +1 -1
- package/dist/types/dataContract.js +2 -0
- package/dist/types/dataContract.js.map +1 -1
- package/package.json +1 -1
- package/skills/README.md +13 -5
- package/skills/composite/device_state_snapshot.skill.yaml +204 -0
- package/skills/composite/scene_reconstruction.skill.yaml +5 -1
- package/skills/composite/selection_range_cpu_sched_summary.skill.yaml +428 -0
- package/strategies/scene-reconstruction-verifier.template.md +18 -0
- package/strategies/scrolling.strategy.md +5 -1
- package/strategies/selection-area.template.md +24 -9
- package/strategies/smart.strategy.md +53 -0
- package/skills/atomic/device_state_snapshot.skill.yaml +0 -171
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finalizeAgentDrivenSession.d.ts","sourceRoot":"","sources":["../../../src/routes/agent/finalizeAgentDrivenSession.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,0BAA0B,EAC1B,UAAU,EACV,eAAe,EAChB,MAAM,aAAa,CAAC;AAErB,KAAK,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,eAAe,GAAG,WAAW,GAAG,QAAQ,GAAG,gBAAgB,CAAC;AAEzG,UAAU,mBAAmB;IAC3B,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,iBAAiB,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACtG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtE,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,GAAG,EAAE,CAAC;IAClB,MAAM,EAAE;QACN,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;QAC/E,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OA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,MAAM,CAAC;SAC7B,CAAC;QACF,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC3B,YAAY,EAAE,MAAM,CAAC;KACtB,GAAG,IAAI,CAAC;IACT,gCAAgC,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,EAAE,CAAC;IAC/D,qBAAqB,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,GAAG,IAAI,CAAC;CAC7D;AAED,wBAAgB,0BAA0B,CAAC,QAAQ,SAAS,mBAAmB,EAAE,KAAK,EAAE;IACtF,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,0BAA0B,CAAC;IACnC,YAAY,EAAE,MAAM,CAAC;CACtB,EAAE,IAAI,EAAE,8BAA8B,CAAC,QAAQ,CAAC,GAAG,IAAI,CAoGvD"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
3
|
+
// Copyright (C) 2024-2026 Gracker (Chris)
|
|
4
|
+
// This file is part of SmartPerfetto. See LICENSE for details.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.finalizeAgentDrivenSession = finalizeAgentDrivenSession;
|
|
7
|
+
function finalizeAgentDrivenSession(input, deps) {
|
|
8
|
+
const { sessionId, query, traceId, session, result } = input;
|
|
9
|
+
const { logger } = session;
|
|
10
|
+
session.result = result;
|
|
11
|
+
delete session.completedAnalysisFinalArtifacts;
|
|
12
|
+
delete session.completedAnalysisSseEvents;
|
|
13
|
+
delete session.completedAnalysisSseEventsQualityGateVersion;
|
|
14
|
+
const existingIds = new Set(session.hypotheses.map(h => h.id));
|
|
15
|
+
for (const h of result.hypotheses) {
|
|
16
|
+
if (!existingIds.has(h.id)) {
|
|
17
|
+
session.hypotheses.push(h);
|
|
18
|
+
existingIds.add(h.id);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
const idx = session.hypotheses.findIndex(existing => existing.id === h.id);
|
|
22
|
+
if (idx >= 0)
|
|
23
|
+
session.hypotheses[idx] = h;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
const currentTurn = session.runSequence || 1;
|
|
27
|
+
if (!session.conclusionHistory)
|
|
28
|
+
session.conclusionHistory = [];
|
|
29
|
+
if (result.conclusion) {
|
|
30
|
+
session.conclusionHistory.push({
|
|
31
|
+
turn: currentTurn,
|
|
32
|
+
conclusion: result.conclusion,
|
|
33
|
+
confidence: result.confidence ?? 0,
|
|
34
|
+
timestamp: Date.now(),
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
const finalQualityIssue = deps.applyFinalResultQualityGate({ result, query });
|
|
38
|
+
if (finalQualityIssue) {
|
|
39
|
+
const update = {
|
|
40
|
+
type: 'degraded',
|
|
41
|
+
content: {
|
|
42
|
+
module: 'agentRoutes',
|
|
43
|
+
fallback: 'final_result_quality_gate',
|
|
44
|
+
code: finalQualityIssue.code,
|
|
45
|
+
partial: true,
|
|
46
|
+
message: result.terminationMessage || finalQualityIssue.message,
|
|
47
|
+
},
|
|
48
|
+
timestamp: Date.now(),
|
|
49
|
+
};
|
|
50
|
+
deps.broadcast(sessionId, update);
|
|
51
|
+
const conversationStep = deps.buildConversationStepUpdate(session, update);
|
|
52
|
+
if (conversationStep) {
|
|
53
|
+
deps.appendConversationStep(session, conversationStep);
|
|
54
|
+
deps.broadcast(sessionId, conversationStep);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
deps.annotateLatestCompletedTurn(sessionId, traceId, result);
|
|
58
|
+
const terminalRunStatus = deps.terminalRunStatusForResult(result);
|
|
59
|
+
session.status = terminalRunStatus === 'quota_exceeded'
|
|
60
|
+
? 'quota_exceeded'
|
|
61
|
+
: result.success ? 'completed' : 'failed';
|
|
62
|
+
deps.markSessionRunStatus(session, terminalRunStatus);
|
|
63
|
+
logger.info(input.logComponent, 'Agent-driven result finalized', {
|
|
64
|
+
confidence: result.confidence,
|
|
65
|
+
rounds: result.rounds,
|
|
66
|
+
findingsCount: result.findings.length,
|
|
67
|
+
hypothesesCount: result.hypotheses.length,
|
|
68
|
+
claimSupportCount: result.claimSupport?.length || 0,
|
|
69
|
+
claimVerifierStatus: result.claimVerificationResult?.status,
|
|
70
|
+
partial: result.partial,
|
|
71
|
+
terminationReason: result.terminationReason,
|
|
72
|
+
runId: session.activeRun?.runId,
|
|
73
|
+
requestId: session.activeRun?.requestId,
|
|
74
|
+
runSequence: session.activeRun?.sequence,
|
|
75
|
+
});
|
|
76
|
+
deps.persistAgentTurn({
|
|
77
|
+
session,
|
|
78
|
+
sessionId,
|
|
79
|
+
traceId,
|
|
80
|
+
query,
|
|
81
|
+
result: {
|
|
82
|
+
conclusion: result.conclusion,
|
|
83
|
+
totalDurationMs: result.totalDurationMs,
|
|
84
|
+
partial: result.partial,
|
|
85
|
+
terminationMessage: result.terminationMessage,
|
|
86
|
+
},
|
|
87
|
+
logger,
|
|
88
|
+
logComponent: input.logComponent,
|
|
89
|
+
});
|
|
90
|
+
deps.ensureCompletedAnalysisSseEvents(session);
|
|
91
|
+
const clientCount = session.sseClients.length;
|
|
92
|
+
session.sseClients.forEach((client, index) => {
|
|
93
|
+
try {
|
|
94
|
+
logger.info('AgentRoutes', `Sending finalized result to client ${index + 1}/${clientCount}`);
|
|
95
|
+
deps.sendAgentDrivenResult(client, session);
|
|
96
|
+
}
|
|
97
|
+
catch (e) {
|
|
98
|
+
logger.error('AgentRoutes', `Error sending finalized result to client ${index + 1}`, e);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
logger.close();
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=finalizeAgentDrivenSession.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finalizeAgentDrivenSession.js","sourceRoot":"","sources":["../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W,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;IAC9C,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;QAC3C,IAAI,CAAC;YACH,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE,sCAAsC,KAAK,GAAG,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC;YAC7F,IAAI,CAAC,qBAAqB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC9C,CAAC;QAAC,OAAO,CAAM,EAAE,CAAC;YAChB,MAAM,CAAC,KAAK,CAAC,aAAa,EAAE,4CAA4C,KAAK,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QAC1F,CAAC;IACH,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,KAAK,EAAE,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { CodeAwareMode } from '../../services/codebase/codeAwareFeature';
|
|
2
|
+
import type { SelectionContext } from '../../agentv3/types';
|
|
3
|
+
import type { SceneAnalysisSelection } from '../../agent/scene/types';
|
|
4
|
+
export type AnalyzeEndpointKind = '/analyze' | '/sessions/:id/runs';
|
|
5
|
+
export type AnalyzePreset = 'smart';
|
|
6
|
+
export type AnalyzeMode = 'fast' | 'full' | 'auto';
|
|
7
|
+
export type SmartAnalyzeAction = 'preview' | 'analyze';
|
|
8
|
+
export interface NormalizedAnalyzeOptions {
|
|
9
|
+
analysisMode: AnalyzeMode;
|
|
10
|
+
preset?: AnalyzePreset;
|
|
11
|
+
codeAwareMode?: CodeAwareMode;
|
|
12
|
+
codebaseIds?: string[];
|
|
13
|
+
generateTracks?: boolean;
|
|
14
|
+
forceRefresh?: boolean;
|
|
15
|
+
selectionContext?: SelectionContext;
|
|
16
|
+
blockedStrategyIds?: string[];
|
|
17
|
+
maxRounds?: number;
|
|
18
|
+
confidenceThreshold?: number;
|
|
19
|
+
maxNoProgressRounds?: number;
|
|
20
|
+
maxFailureRounds?: number;
|
|
21
|
+
maxConcurrentTasks?: number;
|
|
22
|
+
taskTimeoutMs?: number;
|
|
23
|
+
packageName?: string;
|
|
24
|
+
timeRange?: unknown;
|
|
25
|
+
adb?: unknown;
|
|
26
|
+
estimatedSqlMs?: number;
|
|
27
|
+
heavySkill?: boolean;
|
|
28
|
+
longTask?: boolean;
|
|
29
|
+
traceSizeBytes?: number;
|
|
30
|
+
smartAction?: SmartAnalyzeAction;
|
|
31
|
+
smartSelection?: SceneAnalysisSelection;
|
|
32
|
+
}
|
|
33
|
+
export declare class AnalyzeOptionsError extends Error {
|
|
34
|
+
readonly code: string;
|
|
35
|
+
readonly httpStatus: number;
|
|
36
|
+
constructor(message: string, code: string, httpStatus?: number);
|
|
37
|
+
}
|
|
38
|
+
export declare function normalizeAnalyzeOptions(rawOptions: unknown, ctx: {
|
|
39
|
+
endpoint: AnalyzeEndpointKind;
|
|
40
|
+
hasReferenceTraceId: boolean;
|
|
41
|
+
}): NormalizedAnalyzeOptions;
|
|
42
|
+
//# sourceMappingURL=normalizeAnalyzeOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeAnalyzeOptions.d.ts","sourceRoot":"","sources":["../../../src/routes/agent/normalizeAnalyzeOptions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EACV,sBAAsB,EAEvB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,oBAAoB,CAAC;AACpE,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC;AACpC,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AACnD,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,CAAC;AAEvD,MAAM,W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 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
3
|
+
// Copyright (C) 2024-2026 Gracker (Chris)
|
|
4
|
+
// This file is part of SmartPerfetto. See LICENSE for details.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AnalyzeOptionsError = void 0;
|
|
7
|
+
exports.normalizeAnalyzeOptions = normalizeAnalyzeOptions;
|
|
8
|
+
class AnalyzeOptionsError extends Error {
|
|
9
|
+
constructor(message, code, httpStatus = 400) {
|
|
10
|
+
super(message);
|
|
11
|
+
this.code = code;
|
|
12
|
+
this.httpStatus = httpStatus;
|
|
13
|
+
this.name = 'AnalyzeOptionsError';
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.AnalyzeOptionsError = AnalyzeOptionsError;
|
|
17
|
+
function normalizeAnalyzeOptions(rawOptions, ctx) {
|
|
18
|
+
const raw = rawOptions && typeof rawOptions === 'object' && !Array.isArray(rawOptions)
|
|
19
|
+
? rawOptions
|
|
20
|
+
: {};
|
|
21
|
+
const analysisMode = normalizeAnalysisMode(raw.analysisMode);
|
|
22
|
+
const preset = normalizePreset(raw.preset);
|
|
23
|
+
if (preset === 'smart' && ctx.hasReferenceTraceId) {
|
|
24
|
+
throw new AnalyzeOptionsError('智能分析暂不支持双 trace 对比', 'SMART_COMPARISON_UNSUPPORTED');
|
|
25
|
+
}
|
|
26
|
+
if (preset === 'smart' && ctx.endpoint === '/sessions/:id/runs') {
|
|
27
|
+
throw new AnalyzeOptionsError('智能分析仅支持新会话,不能作为已有会话的后续轮次运行', 'SMART_CONTINUATION_UNSUPPORTED');
|
|
28
|
+
}
|
|
29
|
+
const normalized = { analysisMode };
|
|
30
|
+
if (preset)
|
|
31
|
+
normalized.preset = preset;
|
|
32
|
+
const smartAction = normalizeSmartAction(raw.smartAction, preset);
|
|
33
|
+
if (smartAction) {
|
|
34
|
+
normalized.smartAction = smartAction;
|
|
35
|
+
if (smartAction === 'analyze') {
|
|
36
|
+
normalized.smartSelection = normalizeSmartSelection(raw.smartSelection);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
else if (raw.smartSelection !== undefined) {
|
|
40
|
+
throw new AnalyzeOptionsError('smartSelection requires preset=smart', 'SMART_SELECTION_REQUIRES_SMART_PRESET');
|
|
41
|
+
}
|
|
42
|
+
const codeAwareMode = normalizeCodeAwareMode(raw.codeAwareMode);
|
|
43
|
+
if (codeAwareMode)
|
|
44
|
+
normalized.codeAwareMode = codeAwareMode;
|
|
45
|
+
const codebaseIds = normalizeStringArray(raw.codebaseIds);
|
|
46
|
+
if (codebaseIds.length > 0)
|
|
47
|
+
normalized.codebaseIds = codebaseIds;
|
|
48
|
+
const blockedStrategyIds = normalizeStringArray(raw.blockedStrategyIds);
|
|
49
|
+
if (blockedStrategyIds.length > 0)
|
|
50
|
+
normalized.blockedStrategyIds = blockedStrategyIds;
|
|
51
|
+
copyBoolean(raw, normalized, 'generateTracks');
|
|
52
|
+
copyBoolean(raw, normalized, 'forceRefresh');
|
|
53
|
+
copyBoolean(raw, normalized, 'heavySkill');
|
|
54
|
+
copyBoolean(raw, normalized, 'longTask');
|
|
55
|
+
copyNumber(raw, normalized, 'maxRounds');
|
|
56
|
+
copyNumber(raw, normalized, 'confidenceThreshold');
|
|
57
|
+
copyNumber(raw, normalized, 'maxNoProgressRounds');
|
|
58
|
+
copyNumber(raw, normalized, 'maxFailureRounds');
|
|
59
|
+
copyNumber(raw, normalized, 'maxConcurrentTasks');
|
|
60
|
+
copyNumber(raw, normalized, 'taskTimeoutMs');
|
|
61
|
+
copyNumber(raw, normalized, 'estimatedSqlMs');
|
|
62
|
+
copyNumber(raw, normalized, 'traceSizeBytes');
|
|
63
|
+
copyString(raw, normalized, 'packageName');
|
|
64
|
+
if (raw.selectionContext && typeof raw.selectionContext === 'object') {
|
|
65
|
+
normalized.selectionContext = raw.selectionContext;
|
|
66
|
+
}
|
|
67
|
+
if (raw.timeRange && typeof raw.timeRange === 'object') {
|
|
68
|
+
normalized.timeRange = raw.timeRange;
|
|
69
|
+
}
|
|
70
|
+
if (raw.adb && typeof raw.adb === 'object') {
|
|
71
|
+
normalized.adb = raw.adb;
|
|
72
|
+
}
|
|
73
|
+
return normalized;
|
|
74
|
+
}
|
|
75
|
+
function normalizeAnalysisMode(value) {
|
|
76
|
+
return value === 'fast' || value === 'full' || value === 'auto'
|
|
77
|
+
? value
|
|
78
|
+
: 'auto';
|
|
79
|
+
}
|
|
80
|
+
function normalizePreset(value) {
|
|
81
|
+
if (value === undefined || value === null || value === '')
|
|
82
|
+
return undefined;
|
|
83
|
+
if (value === 'smart')
|
|
84
|
+
return 'smart';
|
|
85
|
+
throw new AnalyzeOptionsError(`Unsupported analyze preset: ${String(value)}`, 'UNSUPPORTED_ANALYZE_PRESET');
|
|
86
|
+
}
|
|
87
|
+
function normalizeSmartAction(value, preset) {
|
|
88
|
+
if (!preset) {
|
|
89
|
+
if (value === undefined || value === null || value === '')
|
|
90
|
+
return undefined;
|
|
91
|
+
throw new AnalyzeOptionsError('smartAction requires preset=smart', 'SMART_ACTION_REQUIRES_SMART_PRESET');
|
|
92
|
+
}
|
|
93
|
+
if (value === undefined || value === null || value === '')
|
|
94
|
+
return 'preview';
|
|
95
|
+
if (value === 'preview' || value === 'analyze')
|
|
96
|
+
return value;
|
|
97
|
+
throw new AnalyzeOptionsError(`Unsupported smartAction: ${String(value)}`, 'UNSUPPORTED_SMART_ACTION');
|
|
98
|
+
}
|
|
99
|
+
function normalizeSmartSelection(value) {
|
|
100
|
+
if (value === undefined || value === null || value === '') {
|
|
101
|
+
return { scope: 'all' };
|
|
102
|
+
}
|
|
103
|
+
if (!value || typeof value !== 'object' || Array.isArray(value)) {
|
|
104
|
+
throw new AnalyzeOptionsError('smartSelection must be an object', 'INVALID_SMART_SELECTION');
|
|
105
|
+
}
|
|
106
|
+
const raw = value;
|
|
107
|
+
const scope = normalizeSmartSelectionScope(raw.scope);
|
|
108
|
+
const label = normalizeOptionalString(raw.label, 80);
|
|
109
|
+
const reportId = normalizeOptionalString(raw.reportId, 128);
|
|
110
|
+
const sceneSnapshotId = normalizeOptionalString(raw.sceneSnapshotId, 128);
|
|
111
|
+
const common = {
|
|
112
|
+
...(label ? { label } : {}),
|
|
113
|
+
...(reportId ? { reportId } : {}),
|
|
114
|
+
...(sceneSnapshotId ? { sceneSnapshotId } : {}),
|
|
115
|
+
};
|
|
116
|
+
if (scope === 'all') {
|
|
117
|
+
return { scope, ...common };
|
|
118
|
+
}
|
|
119
|
+
if (scope === 'scene_types') {
|
|
120
|
+
const sceneTypes = normalizeStringArray(raw.sceneTypes).slice(0, 64);
|
|
121
|
+
if (sceneTypes.length === 0) {
|
|
122
|
+
throw new AnalyzeOptionsError('smartSelection.sceneTypes is required for scene_types scope', 'INVALID_SMART_SELECTION');
|
|
123
|
+
}
|
|
124
|
+
return { scope, sceneTypes, ...common };
|
|
125
|
+
}
|
|
126
|
+
const sceneIds = normalizeStringArray(raw.sceneIds).slice(0, 128);
|
|
127
|
+
if (sceneIds.length === 0) {
|
|
128
|
+
throw new AnalyzeOptionsError('smartSelection.sceneIds is required for scene_ids scope', 'INVALID_SMART_SELECTION');
|
|
129
|
+
}
|
|
130
|
+
return { scope, sceneIds, ...common };
|
|
131
|
+
}
|
|
132
|
+
function normalizeSmartSelectionScope(value) {
|
|
133
|
+
if (value === 'all' || value === 'scene_types' || value === 'scene_ids') {
|
|
134
|
+
return value;
|
|
135
|
+
}
|
|
136
|
+
throw new AnalyzeOptionsError(`Unsupported smartSelection.scope: ${String(value)}`, 'INVALID_SMART_SELECTION');
|
|
137
|
+
}
|
|
138
|
+
function normalizeCodeAwareMode(value) {
|
|
139
|
+
if (value === 'off' || value === 'metadata_only' || value === 'provider_send') {
|
|
140
|
+
return value;
|
|
141
|
+
}
|
|
142
|
+
return undefined;
|
|
143
|
+
}
|
|
144
|
+
function normalizeStringArray(value) {
|
|
145
|
+
if (!Array.isArray(value))
|
|
146
|
+
return [];
|
|
147
|
+
const out = [];
|
|
148
|
+
const seen = new Set();
|
|
149
|
+
for (const item of value) {
|
|
150
|
+
if (typeof item !== 'string')
|
|
151
|
+
continue;
|
|
152
|
+
const text = item.trim();
|
|
153
|
+
if (!text || seen.has(text))
|
|
154
|
+
continue;
|
|
155
|
+
seen.add(text);
|
|
156
|
+
out.push(text);
|
|
157
|
+
}
|
|
158
|
+
return out;
|
|
159
|
+
}
|
|
160
|
+
function copyBoolean(raw, out, key) {
|
|
161
|
+
if (typeof raw[key] === 'boolean') {
|
|
162
|
+
out[key] = raw[key];
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
function copyNumber(raw, out, key) {
|
|
166
|
+
const value = raw[key];
|
|
167
|
+
if (typeof value === 'number' && Number.isFinite(value)) {
|
|
168
|
+
out[key] = value;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
function copyString(raw, out, key) {
|
|
172
|
+
const value = raw[key];
|
|
173
|
+
if (typeof value === 'string' && value.trim()) {
|
|
174
|
+
out[key] = value.trim();
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
function normalizeOptionalString(value, maxLen) {
|
|
178
|
+
if (typeof value !== 'string')
|
|
179
|
+
return undefined;
|
|
180
|
+
const text = value.trim();
|
|
181
|
+
if (!text)
|
|
182
|
+
return undefined;
|
|
183
|
+
return text.length > maxLen ? text.slice(0, maxLen) : text;
|
|
184
|
+
}
|
|
185
|
+
//# sourceMappingURL=normalizeAnalyzeOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeAnalyzeOptions.js","sourceRoot":"","sources":["../../../src/routes/agent/normalizeAnalyzeOptions.ts"],"names":[],"mappings":";AAAA,6CAA6C;AAC7C,0CAA0C;AAC1C,+DAA+D;;;AAmD/D,0DA2EC;AAtFD,MAAa,mBAAoB,SAAQ,KAAK;IAC5C,YACE,OAAe,EACN,IAAY,EACZ,aAAa,GAAG;QAEzB,K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Q,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QACvD,GAAW,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IAC5B,CAAC;AACH,CAAC;AAED,SAAS,UAAU,CACjB,GAA4B,EAC5B,GAA6B,EAC7B,GAA4C;IAE5C,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;IACvB,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;QAC7C,GAAW,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IACnC,CAAC;AACH,CAAC;AAED,SAAS,uBAAuB,CAAC,KAAc,EAAE,MAAc;IAC7D,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IAChD,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC1B,IAAI,CAAC,IAAI;QAAE,OAAO,SAAS,CAAC;IAC5B,OAAO,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentRoutes.d.ts","sourceRoot":"","sources":["../../src/routes/agentRoutes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agentRoutes.d.ts","sourceRoot":"","sources":["../../src/routes/agentRoutes.ts"],"names":[],"mappings":"AAmKA,QAAA,MAAM,MAAM,4CAAmB,CAAC;AA8+KhC,eAAe,MAAM,CAAC"}
|