@almadar/agent 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.js +4 -5
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/session-manager.d.ts +1 -1
- package/dist/contracts.d.ts +218 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/tools/domain-orbital.d.ts +16 -16
- package/dist/tools/index.d.ts +16 -16
- package/dist/tools/index.js +4 -4
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/orbital-batch-subagent.d.ts +5 -5
- package/dist/tools/orbital-subagent.d.ts +8 -8
- package/package.json +1 -1
package/dist/agent/index.js
CHANGED
|
@@ -1065,14 +1065,15 @@ function createOrbitalBatchSubagentTool(options = {}) {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
};
|
|
1067
1067
|
const batchTool = tool(
|
|
1068
|
-
async ({ orbitals, options: batchOptions }) => {
|
|
1069
|
-
if (!
|
|
1068
|
+
async ({ orbitals: rawOrbitals, options: batchOptions }) => {
|
|
1069
|
+
if (!rawOrbitals || rawOrbitals.length === 0) {
|
|
1070
1070
|
return JSON.stringify({
|
|
1071
1071
|
success: false,
|
|
1072
1072
|
error: "No orbitals provided for batch generation.",
|
|
1073
1073
|
orbitals: []
|
|
1074
1074
|
});
|
|
1075
1075
|
}
|
|
1076
|
+
const orbitals = rawOrbitals;
|
|
1076
1077
|
console.log(`[OrbitalBatchSubagent] Starting batch generation for ${orbitals.length} orbitals`);
|
|
1077
1078
|
try {
|
|
1078
1079
|
emitEvent("batch", 0, 1, "message", {
|
|
@@ -1202,8 +1203,7 @@ var init_orbital_batch_subagent = __esm({
|
|
|
1202
1203
|
init_shared();
|
|
1203
1204
|
init_batch();
|
|
1204
1205
|
OrbitalBatchInputSchema = z.object({
|
|
1205
|
-
|
|
1206
|
-
orbitals: z.array(z.any()).describe("Array of OrbitalUnits to generate"),
|
|
1206
|
+
orbitals: z.array(z.record(z.unknown())).describe("Array of OrbitalUnits to generate"),
|
|
1207
1207
|
options: z.object({
|
|
1208
1208
|
mode: z.enum(["single-call", "parallel-individual", "adaptive"]).optional().default("adaptive"),
|
|
1209
1209
|
batchSize: z.number().optional(),
|
|
@@ -4969,7 +4969,6 @@ var SessionManager = class {
|
|
|
4969
4969
|
/**
|
|
4970
4970
|
* Get or create a checkpointer for a session.
|
|
4971
4971
|
*/
|
|
4972
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4973
4972
|
getCheckpointer(threadId) {
|
|
4974
4973
|
if (this.mode === "firestore" && this.firestoreCheckpointer) {
|
|
4975
4974
|
return this.firestoreCheckpointer;
|