@agentproto/apps 0.11.0 → 0.13.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/agents-overview/panel.mjs +39 -67
- package/dist/agents-overview/panel.mjs.map +1 -1
- package/dist/agents-overview.mjs +38 -68
- package/dist/agents-overview.mjs.map +1 -1
- package/dist/bin/sync.d.ts.map +1 -1
- package/dist/bin/sync.mjs +2374 -2
- package/dist/bin/sync.mjs.map +1 -1
- package/dist/bureau-sessions/panel.mjs +39 -67
- package/dist/bureau-sessions/panel.mjs.map +1 -1
- package/dist/bureau-sessions.mjs +38 -68
- package/dist/bureau-sessions.mjs.map +1 -1
- package/dist/config/fragment.d.ts +50 -0
- package/dist/config/fragment.d.ts.map +1 -0
- package/dist/config/index.d.ts +23 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/ui.d.ts +43 -0
- package/dist/config/ui.d.ts.map +1 -0
- package/dist/config.mjs +2373 -0
- package/dist/config.mjs.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +3200 -150
- package/dist/index.mjs.map +1 -1
- package/dist/live-session/logic.d.ts +2 -0
- package/dist/live-session/logic.d.ts.map +1 -1
- package/dist/live-session/panel.d.ts.map +1 -1
- package/dist/live-session/panel.mjs +52 -74
- package/dist/live-session/panel.mjs.map +1 -1
- package/dist/live-session.mjs +51 -75
- package/dist/live-session.mjs.map +1 -1
- package/dist/panel-bridge.d.ts +11 -6
- package/dist/panel-bridge.d.ts.map +1 -1
- package/dist/session-chat/blob-embed.d.ts +53 -0
- package/dist/session-chat/blob-embed.d.ts.map +1 -0
- package/dist/session-chat/index.d.ts +13 -0
- package/dist/session-chat/index.d.ts.map +1 -1
- package/dist/session-chat/panel.d.ts +38 -2
- package/dist/session-chat/panel.d.ts.map +1 -1
- package/dist/session-chat/panel.mjs +556 -6
- package/dist/session-chat/panel.mjs.map +1 -1
- package/dist/session-chat.mjs +591 -14
- package/dist/session-chat.mjs.map +1 -1
- package/dist/session-story/panel.mjs +39 -67
- package/dist/session-story/panel.mjs.map +1 -1
- package/dist/session-story.mjs +38 -68
- package/dist/session-story.mjs.map +1 -1
- package/dist/session-viewer/ui.d.ts.map +1 -1
- package/dist/session-viewer.mjs +10 -0
- package/dist/session-viewer.mjs.map +1 -1
- package/dist/sessions-panel/panel.d.ts.map +1 -1
- package/dist/sessions-panel/panel.mjs +40 -67
- package/dist/sessions-panel/panel.mjs.map +1 -1
- package/dist/sessions-panel.mjs +39 -68
- package/dist/sessions-panel.mjs.map +1 -1
- package/dist/work-board/panel.d.ts +1 -1
- package/dist/work-board/panel.d.ts.map +1 -1
- package/dist/work-board/panel.generated.d.ts +1 -1
- package/dist/work-board/panel.generated.d.ts.map +1 -1
- package/dist/work-board/panel.mjs +318 -62
- package/dist/work-board/panel.mjs.map +1 -1
- package/dist/work-board.mjs +318 -62
- package/dist/work-board.mjs.map +1 -1
- package/package.json +12 -4
- package/repo-maintenance/.agentproto/APP.md +22 -0
- package/repo-maintenance/.agentproto/agents/repo-maintenance-reviewer/AGENT.md +142 -0
- package/repo-maintenance/.agentproto/workflows/maintain/WORKFLOW.md +262 -0
- package/repo-maintenance/.agentproto/workflows/maintain/entry.mjs +672 -0
- package/repo-maintenance/README.md +79 -0
- package/repo-maintenance/routines/repo-maintenance-daily/ROUTINE.md +77 -0
- package/repo-maintenance/routines/repo-maintenance-weekly/ROUTINE.md +82 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@agentproto/config` — daemon-wide configuration as its own standalone app.
|
|
3
|
+
*
|
|
4
|
+
* A separate app from `ops-panel` (not a section of it): ops-panel is the
|
|
5
|
+
* daemon operations cockpit (sessions, crons, housekeeping); this app is the
|
|
6
|
+
* visual twin of `agentproto config` — wallets (auth profiles + spend),
|
|
7
|
+
* harnesses, the model catalog, defaults/messaging knobs, remote/pairing,
|
|
8
|
+
* and a raw config escape hatch. `ops-panel` is referenced only for its app
|
|
9
|
+
* mechanics (`defineApp`, self-contained panel HTML, `app_tool_call` gated
|
|
10
|
+
* by a `ui.tools` allowlist) — see `ui.ts`.
|
|
11
|
+
*
|
|
12
|
+
* `agents: []`: UI only, no durable sessions to launch. Edit flows live
|
|
13
|
+
* behind explicit confirm/save actions in `ui.ts`; every mutating tool is
|
|
14
|
+
* feature-detected the same way the read tools already are, so this app
|
|
15
|
+
* works against a daemon that predates a given write tool (it just shows a
|
|
16
|
+
* muted "needs a newer agentproto daemon" note for that one control).
|
|
17
|
+
*/
|
|
18
|
+
import { type AppHandle } from "@agentproto/app-kit";
|
|
19
|
+
export declare const configApp: AppHandle;
|
|
20
|
+
export { CONFIG_TOOLS } from "./ui.js";
|
|
21
|
+
export { parseConfigFragment, buildConfigFragment, CONFIG_SECTIONS } from "./fragment.js";
|
|
22
|
+
export type { ConfigSection, ParsedConfigFragment } from "./fragment.js";
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAG/D,eAAO,MAAM,SAAS,EAAE,SAatB,CAAA;AAEF,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACzF,YAAY,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@agentproto/config` — a self-contained MCP App panel for daemon-wide
|
|
3
|
+
* configuration. Its own app, not a section of `ops-panel` — that app is
|
|
4
|
+
* referenced only for the mechanics this panel shares (
|
|
5
|
+
* `window.McpApp.connect()` -> `app_tool_call { appId, tool, args }`, the
|
|
6
|
+
* nested-envelope `unwrapText`, one card per entity, two-click confirm). See
|
|
7
|
+
* its `ui.ts` for the pattern this file follows.
|
|
8
|
+
*
|
|
9
|
+
* Six sections, each independently loaded/rendered so one failing card never
|
|
10
|
+
* blanks the others: Wallets (auth profiles + spend), Harnesses (adapters +
|
|
11
|
+
* capabilities + presets + roles), Models (the vendor/product/route
|
|
12
|
+
* catalog), Defaults & messaging (daemon config knobs), Remote & pairing,
|
|
13
|
+
* and Advanced (raw config dump). This PR adds the write flows: wallet
|
|
14
|
+
* lifecycle + curation, harness preset CRUD, a generic config_get/config_set
|
|
15
|
+
* editor for Defaults/per-harness defaults/titler.model, and remote/pairing
|
|
16
|
+
* lifecycle.
|
|
17
|
+
*
|
|
18
|
+
* Three daemon tools this panel wants (`config_get`, `config_set`, and
|
|
19
|
+
* every write tool below) may not exist yet on the daemon it talks to
|
|
20
|
+
* (parallel PRs) — `loadTool` turns an "unknown daemon tool" failure into a
|
|
21
|
+
* muted, section-local notice instead of an error, and the Defaults section
|
|
22
|
+
* falls back to `daemon_health`'s five effective knobs when `config_get` is
|
|
23
|
+
* absent.
|
|
24
|
+
*
|
|
25
|
+
* Secret discipline: a credential (auth_profile_create's `credential`, a
|
|
26
|
+
* remote bearer, a pairing offer URL) is read from a form field, used ONCE
|
|
27
|
+
* in the same handler, and the DOM field is cleared before the async call
|
|
28
|
+
* even starts. Nothing secret is ever stored in section state, written to
|
|
29
|
+
* `updateModelContext`, or logged.
|
|
30
|
+
*
|
|
31
|
+
* Deep-link contract (plan section 3.4): `#<section>[/<id>[/<sub>]]`, parsed
|
|
32
|
+
* by `parseConfigFragment` (`fragment.ts`) — embedded here via
|
|
33
|
+
* `.toString()` so the exact function tested in `fragment.test.ts` is the
|
|
34
|
+
* one that runs in the browser, not a second hand-copied version. A browser
|
|
35
|
+
* tab resolves this from `location.hash`; an MCP host has no URL bar, so it
|
|
36
|
+
* opens `app_ui_config { view }` instead — `handleToolInput` below turns
|
|
37
|
+
* that into the same fragment via the bridge's `onToolInput` (app-ui-apps.ts).
|
|
38
|
+
* `location.hash` wins when the panel first loads with one already set;
|
|
39
|
+
* every tool-input notification after that re-routes unconditionally.
|
|
40
|
+
*/
|
|
41
|
+
export declare const CONFIG_TOOLS: readonly ["auth_profile_list", "auth_profile_create", "auth_profile_delete", "auth_profile_set_enabled", "auth_profile_set_models", "auth_profile_refresh_models", "auth_profile_import", "auth_discover_credentials", "auth_profile_update", "adapter_list", "harness_capabilities", "harness_preset_list", "harness_preset_create", "harness_preset_delete", "harness_preset_set_default", "catalog_models", "catalog_provider_models", "role_list", "usage_rollup", "config_get", "config_set", "daemon_health", "remote_status", "remote_enable", "remote_disable", "pair_list", "pair_offer", "pair_revoke", "tunnel_list", "tunnel_status"];
|
|
42
|
+
export declare const CONFIG_HTML: string;
|
|
43
|
+
//# sourceMappingURL=ui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/config/ui.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAIH,eAAO,MAAM,YAAY,mnBA+Bf,CAAA;AAaV,eAAO,MAAM,WAAW,QAytEhB,CAAA"}
|