@parall/agent-core 1.25.0 → 1.26.1

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 (47) hide show
  1. package/dist/bridge-workspace.d.ts +1 -1
  2. package/dist/bridge-workspace.d.ts.map +1 -1
  3. package/dist/bridge-workspace.js +1 -1
  4. package/dist/dispatch-adapter.d.ts +5 -0
  5. package/dist/dispatch-adapter.d.ts.map +1 -1
  6. package/dist/event-format.d.ts +1 -0
  7. package/dist/event-format.d.ts.map +1 -1
  8. package/dist/event-format.js +6 -0
  9. package/dist/gateway-base.d.ts +6 -0
  10. package/dist/gateway-base.d.ts.map +1 -1
  11. package/dist/gateway-base.js +66 -11
  12. package/dist/index.d.ts +3 -0
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +2 -0
  15. package/dist/platform-config.d.ts +23 -0
  16. package/dist/platform-config.d.ts.map +1 -0
  17. package/dist/platform-config.js +105 -0
  18. package/dist/skills/index.d.ts +14 -0
  19. package/dist/skills/index.d.ts.map +1 -0
  20. package/dist/skills/index.js +44 -0
  21. package/dist/skills/parall-platform.d.ts +2 -0
  22. package/dist/skills/parall-platform.d.ts.map +1 -0
  23. package/dist/skills/parall-platform.js +161 -0
  24. package/dist/skills/parall-schedules.d.ts +2 -0
  25. package/dist/skills/parall-schedules.d.ts.map +1 -0
  26. package/dist/skills/parall-schedules.js +80 -0
  27. package/dist/skills/parall-tasks.d.ts +2 -0
  28. package/dist/skills/parall-tasks.d.ts.map +1 -0
  29. package/dist/skills/parall-tasks.js +65 -0
  30. package/dist/skills/parall-wiki.d.ts +2 -0
  31. package/dist/skills/parall-wiki.d.ts.map +1 -0
  32. package/dist/skills/parall-wiki.js +131 -0
  33. package/dist/types.d.ts +2 -0
  34. package/dist/types.d.ts.map +1 -1
  35. package/package.json +2 -2
  36. package/src/bridge-workspace.ts +1 -1
  37. package/src/dispatch-adapter.ts +6 -0
  38. package/src/event-format.ts +7 -0
  39. package/src/gateway-base.ts +66 -11
  40. package/src/index.ts +3 -0
  41. package/src/platform-config.ts +159 -0
  42. package/src/skills/index.ts +52 -0
  43. package/src/skills/parall-platform.ts +161 -0
  44. package/src/skills/parall-schedules.ts +80 -0
  45. package/src/skills/parall-tasks.ts +65 -0
  46. package/src/skills/parall-wiki.ts +131 -0
  47. package/src/types.ts +2 -0
@@ -0,0 +1,65 @@
1
+ export const PARALL_TASKS_SKILL = `# Parall Tasks
2
+
3
+ Manage tasks and projects via the Parall CLI. Auth and runtime context are pre-configured.
4
+
5
+ ## Task Commands
6
+
7
+ \`\`\`bash
8
+ # List tasks (filterable by status)
9
+ parall tasks list
10
+ parall tasks list --status todo
11
+ parall tasks list --status in_progress
12
+
13
+ # Create a task
14
+ parall tasks create --title "Task title" [--assignee-id prll://usr_xxx] [--project-id prll://prj_xxx]
15
+
16
+ # Update task status
17
+ parall tasks update prll://tsk_xxx --status in_progress
18
+ parall tasks update prll://tsk_xxx --status done
19
+
20
+ # Add a comment
21
+ parall tasks comments add prll://tsk_xxx --body "Progress update..."
22
+ \`\`\`
23
+
24
+ ## Project Commands
25
+
26
+ \`\`\`bash
27
+ parall projects list
28
+ \`\`\`
29
+
30
+ ## Watching Tasks
31
+
32
+ Subscribe to a task to receive notifications when others comment on it.
33
+
34
+ \`\`\`bash
35
+ # Watch a task (you'll receive dispatch events for new comments)
36
+ parall tasks watch prll://tsk_xxx
37
+
38
+ # Unwatch
39
+ parall tasks unwatch prll://tsk_xxx
40
+
41
+ # List who is watching
42
+ parall tasks watchers prll://tsk_xxx
43
+ \`\`\`
44
+
45
+ Note: task creators are automatically watching their tasks.
46
+
47
+ ## Responding to Task Assignments
48
+
49
+ When you receive \`[Event: task.assigned]\`:
50
+
51
+ 1. Acknowledge with a comment: \`tasks comments add prll://tsk_xxx --body "On it"\`
52
+ 2. Update status: \`tasks update prll://tsk_xxx --status in_progress\`
53
+ 3. Do the work
54
+ 4. Report results via comment and update status to \`done\`
55
+
56
+ ## Responding to Task Comments
57
+
58
+ When you receive \`[Event: task.comment.created]\`, someone commented on a task you are watching. Read the comment body and respond if action is needed:
59
+
60
+ 1. Review the comment content and task context
61
+ 2. Reply via comment: \`tasks comments add prll://tsk_xxx --body "Response..."\`
62
+ 3. If the comment requests status changes, update accordingly
63
+
64
+ All CLI output is JSON.
65
+ `;
@@ -0,0 +1,131 @@
1
+ export const PARALL_WIKI_SKILL = `# Parall Wiki
2
+
3
+ Manage organization wikis via the Parall CLI. Auth is pre-configured.
4
+
5
+ ## Browsing (no local state needed)
6
+
7
+ \`\`\`bash
8
+ parall wiki list # List all wikis
9
+ parall wiki tree <slug> # List files and directories
10
+ parall wiki tree <slug> --path docs/ # List a subdirectory
11
+ \`\`\`
12
+
13
+ ## Editing
14
+
15
+ Wiki editing works on a **local workspace** — a directory on disk where wiki
16
+ files are synced. You sync from the server, edit files locally, then propose
17
+ a changeset.
18
+
19
+ ### Step 1: Sync
20
+
21
+ \`\`\`bash
22
+ parall wiki sync <slug>
23
+ \`\`\`
24
+
25
+ This downloads wiki files to a local directory. The output includes the
26
+ **absolute mount path** for each wiki (e.g. \`synced → /path/to/workspace/kb\`).
27
+
28
+ ### Step 2: Find the mount path
29
+
30
+ The sync output JSON contains \`synced[].path\` — the absolute path where files
31
+ live. You can also check it anytime with:
32
+
33
+ \`\`\`bash
34
+ parall wiki status <slug>
35
+ \`\`\`
36
+
37
+ The output includes \`Mount: /absolute/path/to/<slug>\`.
38
+
39
+ Use this path with \`read\`, \`write\`, and \`edit\` tools. For example, if the mount
40
+ is \`/data/.openclaw/workspace/kb\`, then \`README.md\` is at
41
+ \`/data/.openclaw/workspace/kb/README.md\`.
42
+
43
+ ### Step 3: Edit files
44
+
45
+ Use standard file tools (\`read\`, \`write\`, \`edit\`) on files under the mount path.
46
+
47
+ ### Step 4: Review changes
48
+
49
+ \`\`\`bash
50
+ parall wiki diff <slug> # Shows unified diff of all local changes
51
+ parall wiki status <slug> # Shows which files changed with +/- line counts
52
+ \`\`\`
53
+
54
+ Always review before proposing.
55
+
56
+ ### Step 5: Propose changeset
57
+
58
+ \`\`\`bash
59
+ parall wiki changeset create <slug> --title "Description of changes"
60
+ \`\`\`
61
+
62
+ This uploads your local changes. Unprotected paths auto-merge immediately; the
63
+ CLI prints \`auto_merged: true\` and refreshes the local manifest. Protected
64
+ paths remain as a changeset for review; follow the returned \`next_action\`.
65
+
66
+ ## Changeset Management
67
+
68
+ \`\`\`bash
69
+ parall wiki changeset list <slug> # List all changesets
70
+ parall wiki changeset show <changesetId> <slug> # Show detail + feedback
71
+ parall wiki changeset diff <changesetId> <slug> # Show changeset diff
72
+ \`\`\`
73
+
74
+ If a changeset is rejected, fix the files locally and re-propose:
75
+
76
+ \`\`\`bash
77
+ parall wiki changeset create <slug> --update <changesetId>
78
+ \`\`\`
79
+
80
+ The title is inherited from the original changeset — no need to repeat it.
81
+
82
+ ## Handling sync conflicts
83
+
84
+ \`wiki sync\` runs a three-way merge. When both you and the server changed the
85
+ same file, sync **does not overwrite your work**. It leaves your file intact
86
+ and drops the upstream version under \`.parall-wiki/conflicts/\`:
87
+
88
+ | Marker | Meaning |
89
+ |--------|---------|
90
+ | \`.parall-wiki/conflicts/<path>.remote\` | Server has different content (concurrent edit, new file collision, or server changed a file you deleted) |
91
+ | \`.parall-wiki/conflicts/<path>.remote-deleted\` | Server deleted the file; you still have edits |
92
+
93
+ stderr prints one line per conflict. Recovery:
94
+
95
+ **Accept upstream** (drop your edit):
96
+ \`\`\`bash
97
+ cp .parall-wiki/conflicts/<path>.remote <path>
98
+ parall wiki sync
99
+ \`\`\`
100
+
101
+ **Keep yours** (or hand-merge, then propose):
102
+ \`\`\`bash
103
+ # edit <path> to final content
104
+ parall wiki diff <slug>
105
+ parall wiki changeset create <slug> --title "Reconcile <path>"
106
+ parall wiki sync # fast-forwards after server merges
107
+ \`\`\`
108
+
109
+ **Accept server delete** (\`.remote-deleted\` only):
110
+ \`\`\`bash
111
+ rm <path>
112
+ parall wiki sync
113
+ \`\`\`
114
+
115
+ Sync failures (\`download\`, \`shape-conflict\`) set exit code 1 and retry on
116
+ next sync. Conflicts exit 0 — they need your decision, not a retry.
117
+
118
+ ## Discarding local changes
119
+
120
+ \`\`\`bash
121
+ parall wiki reset <slug> # Restore all files to last synced state
122
+ \`\`\`
123
+
124
+ ## History
125
+
126
+ \`\`\`bash
127
+ parall wiki log <slug> # Recent wiki operations
128
+ \`\`\`
129
+
130
+ All CLI output is JSON. Run \`parall wiki --help\` for full options.
131
+ `;
package/src/types.ts CHANGED
@@ -12,6 +12,8 @@ export type DispatchState = {
12
12
  activeForks: Map<string, string>;
13
13
  pendingForkResults: ForkResult[];
14
14
  mainBuffer: ParallEvent[];
15
+ /** Snapshot of the session branch point taken BEFORE runDispatch starts on main. */
16
+ mainPreDispatchBranchPoint?: string;
15
17
  };
16
18
 
17
19
  /** Normalized inbound event from Parall. */