@synapseia-network/node 0.8.14 → 0.8.15
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/index.js +310 -497
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -56,8 +56,7 @@ import {
|
|
|
56
56
|
TRAINING_MEM_FLOOR_MB,
|
|
57
57
|
TrainerHelper,
|
|
58
58
|
isPyTorchAvailable,
|
|
59
|
-
trainMicroModel
|
|
60
|
-
validateTrainingConfig
|
|
59
|
+
trainMicroModel
|
|
61
60
|
} from "./chunk-5QFTU52A.js";
|
|
62
61
|
import {
|
|
63
62
|
ModelDiscovery,
|
|
@@ -146,11 +145,11 @@ var init_identity_service = __esm({
|
|
|
146
145
|
});
|
|
147
146
|
|
|
148
147
|
// src/modules/agent/work-order/work-order.coordinator.ts
|
|
149
|
-
import { Injectable as
|
|
148
|
+
import { Injectable as Injectable23, Optional as Optional4 } from "@nestjs/common";
|
|
150
149
|
import * as fs3 from "fs";
|
|
151
150
|
import * as path4 from "path";
|
|
152
151
|
import * as os3 from "os";
|
|
153
|
-
function
|
|
152
|
+
function _ts_decorate33(decorators, target, key, desc) {
|
|
154
153
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
155
154
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
156
155
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -171,7 +170,7 @@ var init_work_order_coordinator = __esm({
|
|
|
171
170
|
init_node_auth();
|
|
172
171
|
init_logger();
|
|
173
172
|
init_identity_service();
|
|
174
|
-
__name(
|
|
173
|
+
__name(_ts_decorate33, "_ts_decorate");
|
|
175
174
|
__name(_ts_metadata16, "_ts_metadata");
|
|
176
175
|
__name(_ts_param4, "_ts_param");
|
|
177
176
|
WorkOrderCoordinatorHelper = class {
|
|
@@ -625,8 +624,8 @@ ${d.content}`).join("\n\n");
|
|
|
625
624
|
return corpusPath;
|
|
626
625
|
}
|
|
627
626
|
};
|
|
628
|
-
WorkOrderCoordinatorHelper =
|
|
629
|
-
|
|
627
|
+
WorkOrderCoordinatorHelper = _ts_decorate33([
|
|
628
|
+
Injectable23(),
|
|
630
629
|
_ts_param4(0, Optional4()),
|
|
631
630
|
_ts_metadata16("design:type", Function),
|
|
632
631
|
_ts_metadata16("design:paramtypes", [
|
|
@@ -641,8 +640,8 @@ var search_corpus_tool_exports = {};
|
|
|
641
640
|
__export(search_corpus_tool_exports, {
|
|
642
641
|
SearchCorpusTool: () => SearchCorpusTool
|
|
643
642
|
});
|
|
644
|
-
import { Injectable as
|
|
645
|
-
function
|
|
643
|
+
import { Injectable as Injectable31 } from "@nestjs/common";
|
|
644
|
+
function _ts_decorate42(decorators, target, key, desc) {
|
|
646
645
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
647
646
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
648
647
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -656,7 +655,7 @@ var init_search_corpus_tool = __esm({
|
|
|
656
655
|
"src/modules/agent/langgraph/tools/search-corpus.tool.ts"() {
|
|
657
656
|
"use strict";
|
|
658
657
|
init_work_order_coordinator();
|
|
659
|
-
__name(
|
|
658
|
+
__name(_ts_decorate42, "_ts_decorate");
|
|
660
659
|
__name(_ts_metadata20, "_ts_metadata");
|
|
661
660
|
SearchCorpusTool = class {
|
|
662
661
|
static {
|
|
@@ -690,8 +689,8 @@ var init_search_corpus_tool = __esm({
|
|
|
690
689
|
return this.coordinatorHelper.fetchReferenceContext(coordinatorUrl, params.topic);
|
|
691
690
|
}
|
|
692
691
|
};
|
|
693
|
-
SearchCorpusTool =
|
|
694
|
-
|
|
692
|
+
SearchCorpusTool = _ts_decorate42([
|
|
693
|
+
Injectable31(),
|
|
695
694
|
_ts_metadata20("design:type", Function),
|
|
696
695
|
_ts_metadata20("design:paramtypes", [
|
|
697
696
|
typeof WorkOrderCoordinatorHelper === "undefined" ? Object : WorkOrderCoordinatorHelper
|
|
@@ -705,8 +704,8 @@ var query_kg_tool_exports = {};
|
|
|
705
704
|
__export(query_kg_tool_exports, {
|
|
706
705
|
QueryKgTool: () => QueryKgTool
|
|
707
706
|
});
|
|
708
|
-
import { Injectable as
|
|
709
|
-
function
|
|
707
|
+
import { Injectable as Injectable32 } from "@nestjs/common";
|
|
708
|
+
function _ts_decorate43(decorators, target, key, desc) {
|
|
710
709
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
711
710
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
712
711
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -720,7 +719,7 @@ var init_query_kg_tool = __esm({
|
|
|
720
719
|
"src/modules/agent/langgraph/tools/query-kg.tool.ts"() {
|
|
721
720
|
"use strict";
|
|
722
721
|
init_work_order_coordinator();
|
|
723
|
-
__name(
|
|
722
|
+
__name(_ts_decorate43, "_ts_decorate");
|
|
724
723
|
__name(_ts_metadata21, "_ts_metadata");
|
|
725
724
|
QueryKgTool = class {
|
|
726
725
|
static {
|
|
@@ -754,8 +753,8 @@ var init_query_kg_tool = __esm({
|
|
|
754
753
|
return this.coordinatorHelper.fetchKGraphContext(coordinatorUrl, params.topic, params.missionId);
|
|
755
754
|
}
|
|
756
755
|
};
|
|
757
|
-
QueryKgTool =
|
|
758
|
-
|
|
756
|
+
QueryKgTool = _ts_decorate43([
|
|
757
|
+
Injectable32(),
|
|
759
758
|
_ts_metadata21("design:type", Function),
|
|
760
759
|
_ts_metadata21("design:paramtypes", [
|
|
761
760
|
typeof WorkOrderCoordinatorHelper === "undefined" ? Object : WorkOrderCoordinatorHelper
|
|
@@ -769,8 +768,8 @@ var generate_embedding_tool_exports = {};
|
|
|
769
768
|
__export(generate_embedding_tool_exports, {
|
|
770
769
|
GenerateEmbeddingTool: () => GenerateEmbeddingTool
|
|
771
770
|
});
|
|
772
|
-
import { Injectable as
|
|
773
|
-
function
|
|
771
|
+
import { Injectable as Injectable33 } from "@nestjs/common";
|
|
772
|
+
function _ts_decorate44(decorators, target, key, desc) {
|
|
774
773
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
775
774
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
776
775
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -780,7 +779,7 @@ var GenerateEmbeddingTool;
|
|
|
780
779
|
var init_generate_embedding_tool = __esm({
|
|
781
780
|
"src/modules/agent/langgraph/tools/generate-embedding.tool.ts"() {
|
|
782
781
|
"use strict";
|
|
783
|
-
__name(
|
|
782
|
+
__name(_ts_decorate44, "_ts_decorate");
|
|
784
783
|
GenerateEmbeddingTool = class {
|
|
785
784
|
static {
|
|
786
785
|
__name(this, "GenerateEmbeddingTool");
|
|
@@ -810,8 +809,8 @@ var init_generate_embedding_tool = __esm({
|
|
|
810
809
|
}
|
|
811
810
|
}
|
|
812
811
|
};
|
|
813
|
-
GenerateEmbeddingTool =
|
|
814
|
-
|
|
812
|
+
GenerateEmbeddingTool = _ts_decorate44([
|
|
813
|
+
Injectable33()
|
|
815
814
|
], GenerateEmbeddingTool);
|
|
816
815
|
}
|
|
817
816
|
});
|
|
@@ -3722,199 +3721,9 @@ AgentBrainHelper = _ts_decorate28([
|
|
|
3722
3721
|
Injectable18()
|
|
3723
3722
|
], AgentBrainHelper);
|
|
3724
3723
|
|
|
3725
|
-
// src/modules/agent/agent-loop.ts
|
|
3726
|
-
init_logger();
|
|
3727
|
-
import { Injectable as Injectable19 } from "@nestjs/common";
|
|
3728
|
-
|
|
3729
|
-
// src/modules/agent/work-order/safe-loss.ts
|
|
3730
|
-
function safeLoss(input2) {
|
|
3731
|
-
return typeof input2 === "number" && Number.isFinite(input2) ? input2 : 0;
|
|
3732
|
-
}
|
|
3733
|
-
__name(safeLoss, "safeLoss");
|
|
3734
|
-
|
|
3735
|
-
// src/modules/agent/agent-loop.ts
|
|
3736
|
-
function _ts_decorate29(decorators, target, key, desc) {
|
|
3737
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3738
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3739
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3740
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3741
|
-
}
|
|
3742
|
-
__name(_ts_decorate29, "_ts_decorate");
|
|
3743
|
-
var AgentLoopHelper = class {
|
|
3744
|
-
static {
|
|
3745
|
-
__name(this, "AgentLoopHelper");
|
|
3746
|
-
}
|
|
3747
|
-
state = {
|
|
3748
|
-
iteration: 0,
|
|
3749
|
-
bestLoss: Infinity,
|
|
3750
|
-
totalExperiments: 0,
|
|
3751
|
-
isRunning: false
|
|
3752
|
-
};
|
|
3753
|
-
getAgentLoopState() {
|
|
3754
|
-
return {
|
|
3755
|
-
...this.state
|
|
3756
|
-
};
|
|
3757
|
-
}
|
|
3758
|
-
resetAgentLoopState() {
|
|
3759
|
-
this.state = {
|
|
3760
|
-
iteration: 0,
|
|
3761
|
-
bestLoss: Infinity,
|
|
3762
|
-
totalExperiments: 0,
|
|
3763
|
-
isRunning: false
|
|
3764
|
-
};
|
|
3765
|
-
}
|
|
3766
|
-
async fetchTopExperiments(coordinatorUrl, limit = 5) {
|
|
3767
|
-
try {
|
|
3768
|
-
const response = await fetch(`${coordinatorUrl}/experiments?limit=${limit}&status=completed`);
|
|
3769
|
-
if (!response.ok) throw new Error(`Failed to fetch experiments: ${response.statusText}`);
|
|
3770
|
-
const data = await response.json();
|
|
3771
|
-
return (data.experiments || []).filter((exp) => exp.valLoss !== null && exp.valLoss !== void 0).sort((a, b) => (a.valLoss ?? Infinity) - (b.valLoss ?? Infinity)).slice(0, limit);
|
|
3772
|
-
} catch (error) {
|
|
3773
|
-
logger_default.warn("Failed to fetch experiments:", error.message);
|
|
3774
|
-
return [];
|
|
3775
|
-
}
|
|
3776
|
-
}
|
|
3777
|
-
async createExperiment(coordinatorUrl, proposal, peerId, tier) {
|
|
3778
|
-
try {
|
|
3779
|
-
const response = await fetch(`${coordinatorUrl}/experiments`, {
|
|
3780
|
-
method: "POST",
|
|
3781
|
-
headers: {
|
|
3782
|
-
"Content-Type": "application/json"
|
|
3783
|
-
},
|
|
3784
|
-
body: JSON.stringify({
|
|
3785
|
-
model: "micro-transformer-120k",
|
|
3786
|
-
hyperparams: proposal.hyperparams,
|
|
3787
|
-
tier
|
|
3788
|
-
})
|
|
3789
|
-
});
|
|
3790
|
-
if (!response.ok) throw new Error(`Failed to create experiment: ${response.statusText}`);
|
|
3791
|
-
const data = await response.json();
|
|
3792
|
-
return data.experiment.id;
|
|
3793
|
-
} catch (error) {
|
|
3794
|
-
throw new Error(`Failed to create experiment: ${error.message}`);
|
|
3795
|
-
}
|
|
3796
|
-
}
|
|
3797
|
-
async updateExperiment(coordinatorUrl, experimentId, result) {
|
|
3798
|
-
try {
|
|
3799
|
-
const response = await fetch(`${coordinatorUrl}/experiments/${experimentId}`, {
|
|
3800
|
-
method: "PATCH",
|
|
3801
|
-
headers: {
|
|
3802
|
-
"Content-Type": "application/json"
|
|
3803
|
-
},
|
|
3804
|
-
body: JSON.stringify({
|
|
3805
|
-
status: "completed",
|
|
3806
|
-
progress: 100,
|
|
3807
|
-
valLoss: result.valLoss
|
|
3808
|
-
})
|
|
3809
|
-
});
|
|
3810
|
-
if (!response.ok) throw new Error(`Failed to update experiment: ${response.statusText}`);
|
|
3811
|
-
} catch (error) {
|
|
3812
|
-
logger_default.error("Failed to update experiment:", error.message);
|
|
3813
|
-
throw error;
|
|
3814
|
-
}
|
|
3815
|
-
}
|
|
3816
|
-
async runAgentIteration(config, iteration) {
|
|
3817
|
-
const { coordinatorUrl, peerId, capabilities, datasetPath } = config;
|
|
3818
|
-
logger_default.log(`
|
|
3819
|
-
\u{1F504} Iteration ${iteration} starting...`);
|
|
3820
|
-
logger_default.log("\u{1F4E5} Fetching top experiments...");
|
|
3821
|
-
const topExperiments = await this.fetchTopExperiments(coordinatorUrl);
|
|
3822
|
-
logger_default.log(` Found ${topExperiments.length} experiments`);
|
|
3823
|
-
if (topExperiments.length > 0 && topExperiments[0].valLoss) {
|
|
3824
|
-
this.state.bestLoss = Math.min(this.state.bestLoss, topExperiments[0].valLoss);
|
|
3825
|
-
}
|
|
3826
|
-
const bestLossSafe = safeLoss(this.state.bestLoss);
|
|
3827
|
-
logger_default.log(` Best loss so far: ${bestLossSafe.toFixed(4)}`);
|
|
3828
|
-
logger_default.log("\u{1F9E0} Proposing mutation via LLM...");
|
|
3829
|
-
const mutationEngine = new MutationEngineHelper();
|
|
3830
|
-
const mutation = await mutationEngine.proposeMutation(topExperiments, this.state.bestLoss, capabilities);
|
|
3831
|
-
logger_default.log(` Type: ${mutation.type}`);
|
|
3832
|
-
logger_default.log(` Reasoning: ${mutation.reasoning.slice(0, 100)}...`);
|
|
3833
|
-
const validation = validateTrainingConfig(mutation);
|
|
3834
|
-
if (!validation.valid) throw new Error(`Invalid training config: ${validation.error}`);
|
|
3835
|
-
logger_default.log("\u{1F4DD} Creating experiment...");
|
|
3836
|
-
const tier = capabilities.includes("gpu") ? 2 : 0;
|
|
3837
|
-
const experimentId = await this.createExperiment(coordinatorUrl, mutation, peerId, tier);
|
|
3838
|
-
logger_default.log(` Experiment ID: ${experimentId}`);
|
|
3839
|
-
logger_default.log("\u{1F680} Training micro-model...");
|
|
3840
|
-
const hardware = capabilities.includes("gpu") ? "gpu" : "cpu";
|
|
3841
|
-
const trainingResult = await trainMicroModel({
|
|
3842
|
-
proposal: mutation,
|
|
3843
|
-
datasetPath,
|
|
3844
|
-
hardware,
|
|
3845
|
-
runNumber: iteration
|
|
3846
|
-
});
|
|
3847
|
-
const valLossSafe = safeLoss(trainingResult.valLoss);
|
|
3848
|
-
logger_default.log(` Training complete: ${valLossSafe.toFixed(4)} loss`);
|
|
3849
|
-
logger_default.log(` Duration: ${trainingResult.durationMs}ms`);
|
|
3850
|
-
logger_default.log(` Steps: ${trainingResult.lossCurve.length * 10}`);
|
|
3851
|
-
logger_default.log("\u{1F4BE} Updating experiment...");
|
|
3852
|
-
await this.updateExperiment(coordinatorUrl, experimentId, trainingResult);
|
|
3853
|
-
const improved = valLossSafe < this.state.bestLoss;
|
|
3854
|
-
if (improved) {
|
|
3855
|
-
this.state.bestLoss = valLossSafe;
|
|
3856
|
-
logger_default.log(`\u{1F389} New best loss: ${this.state.bestLoss.toFixed(4)}!`);
|
|
3857
|
-
}
|
|
3858
|
-
if (improved) logger_default.log(`[AgentLoop] Iteration ${iteration}: improved \u2192 valLoss=${valLossSafe.toFixed(4)}`);
|
|
3859
|
-
this.state.iteration = iteration;
|
|
3860
|
-
this.state.totalExperiments++;
|
|
3861
|
-
return {
|
|
3862
|
-
iteration,
|
|
3863
|
-
mutation,
|
|
3864
|
-
trainingResult,
|
|
3865
|
-
experimentId,
|
|
3866
|
-
improved
|
|
3867
|
-
};
|
|
3868
|
-
}
|
|
3869
|
-
async startAgentLoop(config) {
|
|
3870
|
-
if (this.state.isRunning) throw new Error("Agent loop is already running");
|
|
3871
|
-
this.state.isRunning = true;
|
|
3872
|
-
const { intervalMs, maxIterations } = config;
|
|
3873
|
-
logger_default.log("\u{1F680} Starting Synapseia Agent Loop");
|
|
3874
|
-
logger_default.log(` Coordinator: ${config.coordinatorUrl}`);
|
|
3875
|
-
logger_default.log(` Peer ID: ${config.peerId}`);
|
|
3876
|
-
logger_default.log(` Capabilities: ${config.capabilities.join(", ")}`);
|
|
3877
|
-
logger_default.log(` Interval: ${intervalMs}ms`);
|
|
3878
|
-
if (maxIterations) logger_default.log(` Max iterations: ${maxIterations}`);
|
|
3879
|
-
try {
|
|
3880
|
-
let iteration = 1;
|
|
3881
|
-
while (this.state.isRunning) {
|
|
3882
|
-
if (maxIterations && iteration > maxIterations) {
|
|
3883
|
-
logger_default.log(`
|
|
3884
|
-
\u2705 Reached max iterations (${maxIterations}), stopping.`);
|
|
3885
|
-
break;
|
|
3886
|
-
}
|
|
3887
|
-
try {
|
|
3888
|
-
await this.runAgentIteration(config, iteration);
|
|
3889
|
-
} catch (error) {
|
|
3890
|
-
logger_default.error(`\u274C Iteration ${iteration} failed:`, error.message);
|
|
3891
|
-
}
|
|
3892
|
-
if (this.state.isRunning) {
|
|
3893
|
-
logger_default.log(`\u23F3 Sleeping for ${intervalMs}ms...`);
|
|
3894
|
-
await this.sleep(intervalMs);
|
|
3895
|
-
}
|
|
3896
|
-
iteration++;
|
|
3897
|
-
}
|
|
3898
|
-
} finally {
|
|
3899
|
-
this.state.isRunning = false;
|
|
3900
|
-
logger_default.log("\n\u{1F6D1} Agent loop stopped");
|
|
3901
|
-
}
|
|
3902
|
-
}
|
|
3903
|
-
stopAgentLoop() {
|
|
3904
|
-
this.state.isRunning = false;
|
|
3905
|
-
logger_default.log("\u{1F6D1} Stopping agent loop...");
|
|
3906
|
-
}
|
|
3907
|
-
sleep(ms) {
|
|
3908
|
-
return new Promise((resolve4) => setTimeout(resolve4, ms));
|
|
3909
|
-
}
|
|
3910
|
-
};
|
|
3911
|
-
AgentLoopHelper = _ts_decorate29([
|
|
3912
|
-
Injectable19()
|
|
3913
|
-
], AgentLoopHelper);
|
|
3914
|
-
|
|
3915
3724
|
// src/modules/agent/review-agent.ts
|
|
3916
3725
|
init_logger();
|
|
3917
|
-
import { Injectable as
|
|
3726
|
+
import { Injectable as Injectable19, Optional } from "@nestjs/common";
|
|
3918
3727
|
init_identity_service();
|
|
3919
3728
|
init_node_auth();
|
|
3920
3729
|
|
|
@@ -4156,13 +3965,13 @@ function jsonParseTailSnippet(cleaned, errorMessage) {
|
|
|
4156
3965
|
__name(jsonParseTailSnippet, "jsonParseTailSnippet");
|
|
4157
3966
|
|
|
4158
3967
|
// src/modules/agent/review-agent.ts
|
|
4159
|
-
function
|
|
3968
|
+
function _ts_decorate29(decorators, target, key, desc) {
|
|
4160
3969
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4161
3970
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4162
3971
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4163
3972
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4164
3973
|
}
|
|
4165
|
-
__name(
|
|
3974
|
+
__name(_ts_decorate29, "_ts_decorate");
|
|
4166
3975
|
function _ts_metadata13(k, v) {
|
|
4167
3976
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
4168
3977
|
}
|
|
@@ -4429,8 +4238,8 @@ Respond ONLY with valid JSON (no markdown):
|
|
|
4429
4238
|
return this.running;
|
|
4430
4239
|
}
|
|
4431
4240
|
};
|
|
4432
|
-
ReviewAgentHelper =
|
|
4433
|
-
|
|
4241
|
+
ReviewAgentHelper = _ts_decorate29([
|
|
4242
|
+
Injectable19(),
|
|
4434
4243
|
_ts_param(0, Optional()),
|
|
4435
4244
|
_ts_metadata13("design:type", Function),
|
|
4436
4245
|
_ts_metadata13("design:paramtypes", [
|
|
@@ -4440,12 +4249,12 @@ ReviewAgentHelper = _ts_decorate30([
|
|
|
4440
4249
|
|
|
4441
4250
|
// src/modules/agent/round-listener.ts
|
|
4442
4251
|
init_logger();
|
|
4443
|
-
import { Injectable as
|
|
4252
|
+
import { Injectable as Injectable21, Optional as Optional3 } from "@nestjs/common";
|
|
4444
4253
|
import { io } from "socket.io-client";
|
|
4445
4254
|
|
|
4446
4255
|
// src/modules/agent/commit-reveal-v2.ts
|
|
4447
4256
|
init_logger();
|
|
4448
|
-
import { Injectable as
|
|
4257
|
+
import { Injectable as Injectable20, Optional as Optional2 } from "@nestjs/common";
|
|
4449
4258
|
|
|
4450
4259
|
// src/modules/crypto/merkle-tree.ts
|
|
4451
4260
|
import { createHash as createHash3 } from "crypto";
|
|
@@ -4515,13 +4324,13 @@ var MerkleTree = class _MerkleTree {
|
|
|
4515
4324
|
// src/modules/agent/commit-reveal-v2.ts
|
|
4516
4325
|
init_identity_service();
|
|
4517
4326
|
init_node_auth();
|
|
4518
|
-
function
|
|
4327
|
+
function _ts_decorate30(decorators, target, key, desc) {
|
|
4519
4328
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4520
4329
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4521
4330
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4522
4331
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4523
4332
|
}
|
|
4524
|
-
__name(
|
|
4333
|
+
__name(_ts_decorate30, "_ts_decorate");
|
|
4525
4334
|
function _ts_metadata14(k, v) {
|
|
4526
4335
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
4527
4336
|
}
|
|
@@ -4657,8 +4466,8 @@ var CommitRevealV2Helper = class {
|
|
|
4657
4466
|
});
|
|
4658
4467
|
}
|
|
4659
4468
|
};
|
|
4660
|
-
CommitRevealV2Helper =
|
|
4661
|
-
|
|
4469
|
+
CommitRevealV2Helper = _ts_decorate30([
|
|
4470
|
+
Injectable20(),
|
|
4662
4471
|
_ts_param2(0, Optional2()),
|
|
4663
4472
|
_ts_metadata14("design:type", Function),
|
|
4664
4473
|
_ts_metadata14("design:paramtypes", [
|
|
@@ -4752,13 +4561,13 @@ __name(computeRollingStats, "computeRollingStats");
|
|
|
4752
4561
|
// src/modules/agent/round-listener.ts
|
|
4753
4562
|
init_node_auth();
|
|
4754
4563
|
init_identity();
|
|
4755
|
-
function
|
|
4564
|
+
function _ts_decorate31(decorators, target, key, desc) {
|
|
4756
4565
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4757
4566
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4758
4567
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4759
4568
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4760
4569
|
}
|
|
4761
|
-
__name(
|
|
4570
|
+
__name(_ts_decorate31, "_ts_decorate");
|
|
4762
4571
|
function _ts_metadata15(k, v) {
|
|
4763
4572
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
4764
4573
|
}
|
|
@@ -4938,8 +4747,8 @@ ${mine.proposal ?? ""}`.trim();
|
|
|
4938
4747
|
this.reviewAgentHelper.stopReviewLoop();
|
|
4939
4748
|
}
|
|
4940
4749
|
};
|
|
4941
|
-
RoundListenerHelper =
|
|
4942
|
-
|
|
4750
|
+
RoundListenerHelper = _ts_decorate31([
|
|
4751
|
+
Injectable21(),
|
|
4943
4752
|
_ts_param3(1, Optional3()),
|
|
4944
4753
|
_ts_param3(2, Optional3()),
|
|
4945
4754
|
_ts_metadata15("design:type", Function),
|
|
@@ -4955,14 +4764,14 @@ import { Module as Module14 } from "@nestjs/common";
|
|
|
4955
4764
|
|
|
4956
4765
|
// src/modules/agent/work-order/work-order.state.ts
|
|
4957
4766
|
init_logger();
|
|
4958
|
-
import { Injectable as
|
|
4959
|
-
function
|
|
4767
|
+
import { Injectable as Injectable22 } from "@nestjs/common";
|
|
4768
|
+
function _ts_decorate32(decorators, target, key, desc) {
|
|
4960
4769
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4961
4770
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4962
4771
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4963
4772
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4964
4773
|
}
|
|
4965
|
-
__name(
|
|
4774
|
+
__name(_ts_decorate32, "_ts_decorate");
|
|
4966
4775
|
var WorkOrderStateHelper = class {
|
|
4967
4776
|
static {
|
|
4968
4777
|
__name(this, "WorkOrderStateHelper");
|
|
@@ -5086,26 +4895,26 @@ var WorkOrderStateHelper = class {
|
|
|
5086
4895
|
return new Promise((resolve4) => setTimeout(resolve4, ms));
|
|
5087
4896
|
}
|
|
5088
4897
|
};
|
|
5089
|
-
WorkOrderStateHelper =
|
|
5090
|
-
|
|
4898
|
+
WorkOrderStateHelper = _ts_decorate32([
|
|
4899
|
+
Injectable22()
|
|
5091
4900
|
], WorkOrderStateHelper);
|
|
5092
4901
|
|
|
5093
4902
|
// src/modules/agent/work-order/work-order-coordinator.module.ts
|
|
5094
4903
|
init_work_order_coordinator();
|
|
5095
4904
|
import { Module as Module11 } from "@nestjs/common";
|
|
5096
|
-
function
|
|
4905
|
+
function _ts_decorate34(decorators, target, key, desc) {
|
|
5097
4906
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5098
4907
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5099
4908
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5100
4909
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5101
4910
|
}
|
|
5102
|
-
__name(
|
|
4911
|
+
__name(_ts_decorate34, "_ts_decorate");
|
|
5103
4912
|
var WorkOrderCoordinatorModule = class {
|
|
5104
4913
|
static {
|
|
5105
4914
|
__name(this, "WorkOrderCoordinatorModule");
|
|
5106
4915
|
}
|
|
5107
4916
|
};
|
|
5108
|
-
WorkOrderCoordinatorModule =
|
|
4917
|
+
WorkOrderCoordinatorModule = _ts_decorate34([
|
|
5109
4918
|
Module11({
|
|
5110
4919
|
imports: [
|
|
5111
4920
|
IdentityModule
|
|
@@ -5121,14 +4930,14 @@ WorkOrderCoordinatorModule = _ts_decorate35([
|
|
|
5121
4930
|
|
|
5122
4931
|
// src/modules/agent/work-order/work-order.evaluation.ts
|
|
5123
4932
|
init_logger();
|
|
5124
|
-
import { Injectable as
|
|
5125
|
-
function
|
|
4933
|
+
import { Injectable as Injectable24 } from "@nestjs/common";
|
|
4934
|
+
function _ts_decorate35(decorators, target, key, desc) {
|
|
5126
4935
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5127
4936
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5128
4937
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5129
4938
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5130
4939
|
}
|
|
5131
|
-
__name(
|
|
4940
|
+
__name(_ts_decorate35, "_ts_decorate");
|
|
5132
4941
|
var LLM_PRICE_TABLE = {
|
|
5133
4942
|
"gpt-4o": 5e-3,
|
|
5134
4943
|
"gpt-4o-mini": 15e-5,
|
|
@@ -5340,13 +5149,13 @@ var WorkOrderEvaluationHelper = class {
|
|
|
5340
5149
|
return null;
|
|
5341
5150
|
}
|
|
5342
5151
|
};
|
|
5343
|
-
WorkOrderEvaluationHelper =
|
|
5344
|
-
|
|
5152
|
+
WorkOrderEvaluationHelper = _ts_decorate35([
|
|
5153
|
+
Injectable24()
|
|
5345
5154
|
], WorkOrderEvaluationHelper);
|
|
5346
5155
|
|
|
5347
5156
|
// src/modules/agent/work-order/work-order.execution.ts
|
|
5348
5157
|
init_logger();
|
|
5349
|
-
import { Injectable as
|
|
5158
|
+
import { Injectable as Injectable27 } from "@nestjs/common";
|
|
5350
5159
|
import * as path8 from "path";
|
|
5351
5160
|
import * as os7 from "os";
|
|
5352
5161
|
init_embedding();
|
|
@@ -5856,17 +5665,17 @@ async function defaultUploader(signedUrl, filePath) {
|
|
|
5856
5665
|
__name(defaultUploader, "defaultUploader");
|
|
5857
5666
|
|
|
5858
5667
|
// src/modules/model/diloco-trainer.ts
|
|
5859
|
-
import { Injectable as
|
|
5668
|
+
import { Injectable as Injectable25 } from "@nestjs/common";
|
|
5860
5669
|
import { spawn as spawn3 } from "child_process";
|
|
5861
5670
|
import { resolve as resolve3 } from "path";
|
|
5862
5671
|
import { existsSync as existsSync8, statSync } from "fs";
|
|
5863
|
-
function
|
|
5672
|
+
function _ts_decorate36(decorators, target, key, desc) {
|
|
5864
5673
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5865
5674
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5866
5675
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5867
5676
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5868
5677
|
}
|
|
5869
|
-
__name(
|
|
5678
|
+
__name(_ts_decorate36, "_ts_decorate");
|
|
5870
5679
|
function moduleDir2() {
|
|
5871
5680
|
return __dirname;
|
|
5872
5681
|
}
|
|
@@ -5983,26 +5792,26 @@ var DiLoCoTrainerHelper = class {
|
|
|
5983
5792
|
});
|
|
5984
5793
|
}
|
|
5985
5794
|
};
|
|
5986
|
-
DiLoCoTrainerHelper =
|
|
5987
|
-
|
|
5795
|
+
DiLoCoTrainerHelper = _ts_decorate36([
|
|
5796
|
+
Injectable25()
|
|
5988
5797
|
], DiLoCoTrainerHelper);
|
|
5989
5798
|
var _dilocoInstance = new DiLoCoTrainerHelper();
|
|
5990
5799
|
var runDiLoCoInnerLoop = /* @__PURE__ */ __name((config, onProgress, spawnFn, statFn) => _dilocoInstance.runDiLoCoInnerLoop(config, onProgress, spawnFn, statFn), "runDiLoCoInnerLoop");
|
|
5991
5800
|
|
|
5992
5801
|
// src/modules/model/model-downloader.ts
|
|
5993
5802
|
init_logger();
|
|
5994
|
-
import { Injectable as
|
|
5803
|
+
import { Injectable as Injectable26 } from "@nestjs/common";
|
|
5995
5804
|
import * as fs6 from "fs";
|
|
5996
5805
|
import * as path7 from "path";
|
|
5997
5806
|
import * as os6 from "os";
|
|
5998
5807
|
import { execSync } from "child_process";
|
|
5999
|
-
function
|
|
5808
|
+
function _ts_decorate37(decorators, target, key, desc) {
|
|
6000
5809
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6001
5810
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6002
5811
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6003
5812
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6004
5813
|
}
|
|
6005
|
-
__name(
|
|
5814
|
+
__name(_ts_decorate37, "_ts_decorate");
|
|
6006
5815
|
var ModelDownloaderHelper = class {
|
|
6007
5816
|
static {
|
|
6008
5817
|
__name(this, "ModelDownloaderHelper");
|
|
@@ -6079,25 +5888,31 @@ var ModelDownloaderHelper = class {
|
|
|
6079
5888
|
logger_default.log(`[ModelDownloader] Adapter downloaded to ${weightsPath} (${buffer.byteLength} bytes)`);
|
|
6080
5889
|
}
|
|
6081
5890
|
};
|
|
6082
|
-
ModelDownloaderHelper =
|
|
6083
|
-
|
|
5891
|
+
ModelDownloaderHelper = _ts_decorate37([
|
|
5892
|
+
Injectable26()
|
|
6084
5893
|
], ModelDownloaderHelper);
|
|
6085
5894
|
var _dlInstance = new ModelDownloaderHelper();
|
|
6086
5895
|
var downloadAdapter = /* @__PURE__ */ __name((url, localPath) => _dlInstance.downloadAdapter(url, localPath), "downloadAdapter");
|
|
6087
5896
|
|
|
5897
|
+
// src/modules/agent/work-order/safe-loss.ts
|
|
5898
|
+
function safeLoss(input2) {
|
|
5899
|
+
return typeof input2 === "number" && Number.isFinite(input2) ? input2 : 0;
|
|
5900
|
+
}
|
|
5901
|
+
__name(safeLoss, "safeLoss");
|
|
5902
|
+
|
|
6088
5903
|
// src/modules/agent/work-order/work-order.types.ts
|
|
6089
5904
|
var EMBEDDING_MODEL = "locusai/all-minilm-l6-v2";
|
|
6090
5905
|
var GPU_INFERENCE_MODEL = "qwen2.5:7b";
|
|
6091
5906
|
|
|
6092
5907
|
// src/modules/agent/work-order/work-order.execution.ts
|
|
6093
5908
|
init_work_order_coordinator();
|
|
6094
|
-
function
|
|
5909
|
+
function _ts_decorate38(decorators, target, key, desc) {
|
|
6095
5910
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6096
5911
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6097
5912
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6098
5913
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6099
5914
|
}
|
|
6100
|
-
__name(
|
|
5915
|
+
__name(_ts_decorate38, "_ts_decorate");
|
|
6101
5916
|
function _ts_metadata17(k, v) {
|
|
6102
5917
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
6103
5918
|
}
|
|
@@ -6741,8 +6556,8 @@ Response:`;
|
|
|
6741
6556
|
}
|
|
6742
6557
|
}
|
|
6743
6558
|
};
|
|
6744
|
-
WorkOrderExecutionHelper =
|
|
6745
|
-
|
|
6559
|
+
WorkOrderExecutionHelper = _ts_decorate38([
|
|
6560
|
+
Injectable27(),
|
|
6746
6561
|
_ts_metadata17("design:type", Function),
|
|
6747
6562
|
_ts_metadata17("design:paramtypes", [
|
|
6748
6563
|
typeof WorkOrderCoordinatorHelper === "undefined" ? Object : WorkOrderCoordinatorHelper,
|
|
@@ -6753,19 +6568,19 @@ WorkOrderExecutionHelper = _ts_decorate39([
|
|
|
6753
6568
|
|
|
6754
6569
|
// src/modules/agent/work-order/work-order.loop.ts
|
|
6755
6570
|
init_logger();
|
|
6756
|
-
import { Injectable as
|
|
6571
|
+
import { Injectable as Injectable29, Optional as Optional5 } from "@nestjs/common";
|
|
6757
6572
|
init_work_order_coordinator();
|
|
6758
6573
|
|
|
6759
6574
|
// src/modules/agent/work-order/backpressure.service.ts
|
|
6760
6575
|
init_logger();
|
|
6761
|
-
import { Injectable as
|
|
6762
|
-
function
|
|
6576
|
+
import { Injectable as Injectable28 } from "@nestjs/common";
|
|
6577
|
+
function _ts_decorate39(decorators, target, key, desc) {
|
|
6763
6578
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6764
6579
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6765
6580
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6766
6581
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6767
6582
|
}
|
|
6768
|
-
__name(
|
|
6583
|
+
__name(_ts_decorate39, "_ts_decorate");
|
|
6769
6584
|
function _ts_metadata18(k, v) {
|
|
6770
6585
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
6771
6586
|
}
|
|
@@ -6822,8 +6637,8 @@ var BackpressureService = class {
|
|
|
6822
6637
|
return new Set(this.inFlight);
|
|
6823
6638
|
}
|
|
6824
6639
|
};
|
|
6825
|
-
BackpressureService =
|
|
6826
|
-
|
|
6640
|
+
BackpressureService = _ts_decorate39([
|
|
6641
|
+
Injectable28(),
|
|
6827
6642
|
_ts_metadata18("design:type", Function),
|
|
6828
6643
|
_ts_metadata18("design:paramtypes", [])
|
|
6829
6644
|
], BackpressureService);
|
|
@@ -6891,13 +6706,13 @@ var WorkOrderPushQueue = class {
|
|
|
6891
6706
|
};
|
|
6892
6707
|
|
|
6893
6708
|
// src/modules/agent/work-order/work-order.loop.ts
|
|
6894
|
-
function
|
|
6709
|
+
function _ts_decorate40(decorators, target, key, desc) {
|
|
6895
6710
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6896
6711
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6897
6712
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6898
6713
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6899
6714
|
}
|
|
6900
|
-
__name(
|
|
6715
|
+
__name(_ts_decorate40, "_ts_decorate");
|
|
6901
6716
|
function _ts_metadata19(k, v) {
|
|
6902
6717
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
6903
6718
|
}
|
|
@@ -7282,8 +7097,8 @@ var WorkOrderLoopHelper = class {
|
|
|
7282
7097
|
return result;
|
|
7283
7098
|
}
|
|
7284
7099
|
};
|
|
7285
|
-
WorkOrderLoopHelper =
|
|
7286
|
-
|
|
7100
|
+
WorkOrderLoopHelper = _ts_decorate40([
|
|
7101
|
+
Injectable29(),
|
|
7287
7102
|
_ts_param5(7, Optional5()),
|
|
7288
7103
|
_ts_metadata19("design:type", Function),
|
|
7289
7104
|
_ts_metadata19("design:paramtypes", [
|
|
@@ -7307,14 +7122,14 @@ __name(toWorkOrder, "toWorkOrder");
|
|
|
7307
7122
|
import { Module as Module13 } from "@nestjs/common";
|
|
7308
7123
|
|
|
7309
7124
|
// src/modules/agent/langgraph/tools/tool-registry.ts
|
|
7310
|
-
import { Injectable as
|
|
7311
|
-
function
|
|
7125
|
+
import { Injectable as Injectable30 } from "@nestjs/common";
|
|
7126
|
+
function _ts_decorate41(decorators, target, key, desc) {
|
|
7312
7127
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7313
7128
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7314
7129
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7315
7130
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7316
7131
|
}
|
|
7317
|
-
__name(
|
|
7132
|
+
__name(_ts_decorate41, "_ts_decorate");
|
|
7318
7133
|
var ToolRegistry = class {
|
|
7319
7134
|
static {
|
|
7320
7135
|
__name(this, "ToolRegistry");
|
|
@@ -7334,8 +7149,8 @@ var ToolRegistry = class {
|
|
|
7334
7149
|
return this.getAll().map((t) => `- ${t.name}: ${t.description}`).join("\n");
|
|
7335
7150
|
}
|
|
7336
7151
|
};
|
|
7337
|
-
ToolRegistry =
|
|
7338
|
-
|
|
7152
|
+
ToolRegistry = _ts_decorate41([
|
|
7153
|
+
Injectable30()
|
|
7339
7154
|
], ToolRegistry);
|
|
7340
7155
|
|
|
7341
7156
|
// src/modules/agent/langgraph/tools/tool-runner.service.ts
|
|
@@ -7343,24 +7158,24 @@ init_logger();
|
|
|
7343
7158
|
init_search_corpus_tool();
|
|
7344
7159
|
init_query_kg_tool();
|
|
7345
7160
|
init_generate_embedding_tool();
|
|
7346
|
-
import { Injectable as
|
|
7161
|
+
import { Injectable as Injectable41, Optional as Optional6 } from "@nestjs/common";
|
|
7347
7162
|
import { startActiveObservation } from "@langfuse/tracing";
|
|
7348
7163
|
|
|
7349
7164
|
// src/modules/agent/langgraph/tools/delegate-peer.tool.ts
|
|
7350
|
-
import { Injectable as
|
|
7165
|
+
import { Injectable as Injectable39 } from "@nestjs/common";
|
|
7351
7166
|
|
|
7352
7167
|
// src/modules/a2a/client/peer-selector.service.ts
|
|
7353
|
-
import { Injectable as
|
|
7168
|
+
import { Injectable as Injectable36 } from "@nestjs/common";
|
|
7354
7169
|
|
|
7355
7170
|
// src/modules/a2a/client/peer-registry.service.ts
|
|
7356
|
-
import { Injectable as
|
|
7357
|
-
function
|
|
7171
|
+
import { Injectable as Injectable34 } from "@nestjs/common";
|
|
7172
|
+
function _ts_decorate45(decorators, target, key, desc) {
|
|
7358
7173
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7359
7174
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7360
7175
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7361
7176
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7362
7177
|
}
|
|
7363
|
-
__name(
|
|
7178
|
+
__name(_ts_decorate45, "_ts_decorate");
|
|
7364
7179
|
var PeerRegistryService = class {
|
|
7365
7180
|
static {
|
|
7366
7181
|
__name(this, "PeerRegistryService");
|
|
@@ -7424,19 +7239,19 @@ var PeerRegistryService = class {
|
|
|
7424
7239
|
this.peers.clear();
|
|
7425
7240
|
}
|
|
7426
7241
|
};
|
|
7427
|
-
PeerRegistryService =
|
|
7428
|
-
|
|
7242
|
+
PeerRegistryService = _ts_decorate45([
|
|
7243
|
+
Injectable34()
|
|
7429
7244
|
], PeerRegistryService);
|
|
7430
7245
|
|
|
7431
7246
|
// src/modules/a2a/client/circuit-breaker.service.ts
|
|
7432
|
-
import { Injectable as
|
|
7433
|
-
function
|
|
7247
|
+
import { Injectable as Injectable35 } from "@nestjs/common";
|
|
7248
|
+
function _ts_decorate46(decorators, target, key, desc) {
|
|
7434
7249
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7435
7250
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7436
7251
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7437
7252
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7438
7253
|
}
|
|
7439
|
-
__name(
|
|
7254
|
+
__name(_ts_decorate46, "_ts_decorate");
|
|
7440
7255
|
var CircuitBreakerService = class {
|
|
7441
7256
|
static {
|
|
7442
7257
|
__name(this, "CircuitBreakerService");
|
|
@@ -7509,18 +7324,18 @@ var CircuitBreakerService = class {
|
|
|
7509
7324
|
return this.circuits.size;
|
|
7510
7325
|
}
|
|
7511
7326
|
};
|
|
7512
|
-
CircuitBreakerService =
|
|
7513
|
-
|
|
7327
|
+
CircuitBreakerService = _ts_decorate46([
|
|
7328
|
+
Injectable35()
|
|
7514
7329
|
], CircuitBreakerService);
|
|
7515
7330
|
|
|
7516
7331
|
// src/modules/a2a/client/peer-selector.service.ts
|
|
7517
|
-
function
|
|
7332
|
+
function _ts_decorate47(decorators, target, key, desc) {
|
|
7518
7333
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7519
7334
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7520
7335
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7521
7336
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7522
7337
|
}
|
|
7523
|
-
__name(
|
|
7338
|
+
__name(_ts_decorate47, "_ts_decorate");
|
|
7524
7339
|
function _ts_metadata22(k, v) {
|
|
7525
7340
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
7526
7341
|
}
|
|
@@ -7577,8 +7392,8 @@ var PeerSelectorService = class {
|
|
|
7577
7392
|
};
|
|
7578
7393
|
}
|
|
7579
7394
|
};
|
|
7580
|
-
PeerSelectorService =
|
|
7581
|
-
|
|
7395
|
+
PeerSelectorService = _ts_decorate47([
|
|
7396
|
+
Injectable36(),
|
|
7582
7397
|
_ts_metadata22("design:type", Function),
|
|
7583
7398
|
_ts_metadata22("design:paramtypes", [
|
|
7584
7399
|
typeof PeerRegistryService === "undefined" ? Object : PeerRegistryService,
|
|
@@ -7587,18 +7402,18 @@ PeerSelectorService = _ts_decorate48([
|
|
|
7587
7402
|
], PeerSelectorService);
|
|
7588
7403
|
|
|
7589
7404
|
// src/modules/a2a/client/a2a-client.service.ts
|
|
7590
|
-
import { Injectable as
|
|
7405
|
+
import { Injectable as Injectable38 } from "@nestjs/common";
|
|
7591
7406
|
|
|
7592
7407
|
// src/modules/a2a/auth/a2a-auth.service.ts
|
|
7593
|
-
import { Injectable as
|
|
7408
|
+
import { Injectable as Injectable37 } from "@nestjs/common";
|
|
7594
7409
|
import * as crypto2 from "crypto";
|
|
7595
|
-
function
|
|
7410
|
+
function _ts_decorate48(decorators, target, key, desc) {
|
|
7596
7411
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7597
7412
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7598
7413
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7599
7414
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7600
7415
|
}
|
|
7601
|
-
__name(
|
|
7416
|
+
__name(_ts_decorate48, "_ts_decorate");
|
|
7602
7417
|
var A2AAuthService = class {
|
|
7603
7418
|
static {
|
|
7604
7419
|
__name(this, "A2AAuthService");
|
|
@@ -7722,18 +7537,18 @@ var A2AAuthService = class {
|
|
|
7722
7537
|
return this.usedNonces.size;
|
|
7723
7538
|
}
|
|
7724
7539
|
};
|
|
7725
|
-
A2AAuthService =
|
|
7726
|
-
|
|
7540
|
+
A2AAuthService = _ts_decorate48([
|
|
7541
|
+
Injectable37()
|
|
7727
7542
|
], A2AAuthService);
|
|
7728
7543
|
|
|
7729
7544
|
// src/modules/a2a/client/a2a-client.service.ts
|
|
7730
|
-
function
|
|
7545
|
+
function _ts_decorate49(decorators, target, key, desc) {
|
|
7731
7546
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7732
7547
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7733
7548
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7734
7549
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7735
7550
|
}
|
|
7736
|
-
__name(
|
|
7551
|
+
__name(_ts_decorate49, "_ts_decorate");
|
|
7737
7552
|
function _ts_metadata23(k, v) {
|
|
7738
7553
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
7739
7554
|
}
|
|
@@ -7836,8 +7651,8 @@ var A2AClientService = class {
|
|
|
7836
7651
|
return this.sendTask(targetUrl, taskType, payload, ourPeerId, ourPrivateKeyHex);
|
|
7837
7652
|
}
|
|
7838
7653
|
};
|
|
7839
|
-
A2AClientService =
|
|
7840
|
-
|
|
7654
|
+
A2AClientService = _ts_decorate49([
|
|
7655
|
+
Injectable38(),
|
|
7841
7656
|
_ts_metadata23("design:type", Function),
|
|
7842
7657
|
_ts_metadata23("design:paramtypes", [
|
|
7843
7658
|
typeof A2AAuthService === "undefined" ? Object : A2AAuthService,
|
|
@@ -7846,13 +7661,13 @@ A2AClientService = _ts_decorate50([
|
|
|
7846
7661
|
], A2AClientService);
|
|
7847
7662
|
|
|
7848
7663
|
// src/modules/agent/langgraph/tools/delegate-peer.tool.ts
|
|
7849
|
-
function
|
|
7664
|
+
function _ts_decorate50(decorators, target, key, desc) {
|
|
7850
7665
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7851
7666
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7852
7667
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7853
7668
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7854
7669
|
}
|
|
7855
|
-
__name(
|
|
7670
|
+
__name(_ts_decorate50, "_ts_decorate");
|
|
7856
7671
|
function _ts_metadata24(k, v) {
|
|
7857
7672
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
7858
7673
|
}
|
|
@@ -7930,8 +7745,8 @@ var DelegateToPeerTool = class {
|
|
|
7930
7745
|
}
|
|
7931
7746
|
}
|
|
7932
7747
|
};
|
|
7933
|
-
DelegateToPeerTool =
|
|
7934
|
-
|
|
7748
|
+
DelegateToPeerTool = _ts_decorate50([
|
|
7749
|
+
Injectable39(),
|
|
7935
7750
|
_ts_metadata24("design:type", Function),
|
|
7936
7751
|
_ts_metadata24("design:paramtypes", [
|
|
7937
7752
|
typeof PeerSelectorService === "undefined" ? Object : PeerSelectorService,
|
|
@@ -7940,14 +7755,14 @@ DelegateToPeerTool = _ts_decorate51([
|
|
|
7940
7755
|
], DelegateToPeerTool);
|
|
7941
7756
|
|
|
7942
7757
|
// src/modules/agent/langgraph/tools/request-peer-review.tool.ts
|
|
7943
|
-
import { Injectable as
|
|
7944
|
-
function
|
|
7758
|
+
import { Injectable as Injectable40 } from "@nestjs/common";
|
|
7759
|
+
function _ts_decorate51(decorators, target, key, desc) {
|
|
7945
7760
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7946
7761
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7947
7762
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7948
7763
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7949
7764
|
}
|
|
7950
|
-
__name(
|
|
7765
|
+
__name(_ts_decorate51, "_ts_decorate");
|
|
7951
7766
|
function _ts_metadata25(k, v) {
|
|
7952
7767
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
7953
7768
|
}
|
|
@@ -8031,8 +7846,8 @@ var RequestPeerReviewTool = class {
|
|
|
8031
7846
|
}
|
|
8032
7847
|
}
|
|
8033
7848
|
};
|
|
8034
|
-
RequestPeerReviewTool =
|
|
8035
|
-
|
|
7849
|
+
RequestPeerReviewTool = _ts_decorate51([
|
|
7850
|
+
Injectable40(),
|
|
8036
7851
|
_ts_metadata25("design:type", Function),
|
|
8037
7852
|
_ts_metadata25("design:paramtypes", [
|
|
8038
7853
|
typeof PeerSelectorService === "undefined" ? Object : PeerSelectorService,
|
|
@@ -8041,13 +7856,13 @@ RequestPeerReviewTool = _ts_decorate52([
|
|
|
8041
7856
|
], RequestPeerReviewTool);
|
|
8042
7857
|
|
|
8043
7858
|
// src/modules/agent/langgraph/tools/tool-runner.service.ts
|
|
8044
|
-
function
|
|
7859
|
+
function _ts_decorate52(decorators, target, key, desc) {
|
|
8045
7860
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8046
7861
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8047
7862
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8048
7863
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8049
7864
|
}
|
|
8050
|
-
__name(
|
|
7865
|
+
__name(_ts_decorate52, "_ts_decorate");
|
|
8051
7866
|
function _ts_metadata26(k, v) {
|
|
8052
7867
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
8053
7868
|
}
|
|
@@ -8182,8 +7997,8 @@ var ToolRunnerService = class {
|
|
|
8182
7997
|
};
|
|
8183
7998
|
}
|
|
8184
7999
|
};
|
|
8185
|
-
ToolRunnerService =
|
|
8186
|
-
|
|
8000
|
+
ToolRunnerService = _ts_decorate52([
|
|
8001
|
+
Injectable41(),
|
|
8187
8002
|
_ts_param6(3, Optional6()),
|
|
8188
8003
|
_ts_param6(4, Optional6()),
|
|
8189
8004
|
_ts_metadata26("design:type", Function),
|
|
@@ -8203,19 +8018,19 @@ init_generate_embedding_tool();
|
|
|
8203
8018
|
|
|
8204
8019
|
// src/modules/a2a/client/client.module.ts
|
|
8205
8020
|
import { Module as Module12 } from "@nestjs/common";
|
|
8206
|
-
function
|
|
8021
|
+
function _ts_decorate53(decorators, target, key, desc) {
|
|
8207
8022
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8208
8023
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8209
8024
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8210
8025
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8211
8026
|
}
|
|
8212
|
-
__name(
|
|
8027
|
+
__name(_ts_decorate53, "_ts_decorate");
|
|
8213
8028
|
var A2AClientModule = class {
|
|
8214
8029
|
static {
|
|
8215
8030
|
__name(this, "A2AClientModule");
|
|
8216
8031
|
}
|
|
8217
8032
|
};
|
|
8218
|
-
A2AClientModule =
|
|
8033
|
+
A2AClientModule = _ts_decorate53([
|
|
8219
8034
|
Module12({
|
|
8220
8035
|
providers: [
|
|
8221
8036
|
A2AAuthService,
|
|
@@ -8235,19 +8050,19 @@ A2AClientModule = _ts_decorate54([
|
|
|
8235
8050
|
], A2AClientModule);
|
|
8236
8051
|
|
|
8237
8052
|
// src/modules/agent/langgraph/tools/tools.module.ts
|
|
8238
|
-
function
|
|
8053
|
+
function _ts_decorate54(decorators, target, key, desc) {
|
|
8239
8054
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8240
8055
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8241
8056
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8242
8057
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8243
8058
|
}
|
|
8244
|
-
__name(
|
|
8059
|
+
__name(_ts_decorate54, "_ts_decorate");
|
|
8245
8060
|
var ToolsModule = class {
|
|
8246
8061
|
static {
|
|
8247
8062
|
__name(this, "ToolsModule");
|
|
8248
8063
|
}
|
|
8249
8064
|
};
|
|
8250
|
-
ToolsModule =
|
|
8065
|
+
ToolsModule = _ts_decorate54([
|
|
8251
8066
|
Module13({
|
|
8252
8067
|
// Pulling in the shared WorkOrderCoordinatorModule (instead of declaring
|
|
8253
8068
|
// WorkOrderCoordinatorHelper locally) makes NestJS reuse the single
|
|
@@ -8275,19 +8090,19 @@ ToolsModule = _ts_decorate55([
|
|
|
8275
8090
|
], ToolsModule);
|
|
8276
8091
|
|
|
8277
8092
|
// src/modules/agent/work-order/work-order.module.ts
|
|
8278
|
-
function
|
|
8093
|
+
function _ts_decorate55(decorators, target, key, desc) {
|
|
8279
8094
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8280
8095
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8281
8096
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8282
8097
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8283
8098
|
}
|
|
8284
|
-
__name(
|
|
8099
|
+
__name(_ts_decorate55, "_ts_decorate");
|
|
8285
8100
|
var WorkOrderModule = class {
|
|
8286
8101
|
static {
|
|
8287
8102
|
__name(this, "WorkOrderModule");
|
|
8288
8103
|
}
|
|
8289
8104
|
};
|
|
8290
|
-
WorkOrderModule =
|
|
8105
|
+
WorkOrderModule = _ts_decorate55([
|
|
8291
8106
|
Module14({
|
|
8292
8107
|
imports: [
|
|
8293
8108
|
LlmModule,
|
|
@@ -8336,15 +8151,15 @@ import { Module as Module15 } from "@nestjs/common";
|
|
|
8336
8151
|
|
|
8337
8152
|
// src/modules/agent/langgraph/nodes/fetch-work-orders.ts
|
|
8338
8153
|
init_work_order_coordinator();
|
|
8339
|
-
import { Injectable as
|
|
8154
|
+
import { Injectable as Injectable42 } from "@nestjs/common";
|
|
8340
8155
|
init_logger();
|
|
8341
|
-
function
|
|
8156
|
+
function _ts_decorate56(decorators, target, key, desc) {
|
|
8342
8157
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8343
8158
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8344
8159
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8345
8160
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8346
8161
|
}
|
|
8347
|
-
__name(
|
|
8162
|
+
__name(_ts_decorate56, "_ts_decorate");
|
|
8348
8163
|
function _ts_metadata27(k, v) {
|
|
8349
8164
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
8350
8165
|
}
|
|
@@ -8453,8 +8268,8 @@ var FetchWorkOrdersNode = class {
|
|
|
8453
8268
|
this.completedWorkOrderIds.clear();
|
|
8454
8269
|
}
|
|
8455
8270
|
};
|
|
8456
|
-
FetchWorkOrdersNode =
|
|
8457
|
-
|
|
8271
|
+
FetchWorkOrdersNode = _ts_decorate56([
|
|
8272
|
+
Injectable42(),
|
|
8458
8273
|
_ts_metadata27("design:type", Function),
|
|
8459
8274
|
_ts_metadata27("design:paramtypes", [
|
|
8460
8275
|
typeof WorkOrderCoordinatorHelper === "undefined" ? Object : WorkOrderCoordinatorHelper,
|
|
@@ -8464,14 +8279,14 @@ FetchWorkOrdersNode = _ts_decorate57([
|
|
|
8464
8279
|
], FetchWorkOrdersNode);
|
|
8465
8280
|
|
|
8466
8281
|
// src/modules/agent/langgraph/nodes/select-wo.ts
|
|
8467
|
-
import { Injectable as
|
|
8468
|
-
function
|
|
8282
|
+
import { Injectable as Injectable43 } from "@nestjs/common";
|
|
8283
|
+
function _ts_decorate57(decorators, target, key, desc) {
|
|
8469
8284
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8470
8285
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8471
8286
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8472
8287
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8473
8288
|
}
|
|
8474
|
-
__name(
|
|
8289
|
+
__name(_ts_decorate57, "_ts_decorate");
|
|
8475
8290
|
var SelectWorkOrderNode = class {
|
|
8476
8291
|
static {
|
|
8477
8292
|
__name(this, "SelectWorkOrderNode");
|
|
@@ -8488,20 +8303,20 @@ var SelectWorkOrderNode = class {
|
|
|
8488
8303
|
};
|
|
8489
8304
|
}
|
|
8490
8305
|
};
|
|
8491
|
-
SelectWorkOrderNode =
|
|
8492
|
-
|
|
8306
|
+
SelectWorkOrderNode = _ts_decorate57([
|
|
8307
|
+
Injectable43()
|
|
8493
8308
|
], SelectWorkOrderNode);
|
|
8494
8309
|
|
|
8495
8310
|
// src/modules/agent/langgraph/nodes/evaluate-economics.ts
|
|
8496
|
-
import { Injectable as
|
|
8311
|
+
import { Injectable as Injectable44 } from "@nestjs/common";
|
|
8497
8312
|
init_logger();
|
|
8498
|
-
function
|
|
8313
|
+
function _ts_decorate58(decorators, target, key, desc) {
|
|
8499
8314
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8500
8315
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8501
8316
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8502
8317
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8503
8318
|
}
|
|
8504
|
-
__name(
|
|
8319
|
+
__name(_ts_decorate58, "_ts_decorate");
|
|
8505
8320
|
function _ts_metadata28(k, v) {
|
|
8506
8321
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
8507
8322
|
}
|
|
@@ -8544,8 +8359,8 @@ var EvaluateEconomicsNode = class {
|
|
|
8544
8359
|
return llmModel.modelId;
|
|
8545
8360
|
}
|
|
8546
8361
|
};
|
|
8547
|
-
EvaluateEconomicsNode =
|
|
8548
|
-
|
|
8362
|
+
EvaluateEconomicsNode = _ts_decorate58([
|
|
8363
|
+
Injectable44(),
|
|
8549
8364
|
_ts_metadata28("design:type", Function),
|
|
8550
8365
|
_ts_metadata28("design:paramtypes", [
|
|
8551
8366
|
typeof WorkOrderEvaluationHelper === "undefined" ? Object : WorkOrderEvaluationHelper
|
|
@@ -8554,15 +8369,15 @@ EvaluateEconomicsNode = _ts_decorate59([
|
|
|
8554
8369
|
|
|
8555
8370
|
// src/modules/agent/langgraph/nodes/accept-wo.ts
|
|
8556
8371
|
init_work_order_coordinator();
|
|
8557
|
-
import { Injectable as
|
|
8372
|
+
import { Injectable as Injectable45 } from "@nestjs/common";
|
|
8558
8373
|
init_logger();
|
|
8559
|
-
function
|
|
8374
|
+
function _ts_decorate59(decorators, target, key, desc) {
|
|
8560
8375
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8561
8376
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8562
8377
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8563
8378
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8564
8379
|
}
|
|
8565
|
-
__name(
|
|
8380
|
+
__name(_ts_decorate59, "_ts_decorate");
|
|
8566
8381
|
function _ts_metadata29(k, v) {
|
|
8567
8382
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
8568
8383
|
}
|
|
@@ -8601,8 +8416,8 @@ var AcceptWorkOrderNode = class {
|
|
|
8601
8416
|
};
|
|
8602
8417
|
}
|
|
8603
8418
|
};
|
|
8604
|
-
AcceptWorkOrderNode =
|
|
8605
|
-
|
|
8419
|
+
AcceptWorkOrderNode = _ts_decorate59([
|
|
8420
|
+
Injectable45(),
|
|
8606
8421
|
_ts_metadata29("design:type", Function),
|
|
8607
8422
|
_ts_metadata29("design:paramtypes", [
|
|
8608
8423
|
typeof WorkOrderCoordinatorHelper === "undefined" ? Object : WorkOrderCoordinatorHelper,
|
|
@@ -8611,18 +8426,18 @@ AcceptWorkOrderNode = _ts_decorate60([
|
|
|
8611
8426
|
], AcceptWorkOrderNode);
|
|
8612
8427
|
|
|
8613
8428
|
// src/modules/agent/langgraph/nodes/execute-research.ts
|
|
8614
|
-
import { Injectable as
|
|
8429
|
+
import { Injectable as Injectable47 } from "@nestjs/common";
|
|
8615
8430
|
|
|
8616
8431
|
// src/modules/agent/langgraph/llm.service.ts
|
|
8617
|
-
import { Injectable as
|
|
8432
|
+
import { Injectable as Injectable46 } from "@nestjs/common";
|
|
8618
8433
|
import { startActiveObservation as startActiveObservation2 } from "@langfuse/tracing";
|
|
8619
|
-
function
|
|
8434
|
+
function _ts_decorate60(decorators, target, key, desc) {
|
|
8620
8435
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8621
8436
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8622
8437
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8623
8438
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8624
8439
|
}
|
|
8625
|
-
__name(
|
|
8440
|
+
__name(_ts_decorate60, "_ts_decorate");
|
|
8626
8441
|
function _ts_metadata30(k, v) {
|
|
8627
8442
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
8628
8443
|
}
|
|
@@ -8683,8 +8498,8 @@ var LangGraphLlmService = class {
|
|
|
8683
8498
|
});
|
|
8684
8499
|
}
|
|
8685
8500
|
};
|
|
8686
|
-
LangGraphLlmService =
|
|
8687
|
-
|
|
8501
|
+
LangGraphLlmService = _ts_decorate60([
|
|
8502
|
+
Injectable46(),
|
|
8688
8503
|
_ts_metadata30("design:type", Function),
|
|
8689
8504
|
_ts_metadata30("design:paramtypes", [
|
|
8690
8505
|
typeof LlmProviderHelper === "undefined" ? Object : LlmProviderHelper
|
|
@@ -8891,13 +8706,13 @@ __name(buildMedicalReActPrompt, "buildMedicalReActPrompt");
|
|
|
8891
8706
|
|
|
8892
8707
|
// src/modules/agent/langgraph/nodes/execute-research.ts
|
|
8893
8708
|
init_logger();
|
|
8894
|
-
function
|
|
8709
|
+
function _ts_decorate61(decorators, target, key, desc) {
|
|
8895
8710
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8896
8711
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8897
8712
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8898
8713
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8899
8714
|
}
|
|
8900
|
-
__name(
|
|
8715
|
+
__name(_ts_decorate61, "_ts_decorate");
|
|
8901
8716
|
function _ts_metadata31(k, v) {
|
|
8902
8717
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
8903
8718
|
}
|
|
@@ -9118,8 +8933,8 @@ var ExecuteResearchNode = class {
|
|
|
9118
8933
|
}
|
|
9119
8934
|
}
|
|
9120
8935
|
};
|
|
9121
|
-
ExecuteResearchNode =
|
|
9122
|
-
|
|
8936
|
+
ExecuteResearchNode = _ts_decorate61([
|
|
8937
|
+
Injectable47(),
|
|
9123
8938
|
_ts_metadata31("design:type", Function),
|
|
9124
8939
|
_ts_metadata31("design:paramtypes", [
|
|
9125
8940
|
typeof WorkOrderExecutionHelper === "undefined" ? Object : WorkOrderExecutionHelper,
|
|
@@ -9131,15 +8946,15 @@ ExecuteResearchNode = _ts_decorate62([
|
|
|
9131
8946
|
], ExecuteResearchNode);
|
|
9132
8947
|
|
|
9133
8948
|
// src/modules/agent/langgraph/nodes/execute-training.ts
|
|
9134
|
-
import { Injectable as
|
|
8949
|
+
import { Injectable as Injectable48 } from "@nestjs/common";
|
|
9135
8950
|
init_logger();
|
|
9136
|
-
function
|
|
8951
|
+
function _ts_decorate62(decorators, target, key, desc) {
|
|
9137
8952
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9138
8953
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9139
8954
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9140
8955
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9141
8956
|
}
|
|
9142
|
-
__name(
|
|
8957
|
+
__name(_ts_decorate62, "_ts_decorate");
|
|
9143
8958
|
function _ts_metadata32(k, v) {
|
|
9144
8959
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9145
8960
|
}
|
|
@@ -9193,8 +9008,8 @@ var ExecuteTrainingNode = class {
|
|
|
9193
9008
|
}
|
|
9194
9009
|
}
|
|
9195
9010
|
};
|
|
9196
|
-
ExecuteTrainingNode =
|
|
9197
|
-
|
|
9011
|
+
ExecuteTrainingNode = _ts_decorate62([
|
|
9012
|
+
Injectable48(),
|
|
9198
9013
|
_ts_metadata32("design:type", Function),
|
|
9199
9014
|
_ts_metadata32("design:paramtypes", [
|
|
9200
9015
|
typeof WorkOrderExecutionHelper === "undefined" ? Object : WorkOrderExecutionHelper
|
|
@@ -9202,15 +9017,15 @@ ExecuteTrainingNode = _ts_decorate63([
|
|
|
9202
9017
|
], ExecuteTrainingNode);
|
|
9203
9018
|
|
|
9204
9019
|
// src/modules/agent/langgraph/nodes/execute-inference.ts
|
|
9205
|
-
import { Injectable as
|
|
9020
|
+
import { Injectable as Injectable49 } from "@nestjs/common";
|
|
9206
9021
|
init_logger();
|
|
9207
|
-
function
|
|
9022
|
+
function _ts_decorate63(decorators, target, key, desc) {
|
|
9208
9023
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9209
9024
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9210
9025
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9211
9026
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9212
9027
|
}
|
|
9213
|
-
__name(
|
|
9028
|
+
__name(_ts_decorate63, "_ts_decorate");
|
|
9214
9029
|
function _ts_metadata33(k, v) {
|
|
9215
9030
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9216
9031
|
}
|
|
@@ -9261,8 +9076,8 @@ var ExecuteInferenceNode = class {
|
|
|
9261
9076
|
}
|
|
9262
9077
|
}
|
|
9263
9078
|
};
|
|
9264
|
-
ExecuteInferenceNode =
|
|
9265
|
-
|
|
9079
|
+
ExecuteInferenceNode = _ts_decorate63([
|
|
9080
|
+
Injectable49(),
|
|
9266
9081
|
_ts_metadata33("design:type", Function),
|
|
9267
9082
|
_ts_metadata33("design:paramtypes", [
|
|
9268
9083
|
typeof WorkOrderExecutionHelper === "undefined" ? Object : WorkOrderExecutionHelper
|
|
@@ -9270,15 +9085,15 @@ ExecuteInferenceNode = _ts_decorate64([
|
|
|
9270
9085
|
], ExecuteInferenceNode);
|
|
9271
9086
|
|
|
9272
9087
|
// src/modules/agent/langgraph/nodes/execute-diloco.ts
|
|
9273
|
-
import { Injectable as
|
|
9088
|
+
import { Injectable as Injectable50 } from "@nestjs/common";
|
|
9274
9089
|
init_logger();
|
|
9275
|
-
function
|
|
9090
|
+
function _ts_decorate64(decorators, target, key, desc) {
|
|
9276
9091
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9277
9092
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9278
9093
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9279
9094
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9280
9095
|
}
|
|
9281
|
-
__name(
|
|
9096
|
+
__name(_ts_decorate64, "_ts_decorate");
|
|
9282
9097
|
function _ts_metadata34(k, v) {
|
|
9283
9098
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9284
9099
|
}
|
|
@@ -9322,8 +9137,8 @@ var ExecuteDilocoNode = class {
|
|
|
9322
9137
|
}
|
|
9323
9138
|
}
|
|
9324
9139
|
};
|
|
9325
|
-
ExecuteDilocoNode =
|
|
9326
|
-
|
|
9140
|
+
ExecuteDilocoNode = _ts_decorate64([
|
|
9141
|
+
Injectable50(),
|
|
9327
9142
|
_ts_metadata34("design:type", Function),
|
|
9328
9143
|
_ts_metadata34("design:paramtypes", [
|
|
9329
9144
|
typeof WorkOrderExecutionHelper === "undefined" ? Object : WorkOrderExecutionHelper
|
|
@@ -9331,15 +9146,15 @@ ExecuteDilocoNode = _ts_decorate65([
|
|
|
9331
9146
|
], ExecuteDilocoNode);
|
|
9332
9147
|
|
|
9333
9148
|
// src/modules/agent/langgraph/nodes/quality-gate.ts
|
|
9334
|
-
import { Injectable as
|
|
9149
|
+
import { Injectable as Injectable51 } from "@nestjs/common";
|
|
9335
9150
|
init_logger();
|
|
9336
|
-
function
|
|
9151
|
+
function _ts_decorate65(decorators, target, key, desc) {
|
|
9337
9152
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9338
9153
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9339
9154
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9340
9155
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9341
9156
|
}
|
|
9342
|
-
__name(
|
|
9157
|
+
__name(_ts_decorate65, "_ts_decorate");
|
|
9343
9158
|
function _ts_metadata35(k, v) {
|
|
9344
9159
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9345
9160
|
}
|
|
@@ -9402,8 +9217,8 @@ var QualityGateNode = class {
|
|
|
9402
9217
|
return new Promise((resolve4) => setTimeout(resolve4, ms));
|
|
9403
9218
|
}
|
|
9404
9219
|
};
|
|
9405
|
-
QualityGateNode =
|
|
9406
|
-
|
|
9220
|
+
QualityGateNode = _ts_decorate65([
|
|
9221
|
+
Injectable51(),
|
|
9407
9222
|
_ts_metadata35("design:type", Function),
|
|
9408
9223
|
_ts_metadata35("design:paramtypes", [
|
|
9409
9224
|
typeof WorkOrderExecutionHelper === "undefined" ? Object : WorkOrderExecutionHelper,
|
|
@@ -9413,15 +9228,15 @@ QualityGateNode = _ts_decorate66([
|
|
|
9413
9228
|
|
|
9414
9229
|
// src/modules/agent/langgraph/nodes/submit-result.ts
|
|
9415
9230
|
init_work_order_coordinator();
|
|
9416
|
-
import { Injectable as
|
|
9231
|
+
import { Injectable as Injectable52 } from "@nestjs/common";
|
|
9417
9232
|
init_logger();
|
|
9418
|
-
function
|
|
9233
|
+
function _ts_decorate66(decorators, target, key, desc) {
|
|
9419
9234
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9420
9235
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9421
9236
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9422
9237
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9423
9238
|
}
|
|
9424
|
-
__name(
|
|
9239
|
+
__name(_ts_decorate66, "_ts_decorate");
|
|
9425
9240
|
function _ts_metadata36(k, v) {
|
|
9426
9241
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9427
9242
|
}
|
|
@@ -9478,8 +9293,8 @@ var SubmitResultNode = class {
|
|
|
9478
9293
|
};
|
|
9479
9294
|
}
|
|
9480
9295
|
};
|
|
9481
|
-
SubmitResultNode =
|
|
9482
|
-
|
|
9296
|
+
SubmitResultNode = _ts_decorate66([
|
|
9297
|
+
Injectable52(),
|
|
9483
9298
|
_ts_metadata36("design:type", Function),
|
|
9484
9299
|
_ts_metadata36("design:paramtypes", [
|
|
9485
9300
|
typeof WorkOrderCoordinatorHelper === "undefined" ? Object : WorkOrderCoordinatorHelper,
|
|
@@ -9488,15 +9303,15 @@ SubmitResultNode = _ts_decorate67([
|
|
|
9488
9303
|
], SubmitResultNode);
|
|
9489
9304
|
|
|
9490
9305
|
// src/modules/agent/langgraph/nodes/update-memory.ts
|
|
9491
|
-
import { Injectable as
|
|
9306
|
+
import { Injectable as Injectable53 } from "@nestjs/common";
|
|
9492
9307
|
init_logger();
|
|
9493
|
-
function
|
|
9308
|
+
function _ts_decorate67(decorators, target, key, desc) {
|
|
9494
9309
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9495
9310
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9496
9311
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9497
9312
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9498
9313
|
}
|
|
9499
|
-
__name(
|
|
9314
|
+
__name(_ts_decorate67, "_ts_decorate");
|
|
9500
9315
|
function _ts_metadata37(k, v) {
|
|
9501
9316
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9502
9317
|
}
|
|
@@ -9523,8 +9338,8 @@ var UpdateMemoryNode = class {
|
|
|
9523
9338
|
};
|
|
9524
9339
|
}
|
|
9525
9340
|
};
|
|
9526
|
-
UpdateMemoryNode =
|
|
9527
|
-
|
|
9341
|
+
UpdateMemoryNode = _ts_decorate67([
|
|
9342
|
+
Injectable53(),
|
|
9528
9343
|
_ts_metadata37("design:type", Function),
|
|
9529
9344
|
_ts_metadata37("design:paramtypes", [
|
|
9530
9345
|
typeof WorkOrderExecutionHelper === "undefined" ? Object : WorkOrderExecutionHelper,
|
|
@@ -9534,14 +9349,14 @@ UpdateMemoryNode = _ts_decorate68([
|
|
|
9534
9349
|
|
|
9535
9350
|
// src/modules/agent/langgraph/nodes/retrieve-memory.ts
|
|
9536
9351
|
init_logger();
|
|
9537
|
-
import { Injectable as
|
|
9538
|
-
function
|
|
9352
|
+
import { Injectable as Injectable54 } from "@nestjs/common";
|
|
9353
|
+
function _ts_decorate68(decorators, target, key, desc) {
|
|
9539
9354
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9540
9355
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9541
9356
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9542
9357
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9543
9358
|
}
|
|
9544
|
-
__name(
|
|
9359
|
+
__name(_ts_decorate68, "_ts_decorate");
|
|
9545
9360
|
var RetrieveMemoryNode = class {
|
|
9546
9361
|
static {
|
|
9547
9362
|
__name(this, "RetrieveMemoryNode");
|
|
@@ -9578,12 +9393,12 @@ var RetrieveMemoryNode = class {
|
|
|
9578
9393
|
].sort((a, b) => b.importance - a.importance).slice(0, count);
|
|
9579
9394
|
}
|
|
9580
9395
|
};
|
|
9581
|
-
RetrieveMemoryNode =
|
|
9582
|
-
|
|
9396
|
+
RetrieveMemoryNode = _ts_decorate68([
|
|
9397
|
+
Injectable54()
|
|
9583
9398
|
], RetrieveMemoryNode);
|
|
9584
9399
|
|
|
9585
9400
|
// src/modules/agent/langgraph/nodes/plan-execution.ts
|
|
9586
|
-
import { Injectable as
|
|
9401
|
+
import { Injectable as Injectable55 } from "@nestjs/common";
|
|
9587
9402
|
|
|
9588
9403
|
// src/modules/agent/langgraph/prompts/plan.ts
|
|
9589
9404
|
function buildPlanningPrompt(params) {
|
|
@@ -9619,13 +9434,13 @@ var DEFAULT_EXECUTION_PLAN = [
|
|
|
9619
9434
|
|
|
9620
9435
|
// src/modules/agent/langgraph/nodes/plan-execution.ts
|
|
9621
9436
|
init_logger();
|
|
9622
|
-
function
|
|
9437
|
+
function _ts_decorate69(decorators, target, key, desc) {
|
|
9623
9438
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9624
9439
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9625
9440
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9626
9441
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9627
9442
|
}
|
|
9628
|
-
__name(
|
|
9443
|
+
__name(_ts_decorate69, "_ts_decorate");
|
|
9629
9444
|
function _ts_metadata38(k, v) {
|
|
9630
9445
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9631
9446
|
}
|
|
@@ -9722,8 +9537,8 @@ var PlanExecutionNode = class {
|
|
|
9722
9537
|
}
|
|
9723
9538
|
}
|
|
9724
9539
|
};
|
|
9725
|
-
PlanExecutionNode =
|
|
9726
|
-
|
|
9540
|
+
PlanExecutionNode = _ts_decorate69([
|
|
9541
|
+
Injectable55(),
|
|
9727
9542
|
_ts_metadata38("design:type", Function),
|
|
9728
9543
|
_ts_metadata38("design:paramtypes", [
|
|
9729
9544
|
typeof LangGraphLlmService === "undefined" ? Object : LangGraphLlmService,
|
|
@@ -9732,7 +9547,7 @@ PlanExecutionNode = _ts_decorate70([
|
|
|
9732
9547
|
], PlanExecutionNode);
|
|
9733
9548
|
|
|
9734
9549
|
// src/modules/agent/langgraph/nodes/self-critique.ts
|
|
9735
|
-
import { Injectable as
|
|
9550
|
+
import { Injectable as Injectable56 } from "@nestjs/common";
|
|
9736
9551
|
|
|
9737
9552
|
// src/modules/agent/langgraph/prompts/medical/medical-self-critique.ts
|
|
9738
9553
|
function buildMedicalSelfCritiquePrompt(p) {
|
|
@@ -10270,13 +10085,13 @@ __name(extractFirstBalancedObject, "extractFirstBalancedObject");
|
|
|
10270
10085
|
|
|
10271
10086
|
// src/modules/agent/langgraph/nodes/self-critique.ts
|
|
10272
10087
|
init_logger();
|
|
10273
|
-
function
|
|
10088
|
+
function _ts_decorate70(decorators, target, key, desc) {
|
|
10274
10089
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10275
10090
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10276
10091
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10277
10092
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10278
10093
|
}
|
|
10279
|
-
__name(
|
|
10094
|
+
__name(_ts_decorate70, "_ts_decorate");
|
|
10280
10095
|
function _ts_metadata39(k, v) {
|
|
10281
10096
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10282
10097
|
}
|
|
@@ -10359,8 +10174,8 @@ ${relatedDois.map((d) => ` - ${d}`).join("\n")}` : ""
|
|
|
10359
10174
|
}
|
|
10360
10175
|
}
|
|
10361
10176
|
};
|
|
10362
|
-
SelfCritiqueNode =
|
|
10363
|
-
|
|
10177
|
+
SelfCritiqueNode = _ts_decorate70([
|
|
10178
|
+
Injectable56(),
|
|
10364
10179
|
_ts_metadata39("design:type", Function),
|
|
10365
10180
|
_ts_metadata39("design:paramtypes", [
|
|
10366
10181
|
typeof LangGraphLlmService === "undefined" ? Object : LangGraphLlmService
|
|
@@ -10368,7 +10183,7 @@ SelfCritiqueNode = _ts_decorate71([
|
|
|
10368
10183
|
], SelfCritiqueNode);
|
|
10369
10184
|
|
|
10370
10185
|
// src/modules/agent/langgraph/nodes/researcher-node.ts
|
|
10371
|
-
import { Injectable as
|
|
10186
|
+
import { Injectable as Injectable57 } from "@nestjs/common";
|
|
10372
10187
|
init_work_order_coordinator();
|
|
10373
10188
|
|
|
10374
10189
|
// src/modules/agent/langgraph/prompts/medical/medical-researcher.ts
|
|
@@ -10477,13 +10292,13 @@ __name(buildMedicalResearcherPrompt, "buildMedicalResearcherPrompt");
|
|
|
10477
10292
|
|
|
10478
10293
|
// src/modules/agent/langgraph/nodes/researcher-node.ts
|
|
10479
10294
|
init_logger();
|
|
10480
|
-
function
|
|
10295
|
+
function _ts_decorate71(decorators, target, key, desc) {
|
|
10481
10296
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10482
10297
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10483
10298
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10484
10299
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10485
10300
|
}
|
|
10486
|
-
__name(
|
|
10301
|
+
__name(_ts_decorate71, "_ts_decorate");
|
|
10487
10302
|
function _ts_metadata40(k, v) {
|
|
10488
10303
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10489
10304
|
}
|
|
@@ -10570,8 +10385,8 @@ var ResearcherNode = class {
|
|
|
10570
10385
|
return null;
|
|
10571
10386
|
}
|
|
10572
10387
|
};
|
|
10573
|
-
ResearcherNode =
|
|
10574
|
-
|
|
10388
|
+
ResearcherNode = _ts_decorate71([
|
|
10389
|
+
Injectable57(),
|
|
10575
10390
|
_ts_metadata40("design:type", Function),
|
|
10576
10391
|
_ts_metadata40("design:paramtypes", [
|
|
10577
10392
|
typeof LlmProviderHelper === "undefined" ? Object : LlmProviderHelper,
|
|
@@ -10580,16 +10395,16 @@ ResearcherNode = _ts_decorate72([
|
|
|
10580
10395
|
], ResearcherNode);
|
|
10581
10396
|
|
|
10582
10397
|
// src/modules/agent/langgraph/nodes/critic-node.ts
|
|
10583
|
-
import { Injectable as
|
|
10398
|
+
import { Injectable as Injectable58 } from "@nestjs/common";
|
|
10584
10399
|
init_work_order_coordinator();
|
|
10585
10400
|
init_logger();
|
|
10586
|
-
function
|
|
10401
|
+
function _ts_decorate72(decorators, target, key, desc) {
|
|
10587
10402
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10588
10403
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10589
10404
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10590
10405
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10591
10406
|
}
|
|
10592
|
-
__name(
|
|
10407
|
+
__name(_ts_decorate72, "_ts_decorate");
|
|
10593
10408
|
function _ts_metadata41(k, v) {
|
|
10594
10409
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10595
10410
|
}
|
|
@@ -10673,8 +10488,8 @@ Requirements:
|
|
|
10673
10488
|
};
|
|
10674
10489
|
}
|
|
10675
10490
|
};
|
|
10676
|
-
CriticNode =
|
|
10677
|
-
|
|
10491
|
+
CriticNode = _ts_decorate72([
|
|
10492
|
+
Injectable58(),
|
|
10678
10493
|
_ts_metadata41("design:type", Function),
|
|
10679
10494
|
_ts_metadata41("design:paramtypes", [
|
|
10680
10495
|
typeof LlmProviderHelper === "undefined" ? Object : LlmProviderHelper,
|
|
@@ -10683,7 +10498,7 @@ CriticNode = _ts_decorate73([
|
|
|
10683
10498
|
], CriticNode);
|
|
10684
10499
|
|
|
10685
10500
|
// src/modules/agent/langgraph/nodes/synthesizer-node.ts
|
|
10686
|
-
import { Injectable as
|
|
10501
|
+
import { Injectable as Injectable59 } from "@nestjs/common";
|
|
10687
10502
|
init_work_order_coordinator();
|
|
10688
10503
|
|
|
10689
10504
|
// src/modules/agent/langgraph/prompts/medical/medical-synthesizer.ts
|
|
@@ -10770,13 +10585,13 @@ __name(buildMedicalSynthesizerPrompt, "buildMedicalSynthesizerPrompt");
|
|
|
10770
10585
|
|
|
10771
10586
|
// src/modules/agent/langgraph/nodes/synthesizer-node.ts
|
|
10772
10587
|
init_logger();
|
|
10773
|
-
function
|
|
10588
|
+
function _ts_decorate73(decorators, target, key, desc) {
|
|
10774
10589
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10775
10590
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10776
10591
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10777
10592
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10778
10593
|
}
|
|
10779
|
-
__name(
|
|
10594
|
+
__name(_ts_decorate73, "_ts_decorate");
|
|
10780
10595
|
function _ts_metadata42(k, v) {
|
|
10781
10596
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10782
10597
|
}
|
|
@@ -10983,8 +10798,8 @@ ${SCHEMA_RETRY_FIELD_EXAMPLES}`;
|
|
|
10983
10798
|
};
|
|
10984
10799
|
}
|
|
10985
10800
|
};
|
|
10986
|
-
SynthesizerNode =
|
|
10987
|
-
|
|
10801
|
+
SynthesizerNode = _ts_decorate73([
|
|
10802
|
+
Injectable59(),
|
|
10988
10803
|
_ts_metadata42("design:type", Function),
|
|
10989
10804
|
_ts_metadata42("design:paramtypes", [
|
|
10990
10805
|
typeof LlmProviderHelper === "undefined" ? Object : LlmProviderHelper,
|
|
@@ -10993,19 +10808,19 @@ SynthesizerNode = _ts_decorate74([
|
|
|
10993
10808
|
], SynthesizerNode);
|
|
10994
10809
|
|
|
10995
10810
|
// src/modules/agent/langgraph/nodes/nodes.module.ts
|
|
10996
|
-
function
|
|
10811
|
+
function _ts_decorate74(decorators, target, key, desc) {
|
|
10997
10812
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10998
10813
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10999
10814
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11000
10815
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11001
10816
|
}
|
|
11002
|
-
__name(
|
|
10817
|
+
__name(_ts_decorate74, "_ts_decorate");
|
|
11003
10818
|
var NodesModule = class {
|
|
11004
10819
|
static {
|
|
11005
10820
|
__name(this, "NodesModule");
|
|
11006
10821
|
}
|
|
11007
10822
|
};
|
|
11008
|
-
NodesModule =
|
|
10823
|
+
NodesModule = _ts_decorate74([
|
|
11009
10824
|
Module15({
|
|
11010
10825
|
imports: [
|
|
11011
10826
|
WorkOrderModule,
|
|
@@ -11056,20 +10871,20 @@ NodesModule = _ts_decorate75([
|
|
|
11056
10871
|
], NodesModule);
|
|
11057
10872
|
|
|
11058
10873
|
// src/modules/agent/langgraph/agent-graph.service.ts
|
|
11059
|
-
import { Injectable as
|
|
10874
|
+
import { Injectable as Injectable61 } from "@nestjs/common";
|
|
11060
10875
|
import { StateGraph, Annotation } from "@langchain/langgraph";
|
|
11061
10876
|
|
|
11062
10877
|
// src/modules/agent/langgraph/checkpoint.service.ts
|
|
11063
10878
|
init_logger();
|
|
11064
|
-
import { Injectable as
|
|
10879
|
+
import { Injectable as Injectable60 } from "@nestjs/common";
|
|
11065
10880
|
import { MemorySaver } from "@langchain/langgraph";
|
|
11066
|
-
function
|
|
10881
|
+
function _ts_decorate75(decorators, target, key, desc) {
|
|
11067
10882
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11068
10883
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11069
10884
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11070
10885
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11071
10886
|
}
|
|
11072
|
-
__name(
|
|
10887
|
+
__name(_ts_decorate75, "_ts_decorate");
|
|
11073
10888
|
function _ts_metadata43(k, v) {
|
|
11074
10889
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
11075
10890
|
}
|
|
@@ -11130,8 +10945,8 @@ var CheckpointService = class {
|
|
|
11130
10945
|
return Array.from(this.activeThreads.keys());
|
|
11131
10946
|
}
|
|
11132
10947
|
};
|
|
11133
|
-
CheckpointService =
|
|
11134
|
-
|
|
10948
|
+
CheckpointService = _ts_decorate75([
|
|
10949
|
+
Injectable60(),
|
|
11135
10950
|
_ts_metadata43("design:type", Function),
|
|
11136
10951
|
_ts_metadata43("design:paramtypes", [])
|
|
11137
10952
|
], CheckpointService);
|
|
@@ -11158,13 +10973,13 @@ __name(langfuseCallbacks, "langfuseCallbacks");
|
|
|
11158
10973
|
|
|
11159
10974
|
// src/modules/agent/langgraph/agent-graph.service.ts
|
|
11160
10975
|
init_logger();
|
|
11161
|
-
function
|
|
10976
|
+
function _ts_decorate76(decorators, target, key, desc) {
|
|
11162
10977
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11163
10978
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11164
10979
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11165
10980
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11166
10981
|
}
|
|
11167
|
-
__name(
|
|
10982
|
+
__name(_ts_decorate76, "_ts_decorate");
|
|
11168
10983
|
function _ts_metadata44(k, v) {
|
|
11169
10984
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
11170
10985
|
}
|
|
@@ -11482,8 +11297,8 @@ var AgentGraphService = class {
|
|
|
11482
11297
|
}
|
|
11483
11298
|
}
|
|
11484
11299
|
};
|
|
11485
|
-
AgentGraphService =
|
|
11486
|
-
|
|
11300
|
+
AgentGraphService = _ts_decorate76([
|
|
11301
|
+
Injectable61(),
|
|
11487
11302
|
_ts_metadata44("design:type", Function),
|
|
11488
11303
|
_ts_metadata44("design:paramtypes", [
|
|
11489
11304
|
typeof FetchWorkOrdersNode === "undefined" ? Object : FetchWorkOrdersNode,
|
|
@@ -11510,19 +11325,19 @@ AgentGraphService = _ts_decorate77([
|
|
|
11510
11325
|
], AgentGraphService);
|
|
11511
11326
|
|
|
11512
11327
|
// src/modules/agent/langgraph/langgraph.module.ts
|
|
11513
|
-
function
|
|
11328
|
+
function _ts_decorate77(decorators, target, key, desc) {
|
|
11514
11329
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11515
11330
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11516
11331
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11517
11332
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11518
11333
|
}
|
|
11519
|
-
__name(
|
|
11334
|
+
__name(_ts_decorate77, "_ts_decorate");
|
|
11520
11335
|
var LanggraphModule = class {
|
|
11521
11336
|
static {
|
|
11522
11337
|
__name(this, "LanggraphModule");
|
|
11523
11338
|
}
|
|
11524
11339
|
};
|
|
11525
|
-
LanggraphModule =
|
|
11340
|
+
LanggraphModule = _ts_decorate77([
|
|
11526
11341
|
Module16({
|
|
11527
11342
|
imports: [
|
|
11528
11343
|
NodesModule,
|
|
@@ -11548,15 +11363,15 @@ LanggraphModule = _ts_decorate78([
|
|
|
11548
11363
|
], LanggraphModule);
|
|
11549
11364
|
|
|
11550
11365
|
// src/modules/agent/services/langgraph-work-order-agent.service.ts
|
|
11551
|
-
import { Injectable as
|
|
11366
|
+
import { Injectable as Injectable62 } from "@nestjs/common";
|
|
11552
11367
|
init_logger();
|
|
11553
|
-
function
|
|
11368
|
+
function _ts_decorate78(decorators, target, key, desc) {
|
|
11554
11369
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11555
11370
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11556
11371
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11557
11372
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11558
11373
|
}
|
|
11559
|
-
__name(
|
|
11374
|
+
__name(_ts_decorate78, "_ts_decorate");
|
|
11560
11375
|
function _ts_metadata45(k, v) {
|
|
11561
11376
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
11562
11377
|
}
|
|
@@ -11653,8 +11468,8 @@ var LangGraphWorkOrderAgentService = class {
|
|
|
11653
11468
|
return new Promise((resolve4) => setTimeout(resolve4, ms));
|
|
11654
11469
|
}
|
|
11655
11470
|
};
|
|
11656
|
-
LangGraphWorkOrderAgentService =
|
|
11657
|
-
|
|
11471
|
+
LangGraphWorkOrderAgentService = _ts_decorate78([
|
|
11472
|
+
Injectable62(),
|
|
11658
11473
|
_ts_metadata45("design:type", Function),
|
|
11659
11474
|
_ts_metadata45("design:paramtypes", [
|
|
11660
11475
|
typeof AgentGraphService === "undefined" ? Object : AgentGraphService,
|
|
@@ -11664,19 +11479,19 @@ LangGraphWorkOrderAgentService = _ts_decorate79([
|
|
|
11664
11479
|
], LangGraphWorkOrderAgentService);
|
|
11665
11480
|
|
|
11666
11481
|
// src/modules/agent/agent.module.ts
|
|
11667
|
-
function
|
|
11482
|
+
function _ts_decorate79(decorators, target, key, desc) {
|
|
11668
11483
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11669
11484
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11670
11485
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11671
11486
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11672
11487
|
}
|
|
11673
|
-
__name(
|
|
11488
|
+
__name(_ts_decorate79, "_ts_decorate");
|
|
11674
11489
|
var AgentModule = class {
|
|
11675
11490
|
static {
|
|
11676
11491
|
__name(this, "AgentModule");
|
|
11677
11492
|
}
|
|
11678
11493
|
};
|
|
11679
|
-
AgentModule =
|
|
11494
|
+
AgentModule = _ts_decorate79([
|
|
11680
11495
|
Module17({
|
|
11681
11496
|
imports: [
|
|
11682
11497
|
WorkOrderModule,
|
|
@@ -11688,14 +11503,12 @@ AgentModule = _ts_decorate80([
|
|
|
11688
11503
|
AgentBrainHelper,
|
|
11689
11504
|
ReviewAgentHelper,
|
|
11690
11505
|
RoundListenerHelper,
|
|
11691
|
-
AgentLoopHelper,
|
|
11692
11506
|
LangGraphWorkOrderAgentService
|
|
11693
11507
|
],
|
|
11694
11508
|
exports: [
|
|
11695
11509
|
AgentBrainHelper,
|
|
11696
11510
|
ReviewAgentHelper,
|
|
11697
11511
|
RoundListenerHelper,
|
|
11698
|
-
AgentLoopHelper,
|
|
11699
11512
|
LangGraphWorkOrderAgentService,
|
|
11700
11513
|
WorkOrderModule
|
|
11701
11514
|
]
|
|
@@ -11706,14 +11519,14 @@ AgentModule = _ts_decorate80([
|
|
|
11706
11519
|
import { Module as Module19 } from "@nestjs/common";
|
|
11707
11520
|
|
|
11708
11521
|
// src/modules/a2a/agent-card.service.ts
|
|
11709
|
-
import { Injectable as
|
|
11710
|
-
function
|
|
11522
|
+
import { Injectable as Injectable63 } from "@nestjs/common";
|
|
11523
|
+
function _ts_decorate80(decorators, target, key, desc) {
|
|
11711
11524
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11712
11525
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11713
11526
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11714
11527
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11715
11528
|
}
|
|
11716
|
-
__name(
|
|
11529
|
+
__name(_ts_decorate80, "_ts_decorate");
|
|
11717
11530
|
var AgentCardService = class {
|
|
11718
11531
|
static {
|
|
11719
11532
|
__name(this, "AgentCardService");
|
|
@@ -11804,26 +11617,26 @@ var AgentCardService = class {
|
|
|
11804
11617
|
return skills;
|
|
11805
11618
|
}
|
|
11806
11619
|
};
|
|
11807
|
-
AgentCardService =
|
|
11808
|
-
|
|
11620
|
+
AgentCardService = _ts_decorate80([
|
|
11621
|
+
Injectable63()
|
|
11809
11622
|
], AgentCardService);
|
|
11810
11623
|
|
|
11811
11624
|
// src/modules/a2a/a2a-server.service.ts
|
|
11812
|
-
import { Injectable as
|
|
11625
|
+
import { Injectable as Injectable70 } from "@nestjs/common";
|
|
11813
11626
|
import * as http from "http";
|
|
11814
11627
|
|
|
11815
11628
|
// src/modules/a2a/task-router.ts
|
|
11816
|
-
import { Injectable as
|
|
11629
|
+
import { Injectable as Injectable69 } from "@nestjs/common";
|
|
11817
11630
|
|
|
11818
11631
|
// src/modules/a2a/handlers/peer-review.handler.ts
|
|
11819
|
-
import { Injectable as
|
|
11820
|
-
function
|
|
11632
|
+
import { Injectable as Injectable64 } from "@nestjs/common";
|
|
11633
|
+
function _ts_decorate81(decorators, target, key, desc) {
|
|
11821
11634
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11822
11635
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11823
11636
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11824
11637
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11825
11638
|
}
|
|
11826
|
-
__name(
|
|
11639
|
+
__name(_ts_decorate81, "_ts_decorate");
|
|
11827
11640
|
var PeerReviewHandler = class {
|
|
11828
11641
|
static {
|
|
11829
11642
|
__name(this, "PeerReviewHandler");
|
|
@@ -11906,12 +11719,12 @@ var PeerReviewHandler = class {
|
|
|
11906
11719
|
return "Submission needs more depth and rigor before publication.";
|
|
11907
11720
|
}
|
|
11908
11721
|
};
|
|
11909
|
-
PeerReviewHandler =
|
|
11910
|
-
|
|
11722
|
+
PeerReviewHandler = _ts_decorate81([
|
|
11723
|
+
Injectable64()
|
|
11911
11724
|
], PeerReviewHandler);
|
|
11912
11725
|
|
|
11913
11726
|
// src/modules/a2a/handlers/embedding.handler.ts
|
|
11914
|
-
import { Injectable as
|
|
11727
|
+
import { Injectable as Injectable65 } from "@nestjs/common";
|
|
11915
11728
|
|
|
11916
11729
|
// src/modules/a2a/handlers/embedding.helper.ts
|
|
11917
11730
|
var EmbeddingHelper2 = class {
|
|
@@ -11943,13 +11756,13 @@ var EmbeddingHelper2 = class {
|
|
|
11943
11756
|
};
|
|
11944
11757
|
|
|
11945
11758
|
// src/modules/a2a/handlers/embedding.handler.ts
|
|
11946
|
-
function
|
|
11759
|
+
function _ts_decorate82(decorators, target, key, desc) {
|
|
11947
11760
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11948
11761
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11949
11762
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11950
11763
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11951
11764
|
}
|
|
11952
|
-
__name(
|
|
11765
|
+
__name(_ts_decorate82, "_ts_decorate");
|
|
11953
11766
|
function _ts_metadata46(k, v) {
|
|
11954
11767
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
11955
11768
|
}
|
|
@@ -11989,21 +11802,21 @@ var EmbeddingHandler = class {
|
|
|
11989
11802
|
}
|
|
11990
11803
|
}
|
|
11991
11804
|
};
|
|
11992
|
-
EmbeddingHandler =
|
|
11993
|
-
|
|
11805
|
+
EmbeddingHandler = _ts_decorate82([
|
|
11806
|
+
Injectable65(),
|
|
11994
11807
|
_ts_metadata46("design:type", Function),
|
|
11995
11808
|
_ts_metadata46("design:paramtypes", [])
|
|
11996
11809
|
], EmbeddingHandler);
|
|
11997
11810
|
|
|
11998
11811
|
// src/modules/a2a/handlers/health-check.handler.ts
|
|
11999
|
-
import { Injectable as
|
|
12000
|
-
function
|
|
11812
|
+
import { Injectable as Injectable66 } from "@nestjs/common";
|
|
11813
|
+
function _ts_decorate83(decorators, target, key, desc) {
|
|
12001
11814
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12002
11815
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12003
11816
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12004
11817
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12005
11818
|
}
|
|
12006
|
-
__name(
|
|
11819
|
+
__name(_ts_decorate83, "_ts_decorate");
|
|
12007
11820
|
function _ts_metadata47(k, v) {
|
|
12008
11821
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
12009
11822
|
}
|
|
@@ -12026,8 +11839,8 @@ var HealthCheckHandler = class {
|
|
|
12026
11839
|
};
|
|
12027
11840
|
}
|
|
12028
11841
|
};
|
|
12029
|
-
HealthCheckHandler =
|
|
12030
|
-
|
|
11842
|
+
HealthCheckHandler = _ts_decorate83([
|
|
11843
|
+
Injectable66(),
|
|
12031
11844
|
_ts_metadata47("design:type", Function),
|
|
12032
11845
|
_ts_metadata47("design:paramtypes", [
|
|
12033
11846
|
typeof AgentCardService === "undefined" ? Object : AgentCardService
|
|
@@ -12036,14 +11849,14 @@ HealthCheckHandler = _ts_decorate84([
|
|
|
12036
11849
|
|
|
12037
11850
|
// src/modules/a2a/handlers/delegate-research.handler.ts
|
|
12038
11851
|
init_logger();
|
|
12039
|
-
import { Injectable as
|
|
12040
|
-
function
|
|
11852
|
+
import { Injectable as Injectable67 } from "@nestjs/common";
|
|
11853
|
+
function _ts_decorate84(decorators, target, key, desc) {
|
|
12041
11854
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12042
11855
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12043
11856
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12044
11857
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12045
11858
|
}
|
|
12046
|
-
__name(
|
|
11859
|
+
__name(_ts_decorate84, "_ts_decorate");
|
|
12047
11860
|
var DelegateResearchHandler = class {
|
|
12048
11861
|
static {
|
|
12049
11862
|
__name(this, "DelegateResearchHandler");
|
|
@@ -12073,20 +11886,20 @@ var DelegateResearchHandler = class {
|
|
|
12073
11886
|
};
|
|
12074
11887
|
}
|
|
12075
11888
|
};
|
|
12076
|
-
DelegateResearchHandler =
|
|
12077
|
-
|
|
11889
|
+
DelegateResearchHandler = _ts_decorate84([
|
|
11890
|
+
Injectable67()
|
|
12078
11891
|
], DelegateResearchHandler);
|
|
12079
11892
|
|
|
12080
11893
|
// src/modules/a2a/handlers/knowledge-query.handler.ts
|
|
12081
11894
|
init_work_order_coordinator();
|
|
12082
|
-
import { Injectable as
|
|
12083
|
-
function
|
|
11895
|
+
import { Injectable as Injectable68 } from "@nestjs/common";
|
|
11896
|
+
function _ts_decorate85(decorators, target, key, desc) {
|
|
12084
11897
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12085
11898
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12086
11899
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12087
11900
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12088
11901
|
}
|
|
12089
|
-
__name(
|
|
11902
|
+
__name(_ts_decorate85, "_ts_decorate");
|
|
12090
11903
|
function _ts_metadata48(k, v) {
|
|
12091
11904
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
12092
11905
|
}
|
|
@@ -12127,8 +11940,8 @@ var KnowledgeQueryHandler = class {
|
|
|
12127
11940
|
}
|
|
12128
11941
|
}
|
|
12129
11942
|
};
|
|
12130
|
-
KnowledgeQueryHandler =
|
|
12131
|
-
|
|
11943
|
+
KnowledgeQueryHandler = _ts_decorate85([
|
|
11944
|
+
Injectable68(),
|
|
12132
11945
|
_ts_metadata48("design:type", Function),
|
|
12133
11946
|
_ts_metadata48("design:paramtypes", [
|
|
12134
11947
|
typeof WorkOrderCoordinatorHelper === "undefined" ? Object : WorkOrderCoordinatorHelper
|
|
@@ -12136,13 +11949,13 @@ KnowledgeQueryHandler = _ts_decorate86([
|
|
|
12136
11949
|
], KnowledgeQueryHandler);
|
|
12137
11950
|
|
|
12138
11951
|
// src/modules/a2a/task-router.ts
|
|
12139
|
-
function
|
|
11952
|
+
function _ts_decorate86(decorators, target, key, desc) {
|
|
12140
11953
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12141
11954
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12142
11955
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12143
11956
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12144
11957
|
}
|
|
12145
|
-
__name(
|
|
11958
|
+
__name(_ts_decorate86, "_ts_decorate");
|
|
12146
11959
|
function _ts_metadata49(k, v) {
|
|
12147
11960
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
12148
11961
|
}
|
|
@@ -12205,8 +12018,8 @@ var TaskRouter = class {
|
|
|
12205
12018
|
}
|
|
12206
12019
|
}
|
|
12207
12020
|
};
|
|
12208
|
-
TaskRouter =
|
|
12209
|
-
|
|
12021
|
+
TaskRouter = _ts_decorate86([
|
|
12022
|
+
Injectable69(),
|
|
12210
12023
|
_ts_metadata49("design:type", Function),
|
|
12211
12024
|
_ts_metadata49("design:paramtypes", [
|
|
12212
12025
|
typeof PeerReviewHandler === "undefined" ? Object : PeerReviewHandler,
|
|
@@ -12219,13 +12032,13 @@ TaskRouter = _ts_decorate87([
|
|
|
12219
12032
|
|
|
12220
12033
|
// src/modules/a2a/a2a-server.service.ts
|
|
12221
12034
|
init_logger();
|
|
12222
|
-
function
|
|
12035
|
+
function _ts_decorate87(decorators, target, key, desc) {
|
|
12223
12036
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12224
12037
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12225
12038
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12226
12039
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12227
12040
|
}
|
|
12228
|
-
__name(
|
|
12041
|
+
__name(_ts_decorate87, "_ts_decorate");
|
|
12229
12042
|
function _ts_metadata50(k, v) {
|
|
12230
12043
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
12231
12044
|
}
|
|
@@ -12428,8 +12241,8 @@ var A2AServer = class {
|
|
|
12428
12241
|
await this.stop();
|
|
12429
12242
|
}
|
|
12430
12243
|
};
|
|
12431
|
-
A2AServer =
|
|
12432
|
-
|
|
12244
|
+
A2AServer = _ts_decorate87([
|
|
12245
|
+
Injectable70(),
|
|
12433
12246
|
_ts_metadata50("design:type", Function),
|
|
12434
12247
|
_ts_metadata50("design:paramtypes", [
|
|
12435
12248
|
typeof AgentCardService === "undefined" ? Object : AgentCardService,
|
|
@@ -12440,19 +12253,19 @@ A2AServer = _ts_decorate88([
|
|
|
12440
12253
|
|
|
12441
12254
|
// src/modules/a2a/auth/auth.module.ts
|
|
12442
12255
|
import { Module as Module18 } from "@nestjs/common";
|
|
12443
|
-
function
|
|
12256
|
+
function _ts_decorate88(decorators, target, key, desc) {
|
|
12444
12257
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12445
12258
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12446
12259
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12447
12260
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12448
12261
|
}
|
|
12449
|
-
__name(
|
|
12262
|
+
__name(_ts_decorate88, "_ts_decorate");
|
|
12450
12263
|
var AuthModule = class {
|
|
12451
12264
|
static {
|
|
12452
12265
|
__name(this, "AuthModule");
|
|
12453
12266
|
}
|
|
12454
12267
|
};
|
|
12455
|
-
AuthModule =
|
|
12268
|
+
AuthModule = _ts_decorate88([
|
|
12456
12269
|
Module18({
|
|
12457
12270
|
providers: [
|
|
12458
12271
|
A2AAuthService
|
|
@@ -12464,19 +12277,19 @@ AuthModule = _ts_decorate89([
|
|
|
12464
12277
|
], AuthModule);
|
|
12465
12278
|
|
|
12466
12279
|
// src/modules/a2a/a2a.module.ts
|
|
12467
|
-
function
|
|
12280
|
+
function _ts_decorate89(decorators, target, key, desc) {
|
|
12468
12281
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12469
12282
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12470
12283
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12471
12284
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12472
12285
|
}
|
|
12473
|
-
__name(
|
|
12286
|
+
__name(_ts_decorate89, "_ts_decorate");
|
|
12474
12287
|
var A2AModule = class {
|
|
12475
12288
|
static {
|
|
12476
12289
|
__name(this, "A2AModule");
|
|
12477
12290
|
}
|
|
12478
12291
|
};
|
|
12479
|
-
A2AModule =
|
|
12292
|
+
A2AModule = _ts_decorate89([
|
|
12480
12293
|
Module19({
|
|
12481
12294
|
imports: [
|
|
12482
12295
|
WorkOrderModule,
|
|
@@ -12508,7 +12321,7 @@ import { HttpModule as HttpModule2, HttpService as HttpService2 } from "@nestjs/
|
|
|
12508
12321
|
|
|
12509
12322
|
// src/modules/telemetry/telemetry.ts
|
|
12510
12323
|
init_logger();
|
|
12511
|
-
import { Injectable as
|
|
12324
|
+
import { Injectable as Injectable71, Optional as Optional7 } from "@nestjs/common";
|
|
12512
12325
|
import { lastValueFrom as lastValueFrom2 } from "rxjs";
|
|
12513
12326
|
|
|
12514
12327
|
// src/modules/telemetry/sanitizer.ts
|
|
@@ -12908,13 +12721,13 @@ function makeUnhandledRejectionEvent(hw, reason) {
|
|
|
12908
12721
|
__name(makeUnhandledRejectionEvent, "makeUnhandledRejectionEvent");
|
|
12909
12722
|
|
|
12910
12723
|
// src/modules/telemetry/telemetry.ts
|
|
12911
|
-
function
|
|
12724
|
+
function _ts_decorate90(decorators, target, key, desc) {
|
|
12912
12725
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12913
12726
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12914
12727
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12915
12728
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12916
12729
|
}
|
|
12917
|
-
__name(
|
|
12730
|
+
__name(_ts_decorate90, "_ts_decorate");
|
|
12918
12731
|
function _ts_metadata51(k, v) {
|
|
12919
12732
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
12920
12733
|
}
|
|
@@ -13105,8 +12918,8 @@ var TelemetryClient = class {
|
|
|
13105
12918
|
this.emit(ev);
|
|
13106
12919
|
}
|
|
13107
12920
|
};
|
|
13108
|
-
TelemetryClient =
|
|
13109
|
-
|
|
12921
|
+
TelemetryClient = _ts_decorate90([
|
|
12922
|
+
Injectable71(),
|
|
13110
12923
|
_ts_param7(0, Optional7()),
|
|
13111
12924
|
_ts_metadata51("design:type", Function),
|
|
13112
12925
|
_ts_metadata51("design:paramtypes", [
|
|
@@ -13125,19 +12938,19 @@ function getGlobalTelemetryClient() {
|
|
|
13125
12938
|
__name(getGlobalTelemetryClient, "getGlobalTelemetryClient");
|
|
13126
12939
|
|
|
13127
12940
|
// src/modules/telemetry/telemetry.module.ts
|
|
13128
|
-
function
|
|
12941
|
+
function _ts_decorate91(decorators, target, key, desc) {
|
|
13129
12942
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
13130
12943
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
13131
12944
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
13132
12945
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13133
12946
|
}
|
|
13134
|
-
__name(
|
|
12947
|
+
__name(_ts_decorate91, "_ts_decorate");
|
|
13135
12948
|
var TelemetryModule = class {
|
|
13136
12949
|
static {
|
|
13137
12950
|
__name(this, "TelemetryModule");
|
|
13138
12951
|
}
|
|
13139
12952
|
};
|
|
13140
|
-
TelemetryModule =
|
|
12953
|
+
TelemetryModule = _ts_decorate91([
|
|
13141
12954
|
Module20({
|
|
13142
12955
|
imports: [
|
|
13143
12956
|
HttpModule2
|
|
@@ -13158,19 +12971,19 @@ TelemetryModule = _ts_decorate92([
|
|
|
13158
12971
|
], TelemetryModule);
|
|
13159
12972
|
|
|
13160
12973
|
// src/app.module.ts
|
|
13161
|
-
function
|
|
12974
|
+
function _ts_decorate92(decorators, target, key, desc) {
|
|
13162
12975
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
13163
12976
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
13164
12977
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
13165
12978
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13166
12979
|
}
|
|
13167
|
-
__name(
|
|
12980
|
+
__name(_ts_decorate92, "_ts_decorate");
|
|
13168
12981
|
var AppModule = class {
|
|
13169
12982
|
static {
|
|
13170
12983
|
__name(this, "AppModule");
|
|
13171
12984
|
}
|
|
13172
12985
|
};
|
|
13173
|
-
AppModule =
|
|
12986
|
+
AppModule = _ts_decorate92([
|
|
13174
12987
|
Module21({
|
|
13175
12988
|
imports: [
|
|
13176
12989
|
IdentityModule,
|
|
@@ -15439,15 +15252,15 @@ __name(startNode, "startNode");
|
|
|
15439
15252
|
import { input, select, confirm, password } from "@inquirer/prompts";
|
|
15440
15253
|
|
|
15441
15254
|
// src/modules/wallet/solana-balance.ts
|
|
15442
|
-
import { Injectable as
|
|
15255
|
+
import { Injectable as Injectable72 } from "@nestjs/common";
|
|
15443
15256
|
import { Connection as Connection3, PublicKey as PublicKey3 } from "@solana/web3.js";
|
|
15444
|
-
function
|
|
15257
|
+
function _ts_decorate93(decorators, target, key, desc) {
|
|
15445
15258
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15446
15259
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15447
15260
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
15448
15261
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15449
15262
|
}
|
|
15450
|
-
__name(
|
|
15263
|
+
__name(_ts_decorate93, "_ts_decorate");
|
|
15451
15264
|
var SYN_TOKEN_MINT = process.env.SYN_TOKEN_MINT || "DCdWHhoeEwHJ3Fy3DRTk4yvZPXq3mSNZKtbPJzUfpUh8";
|
|
15452
15265
|
var SOLANA_RPC_URL = process.env.SOLANA_RPC_URL || "https://api.devnet.solana.com";
|
|
15453
15266
|
var SolanaBalanceHelper = class {
|
|
@@ -15529,8 +15342,8 @@ var SolanaBalanceHelper = class {
|
|
|
15529
15342
|
}
|
|
15530
15343
|
}
|
|
15531
15344
|
};
|
|
15532
|
-
SolanaBalanceHelper =
|
|
15533
|
-
|
|
15345
|
+
SolanaBalanceHelper = _ts_decorate93([
|
|
15346
|
+
Injectable72()
|
|
15534
15347
|
], SolanaBalanceHelper);
|
|
15535
15348
|
var getSynBalance = /* @__PURE__ */ __name((...args) => new SolanaBalanceHelper().getSynBalance(...args), "getSynBalance");
|
|
15536
15349
|
var getStakedAmount = /* @__PURE__ */ __name((...args) => new SolanaBalanceHelper().getStakedAmount(...args), "getStakedAmount");
|