@openagt/dashboard 0.29.0 → 0.30.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 (84) hide show
  1. package/README.md +4 -4
  2. package/dist/built-in.d.ts +1 -2
  3. package/dist/built-in.d.ts.map +1 -1
  4. package/dist/built-in.js +5 -22
  5. package/dist/built-in.js.map +1 -1
  6. package/dist/client.d.ts +1 -0
  7. package/dist/client.d.ts.map +1 -1
  8. package/dist/client.js +2 -0
  9. package/dist/client.js.map +1 -1
  10. package/dist/dashboard/index.d.ts +0 -1
  11. package/dist/dashboard/index.d.ts.map +1 -1
  12. package/dist/dashboard/index.js +0 -1
  13. package/dist/dashboard/index.js.map +1 -1
  14. package/dist/dashboard/interventions.d.ts +12 -3
  15. package/dist/dashboard/interventions.d.ts.map +1 -1
  16. package/dist/dashboard/interventions.js +40 -11
  17. package/dist/dashboard/interventions.js.map +1 -1
  18. package/dist/dashboard/run-inbox.js +1 -1
  19. package/dist/dashboard/run-inbox.js.map +1 -1
  20. package/dist/dashboard/unpublished.d.ts +1 -1
  21. package/dist/dashboard/unpublished.js +1 -1
  22. package/dist/dashboard-bundle/assets/main-CfEbsHo4.css +2 -0
  23. package/dist/dashboard-bundle/assets/main-GS_hy5oS.js +144 -0
  24. package/dist/dashboard-bundle/assets/module-DkmToQ6q.js +14 -0
  25. package/dist/dashboard-bundle/host/module.js +1 -1
  26. package/dist/dashboard-bundle/index.html +3 -3
  27. package/dist/dashboard-rpc/control.d.ts +5 -2
  28. package/dist/dashboard-rpc/control.d.ts.map +1 -1
  29. package/dist/dashboard-rpc/control.js +9 -4
  30. package/dist/dashboard-rpc/control.js.map +1 -1
  31. package/dist/dashboard-rpc/index.d.ts +1 -1
  32. package/dist/dashboard-rpc/index.d.ts.map +1 -1
  33. package/dist/dashboard-rpc/index.js +1 -1
  34. package/dist/dashboard-rpc/index.js.map +1 -1
  35. package/dist/dashboard-rpc/reads.d.ts +0 -3
  36. package/dist/dashboard-rpc/reads.d.ts.map +1 -1
  37. package/dist/dashboard-rpc/reads.js +0 -5
  38. package/dist/dashboard-rpc/reads.js.map +1 -1
  39. package/dist/dashboard-rpc/skills.d.ts +4 -6
  40. package/dist/dashboard-rpc/skills.d.ts.map +1 -1
  41. package/dist/dashboard-rpc/skills.js +8 -8
  42. package/dist/dashboard-rpc/skills.js.map +1 -1
  43. package/dist/index.d.ts +0 -1
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/module-types/src/built-in.d.ts +1 -2
  46. package/dist/module-types/src/client.d.ts +1 -0
  47. package/dist/module-types/src/dashboard/interventions.d.ts +12 -3
  48. package/dist/module-types/src/dashboard/unpublished.d.ts +1 -1
  49. package/dist/module-types/src/dashboard-rpc/control.d.ts +5 -2
  50. package/dist/module-types/src/dashboard-rpc/index.d.ts +1 -1
  51. package/dist/module-types/src/dashboard-rpc/reads.d.ts +0 -3
  52. package/dist/module-types/src/dashboard-rpc/skills.d.ts +4 -6
  53. package/dist/module-types/src/index.d.ts +0 -1
  54. package/dist/module-types/src/open-choices.d.ts +1 -1
  55. package/dist/module-types/src/project-hooks.d.ts +3 -1
  56. package/dist/module-types/src/registry.d.ts +6 -0
  57. package/dist/module-types/src/run-name.d.ts +8 -0
  58. package/dist/module-types/src/store/agent-store.d.ts +6 -0
  59. package/dist/open-choices.d.ts +1 -1
  60. package/dist/open-choices.js +1 -1
  61. package/dist/project-hooks.d.ts +3 -1
  62. package/dist/project-hooks.d.ts.map +1 -1
  63. package/dist/project-hooks.js +3 -2
  64. package/dist/project-hooks.js.map +1 -1
  65. package/dist/registry.d.ts +6 -0
  66. package/dist/registry.d.ts.map +1 -1
  67. package/dist/registry.js +3 -0
  68. package/dist/registry.js.map +1 -1
  69. package/dist/run-name.d.ts +9 -0
  70. package/dist/run-name.d.ts.map +1 -0
  71. package/dist/run-name.js +10 -0
  72. package/dist/run-name.js.map +1 -0
  73. package/dist/store/agent-store.d.ts +6 -0
  74. package/dist/store/agent-store.d.ts.map +1 -1
  75. package/dist/store/agent-store.js.map +1 -1
  76. package/package.json +14 -14
  77. package/dist/dashboard/open-questions.d.ts +0 -45
  78. package/dist/dashboard/open-questions.d.ts.map +0 -1
  79. package/dist/dashboard/open-questions.js +0 -62
  80. package/dist/dashboard/open-questions.js.map +0 -1
  81. package/dist/dashboard-bundle/assets/main-BenA3DC-.js +0 -145
  82. package/dist/dashboard-bundle/assets/main-KUO4ZuZ3.css +0 -2
  83. package/dist/dashboard-bundle/assets/module-CZzF8pLL.js +0 -14
  84. package/dist/module-types/src/dashboard/open-questions.d.ts +0 -44
@@ -1,44 +0,0 @@
1
- import { type AgentMeta, type LiveAgent } from '../store/index.js';
2
- import type { ChoiceRequest, OpenAgentEvent } from '../events.js';
3
- import { type BridgeQuestion } from './bridge-question.js';
4
- import type { ProjectSummary } from './projects.js';
5
- /** One session's open question, as the hub lists it: who waits, on what, since when. */
6
- export interface OpenQuestion {
7
- projectId: string;
8
- projectName: string;
9
- agentId: string;
10
- /** What the agent was asked to do: the row's title. */
11
- intent?: string;
12
- /** When the agent last spoke, ISO: what the longest-waiting-first order sorts on. */
13
- updatedAt?: string;
14
- /** The question; for one a Claude web session asked (#1237/#1554), built from what the browser bridge reported. */
15
- choice: ChoiceRequest;
16
- }
17
- /** Injectable seams so {@link buildOpenQuestions} is unit-testable off disk. */
18
- export interface OpenQuestionsDeps {
19
- /** The reader of the runs that have a checkout (default {@link readLiveMetas}): a waiting run keeps its own. */
20
- liveAgents?: (cwd: string) => Promise<LiveAgent[]>;
21
- /** One run's events, by the project's path and the run's id (default {@link loadAgentEvents}). */
22
- events?: (cwd: string, agentId: string) => Promise<OpenAgentEvent[] | undefined>;
23
- /**
24
- * The questions the browser bridge holds, minus those with an answer already on its way
25
- * (default: the daemon's bridge store).
26
- */
27
- bridged?: () => BridgeQuestion[];
28
- /**
29
- * Every agent of a project, archived included (default {@link readAllAgents}): a web agent is
30
- * `done` at its hand-off (#1231) and its checkout may be long gone, so the live reader alone
31
- * would never find the run a bridged question belongs to.
32
- */
33
- agents?: (cwd: string) => Promise<AgentMeta[]>;
34
- }
35
- /**
36
- * Every project's parked questions, longest-waiting first (#1455): an agent that has been blocked
37
- * on its human the longest is the one to unblock first.
38
- *
39
- * Forgiving throughout, like every cross-project rollup: an unreadable project, agent list or
40
- * event log contributes nothing rather than failing the read. A waiting run whose diary shows no
41
- * open question (log unreadable) is skipped — listing a question nobody can answer is worse than
42
- * one row fewer.
43
- */
44
- export declare function buildOpenQuestions(projects: ProjectSummary[], deps?: OpenQuestionsDeps): Promise<OpenQuestion[]>;