@saadnvd1/agent-os 0.3.845 → 0.3.848

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 (68) hide show
  1. package/app/api/approvals/route.ts +5 -1
  2. package/app/api/health/config/route.ts +2 -0
  3. package/app/globals.css +6 -0
  4. package/components/Audits/AuditsPanel.tsx +42 -35
  5. package/components/Chat/quote-selection.test.ts +6 -0
  6. package/components/Chat/quote-selection.ts +13 -10
  7. package/components/Devices/ConnectCard.tsx +52 -56
  8. package/components/Devices/DeviceGroupRow.tsx +65 -0
  9. package/components/Devices/DeviceRow.tsx +2 -2
  10. package/components/Devices/DevicesPanel.tsx +63 -49
  11. package/components/Devices/NetworkSection.tsx +29 -26
  12. package/components/Devices/TailscaleCard.tsx +9 -10
  13. package/components/Devices/group.test.ts +66 -0
  14. package/components/Devices/group.ts +67 -0
  15. package/components/Health/HealthPanel.tsx +5 -81
  16. package/components/Health/MachineChecks.tsx +20 -0
  17. package/components/Health/SweepRuns.tsx +46 -51
  18. package/components/Health/Thresholds.tsx +50 -0
  19. package/components/Merge/GlobalMergeSection.tsx +5 -6
  20. package/components/Merge/MergeApprovalToggle.tsx +20 -14
  21. package/components/Merge/MergeSettingsFields.tsx +0 -2
  22. package/components/Merge/WorktreeSweepSection.tsx +15 -34
  23. package/components/Models/AgentRoleCard.tsx +7 -7
  24. package/components/Models/ModelSelect.tsx +14 -3
  25. package/components/Models/ModelsSection.tsx +42 -37
  26. package/components/Models/ProviderCard.tsx +1 -1
  27. package/components/Models/RoleModelSelect.tsx +15 -3
  28. package/components/Models/SubagentModels.tsx +60 -45
  29. package/components/PhoneNotify/PhoneNotifyForm.tsx +6 -13
  30. package/components/Recipes/RecipesPanel.tsx +20 -9
  31. package/components/Recipes/RunHistory.tsx +1 -1
  32. package/components/Schedules/SchedulesPanel.tsx +12 -10
  33. package/components/Settings/AppWideLimits.tsx +2 -2
  34. package/components/Settings/{NoApprovalsSection.test.ts → ApprovalsSection.test.ts} +61 -22
  35. package/components/Settings/ApprovalsSection.tsx +93 -0
  36. package/components/Settings/ExperimentsSection.test.ts +20 -4
  37. package/components/Settings/ExperimentsSection.tsx +54 -34
  38. package/components/Settings/GeneralSection.tsx +39 -0
  39. package/components/Settings/ListSection.test.ts +85 -0
  40. package/components/Settings/ListSection.tsx +132 -0
  41. package/components/Settings/NotificationsSection.tsx +31 -29
  42. package/components/Settings/PickerSetting.tsx +5 -1
  43. package/components/Settings/SettingRow.tsx +13 -8
  44. package/components/Settings/SettingsDialog.test.ts +31 -4
  45. package/components/Settings/SettingsDialog.tsx +22 -17
  46. package/components/Settings/ValueLabel.tsx +31 -0
  47. package/components/Settings/settings-fields.test.ts +81 -2
  48. package/components/Settings/settings-fields.tsx +27 -27
  49. package/components/Shares/SharedLinksPanel.tsx +11 -14
  50. package/components/Updates/AutoUpdates.tsx +12 -8
  51. package/components/Updates/UpdatesSection.tsx +18 -17
  52. package/components/Workspaces/WorkspaceSettings.test.ts +5 -5
  53. package/components/Workspaces/WorkspaceSettings.tsx +0 -2
  54. package/components/ui/switch.tsx +1 -1
  55. package/content/whats-new.json +16 -0
  56. package/data/approvals/index.ts +2 -2
  57. package/data/health/index.ts +3 -0
  58. package/hooks/useAutoSave.ts +18 -5
  59. package/hooks/useSettingsUrl.ts +6 -3
  60. package/lib/approvals/describe.ts +64 -0
  61. package/lib/health/config.ts +70 -17
  62. package/lib/models/providers.ts +1 -1
  63. package/lib/recipes/settle.ts +22 -0
  64. package/lib/settings-url.ts +14 -2
  65. package/package.json +1 -1
  66. package/components/Settings/NoApprovalsSection.tsx +0 -103
  67. package/components/Settings/SettingToggle.tsx +0 -36
  68. package/components/Settings/SetupSection.tsx +0 -46
@@ -1,36 +0,0 @@
1
- "use client";
2
-
3
- import { Switch } from "@/components/ui/switch";
4
-
5
- // One labelled switch on a Settings page; a locked one says so.
6
- export function SettingToggle({
7
- title,
8
- detail,
9
- checked,
10
- locked,
11
- onChange,
12
- }: {
13
- title: string;
14
- detail: string;
15
- checked: boolean;
16
- locked?: boolean;
17
- onChange: (on: boolean) => void;
18
- }) {
19
- return (
20
- <label className="bg-muted/40 flex items-start gap-3 rounded-lg px-3 py-2.5">
21
- <div className="min-w-0 flex-1">
22
- <p className="text-sm font-medium">{title}</p>
23
- <p className="text-muted-foreground text-xs">
24
- {detail}
25
- {locked ? " Can't be changed from here." : ""}
26
- </p>
27
- </div>
28
- <Switch
29
- checked={checked}
30
- disabled={locked}
31
- onCheckedChange={onChange}
32
- className="mt-0.5"
33
- />
34
- </label>
35
- );
36
- }
@@ -1,46 +0,0 @@
1
- "use client";
2
-
3
- import { Button } from "@/components/ui/button";
4
- import { HealthList } from "@/components/Welcome/HealthList";
5
- import { AgentList } from "@/components/Welcome/AgentList";
6
- import { ReachRow } from "@/components/Reach/ReachRow";
7
- import { OwnerNameRow } from "./OwnerNameRow";
8
- import { settingsUiActions } from "@/stores/settingsUi";
9
- import { welcomeUiActions } from "@/stores/welcomeUi";
10
-
11
- // What this machine has for running AgentOS and agents, and the first-run setup again.
12
- export function SetupSection() {
13
- return (
14
- <div className="flex flex-col gap-4">
15
- <OwnerNameRow />
16
- <div className="bg-muted/40 flex items-center gap-3 rounded-lg px-3 py-2.5">
17
- <div className="min-w-0 flex-1">
18
- <p className="text-sm font-medium">First-run setup</p>
19
- <p className="text-muted-foreground text-xs">
20
- Agents, your first project, and a first session.
21
- </p>
22
- </div>
23
- <Button
24
- size="sm"
25
- variant="outline"
26
- className="min-h-11 sm:min-h-8"
27
- onClick={() => {
28
- settingsUiActions.close();
29
- welcomeUiActions.open("agents");
30
- }}
31
- >
32
- Run setup again
33
- </Button>
34
- </div>
35
- <div className="flex flex-col gap-2">
36
- <h3 className="text-sm font-medium">Health</h3>
37
- <HealthList />
38
- <ReachRow />
39
- </div>
40
- <div className="flex flex-col gap-2">
41
- <h3 className="text-sm font-medium">Agents on this machine</h3>
42
- <AgentList />
43
- </div>
44
- </div>
45
- );
46
- }