@agentsky/sky 3.47.1 → 3.48.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.
- package/dist/{chunk-Y7JBA7AC.js → chunk-46I7RCQQ.js} +10 -6
- package/dist/{chunk-BIWRJ65N.js → chunk-E7HNEQ7F.js} +1 -1
- package/dist/{chunk-YUZWSDVE.js → chunk-GDZSCISF.js} +1 -1
- package/dist/{chunk-MSEGJ7V5.js → chunk-H7KHMRUZ.js} +3 -3
- package/dist/{chunk-DAVMU66H.js → chunk-KHJRD4DR.js} +1 -1
- package/dist/{chunk-FDR6JOIJ.js → chunk-LVHQILKX.js} +9 -9
- package/dist/{chunk-IZCS7FH3.js → chunk-NDVCYVW5.js} +1 -1
- package/dist/{chunk-SJIBWHJU.js → chunk-RVDXKUWH.js} +2 -2
- package/dist/{chunk-LMYRAGDR.js → chunk-TIP2XS2L.js} +1 -1
- package/dist/{chunk-C3RW65GZ.js → chunk-X4DBI7R7.js} +2 -2
- package/dist/{compute-FAXL7DAK.js → compute-TCUMLDEK.js} +2 -2
- package/dist/{compute-report-XQJSIK6B.js → compute-report-LC2OH2QJ.js} +10 -10
- package/dist/index.js +33 -33
- package/dist/{local-skills-DRZH2R3Q.js → local-skills-EIUQL24E.js} +3 -3
- package/dist/{local-skills-run-MH2TI2UC.js → local-skills-run-FSVTDDOW.js} +8 -8
- package/dist/{mcp-serve-JJD6JGYS.js → mcp-serve-NQJZL7YP.js} +5 -5
- package/dist/{trace-RMYKGACV.js → trace-GFC46TQC.js} +2 -2
- package/dist/{trace-library-QLCECTIS.js → trace-library-4F57EGL7.js} +6 -6
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApiError,
|
|
3
3
|
api
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KHJRD4DR.js";
|
|
5
5
|
import {
|
|
6
6
|
installClaudeHooks
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NDVCYVW5.js";
|
|
8
8
|
import {
|
|
9
9
|
loadLocalSkillState,
|
|
10
10
|
revisionAt
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-X4DBI7R7.js";
|
|
12
12
|
import {
|
|
13
13
|
USER_AGENT
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-E7HNEQ7F.js";
|
|
15
15
|
import {
|
|
16
16
|
apiBase,
|
|
17
17
|
apiToken,
|
|
@@ -1774,7 +1774,7 @@ async function runSync(config, options) {
|
|
|
1774
1774
|
savePendingSource(item, { previewSaved: true, link: saved.linked_task ?? null });
|
|
1775
1775
|
const link = item.manifest.link;
|
|
1776
1776
|
const linkKey = createHash3("sha256").update(JSON.stringify(link ?? null)).digest("hex").slice(0, 16);
|
|
1777
|
-
await libraryRequest("POST", "/events", workspace, { events: [{
|
|
1777
|
+
const sourceLinked = await libraryRequest("POST", "/events", workspace, { events: [{
|
|
1778
1778
|
idempotency_key: `trace-source:${source.sha256}:${linkKey}`,
|
|
1779
1779
|
...link ? { session_id: link.session_id, task_id: link.task_id } : {},
|
|
1780
1780
|
log: "workspace",
|
|
@@ -1795,7 +1795,11 @@ async function runSync(config, options) {
|
|
|
1795
1795
|
library_is_preview: true
|
|
1796
1796
|
},
|
|
1797
1797
|
bodies: [{ role: "transcript", media_type: "application/x-ndjson", file_id: item.manifest.fileId, complete: source.complete }]
|
|
1798
|
-
}] })
|
|
1798
|
+
}] }).then(() => true, (error) => {
|
|
1799
|
+
if (error instanceof ApiError && error.status === 403 && error.code === "restricted_token") return false;
|
|
1800
|
+
throw error;
|
|
1801
|
+
});
|
|
1802
|
+
if (!sourceLinked) options.onProgress?.(`${key(local)}: kept in the trace library; this key cannot record its source archive`);
|
|
1799
1803
|
record(local, { workspace, sha256: source.sha256, status: source.complete ? "stored" : "stored_with_gaps" });
|
|
1800
1804
|
writePrivateJson(statePath2(), state);
|
|
1801
1805
|
removePendingSource(item);
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
cachedSettingsBlock,
|
|
3
3
|
mcpUrlFor,
|
|
4
4
|
workspaceSlug
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RVDXKUWH.js";
|
|
6
6
|
import {
|
|
7
7
|
api
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KHJRD4DR.js";
|
|
9
9
|
import {
|
|
10
10
|
USER_AGENT
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-E7HNEQ7F.js";
|
|
12
12
|
import {
|
|
13
13
|
apiBase,
|
|
14
14
|
apiToken,
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
CAPTURE_HOOK_ARGS,
|
|
3
3
|
SetupJournal,
|
|
4
4
|
isCaptureCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GDZSCISF.js";
|
|
6
6
|
import {
|
|
7
7
|
localAgentKey,
|
|
8
8
|
shortToolCount
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-H7KHMRUZ.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-
|
|
27
|
+
} from "./chunk-RVDXKUWH.js";
|
|
28
28
|
import {
|
|
29
29
|
lastUploads,
|
|
30
30
|
loadSyncConfig
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-46I7RCQQ.js";
|
|
32
32
|
import {
|
|
33
33
|
ApiError,
|
|
34
34
|
api
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-KHJRD4DR.js";
|
|
36
36
|
import {
|
|
37
37
|
installSkill,
|
|
38
38
|
skillState
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-TIP2XS2L.js";
|
|
40
40
|
import {
|
|
41
41
|
CLI_VERSION
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-E7HNEQ7F.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-
|
|
1922
|
+
const lib = await import("./trace-library-4F57EGL7.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-
|
|
1945
|
+
const lib = await import("./trace-library-4F57EGL7.js");
|
|
1946
1946
|
const config = lib.loadSyncConfig();
|
|
1947
1947
|
if (!config.enabled && config.enabledAt) return { sync: "off", triggers: [] };
|
|
1948
1948
|
const configFile = lib.syncConfigPath();
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
reportComputer,
|
|
11
11
|
savedMachineKey,
|
|
12
12
|
upkeepComputer
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-LVHQILKX.js";
|
|
14
|
+
import "./chunk-GDZSCISF.js";
|
|
15
|
+
import "./chunk-H7KHMRUZ.js";
|
|
16
|
+
import "./chunk-RVDXKUWH.js";
|
|
17
|
+
import "./chunk-46I7RCQQ.js";
|
|
18
|
+
import "./chunk-KHJRD4DR.js";
|
|
19
|
+
import "./chunk-NDVCYVW5.js";
|
|
20
|
+
import "./chunk-X4DBI7R7.js";
|
|
21
|
+
import "./chunk-TIP2XS2L.js";
|
|
22
|
+
import "./chunk-E7HNEQ7F.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-
|
|
20
|
+
} from "./chunk-LVHQILKX.js";
|
|
21
21
|
import {
|
|
22
22
|
SetupJournal,
|
|
23
23
|
TOKEN_ENV,
|
|
24
24
|
shellEnvFiles,
|
|
25
25
|
shellStartupFiles,
|
|
26
26
|
writeShellEnv
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-GDZSCISF.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-
|
|
36
|
+
} from "./chunk-H7KHMRUZ.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-
|
|
72
|
+
} from "./chunk-RVDXKUWH.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-
|
|
85
|
+
} from "./chunk-46I7RCQQ.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-
|
|
100
|
-
import "./chunk-
|
|
99
|
+
} from "./chunk-KHJRD4DR.js";
|
|
100
|
+
import "./chunk-NDVCYVW5.js";
|
|
101
101
|
import {
|
|
102
102
|
skillTargets,
|
|
103
103
|
syncLocalSkills
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-X4DBI7R7.js";
|
|
105
105
|
import {
|
|
106
106
|
SKILL_NAME,
|
|
107
107
|
installSkill,
|
|
108
108
|
isInstalledSkill,
|
|
109
109
|
skillPaths
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-TIP2XS2L.js";
|
|
111
111
|
import {
|
|
112
112
|
CLI_VERSION,
|
|
113
113
|
USER_AGENT
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-E7HNEQ7F.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-
|
|
3911
|
+
const captureNoticeLines = has("capture") && workspace2 ? captureNotice(workspace2, await (await import("./trace-library-4F57EGL7.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-
|
|
3963
|
+
const { localSkillWorkspace } = await import("./local-skills-run-FSVTDDOW.js");
|
|
3964
3964
|
const workspace3 = await localSkillWorkspace();
|
|
3965
|
-
const { libraryRequest } = await import("./trace-library-
|
|
3965
|
+
const { libraryRequest } = await import("./trace-library-4F57EGL7.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-
|
|
11677
|
+
const { loadLocalSkillState } = await import("./local-skills-EIUQL24E.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-
|
|
11693
|
+
const { describeLocalSkills, refreshLocalSkills } = await import("./local-skills-run-FSVTDDOW.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-
|
|
11704
|
+
const { pinLocalSkill } = await import("./local-skills-EIUQL24E.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-
|
|
11711
|
+
const { unpinLocalSkill } = await import("./local-skills-EIUQL24E.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-
|
|
13497
|
+
const { serveMcp } = await import("./mcp-serve-NQJZL7YP.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-
|
|
13502
|
+
const { listComputeMachines, renderMachines } = await import("./compute-TCUMLDEK.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-
|
|
13507
|
+
const { requestRepair } = await import("./compute-TCUMLDEK.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-
|
|
13512
|
+
const { removeMachine } = await import("./compute-TCUMLDEK.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-
|
|
14181
|
+
const { readState, writeState, record: record3, installClaudeHooks, parseContentScopes, chosenPaths, fileEvent } = await import("./trace-GFC46TQC.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-
|
|
14216
|
+
const { readState, record: record3, flush, grantSender, eventsForClaudeHook, contentForClaudeHook, clearState } = await import("./trace-GFC46TQC.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-
|
|
14229
|
+
const { readState, flush, grantSender } = await import("./trace-GFC46TQC.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-
|
|
14236
|
+
const { readState, spoolStatus } = await import("./trace-GFC46TQC.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-
|
|
14246
|
+
const { readState } = await import("./trace-GFC46TQC.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-
|
|
14273
|
+
const { readState, record: record3, flush, grantSender, clearState } = await import("./trace-GFC46TQC.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-
|
|
14286
|
+
const { installClaudeHooks, uninstallClaudeHooks } = await import("./trace-GFC46TQC.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-
|
|
14351
|
+
const lib = await import("./trace-library-4F57EGL7.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-
|
|
14464
|
+
const { describeLocalSkills, refreshLocalSkills } = await import("./local-skills-run-FSVTDDOW.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-
|
|
14479
|
+
const { upkeepComputer } = await import("./compute-report-LC2OH2QJ.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-
|
|
14488
|
+
const { libraryRequest } = await import("./trace-library-4F57EGL7.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-
|
|
14505
|
+
const { libraryRequest } = await import("./trace-library-4F57EGL7.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-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-X4DBI7R7.js";
|
|
13
|
+
import "./chunk-TIP2XS2L.js";
|
|
14
|
+
import "./chunk-E7HNEQ7F.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-
|
|
3
|
+
} from "./chunk-GDZSCISF.js";
|
|
4
4
|
import {
|
|
5
5
|
detectHermes,
|
|
6
6
|
detectLocalAgents,
|
|
7
7
|
workspaceSlug
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-RVDXKUWH.js";
|
|
9
|
+
import "./chunk-KHJRD4DR.js";
|
|
10
10
|
import {
|
|
11
11
|
checkedWithin,
|
|
12
12
|
skillTargets,
|
|
13
13
|
syncLocalSkills
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-X4DBI7R7.js";
|
|
15
|
+
import "./chunk-TIP2XS2L.js";
|
|
16
|
+
import "./chunk-E7HNEQ7F.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-
|
|
24
|
+
const { loadSyncConfig } = await import("./trace-library-4F57EGL7.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-
|
|
33
|
+
const { libraryRequest } = await import("./trace-library-4F57EGL7.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-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-H7KHMRUZ.js";
|
|
6
|
+
import "./chunk-RVDXKUWH.js";
|
|
7
|
+
import "./chunk-KHJRD4DR.js";
|
|
8
|
+
import "./chunk-TIP2XS2L.js";
|
|
9
|
+
import "./chunk-E7HNEQ7F.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-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-NDVCYVW5.js";
|
|
26
|
+
import "./chunk-E7HNEQ7F.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-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-46I7RCQQ.js";
|
|
33
|
+
import "./chunk-KHJRD4DR.js";
|
|
34
|
+
import "./chunk-NDVCYVW5.js";
|
|
35
|
+
import "./chunk-X4DBI7R7.js";
|
|
36
|
+
import "./chunk-TIP2XS2L.js";
|
|
37
|
+
import "./chunk-E7HNEQ7F.js";
|
|
38
38
|
import "./chunk-XHZJG3QT.js";
|
|
39
39
|
import "./chunk-OJ5ERABF.js";
|
|
40
40
|
import "./chunk-W24YSGH4.js";
|