@openagt/dashboard 0.19.0 → 0.21.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 (133) hide show
  1. package/README.md +6 -2
  2. package/dist/bin.js +0 -0
  3. package/dist/built-in.d.ts +7 -6
  4. package/dist/built-in.d.ts.map +1 -1
  5. package/dist/built-in.js +28 -9
  6. package/dist/built-in.js.map +1 -1
  7. package/dist/daemon.d.ts +2 -0
  8. package/dist/daemon.d.ts.map +1 -1
  9. package/dist/daemon.js +3 -0
  10. package/dist/daemon.js.map +1 -1
  11. package/dist/dashboard/person.d.ts +22 -0
  12. package/dist/dashboard/person.d.ts.map +1 -0
  13. package/dist/dashboard/person.js +29 -0
  14. package/dist/dashboard/person.js.map +1 -0
  15. package/dist/dashboard/send-skills.d.ts +51 -0
  16. package/dist/dashboard/send-skills.d.ts.map +1 -0
  17. package/dist/dashboard/send-skills.js +122 -0
  18. package/dist/dashboard/send-skills.js.map +1 -0
  19. package/dist/dashboard-bundle/assets/astro-BZ97kZFP.js +1 -0
  20. package/dist/dashboard-bundle/assets/c-DWGmR78Y.js +1 -0
  21. package/dist/dashboard-bundle/assets/c-SSSlmE39.js +1 -0
  22. package/dist/dashboard-bundle/assets/core-Db3h5Pv3.js +12 -0
  23. package/dist/dashboard-bundle/assets/cpp-CJIxL8VH.js +1 -0
  24. package/dist/dashboard-bundle/assets/cpp-Cts1PyIS.js +1 -0
  25. package/dist/dashboard-bundle/assets/csharp-dmMxLVLW.js +1 -0
  26. package/dist/dashboard-bundle/assets/css-BGIxQoYs.js +1 -0
  27. package/dist/dashboard-bundle/assets/css-DUjzNfgv.js +1 -0
  28. package/dist/dashboard-bundle/assets/diff-woXpYk--.js +1 -0
  29. package/dist/dashboard-bundle/assets/docker-IyjqRm3v.js +1 -0
  30. package/dist/dashboard-bundle/assets/dotenv-CuH5my32.js +1 -0
  31. package/dist/dashboard-bundle/assets/engine-javascript-DbNy5Fxf.js +141 -0
  32. package/dist/dashboard-bundle/assets/everforest-dark-sB-x3p7T.js +1 -0
  33. package/dist/dashboard-bundle/assets/everforest-light-Df2xbC6M.js +1 -0
  34. package/dist/dashboard-bundle/assets/fish-BJitypiv.js +1 -0
  35. package/dist/dashboard-bundle/assets/go-rLFTqkRN.js +1 -0
  36. package/dist/dashboard-bundle/assets/graphql-DAzSVzvB.js +1 -0
  37. package/dist/dashboard-bundle/assets/graphql-DEIChqxY.js +1 -0
  38. package/dist/dashboard-bundle/assets/html-DSw1lh5G.js +1 -0
  39. package/dist/dashboard-bundle/assets/html-WQKKblVZ.js +1 -0
  40. package/dist/dashboard-bundle/assets/ini-B5eOa1yu.js +1 -0
  41. package/dist/dashboard-bundle/assets/java-BtIQNnN0.js +1 -0
  42. package/dist/dashboard-bundle/assets/java-DxlWrXwe.js +1 -0
  43. package/dist/dashboard-bundle/assets/javascript-BzbQS41l.js +1 -0
  44. package/dist/dashboard-bundle/assets/javascript-Yelw-5ZN.js +1 -0
  45. package/dist/dashboard-bundle/assets/json-B88Oqtu5.js +1 -0
  46. package/dist/dashboard-bundle/assets/json-CaljABEy.js +1 -0
  47. package/dist/dashboard-bundle/assets/json5-BR5RXkoi.js +1 -0
  48. package/dist/dashboard-bundle/assets/jsonc-CYpm1nAK.js +1 -0
  49. package/dist/dashboard-bundle/assets/jsx-D3KKoC5L.js +1 -0
  50. package/dist/dashboard-bundle/assets/jsx-hEbJ82HF.js +1 -0
  51. package/dist/dashboard-bundle/assets/kotlin-DhhofPvG.js +1 -0
  52. package/dist/dashboard-bundle/assets/less-DVTAwKKz.js +1 -0
  53. package/dist/dashboard-bundle/assets/lua-BJObVtAx.js +1 -0
  54. package/dist/dashboard-bundle/assets/lua-DjuecEsk.js +1 -0
  55. package/dist/dashboard-bundle/assets/main-C4Wudnox.css +2 -0
  56. package/dist/dashboard-bundle/assets/main-CSvx3dGb.js +141 -0
  57. package/dist/dashboard-bundle/assets/make-Dixweg8N.js +1 -0
  58. package/dist/dashboard-bundle/assets/markdown-BYOwaDjH.js +1 -0
  59. package/dist/dashboard-bundle/assets/mdx-DQZ5AkYe.js +1 -0
  60. package/dist/dashboard-bundle/assets/module-BidWGbHQ.js +25 -0
  61. package/dist/dashboard-bundle/assets/php-D7kNSOJl.js +1 -0
  62. package/dist/dashboard-bundle/assets/postcss-D_Wz94rJ.js +1 -0
  63. package/dist/dashboard-bundle/assets/powershell-QtSnmXcu.js +1 -0
  64. package/dist/dashboard-bundle/assets/prisma-DMgNhnYS.js +1 -0
  65. package/dist/dashboard-bundle/assets/proto-DB4EqR-F.js +1 -0
  66. package/dist/dashboard-bundle/assets/python-gzcpVVnB.js +1 -0
  67. package/dist/dashboard-bundle/assets/ruby-DjBfgIB7.js +1 -0
  68. package/dist/dashboard-bundle/assets/rust-DpiIf5JO.js +1 -0
  69. package/dist/dashboard-bundle/assets/sass-DXrisJhu.js +1 -0
  70. package/dist/dashboard-bundle/assets/scss-8bKmll0B.js +1 -0
  71. package/dist/dashboard-bundle/assets/shellscript-BiGZg9Om.js +1 -0
  72. package/dist/dashboard-bundle/assets/shellscript-CqHdAlCp.js +1 -0
  73. package/dist/dashboard-bundle/assets/sql-BOsskAmu.js +1 -0
  74. package/dist/dashboard-bundle/assets/sql-CNu3Or2W.js +1 -0
  75. package/dist/dashboard-bundle/assets/svelte-CdeT-Ich.js +1 -0
  76. package/dist/dashboard-bundle/assets/swift-CyEgAFGc.js +1 -0
  77. package/dist/dashboard-bundle/assets/toml-CcmNWLt0.js +1 -0
  78. package/dist/dashboard-bundle/assets/tsx-5f3ulCja.js +1 -0
  79. package/dist/dashboard-bundle/assets/tsx-BOvsFOI6.js +1 -0
  80. package/dist/dashboard-bundle/assets/typescript-Utq2Cl8c.js +1 -0
  81. package/dist/dashboard-bundle/assets/typescript-j_1H8WHN.js +1 -0
  82. package/dist/dashboard-bundle/assets/vue-BqdMUtqy.js +1 -0
  83. package/dist/dashboard-bundle/assets/xml-CoDIzWF0.js +1 -0
  84. package/dist/dashboard-bundle/assets/xml-WY0zc4PG.js +1 -0
  85. package/dist/dashboard-bundle/assets/yaml-CxbubiML.js +1 -0
  86. package/dist/dashboard-bundle/assets/yaml-DijMHRDA.js +1 -0
  87. package/dist/dashboard-bundle/host/module.js +1 -1
  88. package/dist/dashboard-bundle/index.html +3 -3
  89. package/dist/dashboard-rpc/index.d.ts +2 -1
  90. package/dist/dashboard-rpc/index.d.ts.map +1 -1
  91. package/dist/dashboard-rpc/index.js +4 -2
  92. package/dist/dashboard-rpc/index.js.map +1 -1
  93. package/dist/dashboard-rpc/person.d.ts +5 -0
  94. package/dist/dashboard-rpc/person.d.ts.map +1 -0
  95. package/dist/dashboard-rpc/person.js +12 -0
  96. package/dist/dashboard-rpc/person.js.map +1 -0
  97. package/dist/dashboard-rpc/skills.d.ts +22 -19
  98. package/dist/dashboard-rpc/skills.d.ts.map +1 -1
  99. package/dist/dashboard-rpc/skills.js +38 -10
  100. package/dist/dashboard-rpc/skills.js.map +1 -1
  101. package/dist/module-types/dashboard/components/DriverModelMenu.d.ts +11 -1
  102. package/dist/module-types/dashboard/components/FileIcon.d.ts +2 -1
  103. package/dist/module-types/dashboard/components/file-icons.generated.d.ts +6 -0
  104. package/dist/module-types/dashboard/components/ui/row-item.d.ts +9 -0
  105. package/dist/module-types/dashboard/lib/effort.d.ts +1 -0
  106. package/dist/module-types/dashboard/lib/highlight.d.ts +16 -0
  107. package/dist/module-types/dashboard/lib/use-narrow.d.ts +6 -0
  108. package/dist/module-types/dashboard/module/index.d.ts +2 -0
  109. package/dist/module-types/src/built-in.d.ts +7 -6
  110. package/dist/module-types/src/dashboard/person.d.ts +21 -0
  111. package/dist/module-types/src/dashboard/send-skills.d.ts +50 -0
  112. package/dist/module-types/src/dashboard-rpc/index.d.ts +2 -1
  113. package/dist/module-types/src/dashboard-rpc/person.d.ts +4 -0
  114. package/dist/module-types/src/dashboard-rpc/skills.d.ts +22 -19
  115. package/dist/module-types/src/store/git-host.d.ts +11 -1
  116. package/dist/module-types/src/version.d.ts +1 -0
  117. package/dist/module.css +4 -4
  118. package/dist/serve.d.ts +2 -0
  119. package/dist/serve.d.ts.map +1 -0
  120. package/dist/serve.js +5 -0
  121. package/dist/serve.js.map +1 -0
  122. package/dist/store/git-host.d.ts +11 -1
  123. package/dist/store/git-host.d.ts.map +1 -1
  124. package/dist/store/git-host.js +14 -0
  125. package/dist/store/git-host.js.map +1 -1
  126. package/dist/version.d.ts +1 -0
  127. package/dist/version.d.ts.map +1 -1
  128. package/dist/version.js +9 -21
  129. package/dist/version.js.map +1 -1
  130. package/package.json +18 -16
  131. package/dist/dashboard-bundle/assets/main-D_Zblh1r.css +0 -2
  132. package/dist/dashboard-bundle/assets/main-DjPcbCa9.js +0 -141
  133. package/dist/dashboard-bundle/assets/module-D4-RTmfM.js +0 -24
@@ -18,12 +18,13 @@ export declare const BUILT_IN_PACKAGES: readonly string[];
18
18
  */
19
19
  export declare const COMPUTER_PACKAGES: readonly string[];
20
20
  /**
21
- * The packages a project has once it picked them (#2023). A skill's package is the project's
22
- * when the project holds the skill's text where the coding agents read it
23
- * (`.claude/skills/<name>/SKILL.md`, `.agents/skills/<name>/SKILL.md`): the rule the launcher
24
- * already lists a project's commands by, so deleting the skill's folder takes its page away. A
25
- * tool with no skill text (the scheduler) is the project's when one of the project's hook lines
26
- * runs it.
21
+ * The packages a project has once it picked them (#2023). A skill's package is every project's
22
+ * when the skill is one every run gets by default (the package that started OpenAgent names those,
23
+ * {@link SKILLS_ENV}); else the project's when the project holds the skill's text where the coding
24
+ * agents read it (`.claude/skills/<name>/SKILL.md`, `.agents/skills/<name>/SKILL.md`): the rule
25
+ * the launcher already lists a project's commands by, so deleting the skill's folder takes its
26
+ * page away. A tool with no skill text (the scheduler) is the project's when one of the project's
27
+ * hook lines runs it.
27
28
  */
28
29
  export declare const PICKED_PACKAGES: readonly string[];
29
30
  /** Every name OpenAgent brings itself. */
@@ -0,0 +1,21 @@
1
+ import { type GitHostFor } from '../store/git-host.js';
2
+ /**
3
+ * The person at this dashboard, as the foot of its sidebar shows them: a name, and a picture
4
+ * where a git host knows one. The name is git's own `user.name`, the one every commit of theirs
5
+ * carries, else the git host's name for them, else their login there, else this computer's user.
6
+ * The picture is asked of the git host of the first project that has one: OpenAgent names no git
7
+ * host, so a project's own package answers (`me`).
8
+ */
9
+ export interface Person {
10
+ name: string;
11
+ /** Their login at the git host, when one answered. */
12
+ login?: string;
13
+ /** A picture of them: an https address. */
14
+ avatar?: string;
15
+ }
16
+ /** `projects` are the listed projects' folders, in the list's order. */
17
+ export declare function readPerson(deps: {
18
+ projects: () => Promise<string[]>;
19
+ gitName?: () => Promise<string | undefined>;
20
+ gitHost?: GitHostFor;
21
+ }): Promise<Person>;
@@ -0,0 +1,50 @@
1
+ import { type GitRunner } from '@openagt/agent-data';
2
+ import { type GitHostFor } from '../store/git-host.js';
3
+ /**
4
+ * A project's skills sent to where its agents start from (#2023): what "Save and send" and "Send"
5
+ * on the project's page do. An agent's checkout starts from the remote's default branch, so a skill
6
+ * reaches agents only once it is there. The files of the named skills are committed in the folder,
7
+ * then the same files go to the remote's default branch; where that push is refused (a protected
8
+ * branch), they go to {@link SKILLS_BRANCH} and a pull request is opened for it. A project with no
9
+ * remote starts its agents from its own commits, so the commit is all it takes.
10
+ *
11
+ * Nothing else the person has is pushed: the folder's branch is pushed as it is only when it is the
12
+ * default branch and holds nothing past the remote's but skill files; else the skills' files are
13
+ * written onto the remote's branch in a commit of their own, made without touching the folder.
14
+ */
15
+ /** The branch the skills go to when the default branch takes no push: one, so a second send updates the open pull request. */
16
+ export declare const SKILLS_BRANCH = "openagent/skills";
17
+ export type SendSkillsResult =
18
+ /** No remote: committed in the folder, where agents start from. */
19
+ {
20
+ ok: true;
21
+ sent: 'committed';
22
+ }
23
+ /** On the remote's default branch, `branch` by name. */
24
+ | {
25
+ ok: true;
26
+ sent: 'pushed';
27
+ branch: string;
28
+ }
29
+ /** The default branch took no push: in this pull request. */
30
+ | {
31
+ ok: true;
32
+ sent: 'request';
33
+ request: {
34
+ number: number;
35
+ url: string;
36
+ };
37
+ }
38
+ /** The default branch took no push, and no git host package opens a pull request: on {@link SKILLS_BRANCH}, to merge by hand. */
39
+ | {
40
+ ok: true;
41
+ sent: 'branch';
42
+ branch: string;
43
+ } | {
44
+ ok: false;
45
+ error: string;
46
+ };
47
+ export declare function sendSkills(cwd: string, names: readonly string[], deps?: {
48
+ git?: GitRunner;
49
+ gitHost?: GitHostFor;
50
+ }): Promise<SendSkillsResult>;
@@ -8,7 +8,8 @@ export { onQuota } from './quota.js';
8
8
  export { onModels } from './models.js';
9
9
  export { onMachines, sendAddMachine, sendRemoveMachine, onMachinesReachable, onMachineVersions, sendProjectToMachine, onProjectOnMachine, type Machine, type AddMachineResult, type MachineVersions, type ProjectOnMachine } from './machines.js';
10
10
  export { onModules, runModuleCommand, runComputerCommand, readModule, type DashboardModule, type ModuleCommandResult, type ModuleReadResult } from './modules.js';
11
- export { onProjectSkills, sendChangeSkills, sendCommitSkills, type ProjectSkills, type ProjectSkill, type ChangeSkillsResult } from './skills.js';
11
+ export { onProjectSkills, sendChangeSkills, sendProjectSkills, type ProjectSkills, type ProjectSkill, type ChangeSkillsResult } from './skills.js';
12
+ export { onPerson, type Person } from './person.js';
12
13
  import { streamAgentEvents } from './events.js';
13
14
  /** One RPC: called with whatever the browser sent, answering with whatever JSON.stringify keeps. */
14
15
  export type RpcHandler = (...args: never[]) => unknown;
@@ -0,0 +1,4 @@
1
+ import { type Person } from '../dashboard/person.js';
2
+ export type { Person } from '../dashboard/person.js';
3
+ /** The person at this dashboard, for the foot of its sidebar (`readPerson`). */
4
+ export declare function onPerson(): Promise<Person>;
@@ -1,9 +1,11 @@
1
1
  import { type Standing } from '@openagt/init';
2
+ import { type SendSkillsResult } from '../dashboard/send-skills.js';
3
+ export type { SendSkillsResult } from '../dashboard/send-skills.js';
2
4
  /**
3
5
  * A project's skills, as the dashboard shows and changes them (#2023): the same list with ticks
4
6
  * `npx @openagt/init` shows in a terminal, read and written through that package's own code, so
5
7
  * the two cannot drift apart. A project has a skill when the skill's text is in its folder; the
6
- * dashboard writes and deletes those files, and offers the one commit that holds them.
8
+ * dashboard writes and deletes those files, and sends them where agents start from.
7
9
  */
8
10
  /** One skill of the list, as it stands in the project. */
9
11
  export interface ProjectSkill {
@@ -16,9 +18,6 @@ export interface ProjectSkill {
16
18
  waiting: boolean;
17
19
  }
18
20
  export interface ProjectSkills {
19
- /** How many skills the project has, of how many there are: the ones in its folder, and the basic ones every run gets. */
20
- has: number;
21
- of: number;
22
21
  /** The list's groups; `ticked` says whether a group's skills are ticked in a project that has none yet. */
23
22
  groups: {
24
23
  title: string;
@@ -29,15 +28,26 @@ export interface ProjectSkills {
29
28
  scheduler: boolean;
30
29
  /** The branch agents start from, by its name: the remote's default branch, else the branch the folder is on. Absent where there is none. */
31
30
  startBranch?: string;
32
- /** How many skill files stand written or deleted in the folder with no commit yet. */
33
- uncommitted: number;
31
+ /** The skills whose files stand written, changed or deleted in the folder with no commit yet. */
32
+ uncommitted: string[];
34
33
  /** Whether the folder is a git repository: without one there is nothing to commit. */
35
34
  git: boolean;
36
- /** Whether the project has a remote: without one a commit on this machine is all agents need. */
37
- remote: boolean;
35
+ /** Where the skills are sent, for a person: the git host's name ("GitHub", "GitLab"), else the remote's host. Absent without a remote: a commit on this machine is all agents need. */
36
+ remote?: string;
37
+ /** The open pull request the skills went to when the default branch took no push. */
38
+ request?: {
39
+ number: number;
40
+ url: string;
41
+ };
42
+ /** The branch of OpenAgent's own on the remote that holds every waiting skill, with no pull request for it: where no git host package opens one, it is merged by hand. */
43
+ branch?: string;
44
+ /** Whether the branch the folder is on has every waiting skill: an agent started from it has them now. */
45
+ local: boolean;
38
46
  }
39
47
  /** The project's skills; `null` when the project is unknown here. */
40
48
  export declare function onProjectSkills(projectId: string): Promise<ProjectSkills | null>;
49
+ /** The remote's host for a person, out of its address in git's spellings (`https://host/…`, `ssh://git@host:22/…`, `git@host:…`); none for a folder on this machine. */
50
+ export declare function hostName(address: string): string | undefined;
41
51
  /** What a change of skills answered: what was written and deleted, what was left as it is, and the scheduler when the change switched it. */
42
52
  export type ChangeSkillsResult = {
43
53
  ok: true;
@@ -65,15 +75,8 @@ export declare function sendChangeSkills(projectId: string, change: {
65
75
  scheduler?: boolean;
66
76
  }): Promise<ChangeSkillsResult>;
67
77
  /**
68
- * One commit of skill files that stand uncommitted in the project's folder, on the branch the
69
- * folder is on: the files of the skills `only` names, after a change that wrote or deleted them,
70
- * else every uncommitted skill file. Never a push.
78
+ * The skills `only` names, after a change that wrote or deleted them, sent where agents start
79
+ * from (`sendSkills`); without, every skill that is still on its way there: uncommitted, or not
80
+ * yet on the remote's default branch.
71
81
  */
72
- export declare function sendCommitSkills(projectId: string, only?: string[]): Promise<{
73
- ok: true;
74
- committed: boolean;
75
- commit?: string;
76
- } | {
77
- ok: false;
78
- error: string;
79
- }>;
82
+ export declare function sendProjectSkills(projectId: string, only?: string[]): Promise<SendSkillsResult>;
@@ -17,10 +17,11 @@
17
17
  * open the branch's pull request; an open one is answered as it is (`existing`)
18
18
  * `<command> merge <number>` land the pull request: armed to merge on green, or merged at once
19
19
  * `<command> home` the project's page on the git host, and the git host's name
20
+ * `<command> me` who is signed in there: {@link GitHostPerson}
20
21
  * The branch `open` is asked for must already be on the remote: pushing is the branches
21
22
  * provider's step, and OpenAgent runs it first.
22
23
  *
23
- * The shapes, owned here: {@link GitHostRequest}, {@link GitHostHome}.
24
+ * The shapes, owned here: {@link GitHostRequest}, {@link GitHostHome}, {@link GitHostPerson}.
24
25
  */
25
26
  /** A pull request, as a provider lists it. */
26
27
  export interface GitHostRequest {
@@ -45,6 +46,13 @@ export interface GitHostHome {
45
46
  url: string;
46
47
  name: string;
47
48
  }
49
+ /** The person signed in at the git host: what the dashboard shows of them. */
50
+ export interface GitHostPerson {
51
+ login: string;
52
+ name?: string;
53
+ /** A picture of them: an https address. */
54
+ avatar?: string;
55
+ }
48
56
  /** What asking for requests answered: the list, or why there is none: "none" and "could not tell" are different answers. */
49
57
  export type RequestsOutcome = {
50
58
  ok: true;
@@ -91,6 +99,8 @@ export interface GitHostSource {
91
99
  merge(number: number): Promise<MergeOutcome>;
92
100
  /** The project's page on the git host; `undefined` when the provider cannot tell (no remote there). */
93
101
  home(): Promise<GitHostHome | undefined>;
102
+ /** Who is signed in at the git host; `undefined` when nobody is, or the provider cannot tell. */
103
+ me(): Promise<GitHostPerson | undefined>;
94
104
  }
95
105
  /** The git host of the project at `root`, or `undefined` when none of its packages provides one. */
96
106
  export type GitHostFor = (root: string) => Promise<GitHostSource | undefined>;
@@ -1 +1,2 @@
1
1
  export declare function openagentVersion(): string;
2
+ export declare function setOpenagentVersion(said: string): void;
package/dist/module.css CHANGED
@@ -36,10 +36,10 @@
36
36
  --color-info: var(--info);
37
37
 
38
38
  /* The shadcn sidebar reads its own `--sidebar-*` family so a sidebar can be themed apart from
39
- the page. We keep it in step with the rest of the palette (the rail is the app's own surface,
40
- not a contrasting slab): background canvas, accent for the hover/active fill, the shared border
41
- and the primary ring. */
42
- --color-sidebar: var(--background);
39
+ the page. Its background is its own (`--sidebar`: in the dark theme a step below the page, as
40
+ Claude Code's); the rest keeps in step with the palette: accent for the hover/active fill, the
41
+ shared border and the primary ring. */
42
+ --color-sidebar: var(--sidebar);
43
43
  --color-sidebar-foreground: var(--foreground);
44
44
  --color-sidebar-primary: var(--primary);
45
45
  --color-sidebar-primary-foreground: var(--primary-foreground);
@@ -0,0 +1,2 @@
1
+ export { DEFAULT_DAEMON_PORT, runDaemon, type DaemonState, type RunDaemonOptions } from './daemon.js';
2
+ //# sourceMappingURL=serve.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../src/serve.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,KAAK,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAA"}
package/dist/serve.js ADDED
@@ -0,0 +1,5 @@
1
+ // `@openagt/dashboard/serve`: the dashboard's server, as `@openagt/start` runs it. The dashboard has
2
+ // no command of its own: the one people run is start's, which hands it the skills every run gets
3
+ // (in the environment, see `SKILLS_ENV`) and OpenAgent's version.
4
+ export { DEFAULT_DAEMON_PORT, runDaemon } from './daemon.js';
5
+ //# sourceMappingURL=serve.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serve.js","sourceRoot":"","sources":["../src/serve.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,iGAAiG;AACjG,kEAAkE;AAClE,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAA2C,MAAM,aAAa,CAAA"}
@@ -17,10 +17,11 @@
17
17
  * open the branch's pull request; an open one is answered as it is (`existing`)
18
18
  * `<command> merge <number>` land the pull request: armed to merge on green, or merged at once
19
19
  * `<command> home` the project's page on the git host, and the git host's name
20
+ * `<command> me` who is signed in there: {@link GitHostPerson}
20
21
  * The branch `open` is asked for must already be on the remote: pushing is the branches
21
22
  * provider's step, and OpenAgent runs it first.
22
23
  *
23
- * The shapes, owned here: {@link GitHostRequest}, {@link GitHostHome}.
24
+ * The shapes, owned here: {@link GitHostRequest}, {@link GitHostHome}, {@link GitHostPerson}.
24
25
  */
25
26
  /** A pull request, as a provider lists it. */
26
27
  export interface GitHostRequest {
@@ -45,6 +46,13 @@ export interface GitHostHome {
45
46
  url: string;
46
47
  name: string;
47
48
  }
49
+ /** The person signed in at the git host: what the dashboard shows of them. */
50
+ export interface GitHostPerson {
51
+ login: string;
52
+ name?: string;
53
+ /** A picture of them: an https address. */
54
+ avatar?: string;
55
+ }
48
56
  /** What asking for requests answered: the list, or why there is none: "none" and "could not tell" are different answers. */
49
57
  export type RequestsOutcome = {
50
58
  ok: true;
@@ -91,6 +99,8 @@ export interface GitHostSource {
91
99
  merge(number: number): Promise<MergeOutcome>;
92
100
  /** The project's page on the git host; `undefined` when the provider cannot tell (no remote there). */
93
101
  home(): Promise<GitHostHome | undefined>;
102
+ /** Who is signed in at the git host; `undefined` when nobody is, or the provider cannot tell. */
103
+ me(): Promise<GitHostPerson | undefined>;
94
104
  }
95
105
  /** The git host of the project at `root`, or `undefined` when none of its packages provides one. */
96
106
  export type GitHostFor = (root: string) => Promise<GitHostSource | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"git-host.d.ts","sourceRoot":"","sources":["../../src/store/git-host.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,8CAA8C;AAC9C,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAA;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;IACd,sCAAsC;IACtC,MAAM,EAAE,MAAM,CAAA;IACd,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,sGAAsG;AACtG,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb;AAED,4HAA4H;AAC5H,MAAM,MAAM,eAAe,GAAG;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,cAAc,EAAE,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAErG,sFAAsF;AACtF,MAAM,MAAM,WAAW,GAAG;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA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C,aAAa,GAAG,SAAS,CAAC,CAAA;CACzC;AAED,oGAAoG;AACpG,MAAM,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAAA;AAE7E,2EAA2E;AAC3E,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG;IAAE,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAA;AAKxE,gIAAgI;AAChI,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,GAAG,cAAc,EAAE,CAsB/D;AAqDD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,GAAE,MAAM,MAAiB,GAAG,aAAa,CAgB3E;AAED,sEAAsE;AACtE,eAAO,MAAM,cAAc,EAAE,aAAiC,CAAA;AAE9D,mEAAmE;AACnE,eAAO,MAAM,SAAS,EAAE,UAAkC,CAAA"}
@@ -70,6 +70,20 @@ function commandGitHost(root, command) {
70
70
  const home = result.output;
71
71
  return typeof home['url'] === 'string' && typeof home['name'] === 'string' ? { url: home['url'], name: home['name'] } : undefined;
72
72
  },
73
+ async me() {
74
+ const result = await runPackageCommand(root, command, ['me']);
75
+ if (!result.ok || !result.output || typeof result.output !== 'object')
76
+ return undefined;
77
+ const me = result.output;
78
+ if (typeof me['login'] !== 'string' || !me['login'])
79
+ return undefined;
80
+ return {
81
+ login: me['login'],
82
+ ...(typeof me['name'] === 'string' && me['name'] ? { name: me['name'] } : {}),
83
+ // Only a picture on the web: the page loads it, and nothing else is fetched.
84
+ ...(typeof me['avatar'] === 'string' && me['avatar'].startsWith('https://') ? { avatar: me['avatar'] } : {}),
85
+ };
86
+ },
73
87
  };
74
88
  }
75
89
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"git-host.js","sourceRoot":"","sources":["../../src/store/git-host.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAwB,MAAM,qBAAqB,CAAA;AAC7E,OAAO,EAAE,SA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1,3 @@
1
1
  export declare function openagentVersion(): string;
2
+ export declare function setOpenagentVersion(said: string): void;
2
3
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAWA,wBAAgB,gBAAgB,IAAI,MAAM,CAYzC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAQA,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAEtD"}
package/dist/version.js CHANGED
@@ -1,26 +1,14 @@
1
- import { readFileSync } from 'node:fs';
2
- import { dirname, join } from 'node:path';
3
- import { fileURLToPath } from 'node:url';
4
1
  /**
5
- * OpenAgent's own version, read from the package's own `package.json` at runtime (#312).
6
- * The compiled entry lives one level under the package root (`dist/` or
7
- * `dist-test/`), so its `package.json` is always `../package.json`. Cached after
8
- * the first read; falls back to `unknown` if the file is somehow unreadable.
2
+ * OpenAgent's version, as the package that started the dashboard says it (`@openagt/start`, the
3
+ * one people install, through `runDaemon`'s `version`): what this computer tells the machines
4
+ * it gets into and a phone. `unknown` until said: the packages are unreleased and legitimately
5
+ * versioned `0.0.0`, so a numeric stand-in would read as a real version (#312).
9
6
  */
10
- let cachedVersion;
7
+ let version = 'unknown';
11
8
  export function openagentVersion() {
12
- if (cachedVersion !== undefined)
13
- return cachedVersion;
14
- try {
15
- const pkgPath = join(dirname(fileURLToPath(import.meta.url)), '..', 'package.json');
16
- const pkg = JSON.parse(readFileSync(pkgPath, 'utf8'));
17
- // `unknown`, not `0.0.0`: the packages are unreleased and legitimately versioned `0.0.0`, so a
18
- // numeric fallback would make a failed read indistinguishable from a correct one (#312).
19
- cachedVersion = pkg.version ?? 'unknown';
20
- }
21
- catch {
22
- cachedVersion = 'unknown';
23
- }
24
- return cachedVersion;
9
+ return version;
10
+ }
11
+ export function setOpenagentVersion(said) {
12
+ version = said;
25
13
  }
26
14
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC;;;;;GAKG;AACH,IAAI,aAAiC,CAAA;AACrC,MAAM,UAAU,gBAAgB;IAC9B,IAAI,aAAa,KAAK,SAAS;QAAE,OAAO,aAAa,CAAA;IACrD,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,cAAc,CAAC,CAAA;QACnF,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAyB,CAAA;QAC7E,+FAA+F;QAC/F,yFAAyF;QACzF,aAAa,GAAG,GAAG,CAAC,OAAO,IAAI,SAAS,CAAA;IAC1C,CAAC;IAAC,MAAM,CAAC;QACP,aAAa,GAAG,SAAS,CAAA;IAC3B,CAAC;IACD,OAAO,aAAa,CAAA;AACtB,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,IAAI,OAAO,GAAG,SAAS,CAAA;AAEvB,MAAM,UAAU,gBAAgB;IAC9B,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,IAAY;IAC9C,OAAO,GAAG,IAAI,CAAA;AAChB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagt/dashboard",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "description": "OpenAgent: a local dashboard and daemon for coding agents. It starts an agent through the project's own start hook and shows every agent from the files it keeps; it runs no coding agent itself.",
5
5
  "keywords": [
6
6
  "ai",
@@ -29,10 +29,11 @@
29
29
  "files": [
30
30
  "dist"
31
31
  ],
32
- "bin": {
33
- "openagent": "dist/bin.js"
34
- },
35
32
  "exports": {
33
+ "./serve": {
34
+ "types": "./dist/serve.d.ts",
35
+ "default": "./dist/serve.js"
36
+ },
36
37
  "./module": {
37
38
  "types": "./dist/module-types/dashboard/module/index.d.ts"
38
39
  },
@@ -57,27 +58,28 @@
57
58
  "react": "^19.2.0",
58
59
  "react-dom": "^19.2.0",
59
60
  "react-resizable-panels": "^4.14.2",
61
+ "shiki": "4.5.0",
60
62
  "tailwind-merge": "^2.6.0",
61
63
  "tiptap-markdown": "^0.8.10",
62
64
  "uqr": "0.1.3",
63
65
  "yaml": "^2.5.0",
66
+ "@openagt/agent-driver-claude": "0.0.6",
67
+ "@openagt/agent-data": "0.0.5",
64
68
  "@openagt/agent-driver-codex": "0.0.5",
69
+ "@openagt/files": "0.0.7",
65
70
  "@openagt/remote-access": "0.0.5",
66
- "@openagt/files": "0.0.5",
67
- "@openagt/servers": "0.0.6",
68
- "@openagt/agent-data": "0.0.4",
69
- "@openagt/changes": "0.0.1",
70
- "@openagt/init": "0.1.4",
71
- "@openagt/skill-branches": "0.1.1",
71
+ "@openagt/init": "0.1.6",
72
+ "@openagt/servers": "0.0.7",
73
+ "@openagt/skill-github": "0.1.1",
72
74
  "@openagt/skill-browser": "0.1.2",
73
- "@openagt/skill-github": "0.1.0",
75
+ "@openagt/skill-branches": "0.1.1",
74
76
  "@openagt/skill-logs": "0.1.3",
75
- "@openagt/skill-orchestration": "0.1.5",
76
- "@openagt/agent-driver-claude": "0.0.5",
77
+ "@openagt/skill-orchestration": "0.1.6",
78
+ "@openagt/changes": "0.0.2",
77
79
  "@openagt/skill-tickets": "0.1.2",
80
+ "@openagt/agent-runner": "0.0.10",
78
81
  "@openagt/skill-queue": "0.1.1",
79
- "@openagt/agent-runner": "0.0.8",
80
- "@openagt/agent-scheduler": "0.1.3",
82
+ "@openagt/agent-scheduler": "0.1.4",
81
83
  "@openagt/agent-driver": "0.0.5"
82
84
  },
83
85
  "devDependencies": {
@@ -89,6 +91,7 @@
89
91
  "@types/react-dom": "^19.2.0",
90
92
  "@vitejs/plugin-react": "^6.0.3",
91
93
  "jsdom": "^29.1.1",
94
+ "material-icon-theme": "5.39.0",
92
95
  "tailwindcss": "^4.0.0",
93
96
  "tsx": "^4.22.4",
94
97
  "typescript": "^7.0.2",
@@ -101,7 +104,6 @@
101
104
  },
102
105
  "scripts": {
103
106
  "build": "tsc -p tsconfig.build.json && tsc -p dashboard/tsconfig.module.json && cp dashboard/module/theme.css dist/module.css && cp src/module-server.d.ts dist/module-server.d.ts && node scripts/copy-extension.mjs && cd dashboard && vite build",
104
- "preview": "node dist/bin.js",
105
107
  "dev": "tsc -p tsconfig.build.json --watch",
106
108
  "dev:dashboard": "cd dashboard && vite",
107
109
  "dev:daemon": "cd dashboard && OPENAGENT_DEV_DAEMON=1 vite",