@openagt/dashboard 0.20.0 → 0.22.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/README.md +7 -3
- package/dist/bin.js +0 -0
- package/dist/built-in.d.ts +7 -6
- package/dist/built-in.d.ts.map +1 -1
- package/dist/built-in.js +28 -9
- package/dist/built-in.js.map +1 -1
- package/dist/daemon-runtime.js +2 -2
- package/dist/daemon-runtime.js.map +1 -1
- package/dist/daemon.d.ts +10 -0
- package/dist/daemon.d.ts.map +1 -1
- package/dist/daemon.js +20 -1
- package/dist/daemon.js.map +1 -1
- package/dist/dashboard/server.d.ts +1 -1
- package/dist/dashboard/server.d.ts.map +1 -1
- package/dist/dashboard-bundle/assets/main-CYfTOaHE.css +2 -0
- package/dist/dashboard-bundle/assets/main-DYsreNn2.js +141 -0
- package/dist/dashboard-bundle/assets/module-C3u_cld4.js +25 -0
- package/dist/dashboard-bundle/host/module.js +1 -1
- package/dist/dashboard-bundle/index.html +3 -3
- package/dist/dashboard-rpc/modules.d.ts +2 -0
- package/dist/dashboard-rpc/modules.d.ts.map +1 -1
- package/dist/dashboard-rpc/modules.js +1 -1
- package/dist/dashboard-rpc/modules.js.map +1 -1
- package/dist/module-types/dashboard/components/SettingsRows.d.ts +6 -3
- package/dist/module-types/dashboard/lib/route.d.ts +7 -3
- package/dist/module-types/dashboard/lib/use-modules.d.ts +3 -2
- package/dist/module-types/dashboard/module/index.d.ts +21 -9
- package/dist/module-types/src/built-in.d.ts +7 -6
- package/dist/module-types/src/dashboard-rpc/modules.d.ts +2 -0
- package/dist/module-types/src/registry.d.ts +2 -2
- package/dist/module-types/src/version.d.ts +1 -0
- package/dist/registry.d.ts +2 -2
- package/dist/serve.d.ts +2 -0
- package/dist/serve.d.ts.map +1 -0
- package/dist/serve.js +5 -0
- package/dist/serve.js.map +1 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +9 -21
- package/dist/version.js.map +1 -1
- package/package.json +16 -16
- package/dist/dashboard-bundle/assets/main-BJq8FqaM.js +0 -141
- package/dist/dashboard-bundle/assets/main-NY2yoID8.css +0 -2
- package/dist/dashboard-bundle/assets/module-BidWGbHQ.js +0 -25
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,$t as t,A as n,An as r,At as i,B as a,Bt as o,C as s,D as c,E as l,En as u,F as d,Ft as f,G as p,Gt as m,H as h,Ht as g,I as _,In as v,It as y,J as b,Jt as x,K as S,Kt as C,L as w,M as T,N as E,Nt as D,O,Ot as k,P as A,Pn as j,Pt as M,Q as N,Qt as P,R as F,Rt as I,S as L,T as R,Tn as z,U as B,Ut as V,V as H,Vt as U,W,Wt as G,X as K,Xt as q,Y as J,Z as Y,Zt as X,_t as Z,a as Q,bt as $,c as ee,d as te,f as ne,h as re,ht as ie,i as ae,in as oe,j as se,jt as ce,k as le,kt as ue,l as de,lt as fe,m as pe,n as me,nt as he,o as ge,p as _e,pt as ve,q as ye,qt as be,r as xe,s as Se,t as Ce,tn as we,u as Te,wn as Ee,x as De,yt as Oe,z as ke}from"../assets/module-
|
|
1
|
+
import{$ as e,$t as t,A as n,An as r,At as i,B as a,Bt as o,C as s,D as c,E as l,En as u,F as d,Ft as f,G as p,Gt as m,H as h,Ht as g,I as _,In as v,It as y,J as b,Jt as x,K as S,Kt as C,L as w,M as T,N as E,Nt as D,O,Ot as k,P as A,Pn as j,Pt as M,Q as N,Qt as P,R as F,Rt as I,S as L,T as R,Tn as z,U as B,Ut as V,V as H,Vt as U,W,Wt as G,X as K,Xt as q,Y as J,Z as Y,Zt as X,_t as Z,a as Q,bt as $,c as ee,d as te,f as ne,h as re,ht as ie,i as ae,in as oe,j as se,jt as ce,k as le,kt as ue,l as de,lt as fe,m as pe,n as me,nt as he,o as ge,p as _e,pt as ve,q as ye,qt as be,r as xe,s as Se,t as Ce,tn as we,u as Te,wn as Ee,x as De,yt as Oe,z as ke}from"../assets/module-C3u_cld4.js";export{ve as AddMachineDialog,Y as Badge,Ee as Button,S as Card,ye as CardContent,b as CardHeader,J as CardTitle,K as CardTitleLink,N as Checkbox,e as ConfirmDialog,l as ContextMenu,c as ContextMenuTrigger,O as DiffStat,M as DropdownMenu,f as DropdownMenuCheckboxItem,y as DropdownMenuContent,I as DropdownMenuItem,o as DropdownMenuSeparator,U as DropdownMenuSub,g as DropdownMenuSubContent,V as DropdownMenuSubTrigger,G as DropdownMenuTrigger,L as FileIcon,q as Input,F as Label,re as LinkActions,v as MAX_SPEND_OFFSET,he as Markdown,Ce as ModuleHostContext,s as PaneActions,R as PaneTitle,ee as Pieces,n as Popover,se as PopoverContent,T as PopoverTrigger,te as QrCode,C as RadioGroup,be as RadioGroupItem,x as RadioGroupOption,le as RangeSlider,m as ScrollArea,E as Select,A as SelectContent,d as SelectItem,_ as SelectTrigger,w as SelectValue,ue as Separator,ne as SettingsRow,_e as SettingsSection,pe as SettingsSelectRow,k as Skeleton,De as StartAgentButton,p as Switch,ke as Table,a as TableBody,H as TableCell,h as TableHead,B as TableHeader,W as TableRow,ie as Textarea,i as Tooltip,ce as TooltipContent,D as TooltipTrigger,z as buttonVariants,u as cn,me as defineModule,Z as forgetRemembered,P as formatAge,t as formatDateTime,we as formatDuration,oe as formatRelative,xe as moduleHost,r as pageHref,Q as pathsIn,j as reachedByLine,X as useAction,fe as useCodingAgents,ge as useFileNames,de as useHighlighted,Oe as useLoaded,ae as useModuleHost,Te as useNarrow,$ as usePolled,Se as useSchedule};
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"@openagt/dashboard/module": "/host/module.js"
|
|
28
28
|
}
|
|
29
29
|
}</script>
|
|
30
|
-
<script type="module" crossorigin src="/assets/main-
|
|
30
|
+
<script type="module" crossorigin src="/assets/main-DYsreNn2.js"></script>
|
|
31
31
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-QTnfLwEv.js">
|
|
32
32
|
<link rel="modulepreload" crossorigin href="/assets/react-CZI7_Jkm.js">
|
|
33
33
|
<link rel="modulepreload" crossorigin href="/assets/react-dom-cJyBB_A4.js">
|
|
34
34
|
<link rel="modulepreload" crossorigin href="/assets/client-CbBRB9m4.js">
|
|
35
35
|
<link rel="modulepreload" crossorigin href="/assets/jsx-runtime-By8HlURe.js">
|
|
36
|
-
<link rel="modulepreload" crossorigin href="/assets/module-
|
|
37
|
-
<link rel="stylesheet" crossorigin href="/assets/main-
|
|
36
|
+
<link rel="modulepreload" crossorigin href="/assets/module-C3u_cld4.js">
|
|
37
|
+
<link rel="stylesheet" crossorigin href="/assets/main-CYfTOaHE.css">
|
|
38
38
|
</head>
|
|
39
39
|
<body>
|
|
40
40
|
<div id="root"></div>
|
|
@@ -10,6 +10,8 @@ export interface DashboardModule {
|
|
|
10
10
|
url: string;
|
|
11
11
|
/** The registered projects whose packages include it, in the registry's order; none for one of the computer's, whose commands run in no project. */
|
|
12
12
|
projects: string[];
|
|
13
|
+
/** Set for one of the computer's packages: what it keeps is the person's, in their home folder, and no project's. */
|
|
14
|
+
computer?: true;
|
|
13
15
|
}
|
|
14
16
|
/**
|
|
15
17
|
* Every module the dashboard loads (#1774), one per package. First the computer's, which are
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../src/dashboard-rpc/modules.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkH,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAGhL,OAAO,EAA8B,KAAK,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAM/F,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,YAAY,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAEnE,6FAA6F;AAC7F,MAAM,WAAW,eAAe;IAC9B,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAA;IACf,wIAAwI;IACxI,GAAG,EAAE,MAAM,CAAA;IACX,oJAAoJ;IACpJ,QAAQ,EAAE,MAAM,EAAE,CAAA;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Branch } from '@openagt/agent-data';
|
|
|
19
19
|
export async function onModules() {
|
|
20
20
|
const byPackage = new Map();
|
|
21
21
|
for (const module of await readComputerModules().catch(() => [])) {
|
|
22
|
-
byPackage.set(module.package, { package: module.package, url: computerModuleUrl(module), projects: [] });
|
|
22
|
+
byPackage.set(module.package, { package: module.package, url: computerModuleUrl(module), projects: [], computer: true });
|
|
23
23
|
}
|
|
24
24
|
for (const project of await contextProjects().list()) {
|
|
25
25
|
const modules = await readProjectModules(project.path).catch(() => []);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modules.js","sourceRoot":"","sources":["../../src/dashboard-rpc/modules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAClE,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,gBAAgB,IAAI,UAAU,EAA4B,MAAM,uBAAuB,CAAA;AAChL,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,UAAU,EAAyB,MAAM,6BAA6B,CAAA;AAC/F,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"modules.js","sourceRoot":"","sources":["../../src/dashboard-rpc/modules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,eAAe,EAAE,kBAAkB,E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E,IAAI,EAAE,KAAK,CAAC,EAAE,KAAK,IAAI,EAAE;QAChG,MAAM,IAAI,GAAG,MAAM,kBAAkB,CAAC,SAAS,CAAC,CAAA;QAChD,IAAI,CAAC,IAAI;YAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,CAAA;QACzD,MAAM,MAAM,GAAG,MAAM,iBAAiB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAA;QACxE,IAAI,CAAC,MAAM;YAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,GAAG,+BAA+B,EAAE,CAAA;QAC/E,IAAI,CAAC,MAAM,CAAC,MAAM;YAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,GAAG,qBAAqB,EAAE,CAAA;QAC5E,OAAO,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,CAAA;IACrE,CAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,8CAA8C,EAAE,CAAC,CAAA;AAC1E,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
/**
|
|
3
|
+
* An entry's settings: what they are about as a whole (`description`) and what the entry offers as
|
|
4
|
+
* a whole (`action`, a button) over its rows, a line between each. No card around them: the dialog
|
|
5
|
+
* is their frame. The entry's title is Settings' own, over it.
|
|
6
|
+
*/
|
|
7
|
+
export declare function SettingsSection({ description, action, children }: {
|
|
5
8
|
description?: string;
|
|
6
9
|
action?: ReactNode;
|
|
7
10
|
children: ReactNode;
|
|
@@ -8,8 +8,11 @@
|
|
|
8
8
|
export declare function isPageSegment(segment: string): boolean;
|
|
9
9
|
/** What the dashboard is looking at, as carried by the URL. */
|
|
10
10
|
export interface Route {
|
|
11
|
-
/**
|
|
12
|
-
|
|
11
|
+
/**
|
|
12
|
+
* The Settings dialog, open over the page the rest of the route names: the entry it shows, or
|
|
13
|
+
* `''` for its first one. Absent when it is closed. Carried as `?settings=<entry>`.
|
|
14
|
+
*/
|
|
15
|
+
settings?: string;
|
|
13
16
|
/** The selected project, or null for the Overview. */
|
|
14
17
|
projectId: string | null;
|
|
15
18
|
/** The selected session (agent id), or null for the project's home/launcher. */
|
|
@@ -33,7 +36,8 @@ export declare function parseRoute(url: string): Route;
|
|
|
33
36
|
export declare function formatRoute(route: Route): string;
|
|
34
37
|
/**
|
|
35
38
|
* `url` with the query parameters of `search` that are not the route's own added to it: what a
|
|
36
|
-
* module's page mirrored there (a list's filters) stays when only the picked project changes
|
|
39
|
+
* module's page mirrored there (a list's filters) stays when only the picked project changes, or
|
|
40
|
+
* when Settings opens or closes over the page.
|
|
37
41
|
*/
|
|
38
42
|
export declare function keepPageQuery(url: string, search: string): string;
|
|
39
43
|
/**
|
|
@@ -24,10 +24,11 @@ export interface MountedRunSlots extends ModuleRunSlots {
|
|
|
24
24
|
package: string;
|
|
25
25
|
projects: string[];
|
|
26
26
|
}
|
|
27
|
-
/** A Settings
|
|
27
|
+
/** A Settings entry as the shell mounts it: the entry, plus the package it came from, the projects that have it, and whether it is the computer's. */
|
|
28
28
|
export interface MountedSettings extends ModuleSettings {
|
|
29
29
|
package: string;
|
|
30
30
|
projects: string[];
|
|
31
|
+
computer: boolean;
|
|
31
32
|
}
|
|
32
33
|
/** A usage bar stop line as the shell mounts it: the line's read and save, plus the package it came from and the projects that have it. */
|
|
33
34
|
export interface MountedUsageLimit extends ModuleUsageLimit {
|
|
@@ -49,7 +50,7 @@ export interface MountedModules {
|
|
|
49
50
|
panels: MountedPanel[];
|
|
50
51
|
/** The run slots, one entry per module that has any, in package order. */
|
|
51
52
|
runSlots: MountedRunSlots[];
|
|
52
|
-
/** The Settings
|
|
53
|
+
/** The Settings entries, in the order they are listed: by `order`, then by package name. */
|
|
53
54
|
settings: MountedSettings[];
|
|
54
55
|
/** The usage bar's stop line: the first module's that declares one, in package order; absent when none does. */
|
|
55
56
|
usageLimit?: MountedUsageLimit;
|
|
@@ -116,22 +116,34 @@ export interface ModuleCard {
|
|
|
116
116
|
/** The card itself. */
|
|
117
117
|
Card: ComponentType<ModuleCardProps>;
|
|
118
118
|
}
|
|
119
|
-
/** What a Settings section is rendered with: the projects
|
|
119
|
+
/** What a Settings section is rendered with: the projects whose settings it shows and saves. */
|
|
120
120
|
export interface ModuleSettingsProps {
|
|
121
|
-
/**
|
|
121
|
+
/**
|
|
122
|
+
* The projects the section is for, in the registry's order: the one picked in Settings, or every
|
|
123
|
+
* project that has the package when "All projects" is picked; none for a package that is the
|
|
124
|
+
* computer's. A save goes to each of them.
|
|
125
|
+
*/
|
|
122
126
|
projects: ModuleProject[];
|
|
123
127
|
}
|
|
124
128
|
/**
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
129
|
+
* An entry a module adds to Settings: the package's own settings, read and written through its
|
|
130
|
+
* own command. Settings lists it with the dashboard's own entries and draws its title and icon
|
|
131
|
+
* there. A package that is the computer's is listed under "You and this computer"; any other
|
|
132
|
+
* under the project picked in Settings, when that project has the package.
|
|
128
133
|
*/
|
|
129
134
|
export interface ModuleSettings {
|
|
130
|
-
/** Which
|
|
135
|
+
/** Which entry this is: the shell's key, and its name in the address (`?settings=<id>`). */
|
|
131
136
|
id: string;
|
|
132
|
-
/**
|
|
137
|
+
/** The entry's name in the list and over its settings. */
|
|
138
|
+
title: string;
|
|
139
|
+
/** The entry's icon in the list. */
|
|
140
|
+
icon: ComponentType<{
|
|
141
|
+
className?: string;
|
|
142
|
+
'aria-hidden'?: boolean;
|
|
143
|
+
}>;
|
|
144
|
+
/** Its place among every installed package's entries, lower first; 50 when unsaid, ties by package name. */
|
|
133
145
|
order?: number;
|
|
134
|
-
/** The
|
|
146
|
+
/** The settings themselves, a {@link SettingsSection} of rows. */
|
|
135
147
|
Section: ComponentType<ModuleSettingsProps>;
|
|
136
148
|
}
|
|
137
149
|
/** How saving a usage limit went: done, or stopped, with the reason the module's command gave. */
|
|
@@ -264,7 +276,7 @@ export interface ModuleDefinition {
|
|
|
264
276
|
panels?: ModulePanel[];
|
|
265
277
|
/** What the module adds to a run's page. */
|
|
266
278
|
run?: ModuleRunSlots;
|
|
267
|
-
/** The
|
|
279
|
+
/** The entries the module adds to Settings. */
|
|
268
280
|
settings?: ModuleSettings[];
|
|
269
281
|
/** The stop line the module puts on the usage bar. */
|
|
270
282
|
usageLimit?: ModuleUsageLimit;
|
|
@@ -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
|
|
22
|
-
* when the
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
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. */
|
|
@@ -10,6 +10,8 @@ export interface DashboardModule {
|
|
|
10
10
|
url: string;
|
|
11
11
|
/** The registered projects whose packages include it, in the registry's order; none for one of the computer's, whose commands run in no project. */
|
|
12
12
|
projects: string[];
|
|
13
|
+
/** Set for one of the computer's packages: what it keeps is the person's, in their home folder, and no project's. */
|
|
14
|
+
computer?: true;
|
|
13
15
|
}
|
|
14
16
|
/**
|
|
15
17
|
* Every module the dashboard loads (#1774), one per package. First the computer's, which are
|
|
@@ -140,8 +140,8 @@ export interface Preferences {
|
|
|
140
140
|
customPresets?: CustomPreset[];
|
|
141
141
|
/**
|
|
142
142
|
* Whether the Overview's Onboarding checklist has been dismissed (#958). Absent = show it,
|
|
143
|
-
* so a fresh install is walked through setup;
|
|
144
|
-
*
|
|
143
|
+
* so a fresh install is walked through setup; its ✕ sets it, and a switch in Settings ›
|
|
144
|
+
* Appearance clears it.
|
|
145
145
|
*/
|
|
146
146
|
onboardingDismissed?: boolean;
|
|
147
147
|
}
|
package/dist/registry.d.ts
CHANGED
|
@@ -140,8 +140,8 @@ export interface Preferences {
|
|
|
140
140
|
customPresets?: CustomPreset[];
|
|
141
141
|
/**
|
|
142
142
|
* Whether the Overview's Onboarding checklist has been dismissed (#958). Absent = show it,
|
|
143
|
-
* so a fresh install is walked through setup;
|
|
144
|
-
*
|
|
143
|
+
* so a fresh install is walked through setup; its ✕ sets it, and a switch in Settings ›
|
|
144
|
+
* Appearance clears it.
|
|
145
145
|
*/
|
|
146
146
|
onboardingDismissed?: boolean;
|
|
147
147
|
}
|
package/dist/serve.d.ts
ADDED
|
@@ -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"}
|
package/dist/version.d.ts
CHANGED
package/dist/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"
|
|
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
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
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
|
|
7
|
+
let version = 'unknown';
|
|
11
8
|
export function openagentVersion() {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA
|
|
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.
|
|
3
|
+
"version": "0.22.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
|
},
|
|
@@ -62,24 +63,24 @@
|
|
|
62
63
|
"tiptap-markdown": "^0.8.10",
|
|
63
64
|
"uqr": "0.1.3",
|
|
64
65
|
"yaml": "^2.5.0",
|
|
65
|
-
"@openagt/agent-driver-claude": "0.0.6",
|
|
66
|
-
"@openagt/agent-data": "0.0.4",
|
|
67
66
|
"@openagt/agent-driver-codex": "0.0.5",
|
|
67
|
+
"@openagt/agent-driver-claude": "0.0.6",
|
|
68
|
+
"@openagt/agent-data": "0.0.5",
|
|
68
69
|
"@openagt/changes": "0.0.2",
|
|
69
|
-
"@openagt/remote-access": "0.0.
|
|
70
|
-
"@openagt/
|
|
71
|
-
"@openagt/
|
|
70
|
+
"@openagt/remote-access": "0.0.6",
|
|
71
|
+
"@openagt/files": "0.0.7",
|
|
72
|
+
"@openagt/servers": "0.0.8",
|
|
73
|
+
"@openagt/init": "0.1.7",
|
|
74
|
+
"@openagt/skill-branches": "0.1.1",
|
|
72
75
|
"@openagt/skill-browser": "0.1.2",
|
|
73
|
-
"@openagt/files": "0.0.6",
|
|
74
|
-
"@openagt/skill-logs": "0.1.3",
|
|
75
76
|
"@openagt/skill-github": "0.1.1",
|
|
76
|
-
"@openagt/skill-orchestration": "0.1.
|
|
77
|
+
"@openagt/skill-orchestration": "0.1.7",
|
|
77
78
|
"@openagt/skill-tickets": "0.1.2",
|
|
78
79
|
"@openagt/skill-queue": "0.1.1",
|
|
79
|
-
"@openagt/skill-
|
|
80
|
-
"@openagt/agent-scheduler": "0.1.
|
|
80
|
+
"@openagt/skill-logs": "0.1.3",
|
|
81
|
+
"@openagt/agent-scheduler": "0.1.5",
|
|
81
82
|
"@openagt/agent-driver": "0.0.5",
|
|
82
|
-
"@openagt/agent-runner": "0.0.
|
|
83
|
+
"@openagt/agent-runner": "0.0.10"
|
|
83
84
|
},
|
|
84
85
|
"devDependencies": {
|
|
85
86
|
"@tailwindcss/vite": "^4.0.0",
|
|
@@ -103,7 +104,6 @@
|
|
|
103
104
|
},
|
|
104
105
|
"scripts": {
|
|
105
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",
|
|
106
|
-
"preview": "node dist/bin.js",
|
|
107
107
|
"dev": "tsc -p tsconfig.build.json --watch",
|
|
108
108
|
"dev:dashboard": "cd dashboard && vite",
|
|
109
109
|
"dev:daemon": "cd dashboard && OPENAGENT_DEV_DAEMON=1 vite",
|