@agentproto/apps 0.7.0 → 0.8.2
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/README.md +1 -0
- package/dist/bin/sync.d.ts.map +1 -1
- package/dist/bin/sync.mjs +782 -2
- package/dist/bin/sync.mjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +782 -3
- package/dist/index.mjs.map +1 -1
- package/dist/ops-panel/agents/manager.d.ts +16 -0
- package/dist/ops-panel/agents/manager.d.ts.map +1 -0
- package/dist/ops-panel/agents/watchdog.d.ts +23 -0
- package/dist/ops-panel/agents/watchdog.d.ts.map +1 -0
- package/dist/ops-panel/index.d.ts +19 -0
- package/dist/ops-panel/index.d.ts.map +1 -0
- package/dist/ops-panel/ui.d.ts +22 -0
- package/dist/ops-panel/ui.d.ts.map +1 -0
- package/dist/ops-panel.mjs +791 -0
- package/dist/ops-panel.mjs.map +1 -0
- package/package.json +11 -6
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AgentEntry } from "@agentproto/app-kit";
|
|
2
|
+
/**
|
|
3
|
+
* The Sessions Manager — the durable "master of the sessions" coordinator:
|
|
4
|
+
* the human talks to IT, it talks to the other sessions. Distilled from the
|
|
5
|
+
* hand-run plateau-coordinator session this app productizes.
|
|
6
|
+
*
|
|
7
|
+
* Where the watchdog only OBSERVES (and never touches a live session), the
|
|
8
|
+
* manager DRIVES: it re-prompts idle sessions onto their task, restarts dead
|
|
9
|
+
* ones, and answers "where is X at?" by reading transcripts. The Ops Panel
|
|
10
|
+
* spawns it via `agent_start` with {@link MANAGER_LABEL} and `keepAlive`, so
|
|
11
|
+
* the idle-reaper never retires a legitimately-parked coordinator.
|
|
12
|
+
*/
|
|
13
|
+
/** Session label the panel spawns under — how a live manager is recognized. */
|
|
14
|
+
export declare const MANAGER_LABEL = "Sessions Manager";
|
|
15
|
+
export declare const manager: AgentEntry;
|
|
16
|
+
//# sourceMappingURL=manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../src/ops-panel/agents/manager.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAErD;;;;;;;;;;GAUG;AAEH,+EAA+E;AAC/E,eAAO,MAAM,aAAa,qBAAqB,CAAA;AAE/C,eAAO,MAAM,OAAO,EAAE,UAyCrB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AgentEntry } from "@agentproto/app-kit";
|
|
2
|
+
/**
|
|
3
|
+
* The Session Watchdog — a durable daemon-health session, re-prompted on a
|
|
4
|
+
* cron tick (~every 5 minutes). Distilled from the hand-run watchdog session
|
|
5
|
+
* this app productizes: same classification rules, same hard boundaries
|
|
6
|
+
* (never kills a live session, never spawns).
|
|
7
|
+
*
|
|
8
|
+
* The Ops Panel spawns it via `agent_start` with {@link WATCHDOG_LABEL} and
|
|
9
|
+
* wires a `prompt-session` cron ({@link WATCHDOG_TICK_LABEL} /
|
|
10
|
+
* {@link WATCHDOG_TICK_SCHEDULE}) pointing at the spawned session — see
|
|
11
|
+
* `ui.ts`. The agent is also usable standalone via `app_run` for a one-shot
|
|
12
|
+
* health pass.
|
|
13
|
+
*/
|
|
14
|
+
/** Session label the panel spawns under — how a live watchdog is recognized. */
|
|
15
|
+
export declare const WATCHDOG_LABEL = "Session Watchdog";
|
|
16
|
+
/** Label of the cron job that re-prompts the watchdog session. */
|
|
17
|
+
export declare const WATCHDOG_TICK_LABEL = "watchdog-tick";
|
|
18
|
+
/** Every 5 minutes. */
|
|
19
|
+
export declare const WATCHDOG_TICK_SCHEDULE = "*/5 * * * *";
|
|
20
|
+
/** The prompt each cron tick sends to the durable session. */
|
|
21
|
+
export declare const WATCHDOG_TICK_PROMPT = "Run your maintenance check now.";
|
|
22
|
+
export declare const watchdog: AgentEntry;
|
|
23
|
+
//# sourceMappingURL=watchdog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watchdog.d.ts","sourceRoot":"","sources":["../../../src/ops-panel/agents/watchdog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAErD;;;;;;;;;;;GAWG;AAEH,gFAAgF;AAChF,eAAO,MAAM,cAAc,qBAAqB,CAAA;AAEhD,kEAAkE;AAClE,eAAO,MAAM,mBAAmB,kBAAkB,CAAA;AAElD,uBAAuB;AACvB,eAAO,MAAM,sBAAsB,gBAAgB,CAAA;AAEnD,8DAA8D;AAC9D,eAAO,MAAM,oBAAoB,oCAAoC,CAAA;AAErE,eAAO,MAAM,QAAQ,EAAE,UAiDtB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `ops-panel` — the agentproto daemon operations cockpit as an app.
|
|
3
|
+
*
|
|
4
|
+
* Two durable "special sessions" ship as agents — the Session Watchdog
|
|
5
|
+
* (cron-ticked health checks: classify, flag, archive; never kills) and the
|
|
6
|
+
* Sessions Manager (the coordinator the human talks to, which drives the
|
|
7
|
+
* other sessions). The panel (`ui.ts`) launches/restarts them by label,
|
|
8
|
+
* wires the watchdog's `watchdog-tick` cron, lists every session filterable
|
|
9
|
+
* by workspace with lifecycle actions, and fronts housekeeping: session GC,
|
|
10
|
+
* worktree GC (dry-run first), and the cron ledger.
|
|
11
|
+
*/
|
|
12
|
+
import { type AppHandle } from "@agentproto/app-kit";
|
|
13
|
+
import { manager } from "./agents/manager.js";
|
|
14
|
+
import { watchdog } from "./agents/watchdog.js";
|
|
15
|
+
export declare const opsPanel: AppHandle;
|
|
16
|
+
export { watchdog, manager };
|
|
17
|
+
export { WATCHDOG_LABEL, WATCHDOG_TICK_LABEL, WATCHDOG_TICK_PROMPT, WATCHDOG_TICK_SCHEDULE } from "./agents/watchdog.js";
|
|
18
|
+
export { MANAGER_LABEL } from "./agents/manager.js";
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ops-panel/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAG/C,eAAO,MAAM,QAAQ,EAAE,SAWrB,CAAA;AAEF,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAA;AAC5B,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AACxH,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ops Panel — a self-contained MCP App panel for `ops-panel`.
|
|
3
|
+
*
|
|
4
|
+
* The daemon operations cockpit: special durable sessions (Session Watchdog,
|
|
5
|
+
* Sessions Manager) as launchable cards, the session list filterable by
|
|
6
|
+
* workspace with lifecycle actions, housekeeping (session GC, worktree GC)
|
|
7
|
+
* and the cron ledger. Talks to the daemon only through the
|
|
8
|
+
* `window.McpApp.connect()` bridge — every action round-trips through
|
|
9
|
+
* `app_tool_call { appId, tool, args }`, gated by {@link OPS_PANEL_TOOLS}
|
|
10
|
+
* (same convention as `session-viewer`).
|
|
11
|
+
*
|
|
12
|
+
* Special-session recognition is by spawn label (`Session Watchdog` /
|
|
13
|
+
* `Sessions Manager` — see `agents/`): the panel finds the newest session
|
|
14
|
+
* wearing the label, shows its status, and offers Launch / Restart / Kill.
|
|
15
|
+
* Launching the watchdog also (re)wires its `watchdog-tick` cron — the
|
|
16
|
+
* `prompt-session` job that re-prompts the durable session every 5 minutes —
|
|
17
|
+
* deleting any stale tick first so a dead session id never keeps a failing
|
|
18
|
+
* cron behind.
|
|
19
|
+
*/
|
|
20
|
+
export declare const OPS_PANEL_TOOLS: readonly ["daemon_health", "session_list", "agent_start", "agent_prompt", "agent_kill", "session_restart", "session_archive", "session_gc", "cron_list", "cron_create", "cron_delete", "cron_run", "worktree_gc"];
|
|
21
|
+
export declare const OPS_PANEL_HTML: string;
|
|
22
|
+
//# sourceMappingURL=ui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/ops-panel/ui.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAWH,eAAO,MAAM,eAAe,mNAclB,CAAA;AA0BV,eAAO,MAAM,cAAc,QAunBnB,CAAA"}
|