@blazingagents/sdk 0.9.1 → 0.9.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.
|
@@ -146,10 +146,10 @@ export const usageOverviewResponseSchema = z
|
|
|
146
146
|
.superRefine((value, ctx) => {
|
|
147
147
|
const remainderCount = value.byModel.filter(({ model, provider }) => model === null && provider === null).length;
|
|
148
148
|
const normalCount = value.byModel.length - remainderCount;
|
|
149
|
-
const
|
|
149
|
+
const hasProviderWithoutModel = value.byModel.some(({ model, provider }) => model === null && provider !== null);
|
|
150
150
|
if (remainderCount > 1 ||
|
|
151
151
|
normalCount > MAX_USAGE_OVERVIEW_TOP_N ||
|
|
152
|
-
|
|
152
|
+
hasProviderWithoutModel) {
|
|
153
153
|
ctx.addIssue({
|
|
154
154
|
code: "custom",
|
|
155
155
|
message: "Model usage must contain at most 20 models and one remainder.",
|
package/dist/resources/skills.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { skillCopyResultsSchema, skillDetailSchema, skillsListResponseSchema, } from "../contracts/entities/skills.js";
|
|
2
2
|
import { isRequestAborted, requestAbortedError, requestJson, requestStream, } from "../http.js";
|
|
3
3
|
function fileUrl(agentId, input) {
|
|
4
|
-
|
|
5
|
-
return `/v1/agents/${encodeURIComponent(agentId)}/skills/${encodeURIComponent(input.skillId)}/files/${path}`;
|
|
4
|
+
return `/v1/agents/${encodeURIComponent(agentId)}/skills/${encodeURIComponent(input.skillId)}/files?path=${encodeURIComponent(input.path)}`;
|
|
6
5
|
}
|
|
7
6
|
export function createAgentSkillsResource(config, agentId) {
|
|
8
7
|
return {
|