@agentdocumentformat/cli 0.7.6 → 0.7.7
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/adf.mjs +3 -3
- package/dist/chunks/{App-U2XSNHUV.mjs → App-5KXVPMBV.mjs} +2 -2
- package/dist/chunks/{chunk-2WSQ7V6K.mjs → chunk-4N4ASPH6.mjs} +1 -0
- package/dist/chunks/{chunk-3UCKYP7P.mjs → chunk-VN7UH7I5.mjs} +9 -0
- package/dist/chunks/{cli-XORTCRZW.mjs → cli-AFHQ2XTN.mjs} +1 -1
- package/dist/chunks/{daemon-ZT5J445W.mjs → daemon-CHZHTLGR.mjs} +2662 -190
- package/dist/chunks/{discord-IWDQJA7A.mjs → discord-DSP4HUWI.mjs} +3 -3
- package/dist/chunks/{email-V4Q4VJON.mjs → email-BRG7KUO2.mjs} +3 -2
- package/dist/chunks/{slack-3L5QTDZX.mjs → slack-OCNNF4DX.mjs} +3 -3
- package/dist/chunks/{telegram-V4VH4PNE.mjs → telegram-YI2OHNTD.mjs} +21 -21
- package/dist/chunks/{tui-RVRDCIP4.mjs → tui-4ZWZKD4C.mjs} +2 -2
- package/dist/chunks/{whatsapp-RDOC54X5.mjs → whatsapp-AVKT3CTJ.mjs} +3 -3
- package/package.json +1 -1
package/dist/adf.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import "./chunks/chunk-M2RX3S2T.mjs";
|
|
|
9
9
|
|
|
10
10
|
// src/main/cli/bin.ts
|
|
11
11
|
function version() {
|
|
12
|
-
return "0.7.
|
|
12
|
+
return "0.7.7";
|
|
13
13
|
}
|
|
14
14
|
var DAEMON_HELP = `Usage: adf daemon [--port <n>] [--host <h>] [--settings <file>]
|
|
15
15
|
adf daemon start [--port <n>] [--force]
|
|
@@ -140,9 +140,9 @@ async function main(argv) {
|
|
|
140
140
|
let { daemonPaths } = await import("./chunks/daemon-control-HKFVSQTQ.mjs");
|
|
141
141
|
process.env.ADF_DAEMON_PIDFILE = daemonPaths(Number(process.env.ADF_DAEMON_PORT ?? 7385)).pidFile;
|
|
142
142
|
}
|
|
143
|
-
return await import("./chunks/daemon-
|
|
143
|
+
return await import("./chunks/daemon-CHZHTLGR.mjs"), -1;
|
|
144
144
|
}
|
|
145
|
-
let [{ runCli, tuiInvocation }, control] = await Promise.all([import("./chunks/cli-
|
|
145
|
+
let [{ runCli, tuiInvocation }, control] = await Promise.all([import("./chunks/cli-AFHQ2XTN.mjs"), import("./chunks/daemon-control-HKFVSQTQ.mjs")]);
|
|
146
146
|
return tuiInvocation(argv) && process.env.NODE_ENV === void 0 && (process.env.NODE_ENV = "production", process.env.ADF_NODE_ENV_DEFAULTED = "1"), await runCli(argv, {
|
|
147
147
|
fetch: globalThis.fetch.bind(globalThis),
|
|
148
148
|
stdout: (text) => process.stdout.write(text),
|
|
@@ -140,7 +140,7 @@ import {
|
|
|
140
140
|
} from "./chunk-KXEF4F4E.mjs";
|
|
141
141
|
import {
|
|
142
142
|
DaemonClient
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-VN7UH7I5.mjs";
|
|
144
144
|
import {
|
|
145
145
|
DaemonError,
|
|
146
146
|
MAIN_LOOP,
|
|
@@ -157,7 +157,7 @@ import {
|
|
|
157
157
|
ADF_SKILLS_REGISTRY_URL,
|
|
158
158
|
checkFetchTarget,
|
|
159
159
|
context_breakdown_exports
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-4N4ASPH6.mjs";
|
|
161
161
|
import "./chunk-2NAP2ZF7.mjs";
|
|
162
162
|
import "./chunk-5PO5PKRV.mjs";
|
|
163
163
|
import "./chunk-VMHTYDH4.mjs";
|
|
@@ -833,6 +833,15 @@ var DaemonClient = class _DaemonClient {
|
|
|
833
833
|
agentContext(agentId, loop, items) {
|
|
834
834
|
return this.get(`/agents/${enc(agentId)}/context`, { loop: loop && loop !== MAIN_LOOP ? loop : void 0, items });
|
|
835
835
|
}
|
|
836
|
+
// --- agent vitals (/vitals) ------------------------------------------------
|
|
837
|
+
/** Header facts plus Reach/Access/Autonomy/Experience. `force` skips the daemon's cache. */
|
|
838
|
+
agentVitals(agentId, force = !1) {
|
|
839
|
+
return this.get(`/agents/${enc(agentId)}/vitals`, { force: force ? 1 : void 0 });
|
|
840
|
+
}
|
|
841
|
+
/** Next wakes, 14 days of turns and cost, and what the file holds (mind, skills, tables). `force` skips the daemon's cache. */
|
|
842
|
+
agentActivity(agentId, force = !1) {
|
|
843
|
+
return this.get(`/agents/${enc(agentId)}/activity`, { force: force ? 1 : void 0 });
|
|
844
|
+
}
|
|
836
845
|
};
|
|
837
846
|
function buildQuery(query) {
|
|
838
847
|
let params = new URLSearchParams();
|
|
@@ -44,7 +44,7 @@ function tuiInvocation(argv) {
|
|
|
44
44
|
return argv.filter((a) => a !== "--json");
|
|
45
45
|
}
|
|
46
46
|
async function defaultLaunchTui(argv) {
|
|
47
|
-
let { runTui } = await import("./tui-
|
|
47
|
+
let { runTui } = await import("./tui-4ZWZKD4C.mjs");
|
|
48
48
|
return await runTui(argv);
|
|
49
49
|
}
|
|
50
50
|
function urlFromArgv(argv) {
|