You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ec7680d
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(dashboards): give agent dashboard commands the files folder syntax
Dashboards take folder paths like files: create/list --folder, move --to
(/ is the root), rename and set-content as separate actions, and folder
create/move/delete by positional path with --recursive for non-empty
deletes. The UI routes keep folder ids.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S6aTRnkiu7PxYZPNPXYEMV
'Create, list, read, edit, move, rename and delete dashboards in the selected workspace. Dashboards are separate resources with validated YAML source. Load the create-dashboard skill for the actual schema. get returns content and revision; update requires expectedRevision to avoid overwriting concurrent edits. move changes name and/or folderId. Use open_resource with type dashboard to show the result. Sharing is not supported by this tool.',
21
+
'Create, list, read, edit, move, rename and delete dashboards in the selected workspace, with the same folder paths as files: `/` is the root. Dashboards are separate resources with validated YAML source. Load the create-dashboard skill for the actual schema. get returns content and revision; set-content requires expectedRevision to avoid overwriting concurrent edits. Use open_resource with type dashboard to show the result. Sharing is not supported by this tool.',
22
22
inputSchema: mothershipDashboardsInputSchema,
23
23
},
24
24
{
25
25
id: 'dashboard_folders',
26
26
route: 'sim',
27
27
scope: 'all',
28
28
description:
29
-
'Manage the selected workspace’s dashboard folders. Paths are slash-separated under the Dashboards root. Create requires existing ancestors; move also renames via destinationPath. Delete archives the folder and its dashboards recursively. Folders are separate from Files.',
29
+
'Manage the selected workspace’s dashboard folders with the same paths as file folders. Create requires existing ancestors; move also renames via the destination path. Delete of a non-empty folder requires recursive, which archives the folder and its dashboards. Folders are separate from Files.',
Copy file name to clipboardExpand all lines: apps/sim/lib/dashboards/authoring.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
/** The built-in authoring skill ships alongside the parser, so models can learn the actual format. */
2
2
exportconstDASHBOARD_AUTHORING_CONTENT=`# Create a dashboard
3
3
4
-
A dashboard is YAML over live table rows. Inspect the table's columns first, then call dashboards.create with name and content. dashboards.get returns content and revision; dashboards.update needs expectedRevision. Open it with open_resource (type dashboard). Folders are dashboard_folders. Never write HTML, JS, CSS, or a custom chart grammar; log queries are not supported.
4
+
A dashboard is YAML over live table rows. Inspect the table's columns first, then run \`dashboardscreate --name --content\` (add \`--folder <path>\` for a folder). \`dashboardsget\` returns content and revision; \`dashboards set-content\` needs \`--expected-revision\`. Open it with open_resource (type dashboard). Folders work like file folders: \`dashboards folders create|move|delete <path>\`. Never write HTML, JS, CSS, or a custom chart grammar; log queries are not supported.
0 commit comments