@agentsky/sky 2.3.0 → 2.5.0
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/{chunk-2KQLWHHC.js → chunk-MHL5Z6IQ.js} +845 -10
- package/dist/index.js +652 -21
- package/dist/products.d.ts +30 -0
- package/dist/products.js +1 -1
- package/dist/{src-EGXYUSME.js → src-GLBJHVIJ.js} +3 -3
- package/package.json +1 -1
package/dist/products.d.ts
CHANGED
|
@@ -19,6 +19,15 @@ declare const agentAddonsSchema: z.ZodObject<{
|
|
|
19
19
|
sha: z.ZodString;
|
|
20
20
|
}, z.core.$strip>], "type">>>;
|
|
21
21
|
mount_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
+
type: z.ZodLiteral<"memory_store">;
|
|
24
|
+
memory_store_id: z.ZodString;
|
|
25
|
+
access: z.ZodEnum<{
|
|
26
|
+
read_only: "read_only";
|
|
27
|
+
read_write: "read_write";
|
|
28
|
+
}>;
|
|
29
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
30
|
+
mount_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
31
|
}, z.core.$strip>], "type">>>;
|
|
23
32
|
instructions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24
33
|
name: z.ZodString;
|
|
@@ -52,6 +61,7 @@ declare const agentAddonsSchema: z.ZodObject<{
|
|
|
52
61
|
"exa.contents": "exa.contents";
|
|
53
62
|
"tinyfish.fetch": "tinyfish.fetch";
|
|
54
63
|
"tinyfish.browser": "tinyfish.browser";
|
|
64
|
+
"tinyfish.agent": "tinyfish.agent";
|
|
55
65
|
"dataforseo.serp": "dataforseo.serp";
|
|
56
66
|
"dataforseo.ai-keywords": "dataforseo.ai-keywords";
|
|
57
67
|
"dataforseo.llm-responses": "dataforseo.llm-responses";
|
|
@@ -141,6 +151,15 @@ declare const createProductAgentSchema: z.ZodObject<{
|
|
|
141
151
|
sha: z.ZodString;
|
|
142
152
|
}, z.core.$strip>], "type">>>;
|
|
143
153
|
mount_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
154
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
155
|
+
type: z.ZodLiteral<"memory_store">;
|
|
156
|
+
memory_store_id: z.ZodString;
|
|
157
|
+
access: z.ZodEnum<{
|
|
158
|
+
read_only: "read_only";
|
|
159
|
+
read_write: "read_write";
|
|
160
|
+
}>;
|
|
161
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
162
|
+
mount_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
163
|
}, z.core.$strip>], "type">>>;
|
|
145
164
|
instructions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
146
165
|
name: z.ZodString;
|
|
@@ -174,6 +193,7 @@ declare const createProductAgentSchema: z.ZodObject<{
|
|
|
174
193
|
"exa.contents": "exa.contents";
|
|
175
194
|
"tinyfish.fetch": "tinyfish.fetch";
|
|
176
195
|
"tinyfish.browser": "tinyfish.browser";
|
|
196
|
+
"tinyfish.agent": "tinyfish.agent";
|
|
177
197
|
"dataforseo.serp": "dataforseo.serp";
|
|
178
198
|
"dataforseo.ai-keywords": "dataforseo.ai-keywords";
|
|
179
199
|
"dataforseo.llm-responses": "dataforseo.llm-responses";
|
|
@@ -263,6 +283,15 @@ declare const prepareProductSessionSchema: z.ZodObject<{
|
|
|
263
283
|
sha: z.ZodString;
|
|
264
284
|
}, z.core.$strip>], "type">>>;
|
|
265
285
|
mount_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
286
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
287
|
+
type: z.ZodLiteral<"memory_store">;
|
|
288
|
+
memory_store_id: z.ZodString;
|
|
289
|
+
access: z.ZodEnum<{
|
|
290
|
+
read_only: "read_only";
|
|
291
|
+
read_write: "read_write";
|
|
292
|
+
}>;
|
|
293
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
294
|
+
mount_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
266
295
|
}, z.core.$strip>], "type">>>;
|
|
267
296
|
instructions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
268
297
|
name: z.ZodString;
|
|
@@ -296,6 +325,7 @@ declare const prepareProductSessionSchema: z.ZodObject<{
|
|
|
296
325
|
"exa.contents": "exa.contents";
|
|
297
326
|
"tinyfish.fetch": "tinyfish.fetch";
|
|
298
327
|
"tinyfish.browser": "tinyfish.browser";
|
|
328
|
+
"tinyfish.agent": "tinyfish.agent";
|
|
299
329
|
"dataforseo.serp": "dataforseo.serp";
|
|
300
330
|
"dataforseo.ai-keywords": "dataforseo.ai-keywords";
|
|
301
331
|
"dataforseo.llm-responses": "dataforseo.llm-responses";
|
package/dist/products.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
external_exports,
|
|
3
3
|
messagePartSchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MHL5Z6IQ.js";
|
|
5
5
|
|
|
6
6
|
// ../../packages/chat/src/stream.ts
|
|
7
7
|
async function* parseSseStream(body) {
|
|
@@ -104,7 +104,7 @@ function podMessageBody(messageId, turn, resourcesRevision = 0) {
|
|
|
104
104
|
};
|
|
105
105
|
return { id: messageId, ...envelope, parts: legacyPartsOf(envelope) };
|
|
106
106
|
}
|
|
107
|
-
return { id: messageId, parts: turn.parts };
|
|
107
|
+
return { id: messageId, parts: turn.parts, ...resourcesRevision > 0 ? { resources_revision: resourcesRevision } : {} };
|
|
108
108
|
}
|
|
109
109
|
var UNREACHABLE_CODES = /* @__PURE__ */ new Set([
|
|
110
110
|
"ECONNREFUSED",
|
|
@@ -223,7 +223,7 @@ async function postSessionEvents(args) {
|
|
|
223
223
|
`/api/v1/sessions/${encodeURIComponent(args.sessionId)}/events`,
|
|
224
224
|
normalizeBaseUrl(args.baseUrl)
|
|
225
225
|
);
|
|
226
|
-
const body = JSON.stringify({ events: args.events });
|
|
226
|
+
const body = JSON.stringify({ events: args.events, ...args.requireIdle ? { requireIdle: true } : {} });
|
|
227
227
|
const send = async (token) => fetch(url, {
|
|
228
228
|
method: "POST",
|
|
229
229
|
headers: {
|