@notilens/notilens 0.1.1 → 0.1.2
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/README.md +6 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,11 +18,9 @@ notilens add-agent <agent-name> http <endpoint> <secret>
|
|
|
18
18
|
|
|
19
19
|
**Example:**
|
|
20
20
|
```bash
|
|
21
|
-
notilens add-agent my-agent http https://
|
|
21
|
+
notilens add-agent my-agent http https://hook.notilens.com/webhook/[TOPIC_TOKEN]/send [TOPIC_SECRET]
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
Config is saved to `~/.notilens_config.json`.
|
|
25
|
-
|
|
26
24
|
---
|
|
27
25
|
|
|
28
26
|
## Usage
|
|
@@ -40,19 +38,19 @@ notilens task.in_progress --agent my-agent --task task_001
|
|
|
40
38
|
notilens task.complete "Processed 100 records" --agent my-agent --task task_001
|
|
41
39
|
|
|
42
40
|
# Report an error (non-terminal, task continues)
|
|
43
|
-
notilens task.error "
|
|
41
|
+
notilens task.error "Step 3 flow Crashed" --agent my-agent --task task_001
|
|
44
42
|
|
|
45
43
|
# Retry
|
|
46
44
|
notilens task.retry --agent my-agent --task task_001
|
|
47
45
|
|
|
48
46
|
# Loop iteration
|
|
49
|
-
notilens task.loop "Processing
|
|
47
|
+
notilens task.loop "Processing step 1" --agent my-agent --task task_001
|
|
50
48
|
|
|
51
49
|
# Fail (terminal)
|
|
52
|
-
notilens task.fail "
|
|
50
|
+
notilens task.fail "Worker failed" --agent my-agent --task task_001
|
|
53
51
|
|
|
54
52
|
# Timeout (terminal)
|
|
55
|
-
notilens task.timeout "
|
|
53
|
+
notilens task.timeout "Took more than 15 secs" --agent my-agent --task task_001
|
|
56
54
|
|
|
57
55
|
# Cancel (terminal)
|
|
58
56
|
notilens task.cancel "User cancelled" --agent my-agent --task task_001
|
|
@@ -130,7 +128,7 @@ Events are automatically mapped to notification types:
|
|
|
130
128
|
|
|
131
129
|
```bash
|
|
132
130
|
# Register agent
|
|
133
|
-
notilens add-agent summarizer http https://
|
|
131
|
+
notilens add-agent summarizer http https://hook.notilens.com/webhook/my_topic_token/send mysecret
|
|
134
132
|
|
|
135
133
|
# Start task
|
|
136
134
|
notilens task.start --agent summarizer --task job_42
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@notilens/notilens",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "NotiLens CLI — send AI agent task lifecycle notifications",
|
|
5
5
|
"keywords": ["notilens", "ai-agent", "notifications", "monitoring", "cli"],
|
|
6
6
|
"homepage": "https://www.notilens.com",
|