noteconnection 1.7.0 → 1.9.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 +674 -21
- package/README.md +260 -1626
- package/dist/src/agent_workspace.contract.parity.test.js +159 -0
- package/dist/src/agent_workspace.frontend.test.js +10388 -0
- package/dist/src/agent_workspace.locale.contract.test.js +95 -0
- package/dist/src/agent_workspace.runtime.behavior.test.js +5072 -0
- package/dist/src/android.knowledgebase.picker.contract.test.js +102 -0
- package/dist/src/appimage.patchelf.test.js +113 -0
- package/dist/src/appimage.portability.test.js +156 -0
- package/dist/src/backend/FileLoader.js +18 -4
- package/dist/src/backend/FileLoader.test.js +125 -0
- package/dist/src/backend/GraphBuilder.identity.test.js +86 -0
- package/dist/src/backend/GraphBuilder.js +66 -18
- package/dist/src/backend/GraphBuilder.matching.test.js +127 -0
- package/dist/src/backend/GraphMetrics.js +0 -3
- package/dist/src/backend/ResourceIdentity.js +155 -0
- package/dist/src/backend/ResourceIdentity.test.js +113 -0
- package/dist/src/backend/algorithms/CycleDetection.js +0 -1
- package/dist/src/backend/algorithms/HybridEngine.js +0 -3
- package/dist/src/backend/algorithms/LayoutEngine.js +0 -1
- package/dist/src/backend/algorithms/StatisticalAnalyzer.js +0 -4
- package/dist/src/backend/algorithms/TopologicalSort.js +0 -2
- package/dist/src/backend/build_dag.js +0 -1
- package/dist/src/capacitor.bridge.serialization.contract.test.js +3 -0
- package/dist/src/capacitor.runtime.contract.test.js +11 -2
- package/dist/src/copy.assets.contract.test.js +130 -0
- package/dist/src/core/Graph.js +138 -42
- package/dist/src/core/Graph.test.js +74 -0
- package/dist/src/core/NoteConnection.js +2 -2
- package/dist/src/core/PathBridge.js +293 -5
- package/dist/src/core/ResourceReference.js +17 -0
- package/dist/src/desktop.godot.pack.test.js +142 -0
- package/dist/src/desktop.runtime.graph.test.js +66 -0
- package/dist/src/export/WorkspaceExportBundle.js +1174 -0
- package/dist/src/export/WorkspaceExportBundle.test.js +1541 -0
- package/dist/src/export/index.js +18 -0
- package/dist/src/export/types.js +2 -0
- package/dist/src/fixrisk.issue.verifier.contract.test.js +3 -1
- package/dist/src/foundation.ann.runtime.contract.test.js +81 -0
- package/dist/src/foundation.release.evidence.contract.test.js +524 -0
- package/dist/src/foundation.sqlite.runtime.contract.test.js +88 -0
- package/dist/src/frontend/README.md +260 -1626
- package/dist/src/frontend/agent_workspace.js +6011 -0
- package/dist/src/frontend/agent_workspace_runtime.js +4434 -0
- package/dist/src/frontend/analysis.js +31 -4
- package/dist/src/frontend/app.js +2178 -62
- package/dist/src/frontend/focus_mode_interactions.js +33 -0
- package/dist/src/frontend/godot_future_path_renderer.js +540 -0
- package/dist/src/frontend/godot_tree_interactions.js +178 -0
- package/dist/src/frontend/graph_state.mjs +105 -0
- package/dist/src/frontend/hosted_future_path_runtime.js +157 -0
- package/dist/src/frontend/i18n.mjs +186 -0
- package/dist/src/frontend/index.html +672 -268
- package/dist/src/frontend/knowledge_projection_contract.js +230 -0
- package/dist/src/frontend/knowledge_projection_store.js +214 -0
- package/dist/src/frontend/layout_gpu.js +12 -4
- package/dist/src/frontend/libs/path_core.js +158 -42
- package/dist/src/frontend/locales/en.json +753 -5
- package/dist/src/frontend/locales/zh.json +753 -5
- package/dist/src/frontend/main.mjs +60 -0
- package/dist/src/frontend/markdown_runtime.js +827 -0
- package/dist/src/frontend/mobile_budget_runtime.js +33 -0
- package/dist/src/frontend/mobile_exact_analyzer.js +393 -0
- package/dist/src/frontend/mobile_identity_contract.js +221 -0
- package/dist/src/frontend/mobile_semantic_comparator.js +264 -0
- package/dist/src/frontend/notemd.css +49 -0
- package/dist/src/frontend/notemd.html +7 -1
- package/dist/src/frontend/notemd.js +64 -0
- package/dist/src/frontend/path.html +113 -2
- package/dist/src/frontend/path_app.js +2108 -130
- package/dist/src/frontend/path_layout.mjs +143 -0
- package/dist/src/frontend/path_mermaid_utils.mjs +108 -0
- package/dist/src/frontend/path_modules_bridge.js +486 -0
- package/dist/src/frontend/path_state.mjs +118 -0
- package/dist/src/frontend/path_styles.css +146 -0
- package/dist/src/frontend/path_worker_bridge.mjs +85 -0
- package/dist/src/frontend/reader.js +393 -33
- package/dist/src/frontend/runtime_bridge.js +67 -54
- package/dist/src/frontend/runtime_bridge.mjs +279 -0
- package/dist/src/frontend/settings.js +130 -12
- package/dist/src/frontend/simulationWorker.js +1 -1
- package/dist/src/frontend/source_manager.js +297 -22
- package/dist/src/frontend/storage_provider.js +661 -71
- package/dist/src/frontend/styles.css +2814 -72
- package/dist/src/frontend/workbench_state.mjs +101 -0
- package/dist/src/frontend/workspace_panes.js +10272 -0
- package/dist/src/frontend.locale.contract.test.js +62 -0
- package/dist/src/frontend.runtime.assets.contract.test.js +81 -0
- package/dist/src/godot.sidecar.bootstrap.contract.test.js +244 -0
- package/dist/src/graph.answer.operator.contract.test.js +72 -0
- package/dist/src/index.js +6 -2
- package/dist/src/index.knowledge-root.test.js +118 -0
- package/dist/src/indexing/IndexLifecycle.js +217 -0
- package/dist/src/indexing/IndexLifecycle.test.js +73 -0
- package/dist/src/indexing/SegmentBuilder.js +64 -0
- package/dist/src/indexing/UnitBuilder.js +48 -0
- package/dist/src/indexing/types.js +2 -0
- package/dist/src/knowledge.api.contract.test.js +172 -0
- package/dist/src/knowledge_projection.contract.test.js +134 -0
- package/dist/src/knowledge_projection_store.test.js +200 -0
- package/dist/src/learning/AnswerQualityEvaluation.js +153 -0
- package/dist/src/learning/AnswerQualityEvaluation.test.js +118 -0
- package/dist/src/learning/KnowledgeLearningPlatform.js +11181 -0
- package/dist/src/learning/KnowledgeLearningPlatform.persistence.test.js +745 -0
- package/dist/src/learning/KnowledgeLearningPlatform.program-f.test.js +99 -0
- package/dist/src/learning/KnowledgeLearningPlatform.test.js +3208 -0
- package/dist/src/learning/KnowledgeWorkspaceConversationRegression.js +2998 -0
- package/dist/src/learning/KnowledgeWorkspaceConversationRegression.test.js +3936 -0
- package/dist/src/learning/MeasurementEvidenceConflicts.test.js +78 -0
- package/dist/src/learning/PublicAnswerContract.test.js +85 -0
- package/dist/src/learning/PublicEvidenceSelection.test.js +94 -0
- package/dist/src/learning/PublicMeasurementDisclosure.test.js +54 -0
- package/dist/src/learning/agentConversationExecution.js +211 -0
- package/dist/src/learning/agentConversationExecution.test.js +209 -0
- package/dist/src/learning/agentConversationSerialization.js +266 -0
- package/dist/src/learning/agentConversationSerialization.test.js +165 -0
- package/dist/src/learning/agentResponseBudget.js +179 -0
- package/dist/src/learning/agentResponseBudget.test.js +97 -0
- package/dist/src/learning/agentWorkspaceCapabilityContracts.js +65 -0
- package/dist/src/learning/answerReleaseReview.js +5260 -0
- package/dist/src/learning/answerReleaseReview.test.js +4174 -0
- package/dist/src/learning/answerTaskPlan.js +473 -0
- package/dist/src/learning/api.js +2 -0
- package/dist/src/learning/conversationComposer.js +1721 -0
- package/dist/src/learning/conversationComposer.test.js +3220 -0
- package/dist/src/learning/domains/ConversationManager.js +53 -0
- package/dist/src/learning/domains/KnowledgeIngestor.js +238 -0
- package/dist/src/learning/domains/KnowledgeQuerier.js +187 -0
- package/dist/src/learning/domains/MasteryEngine.js +387 -0
- package/dist/src/learning/domains/MemoryPolicyManager.js +408 -0
- package/dist/src/learning/domains/QualityEvaluator.js +307 -0
- package/dist/src/learning/domains/TutorRouter.js +313 -0
- package/dist/src/learning/domains/index.js +33 -0
- package/dist/src/learning/domains/types.js +7 -0
- package/dist/src/learning/errors.js +29 -0
- package/dist/src/learning/evidenceContextAssembler.js +1368 -0
- package/dist/src/learning/evidenceContextAssembler.test.js +6332 -0
- package/dist/src/learning/graphAnswerCoverage.js +37 -0
- package/dist/src/learning/graphAnswerCoverage.test.js +93 -0
- package/dist/src/learning/graphAnswerCoverageCalibration.js +59 -0
- package/dist/src/learning/graphAnswerCoverageCalibration.test.js +46 -0
- package/dist/src/learning/graphAnswerFacts.js +94 -0
- package/dist/src/learning/graphAnswerFacts.test.js +39 -0
- package/dist/src/learning/graphAnswerPlan.js +908 -0
- package/dist/src/learning/graphAnswerPlan.test.js +907 -0
- package/dist/src/learning/graphAnswerQualityCalibration.js +255 -0
- package/dist/src/learning/graphAnswerQualityCalibration.test.js +72 -0
- package/dist/src/learning/graphAnswerQualityPolicy.js +30 -0
- package/dist/src/learning/graphClaimMatcher.js +104 -0
- package/dist/src/learning/graphConditionedContext.js +109 -0
- package/dist/src/learning/graphConditionedContext.test.js +99 -0
- package/dist/src/learning/graphContextAssembler.js +860 -0
- package/dist/src/learning/graphContextAssembler.test.js +1033 -0
- package/dist/src/learning/graphExpansionPolicy.js +22 -0
- package/dist/src/learning/graphExpansionPolicy.test.js +33 -0
- package/dist/src/learning/identityMetadata.test.js +26 -0
- package/dist/src/learning/index.js +29 -0
- package/dist/src/learning/mobileAnswerProjection.js +104 -0
- package/dist/src/learning/mobileAnswerProjection.test.js +102 -0
- package/dist/src/learning/queryBackend.js +1922 -0
- package/dist/src/learning/queryBackend.test.js +976 -0
- package/dist/src/learning/ragContextPack.js +356 -0
- package/dist/src/learning/ragContextPack.test.js +311 -0
- package/dist/src/learning/ragEvidenceQuality.js +96 -0
- package/dist/src/learning/ragEvidenceQuality.test.js +29 -0
- package/dist/src/learning/ragPublicText.js +101 -0
- package/dist/src/learning/ragPublicText.test.js +57 -0
- package/dist/src/learning/ragSufficiencyJudge.js +171 -0
- package/dist/src/learning/ragSufficiencyJudge.test.js +177 -0
- package/dist/src/learning/ragSufficiencyProviderJudge.js +217 -0
- package/dist/src/learning/ragSufficiencyProviderJudge.test.js +207 -0
- package/dist/src/learning/requestNormalization.js +304 -0
- package/dist/src/learning/requestNormalization.test.js +101 -0
- package/dist/src/learning/runtimeCapability.js +4677 -0
- package/dist/src/learning/runtimeCapability.test.js +3635 -0
- package/dist/src/learning/store.js +1344 -0
- package/dist/src/learning/store.test.js +1425 -0
- package/dist/src/learning/tutorAdapter.js +2 -0
- package/dist/src/learning/types.js +2 -0
- package/dist/src/learning/vectorAccelerationAdapter.js +958 -0
- package/dist/src/learning/vectorAccelerationAdapter.test.js +412 -0
- package/dist/src/learning/workspaceHydration.js +168 -0
- package/dist/src/learning/workspaceHydration.test.js +30 -0
- package/dist/src/lfs.asset.policy.contract.test.js +153 -0
- package/dist/src/license.policy.contract.test.js +71 -0
- package/dist/src/markdown/MarkdownGateway.js +4 -0
- package/dist/src/markdown/MarkdownGateway.test.js +59 -0
- package/dist/src/memory/MemoryGovernance.js +74 -0
- package/dist/src/memory/MemoryGovernance.test.js +46 -0
- package/dist/src/memory/types.js +2 -0
- package/dist/src/mermaid.frontend.guard.contract.test.js +77 -0
- package/dist/src/middleware/SseResponseWriter.js +122 -0
- package/dist/src/middleware/SseResponseWriter.test.js +54 -0
- package/dist/src/middleware/auth.js +38 -0
- package/dist/src/middleware/auth.test.js +33 -0
- package/dist/src/middleware/body-parser.js +45 -0
- package/dist/src/middleware/cors.js +44 -0
- package/dist/src/middleware/index.js +22 -0
- package/dist/src/middleware/request-trace.js +96 -0
- package/dist/src/mobile.android.evidence.contract.test.js +146 -0
- package/dist/src/mobile.android.signing.contract.test.js +66 -0
- package/dist/src/mobile.artifact.contract.test.js +144 -0
- package/dist/src/mobile.budget.contract.test.js +90 -0
- package/dist/src/mobile.canonical-id.readiness.test.js +54 -0
- package/dist/src/mobile.graph.parity.contract.test.js +207 -0
- package/dist/src/mobile.identity.contract.test.js +66 -0
- package/dist/src/mobile.identity.corpus.manifest.test.js +72 -0
- package/dist/src/mobile.identity.corpus.test.js +40 -0
- package/dist/src/mobile.native.recovery.contract.test.js +64 -0
- package/dist/src/mobile.pipeline.test.js +11 -1
- package/dist/src/mobile.profile.contract.test.js +225 -0
- package/dist/src/mobile.semantic.parity.test.js +92 -0
- package/dist/src/mobile_exact_analyzer.test.js +113 -0
- package/dist/src/notemd/AppConfigToml.js +6 -4
- package/dist/src/notemd/ContentGenerator.js +4 -9
- package/dist/src/notemd/FileProcessor.js +4 -9
- package/dist/src/notemd/MermaidProcessor.js +400 -50
- package/dist/src/notemd/NotemdService.js +506 -26
- package/dist/src/notemd/PromptManager.js +15 -0
- package/dist/src/notemd/Translator.js +4 -9
- package/dist/src/notemd/cli/commands.js +357 -0
- package/dist/src/notemd/cli/dispatcher.js +225 -0
- package/dist/src/notemd/cli/index.js +169 -0
- package/dist/src/notemd/cli/parser.js +68 -0
- package/dist/src/notemd/cli/types.js +2 -0
- package/dist/src/notemd/constants.js +43 -0
- package/dist/src/notemd/diagram/diagramGenerationService.js +78 -0
- package/dist/src/notemd/diagram/diagramSpec.js +79 -0
- package/dist/src/notemd/diagram/diagramSpecResponseParser.js +131 -0
- package/dist/src/notemd/diagram/intent.js +95 -0
- package/dist/src/notemd/diagram/planner.js +71 -0
- package/dist/src/notemd/diagram/prompts/diagramSpecPrompt.js +42 -0
- package/dist/src/notemd/diagram/types.js +18 -0
- package/dist/src/notemd/index.js +26 -0
- package/dist/src/notemd/operations/capabilityManifest.js +23 -0
- package/dist/src/notemd/operations/cliContracts.js +17 -0
- package/dist/src/notemd/operations/configProfileCommands.js +85 -0
- package/dist/src/notemd/operations/registry.contract.test.js +95 -0
- package/dist/src/notemd/operations/registry.js +991 -0
- package/dist/src/notemd/operations/types.js +2 -0
- package/dist/src/notemd/progressReporter.js +9 -0
- package/dist/src/notemd/providerDiagnostics.js +220 -0
- package/dist/src/notemd/providerProfiles.js +42 -0
- package/dist/src/notemd/providerTemplates.js +231 -0
- package/dist/src/notemd/search/DuckDuckGoProvider.js +39 -0
- package/dist/src/notemd/search/SearchManager.js +13 -0
- package/dist/src/notemd/search/SearchProvider.js +2 -0
- package/dist/src/notemd/search/TavilyProvider.js +44 -0
- package/dist/src/notemd.agent.manifest.test.js +85 -0
- package/dist/src/notemd.api.contract.test.js +14 -1
- package/dist/src/notemd.app_config_toml.test.js +2 -1
- package/dist/src/notemd.batch.workflow.test.js +117 -0
- package/dist/src/notemd.cli.e2e.test.js +136 -0
- package/dist/src/notemd.core.test.js +51 -0
- package/dist/src/notemd.diagram.pipeline.test.js +233 -0
- package/dist/src/notemd.providerTemplates.test.js +34 -0
- package/dist/src/notemd.server.integration.test.js +262 -39
- package/dist/src/notemd.workflow.pipeline.test.js +162 -0
- package/dist/src/pathbridge.handshake.contract.test.js +45 -2
- package/dist/src/pathbridge.host-adapter.contract.test.js +133 -0
- package/dist/src/pathcore.bundle.contract.test.js +8 -0
- package/dist/src/pathmode.background.contract.test.js +69 -0
- package/dist/src/pathmode.settings.api.contract.test.js +9 -0
- package/dist/src/pkg.sidecar.contract.test.js +9 -3
- package/dist/src/platform/ExportProfile.js +86 -0
- package/dist/src/platform/MobileBudget.js +11 -0
- package/dist/src/platform/PlatformCapabilities.js +59 -0
- package/dist/src/platform/PlatformCapabilities.test.js +36 -0
- package/dist/src/platform/RenderMaterializer.js +33 -0
- package/dist/src/platform/RenderMaterializer.test.js +32 -0
- package/dist/src/query_backend.external_http.integration.test.js +410 -0
- package/dist/src/reader_renderer.js +404 -3
- package/dist/src/reader_renderer.test.js +87 -0
- package/dist/src/release.godot.mirror.contract.test.js +97 -0
- package/dist/src/resources/ResourceRegistry.js +263 -0
- package/dist/src/resources/ResourceRegistry.test.js +97 -0
- package/dist/src/resources/types.js +2 -0
- package/dist/src/routes/agentWorkspaceDiagnostics.js +173 -0
- package/dist/src/routes/index.js +19 -0
- package/dist/src/routes/knowledge.js +981 -0
- package/dist/src/routes/knowledgePayload.js +185 -0
- package/dist/src/routes/knowledgePayload.test.js +53 -0
- package/dist/src/routes/markdown.js +295 -0
- package/dist/src/routes/notemd.js +1321 -0
- package/dist/src/routes/registry.contract.test.js +133 -0
- package/dist/src/routes/registry.shadow.contract.test.js +22 -0
- package/dist/src/routes/render.js +248 -0
- package/dist/src/routes/runtimeRunbookRouteOps.js +149 -0
- package/dist/src/routes/runtimeRunbookRouteOps.test.js +194 -0
- package/dist/src/routes/settings.js +6 -0
- package/dist/src/routes/staticFiles.js +94 -0
- package/dist/src/routes/types.js +2 -0
- package/dist/src/runtime.capabilities.test.js +18 -2
- package/dist/src/runtime.transport.adapter.contract.test.js +81 -0
- package/dist/src/server.js +10342 -1325
- package/dist/src/server.migration.test.js +584 -10
- package/dist/src/server.port.fallback.contract.test.js +63 -0
- package/dist/src/session/SessionStateStore.js +81 -0
- package/dist/src/session/SessionStateStore.test.js +58 -0
- package/dist/src/session/types.js +2 -0
- package/dist/src/settings.runtime.contract.test.js +50 -0
- package/dist/src/shared/types.contract.test.js +107 -0
- package/dist/src/shared/types.js +22 -0
- package/dist/src/sidecar.build.lock.contract.test.js +201 -0
- package/dist/src/sidecar.freshness.contract.test.js +184 -0
- package/dist/src/sidecar.replacement.boundary.contract.test.js +131 -0
- package/dist/src/sidecar.supply.readiness.contract.test.js +155 -0
- package/dist/src/simulation.worker.offline.test.js +104 -0
- package/dist/src/source_manager.loadflow.test.js +46 -0
- package/dist/src/startup.layout.snapshot.contract.test.js +57 -0
- package/dist/src/storage.provider.capacitor.content.contract.test.js +4 -1
- package/dist/src/storage.provider.contract.test.js +152 -1
- package/dist/src/tauri.frontend.build.contract.test.js +68 -0
- package/dist/src/tauri.sidecar.cleanup.contract.test.js +21 -0
- package/dist/src/tauri.window.evidence.execution.test.js +68 -0
- package/dist/src/utils/RuntimePaths.js +10 -13
- package/dist/src/utils/RuntimePaths.test.js +27 -0
- package/dist/src/utils/platform.js +153 -0
- package/dist/src/windows.installer.build.test.js +109 -0
- package/dist/src/windows.installer.payload.test.js +76 -0
- package/dist/src/windows.installer.runtime.test.js +69 -0
- package/dist/src/workflows/WorkflowArtifactStore.js +96 -0
- package/dist/src/workflows/WorkflowArtifactStore.test.js +80 -0
- package/dist/src/workflows/types.js +2 -0
- package/dist/src/workspace/WorkspaceRegistry.js +135 -0
- package/dist/src/workspace/WorkspaceRegistry.test.js +29 -0
- package/dist/src/workspace/types.js +2 -0
- package/package.json +80 -15
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.normalizeKnowledgeCorpusScopePayload = normalizeKnowledgeCorpusScopePayload;
|
|
4
|
+
exports.normalizeKnowledgeQueryRequestPayload = normalizeKnowledgeQueryRequestPayload;
|
|
5
|
+
exports.normalizeAgentConversationRequestPayload = normalizeAgentConversationRequestPayload;
|
|
6
|
+
exports.normalizeWorkflowArtifactReviewFollowUpRequestPayload = normalizeWorkflowArtifactReviewFollowUpRequestPayload;
|
|
7
|
+
function isObjectRecord(value) {
|
|
8
|
+
return Boolean(value) && typeof value === 'object' && !Array.isArray(value);
|
|
9
|
+
}
|
|
10
|
+
function readFirstPresentValue(record, keys) {
|
|
11
|
+
for (const key of keys) {
|
|
12
|
+
if (Object.prototype.hasOwnProperty.call(record, key)) {
|
|
13
|
+
return record[key];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
function readFirstNonEmptyString(record, keys) {
|
|
19
|
+
const value = readFirstPresentValue(record, keys);
|
|
20
|
+
return typeof value === 'string' ? value.trim() : '';
|
|
21
|
+
}
|
|
22
|
+
function parsePositiveIntegerValue(value) {
|
|
23
|
+
const numeric = Number(value);
|
|
24
|
+
if (!Number.isFinite(numeric) || numeric <= 0) {
|
|
25
|
+
return 0;
|
|
26
|
+
}
|
|
27
|
+
return Math.floor(numeric);
|
|
28
|
+
}
|
|
29
|
+
function normalizeAnswerLanguageValue(value) {
|
|
30
|
+
const normalized = String(value || '')
|
|
31
|
+
.trim()
|
|
32
|
+
.toLowerCase()
|
|
33
|
+
.replace(/_/gu, '-');
|
|
34
|
+
if (!normalized) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (normalized === 'auto') {
|
|
38
|
+
return 'auto';
|
|
39
|
+
}
|
|
40
|
+
if (normalized === 'zh'
|
|
41
|
+
|| normalized.startsWith('zh-')
|
|
42
|
+
|| ['chinese', 'mandarin', 'simplified-chinese', 'traditional-chinese'].includes(normalized)) {
|
|
43
|
+
return 'zh';
|
|
44
|
+
}
|
|
45
|
+
if (normalized === 'en'
|
|
46
|
+
|| normalized.startsWith('en-')
|
|
47
|
+
|| normalized === 'english') {
|
|
48
|
+
return 'en';
|
|
49
|
+
}
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
function normalizeResponseProfileValue(value) {
|
|
53
|
+
const normalized = String(value || '').trim().toLowerCase().replace(/[-\s]+/gu, '_');
|
|
54
|
+
if (normalized === 'default') {
|
|
55
|
+
return 'default';
|
|
56
|
+
}
|
|
57
|
+
if (normalized === 'mobile_compact' || normalized === 'mobile') {
|
|
58
|
+
return 'mobile_compact';
|
|
59
|
+
}
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
function normalizeResponseModeValue(value) {
|
|
63
|
+
const normalized = String(value || '').trim().toLowerCase().replace(/[-\s]+/gu, '_');
|
|
64
|
+
if (normalized === 'slim' || normalized === 'definition' || normalized === 'compact' || normalized === 'default') {
|
|
65
|
+
return 'slim';
|
|
66
|
+
}
|
|
67
|
+
if (normalized === 'full' || normalized === 'comprehensive' || normalized === 'report') {
|
|
68
|
+
return 'full';
|
|
69
|
+
}
|
|
70
|
+
return undefined;
|
|
71
|
+
}
|
|
72
|
+
function normalizeResponseBudgetModeValue(value) {
|
|
73
|
+
const normalized = String(value || '').trim().toLowerCase().replace(/[-\s]+/gu, '_');
|
|
74
|
+
if (!normalized || ['adaptive', 'default', 'standard', 'auto'].includes(normalized)) {
|
|
75
|
+
return 'adaptive';
|
|
76
|
+
}
|
|
77
|
+
if (['unbounded', 'no_cap', 'nocap', 'no_limit', 'nolimit', 'unlimited'].includes(normalized)) {
|
|
78
|
+
return 'unbounded';
|
|
79
|
+
}
|
|
80
|
+
return 'adaptive';
|
|
81
|
+
}
|
|
82
|
+
function normalizeResponseBudgetCapabilityValue(value) {
|
|
83
|
+
if (!isObjectRecord(value)) {
|
|
84
|
+
return undefined;
|
|
85
|
+
}
|
|
86
|
+
const memoryClass = String(value.memoryClass || value.memory_class || '')
|
|
87
|
+
.trim()
|
|
88
|
+
.toLowerCase()
|
|
89
|
+
.replace(/[-\s]+/gu, '_');
|
|
90
|
+
const workload = String(value.workload || value.workload_class || '')
|
|
91
|
+
.trim()
|
|
92
|
+
.toLowerCase()
|
|
93
|
+
.replace(/[-\s]+/gu, '_');
|
|
94
|
+
const normalizePositiveHint = (hint) => {
|
|
95
|
+
const numeric = Number(hint);
|
|
96
|
+
return Number.isFinite(numeric) && numeric > 0 ? Math.floor(numeric) : undefined;
|
|
97
|
+
};
|
|
98
|
+
const normalized = {};
|
|
99
|
+
if (['low', 'standard', 'high'].includes(memoryClass)) {
|
|
100
|
+
normalized.memoryClass = memoryClass;
|
|
101
|
+
}
|
|
102
|
+
if (['normal', 'large', 'max'].includes(workload)) {
|
|
103
|
+
normalized.workload = workload;
|
|
104
|
+
}
|
|
105
|
+
const maxReportCharsHint = normalizePositiveHint(value.maxReportCharsHint ?? value.max_report_chars_hint);
|
|
106
|
+
if (maxReportCharsHint !== undefined) {
|
|
107
|
+
normalized.maxReportCharsHint = maxReportCharsHint;
|
|
108
|
+
}
|
|
109
|
+
const maxSerializedBytesHint = normalizePositiveHint(value.maxSerializedBytesHint ?? value.max_serialized_bytes_hint);
|
|
110
|
+
if (maxSerializedBytesHint !== undefined) {
|
|
111
|
+
normalized.maxSerializedBytesHint = maxSerializedBytesHint;
|
|
112
|
+
}
|
|
113
|
+
return Object.keys(normalized).length > 0 ? normalized : undefined;
|
|
114
|
+
}
|
|
115
|
+
function normalizeStringList(values, options = {}) {
|
|
116
|
+
const list = Array.isArray(values) ? values : [];
|
|
117
|
+
const normalized = list
|
|
118
|
+
.map((value) => String(value || '').trim())
|
|
119
|
+
.map((value) => options.normalize ? options.normalize(value) : value)
|
|
120
|
+
.filter((value) => value.length > 0);
|
|
121
|
+
return Array.from(new Set(normalized));
|
|
122
|
+
}
|
|
123
|
+
function normalizePathPrefix(value) {
|
|
124
|
+
return value.replace(/\\/g, '/').replace(/\/{2,}/g, '/').replace(/\/+$/g, '');
|
|
125
|
+
}
|
|
126
|
+
function normalizeKnowledgeCorpusScopePayload(payload) {
|
|
127
|
+
const record = isObjectRecord(payload) ? payload : {};
|
|
128
|
+
const nestedScope = isObjectRecord(record.scope) ? record.scope : {};
|
|
129
|
+
const workspaceId = readFirstNonEmptyString(record, ['workspaceId', 'workspace_id'])
|
|
130
|
+
|| readFirstNonEmptyString(nestedScope, ['workspaceId', 'workspace_id']);
|
|
131
|
+
const corpusId = readFirstNonEmptyString(record, ['corpusId', 'corpus_id'])
|
|
132
|
+
|| readFirstNonEmptyString(nestedScope, ['corpusId', 'corpus_id']);
|
|
133
|
+
const documentIds = normalizeStringList(readFirstPresentValue(record, ['documentIds', 'document_ids'])
|
|
134
|
+
?? readFirstPresentValue(nestedScope, ['documentIds', 'document_ids']));
|
|
135
|
+
const atomIds = normalizeStringList(readFirstPresentValue(record, ['atomIds', 'atom_ids'])
|
|
136
|
+
?? readFirstPresentValue(nestedScope, ['atomIds', 'atom_ids']));
|
|
137
|
+
const sourcePathPrefixes = normalizeStringList(readFirstPresentValue(record, ['sourcePathPrefixes', 'source_path_prefixes'])
|
|
138
|
+
?? readFirstPresentValue(nestedScope, ['sourcePathPrefixes', 'source_path_prefixes']), { normalize: normalizePathPrefix });
|
|
139
|
+
const languages = normalizeStringList(readFirstPresentValue(record, ['languages', 'languageScope'])
|
|
140
|
+
?? readFirstPresentValue(nestedScope, ['languages', 'languageScope']), { normalize: (value) => value.toLowerCase() });
|
|
141
|
+
if (!workspaceId && !corpusId && documentIds.length <= 0 && atomIds.length <= 0 && sourcePathPrefixes.length <= 0 && languages.length <= 0) {
|
|
142
|
+
return undefined;
|
|
143
|
+
}
|
|
144
|
+
return {
|
|
145
|
+
workspaceId: workspaceId || undefined,
|
|
146
|
+
corpusId: corpusId || undefined,
|
|
147
|
+
documentIds: documentIds.length > 0 ? documentIds : undefined,
|
|
148
|
+
atomIds: atomIds.length > 0 ? atomIds : undefined,
|
|
149
|
+
sourcePathPrefixes: sourcePathPrefixes.length > 0 ? sourcePathPrefixes : undefined,
|
|
150
|
+
languages: languages.length > 0 ? languages : undefined,
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
function normalizeKnowledgeQueryRequestPayload(payload) {
|
|
154
|
+
const record = isObjectRecord(payload) ? payload : {};
|
|
155
|
+
const query = readFirstNonEmptyString(record, ['query', 'q']) || '';
|
|
156
|
+
const topKValue = parsePositiveIntegerValue(readFirstPresentValue(record, ['topK', 'k', 'limit']));
|
|
157
|
+
const asOf = readFirstNonEmptyString(record, ['asOf', 'as_of', 'timestamp']);
|
|
158
|
+
const queryBackend = readFirstNonEmptyString(record, ['queryBackend', 'backend', 'query_backend']);
|
|
159
|
+
return {
|
|
160
|
+
query,
|
|
161
|
+
topK: topKValue > 0 ? topKValue : undefined,
|
|
162
|
+
asOf,
|
|
163
|
+
queryBackend,
|
|
164
|
+
scope: normalizeKnowledgeCorpusScopePayload(record),
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
function normalizeAgentConversationRequestPayload(payload) {
|
|
168
|
+
const record = isObjectRecord(payload) ? payload : {};
|
|
169
|
+
const topKValue = parsePositiveIntegerValue(readFirstPresentValue(record, ['topK', 'k', 'limit']));
|
|
170
|
+
const answerLanguage = normalizeAnswerLanguageValue(readFirstPresentValue(record, ['answerLanguage', 'answer_language', 'responseLanguage', 'response_language']));
|
|
171
|
+
const responseProfile = normalizeResponseProfileValue(readFirstPresentValue(record, ['responseProfile', 'response_profile', 'profile']));
|
|
172
|
+
const responseMode = normalizeResponseModeValue(readFirstPresentValue(record, ['responseMode', 'response_mode', 'answerMode', 'answer_mode', 'detailMode', 'detail_mode']));
|
|
173
|
+
const responseBudgetMode = normalizeResponseBudgetModeValue(readFirstPresentValue(record, [
|
|
174
|
+
'responseBudgetMode',
|
|
175
|
+
'response_budget_mode',
|
|
176
|
+
'budgetMode',
|
|
177
|
+
'budget_mode',
|
|
178
|
+
]));
|
|
179
|
+
const responseBudgetCapability = normalizeResponseBudgetCapabilityValue(readFirstPresentValue(record, [
|
|
180
|
+
'responseBudgetCapability',
|
|
181
|
+
'response_budget_capability',
|
|
182
|
+
'budgetCapability',
|
|
183
|
+
'budget_capability',
|
|
184
|
+
]));
|
|
185
|
+
return {
|
|
186
|
+
userId: String(readFirstPresentValue(record, ['userId', 'user_id', 'learnerId']) || '').trim(),
|
|
187
|
+
sessionId: readFirstNonEmptyString(record, ['sessionId', 'session_id']),
|
|
188
|
+
activeTarget: readFirstNonEmptyString(record, ['activeTarget', 'active_target', 'target']),
|
|
189
|
+
message: readFirstNonEmptyString(record, ['message', 'prompt', 'query', 'q', 'text']) || '',
|
|
190
|
+
answerLanguage,
|
|
191
|
+
responseMode,
|
|
192
|
+
responseBudgetMode,
|
|
193
|
+
responseBudgetCapability,
|
|
194
|
+
responseProfile,
|
|
195
|
+
topK: topKValue > 0 ? topKValue : undefined,
|
|
196
|
+
asOf: readFirstNonEmptyString(record, ['asOf', 'as_of', 'timestamp', 'now']),
|
|
197
|
+
persistMemory: readFirstPresentValue(record, ['persistMemory', 'persist_memory']) !== false,
|
|
198
|
+
memoryNamespace: readFirstNonEmptyString(record, ['memoryNamespace', 'memory_namespace']),
|
|
199
|
+
scope: normalizeKnowledgeCorpusScopePayload(record),
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
function normalizeBooleanFlagOrUndefined(value) {
|
|
203
|
+
if (typeof value === 'boolean') {
|
|
204
|
+
return value;
|
|
205
|
+
}
|
|
206
|
+
const normalized = typeof value === 'string' ? value.trim().toLowerCase() : '';
|
|
207
|
+
if (!normalized) {
|
|
208
|
+
return undefined;
|
|
209
|
+
}
|
|
210
|
+
if (normalized === 'true' || normalized === '1' || normalized === 'yes' || normalized === 'on') {
|
|
211
|
+
return true;
|
|
212
|
+
}
|
|
213
|
+
if (normalized === 'false' || normalized === '0' || normalized === 'no' || normalized === 'off') {
|
|
214
|
+
return false;
|
|
215
|
+
}
|
|
216
|
+
return undefined;
|
|
217
|
+
}
|
|
218
|
+
function normalizeMemoryLayerValue(value) {
|
|
219
|
+
const normalized = String(value || '').trim().toLowerCase();
|
|
220
|
+
if (normalized === 'session') {
|
|
221
|
+
return 'session';
|
|
222
|
+
}
|
|
223
|
+
if (normalized === 'unit') {
|
|
224
|
+
return 'unit';
|
|
225
|
+
}
|
|
226
|
+
if (normalized === 'long_term' || normalized === 'long-term' || normalized === 'longterm') {
|
|
227
|
+
return 'long_term';
|
|
228
|
+
}
|
|
229
|
+
return undefined;
|
|
230
|
+
}
|
|
231
|
+
function normalizeWorkflowArtifactReviewFollowUpRequestPayload(payload) {
|
|
232
|
+
const record = isObjectRecord(payload) ? payload : {};
|
|
233
|
+
const actionRecord = isObjectRecord(record.action) ? record.action : {};
|
|
234
|
+
const actionSource = readFirstNonEmptyString(actionRecord, ['source', 'actionSource'])
|
|
235
|
+
|| readFirstNonEmptyString(record, ['source', 'actionSource']);
|
|
236
|
+
const actionKind = readFirstNonEmptyString(actionRecord, ['kind', 'learningActionKind', 'actionKind'])
|
|
237
|
+
|| readFirstNonEmptyString(record, ['kind', 'learningActionKind', 'actionKind']);
|
|
238
|
+
const outcome = readFirstNonEmptyString(record, ['outcome']);
|
|
239
|
+
return {
|
|
240
|
+
userId: String(readFirstPresentValue(record, ['userId', 'user_id', 'learnerId']) || '').trim(),
|
|
241
|
+
sessionId: readFirstNonEmptyString(record, ['sessionId', 'session_id']),
|
|
242
|
+
artifactId: readFirstNonEmptyString(record, ['artifactId', 'artifact_id']),
|
|
243
|
+
cardId: readFirstNonEmptyString(record, ['cardId', 'card_id']),
|
|
244
|
+
action: {
|
|
245
|
+
atomId: readFirstNonEmptyString(actionRecord, ['atomId', 'atom_id'])
|
|
246
|
+
|| readFirstNonEmptyString(record, ['atomId', 'atom_id']),
|
|
247
|
+
kind: actionKind
|
|
248
|
+
? actionKind
|
|
249
|
+
: undefined,
|
|
250
|
+
source: (actionSource || 'flashcard_batch'),
|
|
251
|
+
prompt: readFirstNonEmptyString(actionRecord, ['prompt'])
|
|
252
|
+
|| readFirstNonEmptyString(record, ['prompt']),
|
|
253
|
+
answer: readFirstNonEmptyString(actionRecord, ['answer'])
|
|
254
|
+
|| readFirstNonEmptyString(record, ['answer']),
|
|
255
|
+
},
|
|
256
|
+
outcome: outcome
|
|
257
|
+
? outcome
|
|
258
|
+
: undefined,
|
|
259
|
+
errorTag: readFirstNonEmptyString(record, ['errorTag', 'mistakeTag', 'misconceptionTag']),
|
|
260
|
+
autoAnalyzeAnswer: normalizeBooleanFlagOrUndefined(readFirstPresentValue(record, ['autoAnalyzeAnswer', 'analyzeAnswer'])),
|
|
261
|
+
autoUpdateMasteryFromAnswer: normalizeBooleanFlagOrUndefined(readFirstPresentValue(record, [
|
|
262
|
+
'autoUpdateMasteryFromAnswer',
|
|
263
|
+
'updateMasteryFromAnswer',
|
|
264
|
+
'inferMasteryFromAnswer',
|
|
265
|
+
])),
|
|
266
|
+
executedAt: readFirstNonEmptyString(record, ['executedAt', 'timestamp', 'now']),
|
|
267
|
+
persistMemory: normalizeBooleanFlagOrUndefined(readFirstPresentValue(record, ['persistMemory', 'persist', 'persist_memory'])),
|
|
268
|
+
memoryLayer: normalizeMemoryLayerValue(readFirstPresentValue(record, ['memoryLayer', 'layer'])),
|
|
269
|
+
tutorAdapterId: readFirstNonEmptyString(record, ['tutorAdapterId', 'adapterId']),
|
|
270
|
+
tutorProviderName: readFirstNonEmptyString(record, ['tutorProviderName', 'providerName']),
|
|
271
|
+
tutorProviderMode: readFirstNonEmptyString(record, ['tutorProviderMode', 'providerMode']),
|
|
272
|
+
autoPromoteMemory: normalizeBooleanFlagOrUndefined(readFirstPresentValue(record, [
|
|
273
|
+
'autoPromoteMemory',
|
|
274
|
+
'promoteMemory',
|
|
275
|
+
'autoPromote',
|
|
276
|
+
'promote_memory',
|
|
277
|
+
])),
|
|
278
|
+
promoteMemoryTargetLayer: normalizeMemoryLayerValue(readFirstPresentValue(record, [
|
|
279
|
+
'promoteMemoryTargetLayer',
|
|
280
|
+
'promoteTargetLayer',
|
|
281
|
+
'targetLayer',
|
|
282
|
+
'toLayer',
|
|
283
|
+
])),
|
|
284
|
+
promoteMemoryMinConfidence: Number.isFinite(Number(readFirstPresentValue(record, [
|
|
285
|
+
'promoteMemoryMinConfidence',
|
|
286
|
+
'promoteMinConfidence',
|
|
287
|
+
'minPromotionConfidence',
|
|
288
|
+
'minConfidence',
|
|
289
|
+
])))
|
|
290
|
+
? Number(readFirstPresentValue(record, [
|
|
291
|
+
'promoteMemoryMinConfidence',
|
|
292
|
+
'promoteMinConfidence',
|
|
293
|
+
'minPromotionConfidence',
|
|
294
|
+
'minConfidence',
|
|
295
|
+
]))
|
|
296
|
+
: undefined,
|
|
297
|
+
promoteMemoryRemoveFromSource: normalizeBooleanFlagOrUndefined(readFirstPresentValue(record, [
|
|
298
|
+
'promoteMemoryRemoveFromSource',
|
|
299
|
+
'promoteRemoveFromSource',
|
|
300
|
+
'removeFromSource',
|
|
301
|
+
'remove_source',
|
|
302
|
+
])),
|
|
303
|
+
};
|
|
304
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const requestNormalization_1 = require("./requestNormalization");
|
|
4
|
+
describe('agent conversation request normalization', () => {
|
|
5
|
+
test.each([
|
|
6
|
+
['zh-CN', 'zh'],
|
|
7
|
+
['zh_CN', 'zh'],
|
|
8
|
+
['Chinese', 'zh'],
|
|
9
|
+
['en-US', 'en'],
|
|
10
|
+
['en_US', 'en'],
|
|
11
|
+
['English', 'en'],
|
|
12
|
+
['auto', 'auto'],
|
|
13
|
+
['unsupported-language', undefined],
|
|
14
|
+
])('normalizes answer language %s to %s', (answerLanguage, expectedLanguage) => {
|
|
15
|
+
expect((0, requestNormalization_1.normalizeAgentConversationRequestPayload)({
|
|
16
|
+
message: 'what is water glass?',
|
|
17
|
+
answerLanguage,
|
|
18
|
+
}).answerLanguage).toBe(expectedLanguage);
|
|
19
|
+
});
|
|
20
|
+
test('keeps an explicit English answer contract even when the query contains CJK text', () => {
|
|
21
|
+
expect((0, requestNormalization_1.normalizeAgentConversationRequestPayload)({
|
|
22
|
+
message: '\u4ec0\u4e48\u662f water glass?',
|
|
23
|
+
response_language: 'en-US',
|
|
24
|
+
}).answerLanguage).toBe('en');
|
|
25
|
+
});
|
|
26
|
+
test('normalizes the additive mobile response profile without changing the default', () => {
|
|
27
|
+
expect((0, requestNormalization_1.normalizeAgentConversationRequestPayload)({
|
|
28
|
+
message: 'what is water glass?',
|
|
29
|
+
response_profile: 'mobile',
|
|
30
|
+
}).responseProfile).toBe('mobile_compact');
|
|
31
|
+
expect((0, requestNormalization_1.normalizeAgentConversationRequestPayload)({
|
|
32
|
+
message: 'what is water glass?',
|
|
33
|
+
}).responseProfile).toBeUndefined();
|
|
34
|
+
});
|
|
35
|
+
test.each([
|
|
36
|
+
[undefined, undefined],
|
|
37
|
+
['slim', 'slim'],
|
|
38
|
+
['definition', 'slim'],
|
|
39
|
+
['compact', 'slim'],
|
|
40
|
+
['full', 'full'],
|
|
41
|
+
['comprehensive', 'full'],
|
|
42
|
+
['unsupported-mode', undefined],
|
|
43
|
+
])('normalizes answer response mode %s to %s', (responseMode, expectedMode) => {
|
|
44
|
+
expect((0, requestNormalization_1.normalizeAgentConversationRequestPayload)({
|
|
45
|
+
message: 'what is water glass?',
|
|
46
|
+
responseMode,
|
|
47
|
+
}).responseMode).toBe(expectedMode);
|
|
48
|
+
});
|
|
49
|
+
test('keeps response mode independent from the mobile response profile', () => {
|
|
50
|
+
const request = (0, requestNormalization_1.normalizeAgentConversationRequestPayload)({
|
|
51
|
+
message: 'what is water glass?',
|
|
52
|
+
response_mode: 'full',
|
|
53
|
+
response_profile: 'mobile',
|
|
54
|
+
});
|
|
55
|
+
expect(request.responseMode).toBe('full');
|
|
56
|
+
expect(request.responseProfile).toBe('mobile_compact');
|
|
57
|
+
});
|
|
58
|
+
test.each([
|
|
59
|
+
[undefined, 'adaptive'],
|
|
60
|
+
['adaptive', 'adaptive'],
|
|
61
|
+
['unbounded', 'unbounded'],
|
|
62
|
+
['no-cap', 'unbounded'],
|
|
63
|
+
['no_cap', 'unbounded'],
|
|
64
|
+
['unsupported-budget', 'adaptive'],
|
|
65
|
+
])('normalizes response budget mode %s to %s', (responseBudgetMode, expectedMode) => {
|
|
66
|
+
expect((0, requestNormalization_1.normalizeAgentConversationRequestPayload)({
|
|
67
|
+
message: 'what is water glass?',
|
|
68
|
+
responseBudgetMode,
|
|
69
|
+
}).responseBudgetMode).toBe(expectedMode);
|
|
70
|
+
});
|
|
71
|
+
test('normalizes and clamps response budget capability hints at the boundary', () => {
|
|
72
|
+
const request = (0, requestNormalization_1.normalizeAgentConversationRequestPayload)({
|
|
73
|
+
message: 'what is water glass?',
|
|
74
|
+
response_budget_mode: 'unbounded',
|
|
75
|
+
response_budget_capability: {
|
|
76
|
+
memoryClass: 'HIGH',
|
|
77
|
+
workload: 'max',
|
|
78
|
+
maxReportCharsHint: 999999999,
|
|
79
|
+
maxSerializedBytesHint: -4,
|
|
80
|
+
ignored: 'field',
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
expect(request.responseBudgetMode).toBe('unbounded');
|
|
84
|
+
expect(request.responseBudgetCapability).toEqual({
|
|
85
|
+
memoryClass: 'high',
|
|
86
|
+
workload: 'max',
|
|
87
|
+
maxReportCharsHint: 999999999,
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
test('keeps budget mode additive when mobile projection is requested', () => {
|
|
91
|
+
const request = (0, requestNormalization_1.normalizeAgentConversationRequestPayload)({
|
|
92
|
+
message: 'what is water glass?',
|
|
93
|
+
response_mode: 'full',
|
|
94
|
+
response_budget_mode: 'unbounded',
|
|
95
|
+
response_profile: 'mobile',
|
|
96
|
+
});
|
|
97
|
+
expect(request.responseMode).toBe('full');
|
|
98
|
+
expect(request.responseBudgetMode).toBe('unbounded');
|
|
99
|
+
expect(request.responseProfile).toBe('mobile_compact');
|
|
100
|
+
});
|
|
101
|
+
});
|