@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 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.6";
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-ZT5J445W.mjs"), -1;
143
+ return await import("./chunks/daemon-CHZHTLGR.mjs"), -1;
144
144
  }
145
- let [{ runCli, tuiInvocation }, control] = await Promise.all([import("./chunks/cli-XORTCRZW.mjs"), import("./chunks/daemon-control-HKFVSQTQ.mjs")]);
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-3UCKYP7P.mjs";
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-2WSQ7V6K.mjs";
160
+ } from "./chunk-4N4ASPH6.mjs";
161
161
  import "./chunk-2NAP2ZF7.mjs";
162
162
  import "./chunk-5PO5PKRV.mjs";
163
163
  import "./chunk-VMHTYDH4.mjs";
@@ -504,6 +504,7 @@ export {
504
504
  checkFetchTarget,
505
505
  checkConnectTarget,
506
506
  resolveCompactThreshold,
507
+ resolveLoopThreshold,
507
508
  contextTotal,
508
509
  contextCategories,
509
510
  context_breakdown_exports
@@ -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-RVRDCIP4.mjs");
47
+ let { runTui } = await import("./tui-4ZWZKD4C.mjs");
48
48
  return await runTui(argv);
49
49
  }
50
50
  function urlFromArgv(argv) {