@voltagent/core 0.1.0 → 0.1.2
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 +14 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/agent/index.spec.ts +23 -23
- package/src/agent/index.ts +4 -4
- package/src/agent/subagent/index.spec.ts +1 -1
- package/src/events/index.ts +2 -2
- package/src/events/types.ts +11 -11
- package/src/index.ts +1 -1
- package/src/memory/libsql/index.ts +8 -8
- package/src/server/api.ts +5 -5
- package/src/server/index.ts +21 -21
- package/src/utils/update/index.ts +21 -21
package/dist/index.js
CHANGED
|
@@ -571,7 +571,7 @@ var checkForUpdates = /* @__PURE__ */ __name((packagePath, options) => __async(v
|
|
|
571
571
|
packageFile: packageJsonPath,
|
|
572
572
|
upgrade: false,
|
|
573
573
|
// Just check, don't update
|
|
574
|
-
filter: filterPattern
|
|
574
|
+
filter: `${filterPattern}*`,
|
|
575
575
|
// Filter by pattern or default to @voltagent packages
|
|
576
576
|
jsonUpgraded: true,
|
|
577
577
|
// Return upgradable packages in JSON format
|
|
@@ -657,13 +657,13 @@ var updateAllPackages = /* @__PURE__ */ __name((packagePath) => __async(void 0,
|
|
|
657
657
|
const ncuResult = yield ncuPackage.run({
|
|
658
658
|
packageFile: packageJsonPath,
|
|
659
659
|
upgrade: true,
|
|
660
|
-
//
|
|
660
|
+
// Actually upgrade the packages
|
|
661
661
|
filter: filterString,
|
|
662
|
-
//
|
|
662
|
+
// Only update packages matching the filter
|
|
663
663
|
silent: false,
|
|
664
|
-
//
|
|
664
|
+
// Show output
|
|
665
665
|
jsonUpgraded: true
|
|
666
|
-
//
|
|
666
|
+
// Return upgraded packages in JSON format
|
|
667
667
|
});
|
|
668
668
|
const updatedPackages = Object.keys(ncuResult || {});
|
|
669
669
|
if (updatedPackages.length === 0) {
|
|
@@ -711,13 +711,13 @@ var updateSinglePackage = /* @__PURE__ */ __name((packageName, packagePath) => _
|
|
|
711
711
|
const ncuResult = yield ncuPackage.run({
|
|
712
712
|
packageFile: packageJsonPath,
|
|
713
713
|
upgrade: true,
|
|
714
|
-
//
|
|
714
|
+
// Actually upgrade the packages
|
|
715
715
|
filter: packageName,
|
|
716
|
-
//
|
|
716
|
+
// Only update the specified package
|
|
717
717
|
silent: false,
|
|
718
|
-
//
|
|
718
|
+
// Show output
|
|
719
719
|
jsonUpgraded: true
|
|
720
|
-
//
|
|
720
|
+
// Return upgraded packages in JSON format
|
|
721
721
|
});
|
|
722
722
|
const updatedPackages = Object.keys(ncuResult || {});
|
|
723
723
|
if (updatedPackages.length === 0) {
|
|
@@ -1390,7 +1390,7 @@ var tryStartServer = /* @__PURE__ */ __name((port) => {
|
|
|
1390
1390
|
var startServer = /* @__PURE__ */ __name((preferredPort = 3141) => __async(void 0, null, function* () {
|
|
1391
1391
|
const portsToTry = [
|
|
1392
1392
|
...preferredPorts,
|
|
1393
|
-
//
|
|
1393
|
+
// Add fallback ports between 4300-4400
|
|
1394
1394
|
...Array.from({ length: 101 }, (_, i) => ({
|
|
1395
1395
|
port: 4300 + i,
|
|
1396
1396
|
messages: ["This port is not a coincidence."]
|
|
@@ -4129,7 +4129,7 @@ ${context}`;
|
|
|
4129
4129
|
[],
|
|
4130
4130
|
// Empty steps initially
|
|
4131
4131
|
{ events: [] }
|
|
4132
|
-
//
|
|
4132
|
+
// Start with empty events array
|
|
4133
4133
|
);
|
|
4134
4134
|
const context = {
|
|
4135
4135
|
historyEntry,
|
|
@@ -4146,7 +4146,7 @@ ${context}`;
|
|
|
4146
4146
|
this.id,
|
|
4147
4147
|
{
|
|
4148
4148
|
input
|
|
4149
|
-
//
|
|
4149
|
+
// We now always use the input field (instead of message)
|
|
4150
4150
|
},
|
|
4151
4151
|
"agent",
|
|
4152
4152
|
context
|
|
@@ -4179,7 +4179,7 @@ ${context}`;
|
|
|
4179
4179
|
tools: this.toolManager.getTools().map((tool2) => __spreadProps(__spreadValues({}, tool2), {
|
|
4180
4180
|
node_id: createNodeId("tool" /* TOOL */, tool2.name, this.id)
|
|
4181
4181
|
})),
|
|
4182
|
-
//
|
|
4182
|
+
// Add node_id to SubAgents
|
|
4183
4183
|
subAgents: this.subAgentManager.getSubAgentDetails().map((subAgent) => __spreadProps(__spreadValues({}, subAgent), {
|
|
4184
4184
|
node_id: createNodeId("agent" /* SUBAGENT */, subAgent.id)
|
|
4185
4185
|
})),
|
|
@@ -5313,7 +5313,7 @@ var VoltAgent = class {
|
|
|
5313
5313
|
return __async(this, null, function* () {
|
|
5314
5314
|
try {
|
|
5315
5315
|
const result = yield checkForUpdates(void 0, {
|
|
5316
|
-
filter: "@voltagent
|
|
5316
|
+
filter: "@voltagent"
|
|
5317
5317
|
});
|
|
5318
5318
|
if (result.hasUpdates) {
|
|
5319
5319
|
console.log("\n");
|