@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.
Files changed (70) hide show
  1. package/dist/agents-overview/panel.mjs +39 -67
  2. package/dist/agents-overview/panel.mjs.map +1 -1
  3. package/dist/agents-overview.mjs +38 -68
  4. package/dist/agents-overview.mjs.map +1 -1
  5. package/dist/bin/sync.d.ts.map +1 -1
  6. package/dist/bin/sync.mjs +2374 -2
  7. package/dist/bin/sync.mjs.map +1 -1
  8. package/dist/bureau-sessions/panel.mjs +39 -67
  9. package/dist/bureau-sessions/panel.mjs.map +1 -1
  10. package/dist/bureau-sessions.mjs +38 -68
  11. package/dist/bureau-sessions.mjs.map +1 -1
  12. package/dist/config/fragment.d.ts +50 -0
  13. package/dist/config/fragment.d.ts.map +1 -0
  14. package/dist/config/index.d.ts +23 -0
  15. package/dist/config/index.d.ts.map +1 -0
  16. package/dist/config/ui.d.ts +43 -0
  17. package/dist/config/ui.d.ts.map +1 -0
  18. package/dist/config.mjs +2373 -0
  19. package/dist/config.mjs.map +1 -0
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.mjs +3200 -150
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/live-session/logic.d.ts +2 -0
  25. package/dist/live-session/logic.d.ts.map +1 -1
  26. package/dist/live-session/panel.d.ts.map +1 -1
  27. package/dist/live-session/panel.mjs +52 -74
  28. package/dist/live-session/panel.mjs.map +1 -1
  29. package/dist/live-session.mjs +51 -75
  30. package/dist/live-session.mjs.map +1 -1
  31. package/dist/panel-bridge.d.ts +11 -6
  32. package/dist/panel-bridge.d.ts.map +1 -1
  33. package/dist/session-chat/blob-embed.d.ts +53 -0
  34. package/dist/session-chat/blob-embed.d.ts.map +1 -0
  35. package/dist/session-chat/index.d.ts +13 -0
  36. package/dist/session-chat/index.d.ts.map +1 -1
  37. package/dist/session-chat/panel.d.ts +38 -2
  38. package/dist/session-chat/panel.d.ts.map +1 -1
  39. package/dist/session-chat/panel.mjs +556 -6
  40. package/dist/session-chat/panel.mjs.map +1 -1
  41. package/dist/session-chat.mjs +591 -14
  42. package/dist/session-chat.mjs.map +1 -1
  43. package/dist/session-story/panel.mjs +39 -67
  44. package/dist/session-story/panel.mjs.map +1 -1
  45. package/dist/session-story.mjs +38 -68
  46. package/dist/session-story.mjs.map +1 -1
  47. package/dist/session-viewer/ui.d.ts.map +1 -1
  48. package/dist/session-viewer.mjs +10 -0
  49. package/dist/session-viewer.mjs.map +1 -1
  50. package/dist/sessions-panel/panel.d.ts.map +1 -1
  51. package/dist/sessions-panel/panel.mjs +40 -67
  52. package/dist/sessions-panel/panel.mjs.map +1 -1
  53. package/dist/sessions-panel.mjs +39 -68
  54. package/dist/sessions-panel.mjs.map +1 -1
  55. package/dist/work-board/panel.d.ts +1 -1
  56. package/dist/work-board/panel.d.ts.map +1 -1
  57. package/dist/work-board/panel.generated.d.ts +1 -1
  58. package/dist/work-board/panel.generated.d.ts.map +1 -1
  59. package/dist/work-board/panel.mjs +318 -62
  60. package/dist/work-board/panel.mjs.map +1 -1
  61. package/dist/work-board.mjs +318 -62
  62. package/dist/work-board.mjs.map +1 -1
  63. package/package.json +12 -4
  64. package/repo-maintenance/.agentproto/APP.md +22 -0
  65. package/repo-maintenance/.agentproto/agents/repo-maintenance-reviewer/AGENT.md +142 -0
  66. package/repo-maintenance/.agentproto/workflows/maintain/WORKFLOW.md +262 -0
  67. package/repo-maintenance/.agentproto/workflows/maintain/entry.mjs +672 -0
  68. package/repo-maintenance/README.md +79 -0
  69. package/repo-maintenance/routines/repo-maintenance-daily/ROUTINE.md +77 -0
  70. 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"}