@pingvinen/donna-assistant 0.9.1 → 0.11.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.
@@ -4,57 +4,25 @@
4
4
  Define the user's job role, research recurring tasks and tools for that role using WebSearch, present findings for approval, and persist role definition and recurring tasks to the storage repo.
5
5
  </objective>
6
6
 
7
- <step name="read-config">
8
- Read `~/.config/donna/config.md`.
9
-
10
- If the file does not exist, print:
11
- ```
12
- ✗ Donna is not configured. Run /donna:setup first.
13
- ```
14
- Stop.
15
-
16
- Extract the `storage_repo` and `auto_push` (default: false) fields from the YAML frontmatter.
17
- </step>
18
-
19
- <step name="check-pending-migrations">
20
- Read `~/.donna/state.md` with the Read tool. If the file does not exist or has no `pending_migrations` field in its YAML frontmatter, skip this step.
21
-
22
- For each entry in `pending_migrations`:
23
-
24
- **`move-standing-files`:** Move standing files from storage repo root to donna/ subfolder.
25
-
7
+ <step name="init">
26
8
  Run via Bash:
27
9
  ```bash
28
- STORAGE_REPO="<storage_repo>"
29
- DONNA_DIR="$STORAGE_REPO/donna"
30
- MOVED=0
31
-
32
- mkdir -p "$DONNA_DIR"
33
- for FILE in role.md recurring.md role-research.md; do
34
- if [ -f "$STORAGE_REPO/$FILE" ] && [ ! -f "$DONNA_DIR/$FILE" ]; then
35
- mv "$STORAGE_REPO/$FILE" "$DONNA_DIR/$FILE"
36
- echo "Moved $FILE to donna/$FILE"
37
- MOVED=$((MOVED + 1))
38
- fi
39
- done
40
-
41
- echo "MOVED=$MOVED"
10
+ INIT=$(node ~/.donna/donna-tools.cjs init)
42
11
  ```
43
12
 
44
- If MOVED > 0, commit the move:
45
- ```bash
46
- git -C <storage_repo> add -A
47
- git -C <storage_repo> diff --cached --quiet || git -C <storage_repo> commit -m "donna(migrate): move standing files to donna/ subfolder"
13
+ Parse the JSON response. If the `error` field is `"not_configured"`, print:
48
14
  ```
15
+ x Donna is not configured. Run /donna:setup first.
16
+ ```
17
+ Stop.
49
18
 
50
- If `auto_push` is true in config, also push.
19
+ Extract `storage_repo`, `daily_folder`, `auto_push` from the JSON.
51
20
 
52
- After processing all pending migrations, update `~/.donna/state.md` with the Write tool: remove the completed entries from `pending_migrations`. If no entries remain, write:
53
- ```markdown
54
- ---
55
- pending_migrations: []
56
- ---
21
+ If `update_available` is non-null, print:
57
22
  ```
23
+ Donna v<update_available> available -- run npx @pingvinen/donna-assistant to update
24
+ ```
25
+ Continue normally.
58
26
  </step>
59
27
 
60
28
  <step name="check-existing-role">
@@ -252,24 +220,7 @@ If this is a diff-update (user chose option 2 in rerun-menu):
252
220
  <step name="git-commit">
253
221
  Run via Bash:
254
222
  ```bash
255
- git -C <storage_repo> add -A
256
- ```
257
-
258
- Check whether there is anything to commit:
259
- ```bash
260
- git -C <storage_repo> status --porcelain
261
- ```
262
-
263
- If the output is empty, skip the commit and continue.
264
-
265
- Otherwise, run:
266
- ```bash
267
- git -C <storage_repo> commit -m "donna(set-role): define role as <job_title>"
268
- ```
269
-
270
- If `auto_push` is true in config, also run:
271
- ```bash
272
- git -C <storage_repo> push
223
+ node ~/.donna/donna-tools.cjs commit "donna(role): updated role definition" --files donna/role.md donna/recurring.md
273
224
  ```
274
225
  </step>
275
226