@agentsky/sky 3.47.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.
- package/agent-plugins/plugins/meetings/.codex-plugin/plugin.json +1 -1
- package/agent-plugins/plugins/meetings/skills/agentsky-meetings/SKILL.md +1 -1
- package/dist/{chunk-2OIW436E.js → chunk-BIWRJ65N.js} +1 -1
- package/dist/{chunk-QTMW37EN.js → chunk-C3RW65GZ.js} +2 -2
- package/dist/{chunk-LM3WPNRW.js → chunk-DAVMU66H.js} +1 -1
- package/dist/{chunk-I63VASQP.js → chunk-FDR6JOIJ.js} +19 -12
- package/dist/{chunk-IJOMMFEK.js → chunk-IZCS7FH3.js} +2 -2
- package/dist/{chunk-OXCZMLEZ.js → chunk-LMYRAGDR.js} +1 -1
- package/dist/chunk-MSEGJ7V5.js +214 -0
- package/dist/{chunk-YYI5NQ35.js → chunk-OJ5ERABF.js} +1 -1
- package/dist/{chunk-6LQLH5CI.js → chunk-SJIBWHJU.js} +185 -5
- package/dist/{chunk-KX6JJECK.js → chunk-W24YSGH4.js} +255 -79
- package/dist/{chunk-U25SCHLE.js → chunk-Y7JBA7AC.js} +6 -6
- package/dist/{chunk-IZT53CAI.js → chunk-YUZWSDVE.js} +3 -175
- package/dist/{compute-VNGFIQCD.js → compute-FAXL7DAK.js} +2 -2
- package/dist/{compute-report-AAEKLNPM.js → compute-report-XQJSIK6B.js} +12 -12
- package/dist/index.js +458 -173
- package/dist/{local-skills-RRJCNVLS.js → local-skills-DRZH2R3Q.js} +3 -3
- package/dist/{local-skills-run-Y47FCKEL.js → local-skills-run-MH2TI2UC.js} +11 -11
- package/dist/{mcp-serve-OLHMHG4M.js → mcp-serve-JJD6JGYS.js} +5 -5
- package/dist/{trace-PXIY5WUU.js → trace-RMYKGACV.js} +3 -3
- package/dist/{trace-exclusions-HG5MF7NI.js → trace-exclusions-JEGMUPWQ.js} +2 -2
- package/dist/{trace-library-IUFJWBN3.js → trace-library-QLCECTIS.js} +8 -8
- package/package.json +2 -2
- package/dist/chunk-AKCKFNLJ.js +0 -116
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApiError,
|
|
3
3
|
api
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DAVMU66H.js";
|
|
5
5
|
import {
|
|
6
6
|
installClaudeHooks
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IZCS7FH3.js";
|
|
8
8
|
import {
|
|
9
9
|
loadLocalSkillState,
|
|
10
10
|
revisionAt
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-C3RW65GZ.js";
|
|
12
12
|
import {
|
|
13
13
|
USER_AGENT
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BIWRJ65N.js";
|
|
15
15
|
import {
|
|
16
16
|
apiBase,
|
|
17
17
|
apiToken,
|
|
@@ -32,12 +32,12 @@ import {
|
|
|
32
32
|
savePendingSource,
|
|
33
33
|
stillExcluded,
|
|
34
34
|
writePrivateJson
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-OJ5ERABF.js";
|
|
36
36
|
import {
|
|
37
37
|
SessionSourceCollector,
|
|
38
38
|
publicRemote,
|
|
39
39
|
redactTraceText
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-W24YSGH4.js";
|
|
41
41
|
|
|
42
42
|
// src/trace-library.ts
|
|
43
43
|
import { createHash as createHash3 } from "crypto";
|
|
@@ -2,14 +2,9 @@ import {
|
|
|
2
2
|
MCP_SERVER_NAME,
|
|
3
3
|
withoutSettingsBlock,
|
|
4
4
|
withoutTomlServer
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SJIBWHJU.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
api
|
|
9
|
-
} from "./chunk-LM3WPNRW.js";
|
|
10
|
-
import {
|
|
11
|
-
configPath,
|
|
12
|
-
currentUniverse
|
|
7
|
+
configPath
|
|
13
8
|
} from "./chunk-XHZJG3QT.js";
|
|
14
9
|
|
|
15
10
|
// src/setup-journal.ts
|
|
@@ -330,155 +325,6 @@ var ENTRY_REMOVERS = {
|
|
|
330
325
|
settings_block: withoutSettingsBlock
|
|
331
326
|
};
|
|
332
327
|
|
|
333
|
-
// src/workspace.ts
|
|
334
|
-
import { createInterface } from "readline";
|
|
335
|
-
var KINDS = ["TOOL_CALL", "SPEND_CAP", "CALL_COUNT", "CAPABILITY"];
|
|
336
|
-
async function workspaceSlug(explicit) {
|
|
337
|
-
if (explicit) return explicit;
|
|
338
|
-
const current = currentUniverse();
|
|
339
|
-
if (current) return current;
|
|
340
|
-
return (await api("GET", "/whoami")).universe.slug;
|
|
341
|
-
}
|
|
342
|
-
var workspacePath = (slug) => `/universes/${encodeURIComponent(slug)}`;
|
|
343
|
-
async function listMembers(slug, page = {}) {
|
|
344
|
-
const query = new URLSearchParams({ ...page.limit ? { limit: page.limit } : {}, ...page.cursor ? { cursor: page.cursor } : {} }).toString();
|
|
345
|
-
return api("GET", `${workspacePath(slug)}/members${query ? `?${query}` : ""}`);
|
|
346
|
-
}
|
|
347
|
-
function findMember(members, ref) {
|
|
348
|
-
const needle = ref.toLowerCase();
|
|
349
|
-
const found = members.find((m) => m.user_id === ref || m.email?.toLowerCase() === needle);
|
|
350
|
-
if (!found) throw new ApiError(404, "not_found", `no member ${ref} in this workspace`);
|
|
351
|
-
return found;
|
|
352
|
-
}
|
|
353
|
-
function inviteBody(emails, options) {
|
|
354
|
-
if (options.role && options.role !== "admin" && options.role !== "member") {
|
|
355
|
-
throw new ApiError(400, "invalid_request", "--role is admin or member");
|
|
356
|
-
}
|
|
357
|
-
return {
|
|
358
|
-
emails,
|
|
359
|
-
...options.role ? { role: options.role } : {},
|
|
360
|
-
...options.sendEmail ? { send_email: true } : {}
|
|
361
|
-
};
|
|
362
|
-
}
|
|
363
|
-
async function invite(slug, emails, options) {
|
|
364
|
-
return api("POST", `${workspacePath(slug)}/invites`, inviteBody(emails, options));
|
|
365
|
-
}
|
|
366
|
-
async function withdrawInvite(slug, inviteId) {
|
|
367
|
-
await api("DELETE", `${workspacePath(slug)}/invites/${encodeURIComponent(inviteId)}`);
|
|
368
|
-
}
|
|
369
|
-
async function setRole(slug, memberRef, role) {
|
|
370
|
-
if (role !== "admin" && role !== "member") throw new ApiError(400, "invalid_request", "a role is admin or member");
|
|
371
|
-
const member = findMember((await listMembers(slug)).members, memberRef);
|
|
372
|
-
await api("PATCH", `${workspacePath(slug)}/members/${encodeURIComponent(member.user_id)}`, { role });
|
|
373
|
-
return member;
|
|
374
|
-
}
|
|
375
|
-
async function removeMember(slug, memberRef) {
|
|
376
|
-
if (memberRef === "me") {
|
|
377
|
-
await leaveWorkspace(slug);
|
|
378
|
-
return null;
|
|
379
|
-
}
|
|
380
|
-
const member = findMember((await listMembers(slug)).members, memberRef);
|
|
381
|
-
await api("DELETE", `${workspacePath(slug)}/members/${encodeURIComponent(member.user_id)}`);
|
|
382
|
-
return member;
|
|
383
|
-
}
|
|
384
|
-
async function leaveWorkspace(slug) {
|
|
385
|
-
await api("DELETE", `${workspacePath(slug)}/members/me`);
|
|
386
|
-
}
|
|
387
|
-
async function joinWorkspace(token) {
|
|
388
|
-
return (await api("POST", `/invites/${encodeURIComponent(token)}`)).workspace;
|
|
389
|
-
}
|
|
390
|
-
function renderMembers(page) {
|
|
391
|
-
const lines = page.members.map((m) => `${m.role.padEnd(6)} ${m.email ?? m.user_id}${m.name ? ` (${m.name})` : ""} ${m.user_id}`);
|
|
392
|
-
for (const i of page.invites) lines.push(`invited ${i.email} as ${i.role} by ${i.invited_by} until ${i.expires_at.slice(0, 10)} ${i.id}`);
|
|
393
|
-
if (page.next_cursor) lines.push(`more: --cursor ${page.next_cursor}`);
|
|
394
|
-
return lines;
|
|
395
|
-
}
|
|
396
|
-
function policyRuleBody(options) {
|
|
397
|
-
const kind = options.kind.toUpperCase().replace(/-/g, "_");
|
|
398
|
-
if (!KINDS.includes(kind)) throw new ApiError(400, "invalid_request", `--kind is one of ${KINDS.join(", ")}`);
|
|
399
|
-
let config;
|
|
400
|
-
try {
|
|
401
|
-
config = JSON.parse(options.config);
|
|
402
|
-
} catch {
|
|
403
|
-
throw new ApiError(400, "invalid_request", "--config must be a JSON object");
|
|
404
|
-
}
|
|
405
|
-
if (!config || typeof config !== "object" || Array.isArray(config)) {
|
|
406
|
-
throw new ApiError(400, "invalid_request", "--config must be a JSON object");
|
|
407
|
-
}
|
|
408
|
-
const position = options.position === void 0 ? void 0 : Number(options.position);
|
|
409
|
-
if (position !== void 0 && !Number.isInteger(position)) throw new ApiError(400, "invalid_request", "--position is a whole number");
|
|
410
|
-
return {
|
|
411
|
-
name: options.name,
|
|
412
|
-
kind,
|
|
413
|
-
config,
|
|
414
|
-
...position !== void 0 ? { position } : {},
|
|
415
|
-
...options.disabled ? { enabled: false } : {}
|
|
416
|
-
};
|
|
417
|
-
}
|
|
418
|
-
var policiesPath = (scope) => "session" in scope ? `/sessions/${encodeURIComponent(scope.session)}/policies` : `${workspacePath(scope.slug)}/policies`;
|
|
419
|
-
async function listPolicies(scope, effective = false) {
|
|
420
|
-
if (effective && "session" in scope) return api("GET", `/sessions/${encodeURIComponent(scope.session)}/effective-policy`);
|
|
421
|
-
return api("GET", policiesPath(scope));
|
|
422
|
-
}
|
|
423
|
-
async function addPolicy(scope, options) {
|
|
424
|
-
return (await api("POST", policiesPath(scope), policyRuleBody(options))).rule;
|
|
425
|
-
}
|
|
426
|
-
async function setPolicyEnabled(scope, ruleId, enabled) {
|
|
427
|
-
return (await api("PATCH", `${policiesPath(scope)}/${encodeURIComponent(ruleId)}`, { enabled })).rule;
|
|
428
|
-
}
|
|
429
|
-
async function removePolicy(scope, ruleId) {
|
|
430
|
-
await api("DELETE", `${policiesPath(scope)}/${encodeURIComponent(ruleId)}`);
|
|
431
|
-
}
|
|
432
|
-
function renderPolicy(rule) {
|
|
433
|
-
const state = rule.enabled ? "on " : "off";
|
|
434
|
-
return `${state} ${rule.layer.padEnd(9)} ${rule.kind.padEnd(10)} ${rule.name} ${JSON.stringify(rule.config)} ${rule.id}`;
|
|
435
|
-
}
|
|
436
|
-
var REMOVED_KINDS = [
|
|
437
|
-
["sessions", "sessions and their transcripts"],
|
|
438
|
-
["agents", "agents"],
|
|
439
|
-
["artifacts", "artifacts"],
|
|
440
|
-
["files", "task files"],
|
|
441
|
-
["memory_stores", "memory stores"],
|
|
442
|
-
["routines", "routines"],
|
|
443
|
-
["channels", "channel connections"],
|
|
444
|
-
["webhooks", "webhooks"],
|
|
445
|
-
["api_keys", "API keys"],
|
|
446
|
-
["vaults", "vaults"],
|
|
447
|
-
["skills", "skills"],
|
|
448
|
-
["environments", "environments"],
|
|
449
|
-
["connections", "connected apps"],
|
|
450
|
-
["traces", "uploaded traces"],
|
|
451
|
-
["members", "other members"],
|
|
452
|
-
["invites", "pending invitations"]
|
|
453
|
-
];
|
|
454
|
-
async function deletionPreview(slug) {
|
|
455
|
-
return api("GET", `/universes/${encodeURIComponent(slug)}/deletion`);
|
|
456
|
-
}
|
|
457
|
-
function renderDeletionPreview(preview) {
|
|
458
|
-
if (!preview.can_delete) return [`${preview.workspace.slug} cannot be deleted:`, ...preview.blockers.map((b) => ` ${b.message}`)];
|
|
459
|
-
const lines = [`Deleting ${preview.workspace.slug} (${preview.workspace.name}) permanently removes:`];
|
|
460
|
-
const removed = REMOVED_KINDS.filter(([key]) => (preview.removes[key] ?? 0) > 0);
|
|
461
|
-
for (const [key, label] of removed) lines.push(` ${preview.removes[key]} ${label}`);
|
|
462
|
-
if (!removed.length) lines.push(" nothing: the workspace is empty");
|
|
463
|
-
const running = preview.removes.running_sessions ?? 0;
|
|
464
|
-
if (running) lines.push(`${running} running session${running === 1 ? " is" : "s are"} stopped first.`);
|
|
465
|
-
if (preview.wallet) lines.push(`$${(preview.wallet.balance_micros / 1e6).toFixed(2)} in its wallet goes back to ${preview.wallet.returns_to ?? "you"}.`);
|
|
466
|
-
lines.push("This cannot be undone.");
|
|
467
|
-
return lines;
|
|
468
|
-
}
|
|
469
|
-
async function deleteWorkspace(slug) {
|
|
470
|
-
return (await api("DELETE", `/universes/${encodeURIComponent(slug)}`)).deleted;
|
|
471
|
-
}
|
|
472
|
-
function typedConfirmation(slug) {
|
|
473
|
-
return new Promise((done) => {
|
|
474
|
-
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
475
|
-
rl.question(`Type ${slug} to delete it: `, (answer) => {
|
|
476
|
-
rl.close();
|
|
477
|
-
done(answer.trim() === slug);
|
|
478
|
-
});
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
|
|
482
328
|
export {
|
|
483
329
|
TOKEN_ENV,
|
|
484
330
|
shellEnvFiles,
|
|
@@ -486,23 +332,5 @@ export {
|
|
|
486
332
|
writeShellEnv,
|
|
487
333
|
SetupJournal,
|
|
488
334
|
CAPTURE_HOOK_ARGS,
|
|
489
|
-
isCaptureCommand
|
|
490
|
-
workspaceSlug,
|
|
491
|
-
listMembers,
|
|
492
|
-
invite,
|
|
493
|
-
withdrawInvite,
|
|
494
|
-
setRole,
|
|
495
|
-
removeMember,
|
|
496
|
-
leaveWorkspace,
|
|
497
|
-
joinWorkspace,
|
|
498
|
-
renderMembers,
|
|
499
|
-
listPolicies,
|
|
500
|
-
addPolicy,
|
|
501
|
-
setPolicyEnabled,
|
|
502
|
-
removePolicy,
|
|
503
|
-
renderPolicy,
|
|
504
|
-
deletionPreview,
|
|
505
|
-
renderDeletionPreview,
|
|
506
|
-
deleteWorkspace,
|
|
507
|
-
typedConfirmation
|
|
335
|
+
isCaptureCommand
|
|
508
336
|
};
|
|
@@ -10,19 +10,19 @@ 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-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";
|
|
23
23
|
import "./chunk-XHZJG3QT.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-OJ5ERABF.js";
|
|
25
|
+
import "./chunk-W24YSGH4.js";
|
|
26
26
|
import "./chunk-MLKGABMK.js";
|
|
27
27
|
export {
|
|
28
28
|
MCP_ENTRY,
|