agental 0.61.0 → 0.62.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/dist/cli.js +9 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -7411,7 +7411,7 @@ import { parseArgs } from "node:util";
|
|
|
7411
7411
|
|
|
7412
7412
|
// ../src/cli-build.ts
|
|
7413
7413
|
var PUBLISHED = true;
|
|
7414
|
-
var CLI_VERSION = true ? "0.
|
|
7414
|
+
var CLI_VERSION = true ? "0.62.0" : "dev";
|
|
7415
7415
|
var DEFAULT_API_URL = true ? "https://agental.io" : "http://127.0.0.1:8741";
|
|
7416
7416
|
var PACKAGE_NAME = "agental";
|
|
7417
7417
|
var USER_AGENT = `agental-cli/${CLI_VERSION}`;
|
|
@@ -7926,6 +7926,7 @@ var KEY_ACTIONS = [
|
|
|
7926
7926
|
"bucket.write",
|
|
7927
7927
|
"image.read",
|
|
7928
7928
|
"image.build",
|
|
7929
|
+
"image.cancel",
|
|
7929
7930
|
"image.delete",
|
|
7930
7931
|
"guild.read",
|
|
7931
7932
|
"guild.write",
|
|
@@ -7955,8 +7956,8 @@ var PRESETS = {
|
|
|
7955
7956
|
// Every read, apart from secrets and mail, which are the two an agent should be given by name.
|
|
7956
7957
|
"read-only": ["sandbox.read", "file.read", "job.read", "snapshot.read", "template.read", "bucket.read", "image.read", "guild.read", "account.read"],
|
|
7957
7958
|
"full-sandbox": [...FULL_SANDBOX, "job.read", "job.write", "job.run"],
|
|
7958
|
-
// A CI system runs the jobs it is given and reads how they went; it does not make them. It builds images, and deletes none.
|
|
7959
|
-
ci: [...FULL_SANDBOX, "sandbox.create", "sandbox.fork", "sandbox.resume", "sandbox.delete-own", "job.read", "job.run", "image.read", "image.build"],
|
|
7959
|
+
// A CI system runs the jobs it is given and reads how they went; it does not make them. It builds images and cancels its builds, and deletes none.
|
|
7960
|
+
ci: [...FULL_SANDBOX, "sandbox.create", "sandbox.fork", "sandbox.resume", "sandbox.delete-own", "job.read", "job.run", "image.read", "image.build", "image.cancel"],
|
|
7960
7961
|
admin: [ALL_ACTIONS]
|
|
7961
7962
|
};
|
|
7962
7963
|
var PRESET_NAMES = Object.keys(PRESETS);
|
|
@@ -12752,7 +12753,8 @@ var LIFECYCLE_EVENTS = [
|
|
|
12752
12753
|
"sandbox.low_cpu",
|
|
12753
12754
|
"sandbox.upgraded",
|
|
12754
12755
|
"sandbox.reclaim_chance",
|
|
12755
|
-
"sandbox.lost"
|
|
12756
|
+
"sandbox.lost",
|
|
12757
|
+
"sandbox.restart_planned"
|
|
12756
12758
|
];
|
|
12757
12759
|
var WEBHOOK_EVENTS = [...LIFECYCLE_EVENTS, "prompt.created"];
|
|
12758
12760
|
var EMAIL_EVENTS = ["email.received", "email.delivered", "email.bounced"];
|
|
@@ -12769,7 +12771,8 @@ var HEADROOM_EVENTS = [
|
|
|
12769
12771
|
var JOB_EVENTS = ["job.created", "job.updated", "job.deleted", "job.run_started", "job.run_finished", "job.run_failed", "job.recovered", "job.paused"];
|
|
12770
12772
|
var TAILSCALE_EVENTS = ["tailscale.node_down", "tailscale.disconnected"];
|
|
12771
12773
|
var GUILD_EVENTS = ["guild.message", "guild.request_open", "guild.member_joined", "guild.member_left", "guild.paused", "guild.resumed"];
|
|
12772
|
-
var
|
|
12774
|
+
var CONNECTION_EVENTS = ["connection.connected", "connection.signed_out", "connection.removed"];
|
|
12775
|
+
var WEBHOOK_KINDS = [...WEBHOOK_EVENTS, ...EMAIL_EVENTS, ...MEMBER_EVENTS, ...TEMPLATE_EVENTS, ...HEADROOM_EVENTS, ...JOB_EVENTS, ...TAILSCALE_EVENTS, ...GUILD_EVENTS, ...CONNECTION_EVENTS];
|
|
12773
12776
|
var WEBHOOK_GROUPS = [...new Set(WEBHOOK_KINDS.map((kind) => kind.slice(0, kind.indexOf("."))))];
|
|
12774
12777
|
function closestEvent(asked2) {
|
|
12775
12778
|
if (asked2.length > 64) {
|
|
@@ -14010,7 +14013,7 @@ async function actingAs(client, guild2, given) {
|
|
|
14010
14013
|
return null;
|
|
14011
14014
|
}
|
|
14012
14015
|
function messageLine(message) {
|
|
14013
|
-
const to = message.toRole ? ` to ${message.toRole}` : message.to ? ` to ${message.to.length} identit${message.to.length === 1 ? "y" : "ies"}` : "";
|
|
14016
|
+
const to = message.kind === "answer" ? "" : message.toRole ? ` to ${message.toRole}` : message.to ? ` to ${message.to.length} identit${message.to.length === 1 ? "y" : "ies"}` : "";
|
|
14014
14017
|
const what = message.kind === "request" ? ` request ${message.id}${message.request?.open ? message.request.claimedBy ? ", taken" : ", open" : `, ${message.request?.closedReason ?? "closed"}`}` : message.kind === "answer" ? ` answer to ${message.answers ?? ""}` : "";
|
|
14015
14018
|
return `#${message.seq} ${message.from.name}${to}${what}: ${message.text}
|
|
14016
14019
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agental",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.62.0",
|
|
4
4
|
"description": "The agental command: Linux sandboxes for your agents, from the terminal. npx agental@latest signs you in and installs the agent skills.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "VERTIXER LTD",
|