@agentsky/sky 3.45.0 → 3.47.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.
Files changed (26) hide show
  1. package/agent-plugins/plugins/meetings/.codex-plugin/plugin.json +1 -1
  2. package/agent-plugins/plugins/meetings/skills/agentsky-meetings/SKILL.md +2 -2
  3. package/dist/{chunk-7DFFA6GA.js → chunk-BIWRJ65N.js} +1 -1
  4. package/dist/{chunk-WSQZHRE4.js → chunk-C3RW65GZ.js} +2 -2
  5. package/dist/{chunk-WLTOVOTW.js → chunk-DAVMU66H.js} +1 -1
  6. package/dist/{chunk-TPDNO2LM.js → chunk-FDR6JOIJ.js} +53 -16
  7. package/dist/{chunk-UHEJFBZJ.js → chunk-IZCS7FH3.js} +5 -5
  8. package/dist/{chunk-OBRH43HE.js → chunk-LMYRAGDR.js} +10 -5
  9. package/dist/chunk-MSEGJ7V5.js +214 -0
  10. package/dist/{chunk-YYDO5WB5.js → chunk-OJ5ERABF.js} +1 -1
  11. package/dist/{chunk-OYSSK6GS.js → chunk-SJIBWHJU.js} +229 -19
  12. package/dist/{chunk-AM6GOGA6.js → chunk-W24YSGH4.js} +368 -73
  13. package/dist/{chunk-EO32DG3Z.js → chunk-Y7JBA7AC.js} +21 -19
  14. package/dist/{chunk-MXIAK52Z.js → chunk-YUZWSDVE.js} +16 -177
  15. package/dist/{compute-OZ4TQBKO.js → compute-FAXL7DAK.js} +2 -2
  16. package/dist/compute-report-XQJSIK6B.js +39 -0
  17. package/dist/index.js +1324 -862
  18. package/dist/{local-skills-E45ZCYGY.js → local-skills-DRZH2R3Q.js} +3 -3
  19. package/dist/{local-skills-run-3CCDHJ6Q.js → local-skills-run-MH2TI2UC.js} +11 -11
  20. package/dist/mcp-serve-JJD6JGYS.js +16 -0
  21. package/dist/{trace-IRBLGOPZ.js → trace-RMYKGACV.js} +3 -3
  22. package/dist/{trace-exclusions-SMBZES3R.js → trace-exclusions-JEGMUPWQ.js} +2 -2
  23. package/dist/{trace-library-CRCV5JDF.js → trace-library-QLCECTIS.js} +10 -8
  24. package/package.json +2 -2
  25. package/dist/compute-report-SGDLKR22.js +0 -34
  26. package/dist/mcp-serve-DXL7IMSU.js +0 -103
@@ -9,9 +9,9 @@ import {
9
9
  skillTargets,
10
10
  syncLocalSkills,
11
11
  unpinLocalSkill
12
- } from "./chunk-WSQZHRE4.js";
13
- import "./chunk-OBRH43HE.js";
14
- import "./chunk-7DFFA6GA.js";
12
+ } from "./chunk-C3RW65GZ.js";
13
+ import "./chunk-LMYRAGDR.js";
14
+ import "./chunk-BIWRJ65N.js";
15
15
  import "./chunk-XHZJG3QT.js";
16
16
  import "./chunk-MLKGABMK.js";
17
17
  export {
@@ -1,19 +1,19 @@
1
1
  import {
2
- SetupJournal,
3
- workspaceSlug
4
- } from "./chunk-MXIAK52Z.js";
2
+ SetupJournal
3
+ } from "./chunk-YUZWSDVE.js";
5
4
  import {
6
5
  detectHermes,
7
- detectLocalAgents
8
- } from "./chunk-OYSSK6GS.js";
9
- import "./chunk-WLTOVOTW.js";
6
+ detectLocalAgents,
7
+ workspaceSlug
8
+ } from "./chunk-SJIBWHJU.js";
9
+ import "./chunk-DAVMU66H.js";
10
10
  import {
11
11
  checkedWithin,
12
12
  skillTargets,
13
13
  syncLocalSkills
14
- } from "./chunk-WSQZHRE4.js";
15
- import "./chunk-OBRH43HE.js";
16
- import "./chunk-7DFFA6GA.js";
14
+ } from "./chunk-C3RW65GZ.js";
15
+ import "./chunk-LMYRAGDR.js";
16
+ import "./chunk-BIWRJ65N.js";
17
17
  import "./chunk-XHZJG3QT.js";
18
18
  import "./chunk-MLKGABMK.js";
19
19
 
@@ -21,7 +21,7 @@ import "./chunk-MLKGABMK.js";
21
21
  var HOOK_RECHECK_MS = 5 * 60 * 1e3;
22
22
  async function localSkillWorkspace(explicit) {
23
23
  if (explicit) return explicit;
24
- const { loadSyncConfig } = await import("./trace-library-CRCV5JDF.js");
24
+ const { loadSyncConfig } = await import("./trace-library-QLCECTIS.js");
25
25
  return loadSyncConfig().fallback ?? await workspaceSlug();
26
26
  }
27
27
  async function refreshLocalSkills(opts = {}) {
@@ -30,7 +30,7 @@ async function refreshLocalSkills(opts = {}) {
30
30
  const targets = skillTargets(detectLocalAgents(), hermes?.root ?? null);
31
31
  const workspace = await localSkillWorkspace(opts.workspace);
32
32
  if (!targets.length) return { workspace, checked: false, skills: [] };
33
- const { libraryRequest } = await import("./trace-library-CRCV5JDF.js");
33
+ const { libraryRequest } = await import("./trace-library-QLCECTIS.js");
34
34
  const journal = opts.dryRun ? void 0 : new SetupJournal();
35
35
  try {
36
36
  return await syncLocalSkills({ workspace, targets, journal, dryRun: opts.dryRun, request: (method, path, slug) => libraryRequest(method, path, slug) });
@@ -0,0 +1,16 @@
1
+ import {
2
+ forwardLine,
3
+ serveMcp,
4
+ shortToolCount
5
+ } from "./chunk-MSEGJ7V5.js";
6
+ import "./chunk-SJIBWHJU.js";
7
+ import "./chunk-DAVMU66H.js";
8
+ import "./chunk-LMYRAGDR.js";
9
+ import "./chunk-BIWRJ65N.js";
10
+ import "./chunk-XHZJG3QT.js";
11
+ import "./chunk-MLKGABMK.js";
12
+ export {
13
+ forwardLine,
14
+ serveMcp,
15
+ shortToolCount
16
+ };
@@ -22,10 +22,10 @@ import {
22
22
  traceDir,
23
23
  uninstallClaudeHooks,
24
24
  writeState
25
- } from "./chunk-UHEJFBZJ.js";
26
- import "./chunk-AM6GOGA6.js";
27
- import "./chunk-7DFFA6GA.js";
25
+ } from "./chunk-IZCS7FH3.js";
26
+ import "./chunk-BIWRJ65N.js";
28
27
  import "./chunk-XHZJG3QT.js";
28
+ import "./chunk-W24YSGH4.js";
29
29
  import "./chunk-MLKGABMK.js";
30
30
  export {
31
31
  BATCH_MAX,
@@ -6,8 +6,8 @@ import {
6
6
  loadExclusions,
7
7
  macSettingsPath,
8
8
  stillExcluded
9
- } from "./chunk-YYDO5WB5.js";
10
- import "./chunk-AM6GOGA6.js";
9
+ } from "./chunk-OJ5ERABF.js";
10
+ import "./chunk-W24YSGH4.js";
11
11
  import "./chunk-MLKGABMK.js";
12
12
  export {
13
13
  changeExclusions,
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  LAUNCHD_LABEL,
3
3
  SYNC_HOOK_COMMAND,
4
+ SYNC_STATE_NAMES,
4
5
  capturePaused,
5
6
  collectorBody,
6
7
  collectorHarness,
@@ -28,19 +29,20 @@ import {
28
29
  syncConfigPath,
29
30
  syncDir,
30
31
  syncTraces
31
- } from "./chunk-EO32DG3Z.js";
32
- import "./chunk-UHEJFBZJ.js";
33
- import "./chunk-YYDO5WB5.js";
34
- import "./chunk-AM6GOGA6.js";
35
- import "./chunk-WLTOVOTW.js";
36
- import "./chunk-WSQZHRE4.js";
37
- import "./chunk-OBRH43HE.js";
38
- import "./chunk-7DFFA6GA.js";
32
+ } from "./chunk-Y7JBA7AC.js";
33
+ import "./chunk-DAVMU66H.js";
34
+ import "./chunk-IZCS7FH3.js";
35
+ import "./chunk-C3RW65GZ.js";
36
+ import "./chunk-LMYRAGDR.js";
37
+ import "./chunk-BIWRJ65N.js";
39
38
  import "./chunk-XHZJG3QT.js";
39
+ import "./chunk-OJ5ERABF.js";
40
+ import "./chunk-W24YSGH4.js";
40
41
  import "./chunk-MLKGABMK.js";
41
42
  export {
42
43
  LAUNCHD_LABEL,
43
44
  SYNC_HOOK_COMMAND,
45
+ SYNC_STATE_NAMES,
44
46
  capturePaused,
45
47
  collectorBody,
46
48
  collectorHarness,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agentsky/sky",
3
- "version": "3.45.0",
4
- "description": "sky \u2014 the AgentSky developer CLI: launch and talk to long-lived agents from your terminal.",
3
+ "version": "3.47.1",
4
+ "description": "sky — the AgentSky developer CLI: launch and talk to long-lived agents from your terminal.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "bin": {
@@ -1,34 +0,0 @@
1
- import {
2
- MCP_ENTRY,
3
- computerClients,
4
- computerReport,
5
- describeRepair,
6
- engineReports,
7
- machineKey,
8
- repairComputer,
9
- reportComputer,
10
- upkeepComputer
11
- } from "./chunk-TPDNO2LM.js";
12
- import "./chunk-EO32DG3Z.js";
13
- import "./chunk-UHEJFBZJ.js";
14
- import "./chunk-YYDO5WB5.js";
15
- import "./chunk-AM6GOGA6.js";
16
- import "./chunk-MXIAK52Z.js";
17
- import "./chunk-OYSSK6GS.js";
18
- import "./chunk-WLTOVOTW.js";
19
- import "./chunk-WSQZHRE4.js";
20
- import "./chunk-OBRH43HE.js";
21
- import "./chunk-7DFFA6GA.js";
22
- import "./chunk-XHZJG3QT.js";
23
- import "./chunk-MLKGABMK.js";
24
- export {
25
- MCP_ENTRY,
26
- computerClients,
27
- computerReport,
28
- describeRepair,
29
- engineReports,
30
- machineKey,
31
- repairComputer,
32
- reportComputer,
33
- upkeepComputer
34
- };
@@ -1,103 +0,0 @@
1
- import {
2
- cachedSettingsBlock,
3
- mcpUrlFor
4
- } from "./chunk-OYSSK6GS.js";
5
- import "./chunk-WLTOVOTW.js";
6
- import "./chunk-OBRH43HE.js";
7
- import {
8
- USER_AGENT
9
- } from "./chunk-7DFFA6GA.js";
10
- import {
11
- apiBase,
12
- apiToken
13
- } from "./chunk-XHZJG3QT.js";
14
- import "./chunk-MLKGABMK.js";
15
-
16
- // src/mcp-serve.ts
17
- import { createInterface } from "readline";
18
- var defaults = () => ({
19
- fetch,
20
- token: apiToken,
21
- url: () => mcpUrlFor(apiBase(), "short"),
22
- settings: cachedSettingsBlock,
23
- write: (line) => process.stdout.write(`${line}
24
- `)
25
- });
26
- function failure(id, message) {
27
- return JSON.stringify({ jsonrpc: "2.0", id: id ?? null, error: { code: -32e3, message } });
28
- }
29
- function answersIn(body, type) {
30
- const texts = type?.includes("text/event-stream") ? body.split(/\r?\n/).filter((line) => line.startsWith("data:")).map((line) => line.slice(5).trim()).filter(Boolean) : body.trim() ? [body] : [];
31
- return texts.flatMap((text) => {
32
- const parsed = JSON.parse(text);
33
- return Array.isArray(parsed) ? parsed : [parsed];
34
- });
35
- }
36
- async function forwardLine(line, deps = defaults(), protocol = {}) {
37
- let message;
38
- try {
39
- message = JSON.parse(line);
40
- } catch {
41
- return deps.write(failure(null, "not a JSON-RPC message"));
42
- }
43
- const token = deps.token();
44
- const expectsAnswer = message.id !== void 0 && message.id !== null;
45
- if (!token) {
46
- if (expectsAnswer) deps.write(failure(message.id, "sky is not signed in on this computer: run `sky auth login`"));
47
- return;
48
- }
49
- let response;
50
- try {
51
- response = await deps.fetch(deps.url(), {
52
- method: "POST",
53
- headers: {
54
- "user-agent": USER_AGENT,
55
- authorization: `Bearer ${token}`,
56
- "content-type": "application/json",
57
- accept: "application/json, text/event-stream",
58
- ...protocol.version ? { "mcp-protocol-version": protocol.version } : {}
59
- },
60
- body: line
61
- });
62
- } catch (error) {
63
- if (expectsAnswer) deps.write(failure(message.id, `AgentSky could not be reached: ${error instanceof Error ? error.message : String(error)}`));
64
- return;
65
- }
66
- const body = await response.text();
67
- if (!response.ok) {
68
- if (expectsAnswer) deps.write(failure(message.id, `AgentSky answered ${response.status}`));
69
- return;
70
- }
71
- let answers;
72
- try {
73
- answers = answersIn(body, response.headers.get("content-type"));
74
- } catch {
75
- if (expectsAnswer) deps.write(failure(message.id, "AgentSky's answer was not JSON"));
76
- return;
77
- }
78
- for (const answer of answers) {
79
- if (message.method === "initialize" && answer.result) {
80
- const version = answer.result.protocolVersion;
81
- if (typeof version === "string") protocol.version = version;
82
- const settings = deps.settings();
83
- if (settings) answer.result.instructions = `${answer.result.instructions ?? ""}
84
-
85
- ${settings}`.trim();
86
- }
87
- deps.write(JSON.stringify(answer));
88
- }
89
- }
90
- async function serveMcp(deps = defaults()) {
91
- const protocol = {};
92
- const lines = createInterface({ input: process.stdin, crlfDelay: Infinity });
93
- let queue = Promise.resolve();
94
- for await (const line of lines) {
95
- if (!line.trim()) continue;
96
- queue = queue.then(() => forwardLine(line, deps, protocol));
97
- }
98
- await queue;
99
- }
100
- export {
101
- forwardLine,
102
- serveMcp
103
- };