@masslessai/push-todo 3.10.2 → 3.10.4

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.md CHANGED
@@ -32,11 +32,13 @@ When this command is invoked:
32
32
  push-todo
33
33
  ```
34
34
 
35
- 4. **Present ALL tasks** - Do NOT summarize or truncate the list. Show every active task in a table format. Users want to see their complete task list, not a curated subset. If there are 35 tasks, show all 35.
35
+ 4. **If no tasks are returned** (output says "No active tasks"): This is **normal and expected** — it means no tasks have been assigned to this project's action yet. Do NOT treat this as an error. Simply tell the user: "No tasks for this project yet. Create tasks in the Push iOS app and assign them to this action." Do NOT spawn diagnostic agents or troubleshoot — empty task lists are the expected state for new or unused actions.
36
36
 
37
- 5. Ask which task the user wants to work on
37
+ 5. **Present ALL tasks** - Do NOT summarize or truncate the list. Show every active task in a table format. Users want to see their complete task list, not a curated subset. If there are 35 tasks, show all 35.
38
38
 
39
- 6. **Check if the daemon is currently working on this task:**
39
+ 6. Ask which task the user wants to work on
40
+
41
+ 7. **Check if the daemon is currently working on this task:**
40
42
  - If the task output shows `**Status:** 🔄 Running`:
41
43
  - The daemon is actively working on this task RIGHT NOW
42
44
  - Follow the [Live Session Status](#live-session-status) procedure to show progress
@@ -46,13 +48,13 @@ When this command is invoked:
46
48
  - Tell the user: "This task is queued and will be picked up by the daemon shortly."
47
49
  - Do NOT start working on this task
48
50
 
49
- 7. **Check for resumable daemon sessions:**
51
+ 8. **Check for resumable daemon sessions:**
50
52
  - If the task output contains `**Session:** Resumable`, the daemon already ran Claude Code on this task
51
53
  - Do NOT start working from scratch — automatically load the daemon's session context
52
54
  - Follow the [Auto-Resume from Session Transcript](#auto-resume-from-session-transcript) procedure below
53
55
  - Only if the session transcript cannot be found should you begin working from scratch
54
56
 
55
- 8. If no resumable session exists, begin working on the task normally
57
+ 9. If no resumable session exists, begin working on the task normally
56
58
 
57
59
  ## Review Mode
58
60
 
package/lib/cli.js CHANGED
@@ -393,7 +393,8 @@ export async function run(argv) {
393
393
  process.exit(1);
394
394
  }
395
395
 
396
- const screenshots = task.screenshot_attachments || task.screenshotAttachments || [];
396
+ const raw = task.screenshotAttachmentsJson || task.screenshotAttachments || task.screenshot_attachments;
397
+ const screenshots = !raw ? [] : Array.isArray(raw) ? raw : (() => { try { return JSON.parse(raw); } catch { return []; } })();
397
398
  if (screenshots.length === 0) {
398
399
  console.error(red(`Task #${displayNumber} has no screenshot attachments`));
399
400
  process.exit(1);
package/lib/fetch.js CHANGED
@@ -109,8 +109,16 @@ export async function listTasks(options = {}) {
109
109
  }
110
110
 
111
111
  if (decryptedTasks.length === 0) {
112
- const scope = gitRemote ? `for ${cyan(gitRemote)}` : 'across all projects';
113
- console.log(`No active tasks ${scope}.`);
112
+ let scope;
113
+ if (gitRemote) {
114
+ scope = `for ${cyan(gitRemote)}`;
115
+ } else if (actionId || actionType) {
116
+ // Path-based project (e.g., OpenClaw workspace) — scoped to a specific action
117
+ scope = `for this project (${cyan(actionType || 'unknown')})`;
118
+ } else {
119
+ scope = 'across all projects';
120
+ }
121
+ console.log(`No active tasks ${scope}. This is normal if no tasks have been assigned to this action yet.`);
114
122
  return;
115
123
  }
116
124
 
@@ -6,6 +6,18 @@
6
6
 
7
7
  import { bold, dim, green, yellow, red, cyan, muted, symbols } from './colors.js';
8
8
 
9
+ /**
10
+ * Parse a JSON string field into an array. Handles strings, arrays, null/undefined.
11
+ */
12
+ function parseJsonField(value) {
13
+ if (!value) return [];
14
+ if (Array.isArray(value)) return value;
15
+ if (typeof value === 'string') {
16
+ try { return JSON.parse(value); } catch { return []; }
17
+ }
18
+ return [];
19
+ }
20
+
9
21
  /**
10
22
  * Format a duration in seconds to human-readable string.
11
23
  *
@@ -85,9 +97,9 @@ export function formatTaskForDisplay(task) {
85
97
  lines.push(task.content || task.normalizedContent || 'No content');
86
98
  lines.push('');
87
99
 
88
- // Attachments
89
- const screenshots = task.screenshotAttachments || task.screenshot_attachments || [];
90
- const links = task.linkAttachments || task.link_attachments || [];
100
+ // Attachments — API returns JSON strings (screenshotAttachmentsJson, linkAttachmentsJson)
101
+ const screenshots = parseJsonField(task.screenshotAttachmentsJson || task.screenshotAttachments || task.screenshot_attachments);
102
+ const links = parseJsonField(task.linkAttachmentsJson || task.linkAttachments || task.link_attachments);
91
103
 
92
104
  if (screenshots.length > 0 || links.length > 0) {
93
105
  lines.push('### Attachments');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masslessai/push-todo",
3
- "version": "3.10.2",
3
+ "version": "3.10.4",
4
4
  "description": "Voice tasks from Push iOS app for Claude Code",
5
5
  "type": "module",
6
6
  "bin": {