@agentsky/sky 3.37.0 → 3.39.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/LICENSE +202 -0
- package/NOTICE +14 -0
- package/agent-plugins/.agents/plugins/marketplace.json +14 -2
- package/agent-plugins/.claude-plugin/marketplace.json +11 -4
- package/agent-plugins/.grok-plugin/marketplace.json +14 -4
- package/agent-plugins/.grok-plugin/plugin-index.json +13 -3
- package/agent-plugins/dsh/agentsky.patch.yml +11 -3
- package/agent-plugins/plugins/apps/.claude-plugin/plugin.json +8 -0
- package/agent-plugins/plugins/apps/.codex-plugin/plugin.json +23 -0
- package/agent-plugins/plugins/{browser → apps}/.mcp.json +2 -2
- package/agent-plugins/plugins/apps/skills/agentsky-apps/SKILL.md +24 -0
- package/agent-plugins/plugins/computer-use/.claude-plugin/plugin.json +8 -0
- package/agent-plugins/plugins/computer-use/.codex-plugin/plugin.json +23 -0
- package/agent-plugins/plugins/computer-use/.mcp.json +11 -0
- package/agent-plugins/plugins/{browser/skills/agentsky-browser → computer-use/skills/agentsky-computer-use}/SKILL.md +4 -3
- package/agent-plugins/plugins/crm/skills/agentsky-crm/SKILL.md +1 -0
- package/agent-plugins/plugins/meetings/.codex-plugin/plugin.json +1 -1
- package/agent-plugins/plugins/meetings/skills/agentsky-meetings/SKILL.md +2 -1
- package/agent-plugins/plugins/wechat/skills/agentsky-wechat/SKILL.md +1 -0
- package/dist/{chunk-GH5VMYMK.js → chunk-7A3BLBKU.js} +12 -5
- package/dist/{chunk-VI2JL2OC.js → chunk-SC5RAJVJ.js} +20321 -21805
- package/dist/index.js +3556 -1142
- package/dist/sse-GSK4TBYZ.js +38 -0
- package/dist/{trace-AI2MDTNU.js → trace-PB2LPQCZ.js} +2 -4
- package/dist/{trace-library-HT2OZ3PS.js → trace-library-EOEW45OX.js} +3 -5
- package/dist/worker-KD5TINHF.js +1150 -0
- package/package.json +5 -5
- package/agent-plugins/plugins/browser/.claude-plugin/plugin.json +0 -8
- package/agent-plugins/plugins/browser/.codex-plugin/plugin.json +0 -23
- package/dist/chunk-HKZ5CTZB.js +0 -8
- package/dist/src-NDBT3SB7.js +0 -346
- package/dist/worker-6Q4K4HZW.js +0 -190
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import "./chunk-MLKGABMK.js";
|
|
2
|
+
|
|
3
|
+
// src/sse.ts
|
|
4
|
+
async function* parseSseStream(body) {
|
|
5
|
+
const reader = body.getReader();
|
|
6
|
+
const decoder = new TextDecoder();
|
|
7
|
+
let buffer = "";
|
|
8
|
+
try {
|
|
9
|
+
while (true) {
|
|
10
|
+
const { done, value } = await reader.read();
|
|
11
|
+
if (done) break;
|
|
12
|
+
buffer += decoder.decode(value, { stream: true });
|
|
13
|
+
let sep;
|
|
14
|
+
while ((sep = buffer.match(/\r?\n\r?\n/)) && sep.index !== void 0) {
|
|
15
|
+
const raw = buffer.slice(0, sep.index);
|
|
16
|
+
buffer = buffer.slice(sep.index + sep[0].length);
|
|
17
|
+
const frame = { data: "" };
|
|
18
|
+
const dataLines = [];
|
|
19
|
+
for (const line of raw.split(/\r?\n/)) {
|
|
20
|
+
if (!line || line.startsWith(":")) continue;
|
|
21
|
+
const colon = line.indexOf(":");
|
|
22
|
+
const field = colon === -1 ? line : line.slice(0, colon);
|
|
23
|
+
const value2 = colon === -1 ? "" : line.slice(colon + 1).replace(/^ /, "");
|
|
24
|
+
if (field === "id") frame.id = value2;
|
|
25
|
+
else if (field === "event") frame.event = value2;
|
|
26
|
+
else if (field === "data") dataLines.push(value2);
|
|
27
|
+
}
|
|
28
|
+
frame.data = dataLines.join("\n");
|
|
29
|
+
if (frame.id !== void 0 || frame.event !== void 0 || frame.data) yield frame;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
} finally {
|
|
33
|
+
reader.releaseLock();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
parseSseStream
|
|
38
|
+
};
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApiError,
|
|
3
3
|
uploadLargeFile
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
USER_AGENT
|
|
7
|
-
} from "./chunk-HKZ5CTZB.js";
|
|
4
|
+
} from "./chunk-7A3BLBKU.js";
|
|
8
5
|
import {
|
|
9
6
|
SessionSourceCollector,
|
|
7
|
+
USER_AGENT,
|
|
10
8
|
UnsafeImportError,
|
|
11
9
|
publicRemote,
|
|
12
10
|
redactLine,
|
|
13
11
|
redactTraceText
|
|
14
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SC5RAJVJ.js";
|
|
15
13
|
import {
|
|
16
14
|
apiBase,
|
|
17
15
|
apiToken
|