@desplega.ai/agent-swarm 1.72.0 → 1.72.1
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/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Agent Swarm API",
|
|
5
|
-
"version": "1.72.
|
|
5
|
+
"version": "1.72.1",
|
|
6
6
|
"description": "Multi-agent orchestration API for Claude Code, Codex, and Gemini CLI. Enables task distribution, agent communication, and service discovery.\n\nMCP tools are documented separately in [MCP.md](./MCP.md)."
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
package/package.json
CHANGED
|
@@ -81,6 +81,9 @@ function insertBudget(scope: "global" | "agent", scopeId: string, dailyBudgetUsd
|
|
|
81
81
|
.run(scope, scopeId, dailyBudgetUsd, Date.now(), Date.now());
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
// Pinned to the same UTC day as `NOW` so spend rows fall inside the queried day window regardless of when CI runs.
|
|
85
|
+
const DEFAULT_SPEND_CREATED_AT = "2026-04-28T12:00:00.000Z";
|
|
86
|
+
|
|
84
87
|
function insertSpendForAgent(
|
|
85
88
|
agentId: string,
|
|
86
89
|
totalCostUsd: number,
|
|
@@ -95,12 +98,8 @@ function insertSpendForAgent(
|
|
|
95
98
|
numTurns: 1,
|
|
96
99
|
model: "test-model",
|
|
97
100
|
});
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
getDb()
|
|
101
|
-
.prepare("UPDATE session_costs SET createdAt = ? WHERE id = ?")
|
|
102
|
-
.run(opts.createdAt, cost.id);
|
|
103
|
-
}
|
|
101
|
+
const createdAt = opts.createdAt ?? DEFAULT_SPEND_CREATED_AT;
|
|
102
|
+
getDb().prepare("UPDATE session_costs SET createdAt = ? WHERE id = ?").run(createdAt, cost.id);
|
|
104
103
|
return cost.id;
|
|
105
104
|
}
|
|
106
105
|
|
|
@@ -33,7 +33,7 @@ export class RawLlmExecutor extends BaseExecutor<
|
|
|
33
33
|
_meta: ExecutorMeta,
|
|
34
34
|
): Promise<ExecutorResult<z.infer<typeof RawLlmOutputSchema>>> {
|
|
35
35
|
const prompt = this.deps.interpolate(config.prompt, context as Record<string, unknown>);
|
|
36
|
-
const modelName = config.model ?? "google/gemini-
|
|
36
|
+
const modelName = config.model ?? "google/gemini-3-flash-preview";
|
|
37
37
|
|
|
38
38
|
try {
|
|
39
39
|
const { createOpenAI } = await import("@ai-sdk/openai");
|
|
@@ -120,7 +120,7 @@ export class ValidateExecutor extends BaseExecutor<
|
|
|
120
120
|
});
|
|
121
121
|
|
|
122
122
|
const { object } = await generateObject({
|
|
123
|
-
model: openrouter("google/gemini-
|
|
123
|
+
model: openrouter("google/gemini-3-flash-preview"),
|
|
124
124
|
schema: jsonSchema({
|
|
125
125
|
type: "object",
|
|
126
126
|
properties: {
|