@workover/cli 0.15.0 → 0.26.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/skill/SKILL.md CHANGED
@@ -21,6 +21,8 @@ If tools named `workover_*` are available:
21
21
  - Tabs: `workover_list_tabs`. Reading or editing acts on ONE tab, so check before editing.
22
22
  - Propose a change (the default): `workover_propose_edit` with the FULL revised markdown.
23
23
  - Edit directly (only when the user asked for the change to be made): `workover_edit_doc`.
24
+ - Rename (when the user asked for it): `workover_edit_doc` with `title` and no `markdown`. The body
25
+ is left as it is.
24
26
  - Comments are CLI-only for now; see below.
25
27
 
26
28
  ## 2. Otherwise use the `workover` CLI
@@ -33,6 +35,7 @@ workover doc get <link> # the body as markdown; title + tab
33
35
  workover doc tabs <link> # the tabs, if any
34
36
  workover doc propose <link> --file new.md --note "what changed" # suggestions to accept
35
37
  workover doc edit <link> --file new.md --note "what changed" # replace the body now
38
+ workover doc rename <link> --title "New title" # rename, body untouched
36
39
  workover comments list <link> # open comment threads
37
40
  workover comments add <link> "reply" --to <commentId>
38
41
  workover doc search "query" # find a doc when you have no link
@@ -44,17 +47,57 @@ workover doc search "query" # find a doc when you have no link
44
47
 
45
48
  - Read the document first. `propose` and `edit` take the COMPLETE document and replace the
46
49
  body of one tab, so anything left out is deleted.
47
- - The title is the H1. Start the body at `##` and never add a `#` heading.
50
+ - The title is the H1. Start the body at `##` and never add a `#` heading. A `#` heading never
51
+ renames the document: to change the title, use `doc rename` or `workover_edit_doc` with `title`,
52
+ which needs `workover login --write` and is a direct edit, not a suggestion.
48
53
  - Change only what you mean to. Do not reflow paragraphs or renumber lists. Tables come back as
49
54
  HTML; edit inside the cells.
50
55
  - `propose` is the default. Use `edit` (or `workover_edit_doc`) only when the user asked for the
51
56
  change to be made, and it needs a sign-in made with `workover login --write`.
52
57
  - Follow the style guide that comes back with the read.
53
58
 
59
+ ## When a Workover command or tool falls short
60
+
61
+ If a `workover` command or MCP tool cannot do what the task needs (a missing flag or argument, a
62
+ wrong answer, an error you could not act on, or a workaround you had to invent), report it, with
63
+ the fix you would make: `workover feedback --summary "..." --intent "..." --problem "..." --fix
64
+ "..."` (or `workover_report_feedback` in the MCP server). It is filed as an issue for the Workover
65
+ team. Never include document text, customer data or secrets. Tell the person you sent it.
66
+
67
+ ## Docs-site documents are Mintlify MDX
68
+
69
+ In a project with a published docs site or a Git sync, a document reads and writes as Mintlify
70
+ MDX, not plain markdown. The read says `Format: Mintlify MDX` when that is so. Write back the MDX
71
+ you read:
72
+
73
+ - Components as JSX: `<Note>text</Note>`,
74
+ `<CardGroup cols={2}><Card title="Setup" icon="gear" href="/setup">text</Card></CardGroup>`,
75
+ `<Steps><Step title="Install">text</Step></Steps>`, `<Tabs><Tab title="npm">text</Tab></Tabs>`,
76
+ inline `<Icon icon="rocket" />`.
77
+ - Math as `$x^2$` or a `$$` block; a snippet as `<Snippet file="snippets/x.mdx" />` or as printed;
78
+ `{{name}}` for a Workover variable.
79
+ - Keep every block you are not changing exactly as printed, including tags you do not recognise.
80
+
81
+ <!-- mdx-components:start -->
82
+ Components: Accordion, AccordionGroup, Badge, Callout, Card, CardGroup, Check, CodeGroup, Color,
83
+ Color.Item, Color.Row, Column, Columns, Danger, Expandable, FileTree, Frame, GitHub.Repo, Icon,
84
+ Info, MDX, Note, Panel, ParamField, Prompt, RequestExample, ResponseExample, ResponseField, Step,
85
+ Steps, Tab, Tabs, Tile, Tip, Tooltip, Tree, Tree.File, Tree.Folder, Update, View, Visibility,
86
+ Visible, Warning.
87
+ <!-- mdx-components:end -->
88
+
89
+ A write that would delete a component, snippet, math or embed is refused and names them. When
90
+ deleting them is the point, pass `allowBlockRemoval: true` to `workover_edit_doc` or
91
+ `--allow-block-removal` to `workover doc edit`. In other projects documents are plain markdown,
92
+ and a body with components is refused rather than written without them.
93
+
54
94
  ## When something fails
55
95
 
56
- - **Not signed in**: signing in needs a person to approve it in a browser. Ask the user to run
57
- `workover login` (`workover login --write` to allow direct edits). Do not look for a token.
96
+ - **Not signed in**: signing in needs a person to approve it in a browser. Run
97
+ `workover login --no-wait` (add `--write` to allow direct edits), give the user the link it
98
+ prints, and run `workover login --resume` once they say they have approved. A plain
99
+ `workover login` waits up to ten minutes, longer than your shell will. Do not look for a token.
100
+ `workover whoami` then shows which account and workspaces you are signed in as.
58
101
  - **"That link is to workover.dev, but you are signed in to api.workover.io"**: the link is for a
59
102
  different environment. Tell the user and give them the command the error prints.
60
103
  - **"No document at that link that this sign-in can open"**: it does not exist, or this account