@runfusion/fusion 0.0.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 (30) hide show
  1. package/README.md +166 -0
  2. package/dist/bin.js +141453 -0
  3. package/dist/client/assets/addon-fit-C7jRorKK.js +1 -0
  4. package/dist/client/assets/addon-web-links-CkJwd4cQ.js +1 -0
  5. package/dist/client/assets/addon-webgl-BjvOw43o.js +58 -0
  6. package/dist/client/assets/index-Dr0THfBG.css +1 -0
  7. package/dist/client/assets/index-bkmXzXw5.js +1241 -0
  8. package/dist/client/assets/vendor-react-K0fH_qHe.js +49 -0
  9. package/dist/client/assets/vendor-xterm-DzcZoU0P.js +9 -0
  10. package/dist/client/assets/vendor-xterm-LZoznX6r.css +32 -0
  11. package/dist/client/icons/icon-192.png +0 -0
  12. package/dist/client/icons/icon-512.png +0 -0
  13. package/dist/client/index.html +90 -0
  14. package/dist/client/logo.svg +6 -0
  15. package/dist/client/manifest.json +23 -0
  16. package/dist/client/sw.js +90 -0
  17. package/dist/client/theme-data.css +3764 -0
  18. package/dist/extension.js +79879 -0
  19. package/package.json +86 -0
  20. package/skill/fusion/SKILL.md +103 -0
  21. package/skill/fusion/references/best-practices.md +91 -0
  22. package/skill/fusion/references/cli-commands.md +117 -0
  23. package/skill/fusion/references/extension-tools.md +296 -0
  24. package/skill/fusion/references/fusion-capabilities.md +121 -0
  25. package/skill/fusion/references/skill-patterns.md +38 -0
  26. package/skill/fusion/references/task-structure.md +158 -0
  27. package/skill/fusion/workflows/dashboard-cli.md +92 -0
  28. package/skill/fusion/workflows/specifications.md +124 -0
  29. package/skill/fusion/workflows/task-lifecycle.md +116 -0
  30. package/skill/fusion/workflows/task-management.md +90 -0
@@ -0,0 +1,90 @@
1
+ <required_reading>
2
+ - references/extension-tools.md — Full tool parameters and return values
3
+ - references/best-practices.md — Tips for writing good task descriptions
4
+ </required_reading>
5
+
6
+ <objective>
7
+ Guide the agent through creating, viewing, and managing tasks on the Fusion board using pi extension tools.
8
+ </objective>
9
+
10
+ <process>
11
+
12
+ **Creating a task:**
13
+
14
+ 1. Use `fn_task_create` with a clear, descriptive message
15
+ - Include the problem AND the desired outcome
16
+ - Be specific — the AI triage agent uses your description to write the specification
17
+ - Optionally add dependencies with the `depends` parameter
18
+
19
+ 2. The task enters **triage** where the AI auto-generates a PROMPT.md with:
20
+ - Steps, file scope, acceptance criteria
21
+ - Review level assessment
22
+ - Size estimate (S/M/L)
23
+
24
+ 3. After specification, the task moves to **todo** and waits for the scheduler
25
+
26
+ Example:
27
+ ```
28
+ fn_task_create({
29
+ description: "The login form doesn't validate email format before submission. Add client-side email validation that shows an inline error message when the email is invalid. Use the existing form validation pattern from the signup form.",
30
+ depends: ["KB-042"]
31
+ })
32
+ ```
33
+
34
+ **AI-guided planning for complex tasks:**
35
+
36
+ Use `fn_task_plan` when the idea is vague or complex. The AI will:
37
+ 1. Ask clarifying questions about scope, constraints, and approach
38
+ 2. Help break down the work into actionable pieces
39
+ 3. Create the task with a refined description
40
+
41
+ **Listing tasks:**
42
+
43
+ Use `fn_task_list` to see the board:
44
+ - No params → all tasks grouped by column
45
+ - `column: "in-progress"` → filter to specific column
46
+ - `limit: 5` → limit tasks shown per column
47
+
48
+ **Viewing task details:**
49
+
50
+ Use `fn_task_show` with the task ID:
51
+ - Shows steps with progress indicators (✓ done, ▸ in-progress, – skipped)
52
+ - Shows prompt preview (truncated to 500 chars)
53
+ - Shows recent log entries (last 5)
54
+
55
+ **Managing task state:**
56
+
57
+ | Action | Tool | Notes |
58
+ |--------|------|-------|
59
+ | Pause automation | `fn_task_pause` | Stops scheduler and executor from touching the task |
60
+ | Resume automation | `fn_task_unpause` | Re-enables automated processing |
61
+ | Retry failed task | `fn_task_retry` | Clears error, moves back to todo |
62
+ | Duplicate task | `fn_task_duplicate` | Creates fresh copy in triage |
63
+ | Refine completed task | `fn_task_refine` | Creates follow-up task with dependency on original |
64
+ | Archive done task | `fn_task_archive` | Moves from done → archived |
65
+ | Restore archived task | `fn_task_unarchive` | Moves from archived → done |
66
+ | Delete task | `fn_task_delete` | Permanent — cannot be undone |
67
+
68
+ **Attaching files:**
69
+
70
+ Use `fn_task_attach` with the task ID and file path:
71
+ - Supports images: png, jpg, gif, webp
72
+ - Supports text: txt, log, json, yaml, csv, xml
73
+ - Files are copied to `.fusion/tasks/{ID}/attachments/`
74
+
75
+ **Importing from GitHub:**
76
+
77
+ 1. Browse issues first: `fn_task_browse_github_issues({ owner: "org", repo: "repo" })`
78
+ - Shows issue numbers, titles, labels
79
+ - Marks already-imported issues with ✓
80
+ 2. Import specific issue: `fn_task_import_github_issue({ owner: "org", repo: "repo", issueNumber: 42 })`
81
+ 3. Bulk import: `fn_task_import_github({ ownerRepo: "org/repo", limit: 20 })`
82
+
83
+ </process>
84
+
85
+ <success_criteria>
86
+ - Task created with clear description that enables good AI specification
87
+ - Dependencies declared correctly (task IDs exist and are valid)
88
+ - Task state managed appropriately (pause for manual intervention, retry for failures)
89
+ - GitHub issues imported without duplicates
90
+ </success_criteria>