@agentsky/sky 3.47.1 → 3.48.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.
@@ -2,7 +2,7 @@ import {
2
2
  MCP_SERVER_NAME,
3
3
  withoutSettingsBlock,
4
4
  withoutTomlServer
5
- } from "./chunk-SJIBWHJU.js";
5
+ } from "./chunk-V4NPUQM2.js";
6
6
  import {
7
7
  configPath
8
8
  } from "./chunk-XHZJG3QT.js";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  ApiError,
3
3
  api
4
- } from "./chunk-DAVMU66H.js";
4
+ } from "./chunk-NENCXIQO.js";
5
5
  import {
6
6
  installClaudeHooks
7
- } from "./chunk-IZCS7FH3.js";
7
+ } from "./chunk-ENG7YVFA.js";
8
8
  import {
9
9
  loadLocalSkillState,
10
10
  revisionAt
11
- } from "./chunk-C3RW65GZ.js";
11
+ } from "./chunk-4RUMYOAH.js";
12
12
  import {
13
13
  USER_AGENT
14
- } from "./chunk-BIWRJ65N.js";
14
+ } from "./chunk-JSW6RJM4.js";
15
15
  import {
16
16
  apiBase,
17
17
  apiToken,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  SKILL_MARKER,
3
3
  SKILL_NAME
4
- } from "./chunk-LMYRAGDR.js";
4
+ } from "./chunk-I6R6JSZT.js";
5
5
  import {
6
6
  CLI_VERSION
7
- } from "./chunk-BIWRJ65N.js";
7
+ } from "./chunk-JSW6RJM4.js";
8
8
  import {
9
9
  configPath
10
10
  } from "./chunk-XHZJG3QT.js";
@@ -2,11 +2,11 @@ import {
2
2
  CAPTURE_HOOK_ARGS,
3
3
  SetupJournal,
4
4
  isCaptureCommand
5
- } from "./chunk-YUZWSDVE.js";
5
+ } from "./chunk-2YJE5NVV.js";
6
6
  import {
7
7
  localAgentKey,
8
8
  shortToolCount
9
- } from "./chunk-MSEGJ7V5.js";
9
+ } from "./chunk-NLV2DMMS.js";
10
10
  import {
11
11
  cachedSettingsBlock,
12
12
  detectClaudeApp,
@@ -24,22 +24,22 @@ import {
24
24
  systemCommandRunner,
25
25
  workspaceSlug,
26
26
  writeSettingsBlocks
27
- } from "./chunk-SJIBWHJU.js";
27
+ } from "./chunk-V4NPUQM2.js";
28
28
  import {
29
29
  lastUploads,
30
30
  loadSyncConfig
31
- } from "./chunk-Y7JBA7AC.js";
31
+ } from "./chunk-3TYVCKLX.js";
32
32
  import {
33
33
  ApiError,
34
34
  api
35
- } from "./chunk-DAVMU66H.js";
35
+ } from "./chunk-NENCXIQO.js";
36
36
  import {
37
37
  installSkill,
38
38
  skillState
39
- } from "./chunk-LMYRAGDR.js";
39
+ } from "./chunk-I6R6JSZT.js";
40
40
  import {
41
41
  CLI_VERSION
42
- } from "./chunk-BIWRJ65N.js";
42
+ } from "./chunk-JSW6RJM4.js";
43
43
  import {
44
44
  apiBase,
45
45
  apiToken,
@@ -1919,7 +1919,7 @@ ${raw}` : `${line}
1919
1919
  return { trigger: "codex_notify", outcome: "installed", path };
1920
1920
  }
1921
1921
  async function installSchedule(opts) {
1922
- const lib = await import("./trace-library-QLCECTIS.js");
1922
+ const lib = await import("./trace-library-QDGMBGNH.js");
1923
1923
  if ((opts.platform ?? process.platform) !== "darwin") {
1924
1924
  return { trigger: "schedule", outcome: "skipped", detail: "the 15-minute sweep is macOS only; on Linux add `*/15 * * * * sky trace sync --quiet` to your crontab. The hooks still capture each session" };
1925
1925
  }
@@ -1942,7 +1942,7 @@ async function installSchedule(opts) {
1942
1942
  return { trigger: "schedule", outcome: "installed", path };
1943
1943
  }
1944
1944
  async function installCapture(opts) {
1945
- const lib = await import("./trace-library-QLCECTIS.js");
1945
+ const lib = await import("./trace-library-QDGMBGNH.js");
1946
1946
  const config = lib.loadSyncConfig();
1947
1947
  if (!config.enabled && config.enabledAt) return { sync: "off", triggers: [] };
1948
1948
  const configFile = lib.syncConfigPath();
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  USER_AGENT
3
- } from "./chunk-BIWRJ65N.js";
3
+ } from "./chunk-JSW6RJM4.js";
4
4
  import {
5
5
  configPath
6
6
  } from "./chunk-XHZJG3QT.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CLI_VERSION
3
- } from "./chunk-BIWRJ65N.js";
3
+ } from "./chunk-JSW6RJM4.js";
4
4
 
5
5
  // src/skill.ts
6
6
  import { mkdirSync, readFileSync, writeFileSync } from "fs";
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var CLI_VERSION = "3.47.1";
2
+ var CLI_VERSION = "3.48.0";
3
3
  var USER_AGENT = `sky-cli/${CLI_VERSION} (${process.platform}; node/${process.versions.node})`;
4
4
 
5
5
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  USER_AGENT
3
- } from "./chunk-BIWRJ65N.js";
3
+ } from "./chunk-JSW6RJM4.js";
4
4
  import {
5
5
  apiBase,
6
6
  apiToken,
@@ -2,13 +2,13 @@ import {
2
2
  cachedSettingsBlock,
3
3
  mcpUrlFor,
4
4
  workspaceSlug
5
- } from "./chunk-SJIBWHJU.js";
5
+ } from "./chunk-V4NPUQM2.js";
6
6
  import {
7
7
  api
8
- } from "./chunk-DAVMU66H.js";
8
+ } from "./chunk-NENCXIQO.js";
9
9
  import {
10
10
  USER_AGENT
11
- } from "./chunk-BIWRJ65N.js";
11
+ } from "./chunk-JSW6RJM4.js";
12
12
  import {
13
13
  apiBase,
14
14
  apiToken,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  ApiError,
3
3
  api
4
- } from "./chunk-DAVMU66H.js";
4
+ } from "./chunk-NENCXIQO.js";
5
5
  import {
6
6
  SKILL_NAME
7
- } from "./chunk-LMYRAGDR.js";
7
+ } from "./chunk-I6R6JSZT.js";
8
8
  import {
9
9
  configPath,
10
10
  currentUniverse
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  api
3
- } from "./chunk-DAVMU66H.js";
4
- import "./chunk-BIWRJ65N.js";
3
+ } from "./chunk-NENCXIQO.js";
4
+ import "./chunk-JSW6RJM4.js";
5
5
  import "./chunk-XHZJG3QT.js";
6
6
  import "./chunk-MLKGABMK.js";
7
7
 
@@ -10,16 +10,16 @@ import {
10
10
  reportComputer,
11
11
  savedMachineKey,
12
12
  upkeepComputer
13
- } from "./chunk-FDR6JOIJ.js";
14
- import "./chunk-YUZWSDVE.js";
15
- import "./chunk-MSEGJ7V5.js";
16
- import "./chunk-SJIBWHJU.js";
17
- import "./chunk-Y7JBA7AC.js";
18
- import "./chunk-DAVMU66H.js";
19
- import "./chunk-IZCS7FH3.js";
20
- import "./chunk-C3RW65GZ.js";
21
- import "./chunk-LMYRAGDR.js";
22
- import "./chunk-BIWRJ65N.js";
13
+ } from "./chunk-AQ7E6RYH.js";
14
+ import "./chunk-2YJE5NVV.js";
15
+ import "./chunk-NLV2DMMS.js";
16
+ import "./chunk-V4NPUQM2.js";
17
+ import "./chunk-3TYVCKLX.js";
18
+ import "./chunk-NENCXIQO.js";
19
+ import "./chunk-ENG7YVFA.js";
20
+ import "./chunk-4RUMYOAH.js";
21
+ import "./chunk-I6R6JSZT.js";
22
+ import "./chunk-JSW6RJM4.js";
23
23
  import "./chunk-XHZJG3QT.js";
24
24
  import "./chunk-OJ5ERABF.js";
25
25
  import "./chunk-W24YSGH4.js";
package/dist/index.js CHANGED
@@ -17,14 +17,14 @@ import {
17
17
  skyCommand,
18
18
  takeBack,
19
19
  waitForAnswer
20
- } from "./chunk-FDR6JOIJ.js";
20
+ } from "./chunk-AQ7E6RYH.js";
21
21
  import {
22
22
  SetupJournal,
23
23
  TOKEN_ENV,
24
24
  shellEnvFiles,
25
25
  shellStartupFiles,
26
26
  writeShellEnv
27
- } from "./chunk-YUZWSDVE.js";
27
+ } from "./chunk-2YJE5NVV.js";
28
28
  import {
29
29
  SHELL_AGENT,
30
30
  agentKeysPath,
@@ -33,7 +33,7 @@ import {
33
33
  runsUnattended,
34
34
  shortToolCount,
35
35
  wantsInteractiveClientKey
36
- } from "./chunk-MSEGJ7V5.js";
36
+ } from "./chunk-NLV2DMMS.js";
37
37
  import {
38
38
  NO_TOOLS,
39
39
  addPolicy,
@@ -69,7 +69,7 @@ import {
69
69
  withoutSettingsBlock,
70
70
  workspaceSlug,
71
71
  writeSettingsBlocks
72
- } from "./chunk-SJIBWHJU.js";
72
+ } from "./chunk-V4NPUQM2.js";
73
73
  import {
74
74
  SINGLE_REQUEST_MAX_BYTES,
75
75
  codexThreadName,
@@ -82,7 +82,7 @@ import {
82
82
  transfer,
83
83
  uploadLargeFile,
84
84
  workspaceState
85
- } from "./chunk-Y7JBA7AC.js";
85
+ } from "./chunk-3TYVCKLX.js";
86
86
  import {
87
87
  ApiError,
88
88
  api,
@@ -96,22 +96,22 @@ import {
96
96
  streamEvents,
97
97
  uploadFile,
98
98
  writeResponseFile
99
- } from "./chunk-DAVMU66H.js";
100
- import "./chunk-IZCS7FH3.js";
99
+ } from "./chunk-NENCXIQO.js";
100
+ import "./chunk-ENG7YVFA.js";
101
101
  import {
102
102
  skillTargets,
103
103
  syncLocalSkills
104
- } from "./chunk-C3RW65GZ.js";
104
+ } from "./chunk-4RUMYOAH.js";
105
105
  import {
106
106
  SKILL_NAME,
107
107
  installSkill,
108
108
  isInstalledSkill,
109
109
  skillPaths
110
- } from "./chunk-LMYRAGDR.js";
110
+ } from "./chunk-I6R6JSZT.js";
111
111
  import {
112
112
  CLI_VERSION,
113
113
  USER_AGENT
114
- } from "./chunk-BIWRJ65N.js";
114
+ } from "./chunk-JSW6RJM4.js";
115
115
  import {
116
116
  apiBase,
117
117
  apiToken,
@@ -3908,7 +3908,7 @@ async function setUp(opts, journal, afterwards = []) {
3908
3908
  const workspace2 = engines.length && (has("skill") || has("capture")) ? await workspaceSlug().catch(() => null) : null;
3909
3909
  let install = false;
3910
3910
  if (engines.length && (has("skill") || has("capture") || has("plugins"))) {
3911
- const captureNoticeLines = has("capture") && workspace2 ? captureNotice(workspace2, await (await import("./trace-library-QLCECTIS.js")).sourceFolders()) : [];
3911
+ const captureNoticeLines = has("capture") && workspace2 ? captureNotice(workspace2, await (await import("./trace-library-QDGMBGNH.js")).sourceFolders()) : [];
3912
3912
  if (interactive) for (const line2 of captureNoticeLines) console.log(line2);
3913
3913
  install = await agreed(installQuestion(engines.map((engine) => engine.name), { capture: captureNoticeLines.length > 0 }));
3914
3914
  if (!interactive && captureNoticeLines.length) captureNotices = captureNoticeLines;
@@ -3960,9 +3960,9 @@ async function setUp(opts, journal, afterwards = []) {
3960
3960
  for (const client of mcpOnly) await registerMcp(client);
3961
3961
  if (token) {
3962
3962
  try {
3963
- const { localSkillWorkspace } = await import("./local-skills-run-MH2TI2UC.js");
3963
+ const { localSkillWorkspace } = await import("./local-skills-run-OZTUHDBD.js");
3964
3964
  const workspace3 = await localSkillWorkspace();
3965
- const { libraryRequest } = await import("./trace-library-QLCECTIS.js");
3965
+ const { libraryRequest } = await import("./trace-library-QDGMBGNH.js");
3966
3966
  const local = await syncLocalSkills({
3967
3967
  workspace: workspace3,
3968
3968
  targets: skillTargets(agents, hermes?.root ?? null),
@@ -11674,7 +11674,7 @@ skills.command("mine").description("your own skills, which follow you to every w
11674
11674
  );
11675
11675
  skills.command("local").description("the skills sky installed in this computer's engines (Claude Code, Codex, Cursor, Grok, Hermes), with each one's revision, layer and pin").option("--json", "print as JSON").action(
11676
11676
  run2(async (opts) => {
11677
- const { loadLocalSkillState } = await import("./local-skills-DRZH2R3Q.js");
11677
+ const { loadLocalSkillState } = await import("./local-skills-LBCY7JDM.js");
11678
11678
  const state = loadLocalSkillState();
11679
11679
  if (opts.json) return void console.log(JSON.stringify(state, null, 2));
11680
11680
  const names = Object.keys(state.skills).sort();
@@ -11690,7 +11690,7 @@ skills.command("local").description("the skills sky installed in this computer's
11690
11690
  );
11691
11691
  skills.command("sync").description("install the workspace's skills and your own skills and changes in this computer's engines now; capture does this every 15 minutes").option("--workspace <slug>", "the workspace whose skills to install (default: where capture sends sessions, else your default)").option("--dry-run", "show what would change without writing").option("--json", "print the result as JSON").action(
11692
11692
  run2(async (opts) => {
11693
- const { describeLocalSkills, refreshLocalSkills } = await import("./local-skills-run-MH2TI2UC.js");
11693
+ const { describeLocalSkills, refreshLocalSkills } = await import("./local-skills-run-OZTUHDBD.js");
11694
11694
  const result = await refreshLocalSkills({ workspace: opts.workspace, dryRun: opts.dryRun });
11695
11695
  if (opts.json) return void console.log(JSON.stringify(result, null, 2));
11696
11696
  if (!result.checked) return void console.log("no engine that reads skills is installed on this computer");
@@ -11701,14 +11701,14 @@ ${lines2.join("\n")}` : `Skills from ${result.workspace} are current.`);
11701
11701
  );
11702
11702
  skills.command("pin <name>").description("keep a skill installed on this computer at the revision it has now; syncs leave it until you unpin it").action(
11703
11703
  run2(async (name) => {
11704
- const { pinLocalSkill } = await import("./local-skills-DRZH2R3Q.js");
11704
+ const { pinLocalSkill } = await import("./local-skills-LBCY7JDM.js");
11705
11705
  const pinned = pinLocalSkill(name);
11706
11706
  console.log(`${name} stays at ${pinned.revision_id} on this computer`);
11707
11707
  })
11708
11708
  );
11709
11709
  skills.command("unpin <name>").description("let a pinned skill follow its updates again from the next sync").action(
11710
11710
  run2(async (name) => {
11711
- const { unpinLocalSkill } = await import("./local-skills-DRZH2R3Q.js");
11711
+ const { unpinLocalSkill } = await import("./local-skills-LBCY7JDM.js");
11712
11712
  console.log(unpinLocalSkill(name) ? `${name} follows its updates again` : `${name} was not pinned`);
11713
11713
  })
11714
11714
  );
@@ -13494,22 +13494,22 @@ program.command("capabilities").description("deprecated: sky plugins list --view
13494
13494
  );
13495
13495
  var mcpCommand = program.command("mcp").description("the AgentSky MCP server on this computer");
13496
13496
  mcpCommand.command("serve").description("serve the AgentSky MCP server's short tool list over stdio, for a program that starts its servers itself (the Claude app's chat, as `sky setup` registers it); each request is sent with the token sky holds at that moment").action(run2(async () => {
13497
- const { serveMcp } = await import("./mcp-serve-JJD6JGYS.js");
13497
+ const { serveMcp } = await import("./mcp-serve-5SHK5ASF.js");
13498
13498
  await serveMcp();
13499
13499
  }));
13500
13500
  var compute = program.command("compute").description("the computers you set up with sky: the engines on each and whether each has the workspace's plugins, skills, capture and settings (the Compute group in Settings)");
13501
13501
  compute.command("list", { isDefault: true }).description("every computer you set up with sky, newest report first, with what is not current on each engine").option("--json", "print the list as JSON").action(run2(async (opts) => {
13502
- const { listComputeMachines, renderMachines } = await import("./compute-FAXL7DAK.js");
13502
+ const { listComputeMachines, renderMachines } = await import("./compute-FTVP2A5T.js");
13503
13503
  const machines = await listComputeMachines();
13504
13504
  console.log(opts.json ? JSON.stringify({ machines }, null, 2) : renderMachines(machines));
13505
13505
  }));
13506
13506
  compute.command("repair <machine>").description("ask one of your computers to put its AgentSky setup right on its next scheduled run").option("--json", "print the answer as JSON").action(run2(async (machine, opts) => {
13507
- const { requestRepair } = await import("./compute-FAXL7DAK.js");
13507
+ const { requestRepair } = await import("./compute-FTVP2A5T.js");
13508
13508
  const answer = await requestRepair(machine);
13509
13509
  console.log(opts.json ? JSON.stringify({ machine: answer }, null, 2) : `${answer.name} repairs on its next run (at most 15 minutes while it is on).`);
13510
13510
  }));
13511
13511
  compute.command("remove <machine>").description("forget one of your computers; nothing on it changes (run `sky setup --remove` there to take AgentSky out)").action(run2(async (machine) => {
13512
- const { removeMachine } = await import("./compute-FAXL7DAK.js");
13512
+ const { removeMachine } = await import("./compute-FTVP2A5T.js");
13513
13513
  await removeMachine(machine);
13514
13514
  console.log(`Forgot ${machine}. It reports again on its next run unless \`sky setup --remove\` ran there.`);
13515
13515
  }));
@@ -14178,7 +14178,7 @@ harness.command("connect").description("run an ACP agent (the command after --)
14178
14178
  }));
14179
14179
  var traceCmd = program.command("trace").description("correlate this machine's agent work with the cloud sessions it starts (metadata only unless you choose content)");
14180
14180
  traceCmd.command("start").description("start a trace: a grant for this machine, a root span, and the spool the hooks write to").option("--name <name>", "a name for the task").option("--source <source>", "how this machine reports itself", "claude-code").option("--hooks [settings]", "also install the Claude Code hooks (default: ./.claude/settings.local.json)").option("--capture <scopes>", "also send content, redacted on this machine first: any of prompts,tool_output,files").option("--file <path>", "a file the files scope may send (repeatable)", collect).option("--dir <path>", "a folder whose files the files scope may send when a file tool touches them (repeatable)", collect).action(run2(async (opts) => {
14181
- const { readState, writeState, record: record3, installClaudeHooks, parseContentScopes, chosenPaths, fileEvent } = await import("./trace-RMYKGACV.js");
14181
+ const { readState, writeState, record: record3, installClaudeHooks, parseContentScopes, chosenPaths, fileEvent } = await import("./trace-TDYK47MM.js");
14182
14182
  if (readState()) throw new Error("a trace is already running here \u2014 `sky trace stop` it first");
14183
14183
  const scopes = parseContentScopes(opts.capture);
14184
14184
  const chosen = chosenPaths(opts.file ?? [], opts.dir ?? []);
@@ -14213,7 +14213,7 @@ traceCmd.command("start").description("start a trace: a grant for this machine,
14213
14213
  }));
14214
14214
  traceCmd.command("hook").description("record one Claude Code hook event read from stdin (run by the installed hooks; never fails, prints nothing)").action(async () => {
14215
14215
  try {
14216
- const { readState, record: record3, flush, grantSender, eventsForClaudeHook, contentForClaudeHook, clearState } = await import("./trace-RMYKGACV.js");
14216
+ const { readState, record: record3, flush, grantSender, eventsForClaudeHook, contentForClaudeHook, clearState } = await import("./trace-TDYK47MM.js");
14217
14217
  const chunks = [];
14218
14218
  for await (const chunk of process.stdin) chunks.push(chunk);
14219
14219
  const input = JSON.parse(Buffer.concat(chunks).toString("utf8") || "{}");
@@ -14226,14 +14226,14 @@ traceCmd.command("hook").description("record one Claude Code hook event read fro
14226
14226
  }
14227
14227
  });
14228
14228
  traceCmd.command("flush").description("send what the spool holds, retrying with backoff").action(run2(async () => {
14229
- const { readState, flush, grantSender } = await import("./trace-RMYKGACV.js");
14229
+ const { readState, flush, grantSender } = await import("./trace-TDYK47MM.js");
14230
14230
  const state = readState();
14231
14231
  if (!state) throw new Error("no trace is running here");
14232
14232
  const outcome = await flush(grantSender(state), { attempts: 4 });
14233
14233
  console.log(`sent ${outcome.sent}, refused ${outcome.refused}, given up ${outcome.expired}, still pending ${outcome.pending}${outcome.stopped ? ` (stopped: ${outcome.stopped})` : ""}`);
14234
14234
  }));
14235
14235
  traceCmd.command("status").description("the running trace and its spool").action(run2(async () => {
14236
- const { readState, spoolStatus } = await import("./trace-RMYKGACV.js");
14236
+ const { readState, spoolStatus } = await import("./trace-TDYK47MM.js");
14237
14237
  const state = readState();
14238
14238
  if (!state) {
14239
14239
  console.log("No trace is running here.");
@@ -14243,7 +14243,7 @@ traceCmd.command("status").description("the running trace and its spool").action
14243
14243
  console.log(`${state.trace_id} as ${state.source}: ${spool.pending} pending, ${spool.dropped_full} dropped (spool full), ${spool.dropped_expired} given up, ${spool.refused} refused`);
14244
14244
  }));
14245
14245
  traceCmd.command("show [id]").description("the trace bundle: spans, the sessions they reach, cost counted once per session").option("--json", "print the bundle as JSON").action(run2(async (id2, opts) => {
14246
- const { readState } = await import("./trace-RMYKGACV.js");
14246
+ const { readState } = await import("./trace-TDYK47MM.js");
14247
14247
  const ref = id2 ?? readState()?.trace_id;
14248
14248
  if (!ref) throw new Error("name a trace, or start one here");
14249
14249
  const bundle = await api("GET", `/traces/${ref}`);
@@ -14270,7 +14270,7 @@ traceCmd.command("show [id]").description("the trace bundle: spans, the sessions
14270
14270
  for (const gap of bundle.gaps) console.log(` gap: ${gap.span_id} ${gap.reason}`);
14271
14271
  }));
14272
14272
  traceCmd.command("stop").description("end the root span, send what is left, and revoke this machine's grant").action(run2(async () => {
14273
- const { readState, record: record3, flush, grantSender, clearState } = await import("./trace-RMYKGACV.js");
14273
+ const { readState, record: record3, flush, grantSender, clearState } = await import("./trace-TDYK47MM.js");
14274
14274
  const state = readState();
14275
14275
  if (!state) throw new Error("no trace is running here");
14276
14276
  if (state.root_span) record3(() => [{ span_id: state.root_span, kind: "end", outcome: "completed" }]);
@@ -14283,7 +14283,7 @@ var recordCmd = traceCmd.command("record").description("record every Claude Code
14283
14283
  const { homedir: homedir12 } = await import("os");
14284
14284
  const { join: join21 } = await import("path");
14285
14285
  const vault2 = await import("./trace-vault-IUNYRVGZ.js");
14286
- const { installClaudeHooks, uninstallClaudeHooks } = await import("./trace-RMYKGACV.js");
14286
+ const { installClaudeHooks, uninstallClaudeHooks } = await import("./trace-TDYK47MM.js");
14287
14287
  const command = "sky trace record hook";
14288
14288
  const config = vault2.loadVaultConfig();
14289
14289
  const settings = resolve13(opts.settings ?? config.settings ?? join21(process.env.CLAUDE_CONFIG_DIR ?? join21(homedir12(), ".claude"), "settings.json"));
@@ -14348,7 +14348,7 @@ recordCmd.command("seal <session-dir>").description("seal the cut segments of on
14348
14348
  }
14349
14349
  });
14350
14350
  traceCmd.command("sync [payload]").description("upload this machine's agent sessions (Claude Code, Codex, Cursor, Gemini CLI and every other agent `--agents` lists) to the matching workspace's trace library, redacted here first").option("--enable", "turn sync on for this machine").option("--disable", "turn sync off; nothing more is uploaded").option("--route <match=workspace>", "send sessions whose folder path contains <match> to <workspace> (repeatable; replaces the saved rules)", collect).option("--default <workspace>", "where a session no rule matches goes").option("--keep-local", "keep sessions no rule matches on this machine (the default)").option("--exclude <folder>", "never upload a session that ran in <folder> or below it, to the library or as a session (repeatable; shared with the AgentSky Mac app when it is installed)", collect).option("--unexclude <folder>", "stop excluding <folder> (repeatable)", collect).option("--session <ref>", "only this session: its id or transcript path (repeatable)", collect).option("--import <export>", "add a downloaded cloud export (claude.ai, ChatGPT, Gemini, Grok, DeepSeek \u2026: its .zip, folder or file) so sync uploads it (repeatable)", collect).option("--agents", "list the agents sync reads and which are on this machine").option("--full", "re-read every session, not only files that changed").option("--limit <n>", "at most this many changed sessions this run", (v) => Number.parseInt(v, 10)).option("--dry-run", "show what would be uploaded without uploading").option("--hook", "run from a Claude Code SessionEnd hook or Codex notify: upload that session in the background and return at once").option("--install-schedule", "also sweep every 15 minutes (macOS launchd)").option("--install-hooks", "also sync at the end of every Claude Code and Codex turn (their hook and notify settings)").option("--status", "what sync has done on this machine").option("--quiet", "print only failures").action(async (payload, opts) => {
14351
- const lib = await import("./trace-library-QLCECTIS.js");
14351
+ const lib = await import("./trace-library-QDGMBGNH.js");
14352
14352
  if (opts.hook) {
14353
14353
  try {
14354
14354
  let raw = payload ?? "";
@@ -14461,7 +14461,7 @@ traceCmd.command("sync [payload]").description("upload this machine's agent sess
14461
14461
  return;
14462
14462
  }
14463
14463
  if (!opts.dryRun) {
14464
- const { describeLocalSkills, refreshLocalSkills } = await import("./local-skills-run-MH2TI2UC.js");
14464
+ const { describeLocalSkills, refreshLocalSkills } = await import("./local-skills-run-OZTUHDBD.js");
14465
14465
  try {
14466
14466
  const skills2 = await refreshLocalSkills({ hook: Boolean(opts.session?.length) });
14467
14467
  if (skills2 && !opts.quiet) for (const line2 of describeLocalSkills(skills2)) console.log(line2);
@@ -14476,7 +14476,7 @@ traceCmd.command("sync [payload]").description("upload this machine's agent sess
14476
14476
  for (const error of report.errors.slice(0, 20)) console.error(` ${error}`);
14477
14477
  }
14478
14478
  if (!opts.session && !opts.dryRun) {
14479
- const { upkeepComputer } = await import("./compute-report-XQJSIK6B.js");
14479
+ const { upkeepComputer } = await import("./compute-report-743W5GPX.js");
14480
14480
  const said = await upkeepComputer().catch((error) => `AgentSky could not check this computer's setup: ${error instanceof Error ? error.message : String(error)}`);
14481
14481
  if (said) console.log(said);
14482
14482
  }
@@ -14485,7 +14485,7 @@ traceCmd.command("sync [payload]").description("upload this machine's agent sess
14485
14485
  });
14486
14486
  traceCmd.command("mac <machine>").description("which workspace's trace library one of your Macs fills; the AgentSky Mac app uploads that Mac's agent sessions there, redacted on the Mac first, exactly as `sky trace sync` would (machine ids: `sky api GET /desktop/machines`)").option("--on", "send this Mac's sessions to --workspace (or the current workspace), moving them from any other").option("--off", "stop this Mac's uploads to --workspace (or the current workspace)").option("--workspace <slug>", "the workspace to turn on or off (default: the current one)").option("--json", "print the answer as JSON").action(run2(async (machine, opts) => {
14487
14487
  if (opts.on && opts.off) throw new Error("choose --on or --off");
14488
- const { libraryRequest } = await import("./trace-library-QLCECTIS.js");
14488
+ const { libraryRequest } = await import("./trace-library-QDGMBGNH.js");
14489
14489
  const workspace2 = opts.workspace ?? currentUniverse();
14490
14490
  if (!workspace2) throw new Error("name a workspace with --workspace");
14491
14491
  const answer = opts.on || opts.off ? await libraryRequest("PUT", `/trace-library/devices/${encodeURIComponent(machine)}`, workspace2, { enabled: Boolean(opts.on) }) : await libraryRequest("GET", `/trace-library/devices/${encodeURIComponent(machine)}`, workspace2);
@@ -14502,7 +14502,7 @@ traceCmd.command("search <query...>").description("search every session in a wor
14502
14502
  console.log(opts.json ? JSON.stringify(page, null, 2) : renderContextPage(page));
14503
14503
  }));
14504
14504
  traceCmd.command("library").description("list the sessions in a workspace's trace library, most recently updated first").option("--workspace <slug>", "the workspace (default: the current one)").option("--limit <n>", "how many", (v) => Number.parseInt(v, 10), 20).option("--json", "print the page as JSON").action(run2(async (opts) => {
14505
- const { libraryRequest } = await import("./trace-library-QLCECTIS.js");
14505
+ const { libraryRequest } = await import("./trace-library-QDGMBGNH.js");
14506
14506
  const workspace2 = opts.workspace ?? currentUniverse();
14507
14507
  if (!workspace2) throw new Error("name a workspace with --workspace");
14508
14508
  const page = await libraryRequest("GET", `/trace-library?limit=${opts.limit}`, workspace2);
@@ -9,9 +9,9 @@ import {
9
9
  skillTargets,
10
10
  syncLocalSkills,
11
11
  unpinLocalSkill
12
- } from "./chunk-C3RW65GZ.js";
13
- import "./chunk-LMYRAGDR.js";
14
- import "./chunk-BIWRJ65N.js";
12
+ } from "./chunk-4RUMYOAH.js";
13
+ import "./chunk-I6R6JSZT.js";
14
+ import "./chunk-JSW6RJM4.js";
15
15
  import "./chunk-XHZJG3QT.js";
16
16
  import "./chunk-MLKGABMK.js";
17
17
  export {
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  SetupJournal
3
- } from "./chunk-YUZWSDVE.js";
3
+ } from "./chunk-2YJE5NVV.js";
4
4
  import {
5
5
  detectHermes,
6
6
  detectLocalAgents,
7
7
  workspaceSlug
8
- } from "./chunk-SJIBWHJU.js";
9
- import "./chunk-DAVMU66H.js";
8
+ } from "./chunk-V4NPUQM2.js";
9
+ import "./chunk-NENCXIQO.js";
10
10
  import {
11
11
  checkedWithin,
12
12
  skillTargets,
13
13
  syncLocalSkills
14
- } from "./chunk-C3RW65GZ.js";
15
- import "./chunk-LMYRAGDR.js";
16
- import "./chunk-BIWRJ65N.js";
14
+ } from "./chunk-4RUMYOAH.js";
15
+ import "./chunk-I6R6JSZT.js";
16
+ import "./chunk-JSW6RJM4.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-QLCECTIS.js");
24
+ const { loadSyncConfig } = await import("./trace-library-QDGMBGNH.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-QLCECTIS.js");
33
+ const { libraryRequest } = await import("./trace-library-QDGMBGNH.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) });
@@ -2,11 +2,11 @@ import {
2
2
  forwardLine,
3
3
  serveMcp,
4
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";
5
+ } from "./chunk-NLV2DMMS.js";
6
+ import "./chunk-V4NPUQM2.js";
7
+ import "./chunk-NENCXIQO.js";
8
+ import "./chunk-I6R6JSZT.js";
9
+ import "./chunk-JSW6RJM4.js";
10
10
  import "./chunk-XHZJG3QT.js";
11
11
  import "./chunk-MLKGABMK.js";
12
12
  export {
@@ -22,8 +22,8 @@ import {
22
22
  traceDir,
23
23
  uninstallClaudeHooks,
24
24
  writeState
25
- } from "./chunk-IZCS7FH3.js";
26
- import "./chunk-BIWRJ65N.js";
25
+ } from "./chunk-ENG7YVFA.js";
26
+ import "./chunk-JSW6RJM4.js";
27
27
  import "./chunk-XHZJG3QT.js";
28
28
  import "./chunk-W24YSGH4.js";
29
29
  import "./chunk-MLKGABMK.js";
@@ -29,12 +29,12 @@ import {
29
29
  syncConfigPath,
30
30
  syncDir,
31
31
  syncTraces
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";
32
+ } from "./chunk-3TYVCKLX.js";
33
+ import "./chunk-NENCXIQO.js";
34
+ import "./chunk-ENG7YVFA.js";
35
+ import "./chunk-4RUMYOAH.js";
36
+ import "./chunk-I6R6JSZT.js";
37
+ import "./chunk-JSW6RJM4.js";
38
38
  import "./chunk-XHZJG3QT.js";
39
39
  import "./chunk-OJ5ERABF.js";
40
40
  import "./chunk-W24YSGH4.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentsky/sky",
3
- "version": "3.47.1",
3
+ "version": "3.48.0",
4
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",